Filter relation management & query and store sync #873
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed ✍️
What
🤖 Generated by Copilot at 8ff6566
This pull request improves the filter functionality and appearance for the activity and member modules. It uses a shared utility function for parsing the query parameters and defines custom
apiFilterRenderer
functions for each filter to handle the API request logic. It also removes the<b>
tags from the filter labels and adds a search filter for members. Additionally, it updates the style of the dropdown component to increase the contrast and usability.
🤖 Generated by Copilot at 8ff6566
Why
How
🤖 Generated by Copilot at 8ff6566
text-gray-900
andcursor-default
classes to selected or focused dropdown items indropdown.scss
(link)queryUrlParserByType
utility function from shared filters module and use it for parsing query parameters for select and multiselect filter types in activity and member filter configs (link, link, link)apiFilterRenderer
property to activity and member filter configs to define the logic for rendering filter value for API request, and replacequeryRenderer
property where applicable (link, link, link, link, link, link, link, link, link, link, link, link, link, link)memberSearchFilter
config tomain.ts
to define the placeholder and theapiFilterRenderer
function for the search filter, which returns an array of filter conditions that match the search value with the member's display name or email (link, link)<b>
tags fromitemLabelRenderer
functions in member filter configs to make the label consistent with other filters (link, link, link, link, link, link, link, link, link, link, link)Checklist ✅
Feature
,Improvement
, orBug
.