-
Notifications
You must be signed in to change notification settings - Fork 899
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
Fix issue 6194 #6627
base: development
Are you sure you want to change the base?
Fix issue 6194 #6627
Conversation
I recommend deleting your branches & fetching them from scratch, setting |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Head branch was pushed to by a user without write access
34c9bfe
to
fdd890b
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Hi guys, I hope you're doing well. Thank you in advance for your feedback ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this! Left a suggestion as to the triggering the top nav function from the modal, although it's possible a teammate will have an even better alternative in mind for that.
@@ -116,6 +116,8 @@ Search Filters: | |||
Location: Location | |||
HDR: HDR | |||
VR180: VR180 | |||
Apply: 'Apply' | |||
Close: 'Close' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: This Close
label seems to be vestigial and should be removed
getTopNavInstance(state) { | ||
return state.topNavInstance | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: Storing a reference to the instance in state is an antipattern and should be avoided. One way to do this instead would be to watch
an applySearchFilters
boolean store property from top-nav.js
and unset it after use. My colleagues can probably think of something better than that, but that should at least be a start.
@@ -1,3 +1,4 @@ | |||
<!-- eslint-disable @intlify/vue-i18n/no-missing-keys --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not be needed after aforementioned unused key is removed.
Title
Fix: Implement "Apply Filters" functionality in search filters (#6194)
Pull Request Type
Related issue
closes #6194
Description
This pull request implements the functionality to apply filters on the search page. When users modify filters (e.g., duration, time, type) and click on the "Apply" button:
The filter panel closes automatically.
The search results are refreshed to reflect the selected filters without requiring an additional click on the search bar.
The functionality is achieved by:
Adding a new applyFilters action in
utils.js
to trigger the search refresh.Modifying
FtSearchFilters.vue
to include an "Apply" button with the appropriate behavior.Updating
top-nav.js
to handle the search re-execution with the new filter settings.Screenshots
Before:
After:
Testing
Manual Testing:
Automated Testing:
yarn run lint
andyarn run test
to ensure no issues were introduced.Lint Results:
No errors or warnings.
Remaining Tests:
All test suites passed successfully.
Desktop
Additional context
en-GB.yaml
anden-US.yaml
) to add the new "Apply" button label.