feat(patient-header): district/village + lab beneficiary-details button in header - #479
feat(patient-header): district/village + lab beneficiary-details button in header#479gkbishnoi07 wants to merge 2 commits into
Conversation
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.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
replace the floating blue FAB in the lab workarea with a header icon button next to the beneficiary card, matching the nurse-doctor layout.
|



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/villageNamefields the beneficiary-details modal already shows (both read the same object fromBeneficiaryDetailsService), 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. Thez-sheetit opens (toggleSidenav()) is unchanged.