Skip to content

Should be able to use back/forwards navigation after changing search query in Top Cards, Cube Analysis, etc. #2457

@oscarhermoso

Description

@oscarhermoso

Describe the bug
Should be able to use back/forwards browser navigation after "Apply" / "Quick Filter" in Top Cards, Cube Analysis, etc. pages. (anywhere that uses the FilterCollapse component)

To Reproduce
Steps to reproduce the behavior:

  1. From any other page on the site, follow Nav Bar links to Cards > Top Cards
  2. Type your search query
  3. Click "Apply"
  4. Modify filter
  5. Click on "Quick Filter" (whoops)
  6. Click browser Back button, attempting to restore the query

Expected behavior
After pressing back, previous query URL is restored.

Actual behaviour
Navigated to page orignal page before Top Cards

Screenshot

Screenshot from 2024-06-07 09-26-23

Additional context

It might be good to restyle this component slightly - the current UI leads me to clicking "Quick Filter" instead of "Apply" accidentally, because "Apply" is in the top-right, and "Quick Filter" has the same "accent" colour but is in the bottom-right.

Recoloring the "Quick Filter" button color "secondary" instead of "accent" might improve UX.

Could also add Ctrl + Z or similar to recover previous search state here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions