Skip to content

Commit

Permalink
feat: Add UploadQueue to the public view
Browse files Browse the repository at this point in the history
Currently we don't have any feedback when
uploading files on a public view. Let's
add the UploadQueue in order to give the
feedback needed.
  • Loading branch information
Crash-- committed Aug 31, 2022
1 parent 24c2d46 commit 62507c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Modify Viewers to handle [68.0.0 BC](https://github.com/cozy/cozy-ui/releases/tag/v68.0.0)
- Fix on progress bar when uploading files [[68.4.0]](https://github.com/cozy/cozy-ui/releases/tag/v68.4.0)
* Update cozy-scripts for Amirale development
* Add visual feedback when uploading on a public view

## 🐛 Bug Fixes

Expand Down
3 changes: 3 additions & 0 deletions src/drive/web/modules/public/PublicLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Sprite from 'cozy-ui/transpiled/react/Icon/Sprite'
import { useI18n } from 'cozy-ui/transpiled/react/I18n'
import { RouterContextProvider } from 'drive/lib/RouterContext'
import FlagSwitcher from 'cozy-flags/dist/FlagSwitcher'
import UploadQueue from 'drive/web/modules/upload/UploadQueue'

const PublicLayout = ({ children, ...otherProps }) => {
const { t } = useI18n()
Expand All @@ -13,6 +14,8 @@ const PublicLayout = ({ children, ...otherProps }) => {
<Layout>
<FlagSwitcher />
<Alerter t={t} />
<UploadQueue />

{children}
<Sprite />
</Layout>
Expand Down
3 changes: 3 additions & 0 deletions src/drive/web/modules/public/PublicLayout.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import Alerter from 'cozy-ui/transpiled/react/Alerter'
import AppLike from 'test/components/AppLike'
import PublicLayout from './PublicLayout'

jest.mock('drive/web/modules/upload/UploadQueue', () => () => {
return null
})
const client = new createMockClient({})

describe('PublicLayout', () => {
Expand Down

0 comments on commit 62507c1

Please sign in to comment.