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: use accessible items on home #887

Merged
merged 9 commits into from
Dec 22, 2023
Merged

feat: use accessible items on home #887

merged 9 commits into from
Dec 22, 2023

Conversation

pyphilia
Copy link
Contributor

@pyphilia pyphilia commented Dec 1, 2023

Thanks to @LinaYahya previous work this PR was really easy to do. Instead of applying the pagination on own items, I've done it on another endpoint to avoid losing some features (copy, move, navigation that show the full list of own items).
In addition pagination and search are done in the backend (only for home page).

By default I've set true to show only items created by us, but probably it's better to set it to false to reveal the full potential of the page. What do you think @juancarlosfarah @dgillet @swouf @LinaYahya @spaenleh ?

Screenshot 2023-12-01 at 17 01 25

Reminder: we have to merge own and shared items because some edge cases prevent you to find your items (an item you created but is not a root cannot be displayed)

TODO:

  • sorting
  • tests

close #886
close #794

@pyphilia pyphilia self-assigned this Dec 1, 2023
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.

Nice, I am not sure we should drill the new props down like that ... let me know what you think !

Looking forward to seeing this in production !

cypress/e2e/item/move/listMoveMultiple.cy.ts Outdated Show resolved Hide resolved
src/components/main/Home.tsx Show resolved Hide resolved
src/components/main/Home.tsx Outdated Show resolved Hide resolved
src/components/main/Home.tsx Outdated Show resolved Hide resolved
src/components/main/Home.tsx Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

Not sure the ShowOnly me should be defined here, will it be shown on all folders ? or is this just a "home" thing ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed it's a bit too nested in the components. But if I want to place it where I want + not break the other tables I have to edit a lot of files. I think a better move is to do that while changing the tables.

@pyphilia pyphilia requested a review from spaenleh December 20, 2023 17:49
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.

🎅🏻

@pyphilia pyphilia merged commit 819c4a1 into main Dec 22, 2023
3 checks passed
@pyphilia pyphilia deleted the 886-accessible-items branch December 22, 2023 13:02
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.

Show accessible items Pagination: Own items list
3 participants