Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add dropzone header #1042

Merged
merged 2 commits into from
Mar 11, 2024
Merged

feat: add dropzone header #1042

merged 2 commits into from
Mar 11, 2024

Conversation

ztlee042
Copy link
Contributor

Copy link
Member

@spaenleh spaenleh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR. 🐨

I added some comments related to how we usually style components.

Please address the following before re-requesting a review:

  • fix existing tests that are broken by the feature and should be fixed to match the new behaviour
  • add tests that test the new feature
  • fix styling question on small screens

Also, this new component now appears in the following places:

  • Shared Items (if the user has no shared items)
  • Favorite Items (if the user has no favorite items)
  • Published Items (if the user has no published items)
  • Trash (if the user has no items in the bin)
    The message should not be displayed in those places.

You should address this as we do not allow to upload files on the shared items screen for example.

Let me know if you have questions or doubts.

src/components/file/DropzoneHelper.tsx Show resolved Hide resolved
src/components/file/DropzoneHelper.tsx Outdated Show resolved Hide resolved
src/components/file/DropzoneHelper.tsx Outdated Show resolved Hide resolved
src/components/file/DropzoneHelper.tsx Outdated Show resolved Hide resolved
src/components/file/DropzoneHelper.tsx Outdated Show resolved Hide resolved
src/components/file/DropzoneHelper.tsx Outdated Show resolved Hide resolved
src/components/file/DropzoneHelper.tsx Outdated Show resolved Hide resolved
src/components/file/DropzoneHelper.tsx Outdated Show resolved Hide resolved
src/components/item/ItemMain.tsx Outdated Show resolved Hide resolved
src/components/file/DropzoneHelper.tsx Show resolved Hide resolved
@ztlee042 ztlee042 requested a review from spaenleh March 7, 2024 15:15
Copy link
Member

@spaenleh spaenleh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

cypress/e2e/item/upload/dropzoneUpload.cy.ts Outdated Show resolved Hide resolved
@spaenleh spaenleh changed the title 1040 dropzone header feat: add dropzone header Mar 11, 2024
@spaenleh spaenleh marked this pull request as ready for review March 11, 2024 09:00
feat(dropzone): modify parent divs heights

feat(dropzone): add dropzone helper

feat(dropzone): modify text

fix(dropzone): hide dropzone in favorite screen

feat(dropzone): add prop to control dropzone helper visibility

fix(dropzone): modify redirection test to match dropzone behavior

fix(dropzone): add id, change styles and texts

feat: update mode button, refactor (#1030)

* refactor: update mode button, refactor

* refactor: apply PR requested changes

* refactor: update cypress

* refactor: mock item layout in commands

* refactor: import automatically env in cypress

* refactor: env in cypress

* refactor: import VITE_GRAASP_REDIRECTION_HOST

* refactor: use cypress baseurl

feat: move the description in ItemsToolbar to display it directly below the title (#1045)

chore(deps): update eslint packages (#1034)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

fix(deps): update ag-grid monorepo to v31.1.1 (#1035)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

fix(deps): update dependency @emotion/react to v11.11.4 (#1036)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

fix(deps): update dependency @sentry/react to v7.105.0 (#1037)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

fix(deps): update react-router monorepo to v6.22.2 (#1023)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

fix(deps): update mui (non-major) (#884)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

fix: remove qs dependency (#1041)

* fix: remove qs dependency

* fix: update deps

chore(deps): update yarn to v4.1.1 (#1052)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

chore(deps): update eslint packages to v7.1.1 (#1051)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

fix: remove duplicate none doc flavor (#1055)

chore(main): release 2.9.0 (#1043)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

fix(deps): update dependency @graasp/ui to v4.8.5 (#1046)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

chore(main): release 2.9.1 (#1062)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

fix: revert previous published item layout (#1058)

* fix: revert previous published item layout

* refactor: fix publish button

chore(main): release 2.9.2 (#1063)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

fix: fix mobile platform switch colors (#1064)

chore(main): release 2.9.3 (#1065)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

fix: invert colors for mobile platform switch (#1066)

chore(main): release 2.9.4 (#1069)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

feat(dropzone): hide dropzone when use has no permission

fix(dropzone): home screen styling

test(dropzone): add dropzone tests
@spaenleh spaenleh force-pushed the 1040-dropzone-header branch from 0f2550a to bfc4e2f Compare March 11, 2024 09:11
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@spaenleh spaenleh added this pull request to the merge queue Mar 11, 2024
Merged via the queue into main with commit b8f7011 Mar 11, 2024
4 checks passed
@spaenleh spaenleh deleted the 1040-dropzone-header branch March 12, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants