Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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

@dhis2-bot dhis2-bot temporarily deployed to netlify January 7, 2025 10:14 Inactive
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants