generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
Overview
Currently, when a user uses, "User Search" or "User Permission Search" features on VRMS and navigates to a specific user's profile, and clicks "Back to search", their search query is no longer stored. This issue focuses on the first step of implementing a search query hook that will allow us to preserve the user's previous search when navigating "Back to search."
Action Items
- Requirement: The functionality to search for and store queries will be handled by the hook, so that the component that renders the items will no longer have that logic (we are moving the logic of the search component into a hook).
- Explore how to make a hook.
- Move the query functionality into the hook.
- Import the hook into the component.
- Replace the search with the functionality created by the hook:
- Stored state
- Query refresh logic
- Search mode (
User Search
orUser Permission Search
) - Query filter string (the actual search text entered by the user)
- Query filter type (for
User Search
=Results by Name
orResults by Email
, and forUser Permission Search
=Admins
orProject Members
)
Resources/Instructions
To do:
- Create flow (search for user
Metadata
Metadata
Assignees
Type
Projects
Status
In progress