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

Transposing the table should be persisted after page refresh #503

Open
keyserj opened this issue Sep 15, 2024 · 0 comments
Open

Transposing the table should be persisted after page refresh #503

keyserj opened this issue Sep 15, 2024 · 0 comments
Labels
convenient makes the tool easier to use criteria table improves the criteria table enhancement New feature or request good first issue Good for newcomers hacktoberfest good ticket for hacktoberfest QoL small change the improves the feel of using the tool

Comments

@keyserj
Copy link
Collaborator

keyserj commented Sep 15, 2024

Describe your issue

Transposing the table can be nice when there are a lot of solutions and not a lot of criteria, because it removes the need to scroll to see the whole table:
chrome_2024-09-15_14-09-53

But if I refresh the page, the table does not remember that it was transposed.

Solution you'd like

Persist the transpose state. I should be able to refresh the page and still have the table transposed.

Alternatives you've considered

No response

Additional context

No response

Technical ideas and questions

  • currently the transpose state is component state in the Criteria Table; we should be able to move this to the currentViewStore so that it gets persisted
    • the currentViewStore persists view data, and conveniently its state is used to store Quick View state too, so this should also enable saving transpose state with Quick Views
    • adding this to the store should look very similar to how format is in the store: exposing a hook for the table to render based on the current value, and exposing a setter so that the table can set the value
@keyserj keyserj added enhancement New feature or request good first issue Good for newcomers criteria table improves the criteria table QoL small change the improves the feel of using the tool convenient makes the tool easier to use labels Sep 15, 2024
@keyserj keyserj added the hacktoberfest good ticket for hacktoberfest label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
convenient makes the tool easier to use criteria table improves the criteria table enhancement New feature or request good first issue Good for newcomers hacktoberfest good ticket for hacktoberfest QoL small change the improves the feel of using the tool
Projects
Status: No status
Development

No branches or pull requests

1 participant