Skip to content

Create user search query hook #2008

@JackHaeg

Description

@JackHaeg

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 or User Permission Search)
    • Query filter string (the actual search text entered by the user)
    • Query filter type (for User Search = Results by Name or Results by Email, and for User Permission Search = Admins or Project Members)

Resources/Instructions

To do:

  • Create flow (search for user

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions