Skip to content

feat(patient-header): district/village + lab beneficiary-details button in header - #479

Open
gkbishnoi07 wants to merge 2 commits into
angular-zard-migrationfrom
feat/patient-header-district-village
Open

feat(patient-header): district/village + lab beneficiary-details button in header#479
gkbishnoi07 wants to merge 2 commits into
angular-zard-migrationfrom
feat/patient-header-district-village

Conversation

@gkbishnoi07

@gkbishnoi07 gkbishnoi07 commented Sep 11, 2026

Copy link
Copy Markdown

Patient-header polish for the workarea, in two related changes:

1. Show District / Village in the header (Nurse-module QA point)

The compact beneficiary header showed only name / gender / age / Beneficiary ID, so district and village weren't visible without opening the full beneficiary details.

Added District / Village after the Beneficiary ID in both places that render this header card:

  • nurse-doctor/workarea/workarea.component.html (nurse + doctor)
  • lab/workarea/workarea.component.html (lab technician)

It uses the same districtName / villageName fields the beneficiary-details modal already shows (both read the same object from BeneficiaryDetailsService), wrapped in *ngIf="districtName || villageName" so it only appears when present. These two workareas are the only templates that use this card.

2. Move the lab beneficiary-details button into the header

The lab workarea opened the beneficiary details from a floating blue FAB (fixed bottom-12 left-5), unlike the nurse-doctor workarea which uses a header icon button. Replaced the FAB with a header icon button (outline, icon-lg) next to the beneficiary card, so the lab screen matches the nurse-doctor layout. The z-sheet it opens (toggleSidenav()) is unchanged.

add district / village to the compact beneficiary header in the
nurse-doctor and lab workareas (shown only when present), so the
location is visible without opening the full beneficiary details.
uses the same districtName / villageName fields the details modal
already shows.
@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: a7ba8a8b-1942-4195-bbcd-f1b1bba5e809

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

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

replace the floating blue FAB in the lab workarea with a header icon
button next to the beneficiary card, matching the nurse-doctor layout.
@gkbishnoi07 gkbishnoi07 changed the title feat(patient-header): show district and village in the workarea header feat(patient-header): district/village + lab beneficiary-details button in header Sep 11, 2026
@sonarqubecloud

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant