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 <noreply@anthropic.com>
This commit is contained in:
Khalid Abdi
2026-06-18 19:42:15 +03:00
parent be3968ce64
commit 5975e9e21a
2 changed files with 4 additions and 1 deletions
@@ -2,6 +2,7 @@
import {
CalendarDays,
FlaskConical,
ListChecks,
Pill,
Trash2,
@@ -41,6 +42,7 @@ const RESOURCE_ICONS: Record<string, React.ReactNode> = {
appointment: <CalendarDays className="size-4" />,
prescription: <Pill className="size-4" />,
task: <ListChecks className="size-4" />,
lab: <FlaskConical className="size-4" />,
};
// One row of /api/staff — shared with the Care Team panel.
@@ -1352,7 +1352,8 @@
"patient": "Patients",
"appointment": "Appointments",
"prescription": "Prescriptions",
"task": "Tasks"
"task": "Tasks",
"lab": "Lab results"
},
"actions": {
"read": "View",