Skip to content

ENG-420 feat: add search functionality to FacilitySwitcher and UserDashboard components#16388

Closed
abhimanyurajeesh wants to merge 2 commits into
developfrom
ENG-420
Closed

ENG-420 feat: add search functionality to FacilitySwitcher and UserDashboard components#16388
abhimanyurajeesh wants to merge 2 commits into
developfrom
ENG-420

Conversation

@abhimanyurajeesh
Copy link
Copy Markdown
Contributor

@abhimanyurajeesh abhimanyurajeesh commented May 28, 2026

Proposed Changes

Fixes ENG-420
Note: If there is more than 1 facility then only search will be shown.

image image

Tagging: @ohcnetwork/care-fe-code-reviewers

Merge Checklist

  • Add specs that demonstrate the bug or test the new feature.
  • Update product documentation.
  • Ensure that UI text is placed in I18n files.
  • Prepare a screenshot or demo video for the changelog entry and attach it to the issue.
  • Request peer reviews.
  • Complete QA on mobile devices.
  • Complete QA on desktop devices.
  • Add or update Playwright tests for related changes

Copilot AI review requested due to automatic review settings May 28, 2026 12:34
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 28, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 6e01092d-dfc8-49c0-af95-8bf07b62e8e4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ENG-420

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
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

Adds client-side facility search to improve navigation when users have more than four facilities.

Changes:

  • Adds facility-name filtering to the sidebar facility switcher.
  • Adds facility-name filtering to the Facilities tab on the user dashboard.
  • Shows empty/no-results states when searches return no matches.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/pages/UserDashboard.tsx Adds search state, filtered facility list rendering, and an empty state for no facility matches.
src/components/ui/sidebar/facility/facility-switcher.tsx Adds a searchable input to the facility dropdown and filters listed facilities.

Comment thread src/pages/UserDashboard.tsx
Comment thread src/components/ui/sidebar/facility/facility-switcher.tsx
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 28, 2026

🎭 Playwright Test Results

Status: ❌ Failed
Test Shards: 3

Metric Count
Total Tests 299
✅ Passed 298
❌ Failed 1
⏭️ Skipped 0

📊 Detailed results are available in the playwright-final-report artifact.

Run: #9106

…serDashboard components, add tests for search behavior
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying care-preview with  Cloudflare Pages  Cloudflare Pages

Latest commit: e9e5d6b
Status: ✅  Deploy successful!
Preview URL: https://42350d23.care-preview-a7w.pages.dev
Branch Preview URL: https://eng-420.care-preview-a7w.pages.dev

View logs

@abhimanyurajeesh
Copy link
Copy Markdown
Contributor Author

closing in fav of #16248

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants