-
Notifications
You must be signed in to change notification settings - Fork 32
🐛 [Frontend] Fix: Search filter's reset button #8182
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
Conversation
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.
Pull Request Overview
This PR fixes a bug in the extended filter functionality within the frontend dashboard. The main issue was that the reset button in the extended filter wasn't properly communicating with the main search filter, causing the UI to get out of sync when filters were reset.
- Removed debug/test code that was hardcoding values in notifications and jobs buttons
- Fixed the extended filter reset functionality by adding proper event handling between components
- Added null safety checks to prevent errors when filter data is undefined during reset operations
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| NotificationsButton.js | Removed hardcoded debug value for unread notifications count |
| JobsButton.js | Removed hardcoded debug value for active job status |
| StudyBrowser.js | Added event listeners and null safety checks for filter reset handling |
| SearchBarFilterExtended.js | Added resetFilter event emission when reset button is tapped |
| SearchBarFilter.js | Refactored reset logic and added event emission for reset button presses |
services/static-webserver/client/source/class/osparc/dashboard/StudyBrowser.js
Outdated
Show resolved
Hide resolved
…re into fix/etended-filter
|
@mergify queue |
🟠 Waiting for conditions to match
|
|



What do these changes do?
The reset button of the searchFilter and extendedSearchFilter were buggy, this PR fixes it.
Buggy:

Fixed:

Related issue/s
How to test
Dev-ops