Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jul 31, 2025

What do these changes do?

The reset button of the searchFilter and extendedSearchFilter were buggy, this PR fixes it.

Buggy:
Buggy

Fixed:
Fixed

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this Jul 31, 2025
@odeimaiz odeimaiz added this to the Engage milestone Jul 31, 2025
@odeimaiz odeimaiz changed the title Fix/etended filter 🐛 [Frontend] Fix: Extended filter Jul 31, 2025
@odeimaiz odeimaiz requested a review from Copilot July 31, 2025 16:40
@odeimaiz odeimaiz marked this pull request as ready for review July 31, 2025 16:40
Copy link
Contributor

Copilot AI left a 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

@odeimaiz odeimaiz changed the title 🐛 [Frontend] Fix: Extended filter 🐛 [Frontend] Fix: Extended filter's reset button Jul 31, 2025
@odeimaiz odeimaiz added bug buggy, it does not work as expected a:frontend issue affecting the front-end (area group) labels Jul 31, 2025
@odeimaiz odeimaiz changed the title 🐛 [Frontend] Fix: Extended filter's reset button 🐛 [Frontend] Fix: Search filter's reset button Jul 31, 2025
@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label Jul 31, 2025
@odeimaiz
Copy link
Member Author

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jul 31, 2025

queue

🟠 Waiting for conditions to match

  • -closed [📌 queue requirement]
  • -conflict [📌 queue requirement]
  • -draft [📌 queue requirement]
  • any of: [📌 queue -> configuration change requirements]
    • -mergify-configuration-changed
    • check-success = Configuration changed
  • any of: [🔀 queue conditions]
    • all of: [📌 queue conditions of queue default]
      • #approved-reviews-by >= 2 [🛡 GitHub branch protection]
      • #approved-reviews-by>=2
      • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
      • #changes-requested-reviews-by=0
      • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
      • #review-threads-unresolved=0
      • -conflict
      • -draft
      • base=master
      • branch-protection-review-decision = APPROVED [🛡 GitHub branch protection]
      • label!=🤖-do-not-merge
      • label=🤖-automerge
      • any of: [🛡 GitHub branch protection]
        • check-skipped = deploy to dockerhub
        • check-neutral = deploy to dockerhub
        • check-success = deploy to dockerhub
      • any of: [🛡 GitHub branch protection]
        • check-success = system-tests
        • check-neutral = system-tests
        • check-skipped = system-tests
      • any of: [🛡 GitHub branch protection]
        • check-success = unit-tests
        • check-neutral = unit-tests
        • check-skipped = unit-tests
      • any of: [🛡 GitHub branch protection]
        • check-success = check OAS' are up to date
        • check-neutral = check OAS' are up to date
        • check-skipped = check OAS' are up to date
      • any of: [🛡 GitHub branch protection]
        • check-success = integration-tests
        • check-neutral = integration-tests
        • check-skipped = integration-tests
      • any of: [🛡 GitHub branch protection]
        • check-success = build-test-images (frontend) / build-test-images
        • check-neutral = build-test-images (frontend) / build-test-images
        • check-skipped = build-test-images (frontend) / build-test-images
      • any of: [🛡 GitHub branch protection]
        • check-success = SonarCloud Code Analysis
        • check-neutral = SonarCloud Code Analysis
        • check-skipped = SonarCloud Code Analysis

@odeimaiz odeimaiz enabled auto-merge (squash) August 1, 2025 09:01
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 1, 2025

@odeimaiz odeimaiz merged commit fbfc6fc into ITISFoundation:master Aug 1, 2025
58 checks passed
@odeimaiz odeimaiz deleted the fix/etended-filter branch August 2, 2025 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖-automerge marks PR as ready to be merged for Mergify a:frontend issue affecting the front-end (area group) bug buggy, it does not work as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants