-
Notifications
You must be signed in to change notification settings - Fork 36
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
Create paginator component #3195
Conversation
Tests are failing because Paginator component is called by RecordSetsDialog. The props in RecordSetsDialog have been modified, need to add those new props in other places where the component is called. (Not just in RecordSetsOverlay) |
specifyweb/frontend/js_src/lib/components/Toolbar/RecordSets.tsx
Outdated
Show resolved
Hide resolved
specifyweb/frontend/js_src/lib/components/Molecules/Paginator.tsx
Outdated
Show resolved
Hide resolved
Shift burden of responsibility to the hook, from the component. Since the hook is going to be called in many places, that will result in reduction of code.
Because default value for sort config was a new object that was created on each render
@CarolineDenis I had to remove the min-w from <select> as it was causing issues in many places. Instead, you should add it back only for small screens, and only in places where it was necessary
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.
@CarolineDenis please review the changes I did.
Changed this branch to be based on xml-editor
since record sets code was simplified there.
- 928be8b - Moved most of the code and states into usePaginator() so that the places using it have very little stuff left to do
- 08bb7ba - Fixed the bug with record sets not being sorted properly
- 1ec1f25 - Fixed page size selector being too wide
- bf23b48 - Made usePaginator() remember the page size user selected last time
Note tests are failing because I need to fix them on |
@CarolineDenis either here, or after this is merged on a new branch, can you add a paginator to the queries dialog? Then look though specify to identify other places that could use a paginator |
@specify/ux-testing the loading dialog that appears whenever you change page or page size is too obtrusive. We have a bug to incrementally fix that across specify - #2998 |
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.
Should paginator be locked in place?
pEqMxvLOrs.mp4
https://sdnhmpaleo33123-issue-1398.test.specifysystems.org/specify/overlay/record-sets/
It should have been removed, but probably was resurected by a git merge
There was conflict between "fields", the relationship in the SpQuery table, and "fields" the property of the /api/specify_rows/ endpoint
Triggered by 0360179 on branch refs/heads/issue-1398
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.
nothing major. looking good
specifyweb/frontend/js_src/lib/components/Forms/ResourceView.tsx
Outdated
Show resolved
Hide resolved
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.
Paginator also not locked in place in Create Loan dialog.
dJl2cS7e5F.mp4
https://sdnhmpaleo33123-issue-1398.test.specifysystems.org/specify/overlay/interactions/create/Loan/
Other than that, looks good. Tested record set list, query list, and record set list in create loan dialog. Is there any other place I missed? |
but was elsewhere? |
Yes, it was locked in place on the query list and record set list dialogs but not the Create Loan dialog. L3sUt2oD1b.mp4 |
So that long numbers are not hidden behind numeric field arrows when typing them
Make them stick to the bottom of the dialog
Triggered by b397f5a on branch refs/heads/issue-1398
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.
Looks good!
Fixes #1398