Skip to content

edit filter function added#113

Merged
dakshshahani merged 5 commits into
devfrom
daksh/edit-filter-queries
Jul 9, 2026
Merged

edit filter function added#113
dakshshahani merged 5 commits into
devfrom
daksh/edit-filter-queries

Conversation

@dakshshahani

Copy link
Copy Markdown
Collaborator

Reason

Users cannot edit their filters while querying on admin.

Explanation

Allowing users to edit their filters applied to the search on the query tab.
Function updates newFilter states with filter being edited. Function also removed filter being updated.

Copilot AI review requested due to automatic review settings June 28, 2026 03:55
@dakshshahani dakshshahani requested review from geoff-jiang and removed request for Copilot June 28, 2026 03:57
@geoff-jiang

geoff-jiang commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

@dakshshahani Saving an edited filter appends it to the end and can change mixed AND/OR logic. Is it possible to make it so that editing a filter edits it in place (track the edited filter ID/index)?

Otherwise LGTM 👍

Copilot AI review requested due to automatic review settings July 9, 2026 05:14
@dakshshahani dakshshahani removed the request for review from Copilot July 9, 2026 05:14
Adds handleFilterUpdate that replaces a filter selection in-place by ID using the existing .map(). Exposes it as onFilterUpdate in QueryContextType and the provider value object.
@dakshshahani

Copy link
Copy Markdown
Collaborator Author

@geoff-jiang ^^ please check how copilot changed CI, changes admin's CI pipeline

@dakshshahani dakshshahani requested review from Copilot and removed request for Copilot July 9, 2026 06:33
@dakshshahani

Copy link
Copy Markdown
Collaborator Author

Track the edited filter's ID and update it in place; previously editing removed the original then appended a new one at the end with a fresh UUID. Updated add/update/remove query using ID (may be complex to maintain later lol)

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit dc2e35c):

https://dev-nwplus-admin--pr113-28998989634-tjq5qlot.web.app

(expires Sun, 19 Jul 2026 06:39:27 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c290bf9e2fac0401389f751f415cce4267517b51

@geoff-jiang geoff-jiang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 i think the CI failed earlier due to server errors, not anything on our side, but this fix is also fine.

@dakshshahani dakshshahani merged commit 247a2b0 into dev Jul 9, 2026
6 checks passed
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.

3 participants