-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
4b31fed
to
fb63535
Compare
There was a problem hiding this 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 !
src/components/main/ItemsToolbar.tsx
Outdated
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎅🏻
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 tofalse
to reveal the full potential of the page. What do you think @juancarlosfarah @dgillet @swouf @LinaYahya @spaenleh ?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:
close #886
close #794