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

Filters and search should persist when re-loading the Library #3063

Open
1 task
emmastephenson opened this issue Dec 13, 2024 · 4 comments · May be fixed by #3114
Open
1 task

Filters and search should persist when re-loading the Library #3063

emmastephenson opened this issue Dec 13, 2024 · 4 comments · May be fixed by #3114
Assignees
Labels
needs design review The PR for this issue will need design review before merging Streamline eCR Issues for Streamline eCR team to work on

Comments

@emmastephenson
Copy link
Collaborator

emmastephenson commented Dec 13, 2024

What needs to be done

Update the user experience for filtering to persist through reloads, such that:
GIVEN I've -- 1) filtered to a condition and/or date in the Library AND/OR 2) entered a search term -- and then clicked into a specific eCR
WHEN I go back to the Library page
THEN my condition and/or date filters and/or search term should still be applied.

Why it needs to be done

Currently, when you click into a specific eCR and then go back to the Library, your filters aren't persisted. This is an annoying user experience since you now have to re-apply your filters.

Note: local session should save:

  1. Conditions filtered on
  2. Date range option / custom date filtered on
  3. Search term

Design review

(This behavior will need to be validated with the design team)

Acceptance Criteria

  • When a user has filters applied and navigates into a single eCR, the filters and/or search should persist on return

Technical Notes

Not entirely sure how this will need to be done - cookies? Or just an update to the way the Library button functions?
Update: should be able to use session info for this.

@emmastephenson emmastephenson added Streamline eCR Issues for Streamline eCR team to work on needs design review The PR for this issue will need design review before merging labels Dec 13, 2024
@angelathe
Copy link
Collaborator

angelathe commented Dec 17, 2024

@emmastephenson Editing this so it should add session info for both condition filters & filter by date! (think it would be negligible added work)

@angelathe angelathe changed the title Condition Filter should persist when re-loading the Library Filters should persist when re-loading the Library Dec 17, 2024
@angelathe
Copy link
Collaborator

@emmastephenson Also, should search terms also persist? Currently, I don't think they do

@emmastephenson
Copy link
Collaborator Author

@angelathe ooh, search is a good question! I feel like yes it should, especially if you're searching for a specific patient.

@angelathe
Copy link
Collaborator

Okay sounds good! I'll add it to the ticket + add a point

@angelathe angelathe changed the title Filters should persist when re-loading the Library Filters and search should persist when re-loading the Library Dec 17, 2024
@gordonfarrell gordonfarrell self-assigned this Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs design review The PR for this issue will need design review before merging Streamline eCR Issues for Streamline eCR team to work on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants