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

feat: search and filter through namespaces and keys #142

Open
wants to merge 1 commit into
base: DHIS2-18532/update-key-values
Choose a base branch
from

Conversation

d-rita
Copy link

@d-rita d-rita commented Jan 7, 2025

DHIS2-18663

Implementation details

  • Added a hook, useSearchFilter, that filters through an array of strings based on the current search term.
  • The hook is used to:
    • track and store the search term got from the Search Field
    • filter the fetched namespaces and keys based on the term
  • The filtered data (returned from the hook) is what is used to render the rows in the data table.

- add custom useSearchFilter hook to filter array of items based on the search field value
@dhis2-bot
Copy link
Contributor

🚀 Deployed on https://pr-142.datastore.netlify.dhis2.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants