From 5975e9e21aa1f018184e05f537cef4dc4a53e2ea Mon Sep 17 00:00:00 2001 From: Khalid Abdi Date: Thu, 18 Jun 2026 19:42:15 +0300 Subject: [PATCH] frontend: show lab permission row in care-team employee dialog CLINICAL_RESOURCES includes "lab" but the employee detail dialog only mapped patient/appointment/prescription/task, so the lab row rendered as the raw i18n key with no icon. Add a FlaskConical icon and a "Lab results" label. Co-Authored-By: Claude Opus 4.8 --- frontend/components/settings/employee-detail-dialog.tsx | 2 ++ frontend/lib/i18n/locales/en/translation.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/components/settings/employee-detail-dialog.tsx b/frontend/components/settings/employee-detail-dialog.tsx index dc0fa81..e6b57de 100644 --- a/frontend/components/settings/employee-detail-dialog.tsx +++ b/frontend/components/settings/employee-detail-dialog.tsx @@ -2,6 +2,7 @@ import { CalendarDays, + FlaskConical, ListChecks, Pill, Trash2, @@ -41,6 +42,7 @@ const RESOURCE_ICONS: Record = { appointment: , prescription: , task: , + lab: , }; // One row of /api/staff — shared with the Care Team panel. diff --git a/frontend/lib/i18n/locales/en/translation.json b/frontend/lib/i18n/locales/en/translation.json index 2238875..202b505 100644 --- a/frontend/lib/i18n/locales/en/translation.json +++ b/frontend/lib/i18n/locales/en/translation.json @@ -1352,7 +1352,8 @@ "patient": "Patients", "appointment": "Appointments", "prescription": "Prescriptions", - "task": "Tasks" + "task": "Tasks", + "lab": "Lab results" }, "actions": { "read": "View",