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

[13] fix: retain search table settings and order #281

Merged
merged 28 commits into from
Aug 28, 2023

Conversation

noctillion
Copy link
Contributor

This PR implements changes to retain the sorting and pagination information in the explorer results tables. These changes allow the navigation back to the tables, preserving the user's preferred sorting order and the selected tab and pagination. The main changes introduced with this PR are:

Persistent sorting: The sorting order for the columns is now saved and reapplied when navigating back to the explorer result tables

Saved pagination state: The current page is stored and retrieved when returning to the tables, keeping the user's position in the dataset.

Redux integration: Updated the redux actions and state to handle the storing and retrieval of sorting and pagination information, making it accessible across different components.

Code refactoring: Refactored the code including the implementation of custom sorting hook and the ExplorerSearchResultsTable component.

@davidlougheed davidlougheed changed the title Bug/retain_search_table_setting_order fix: retain search table settings and order Aug 16, 2023
@noctillion noctillion marked this pull request as ready for review August 21, 2023 13:57
@noctillion noctillion requested a review from gsfk August 21, 2023 14:13
Copy link
Member

@gsfk gsfk left a comment

Choose a reason for hiding this comment

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

Tested as much as I could and works great. I left a few inline comments, none of which are crucial.

src/components/explorer/hooks/explorerHooks.js Outdated Show resolved Hide resolved
src/components/explorer/ExplorerIndividualContent.js Outdated Show resolved Hide resolved
src/components/explorer/ExplorerSearchResultsTable.js Outdated Show resolved Hide resolved
Copy link
Member

@davidlougheed davidlougheed left a comment

Choose a reason for hiding this comment

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

overall looking really good! made one minor request

src/components/explorer/ExplorerSearchResultsTable.js Outdated Show resolved Hide resolved
@noctillion
Copy link
Contributor Author

Thanks for your review and insights!!

@davidlougheed davidlougheed changed the title fix: retain search table settings and order [13] fix: retain search table settings and order Aug 28, 2023
Copy link
Member

@davidlougheed davidlougheed left a comment

Choose a reason for hiding this comment

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

lgtm

@davidlougheed davidlougheed merged commit 558dc08 into master Aug 28, 2023
3 checks passed
@davidlougheed davidlougheed deleted the bug/retain_search_table_setting_order branch August 28, 2023 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants