feat(patients): phase B1 — tabbed patient detail page

Add a standalone PatientDetailPage at /admin/patients/:uuid: a header + the
9-tab case-file bar (services, info, appointments, payments, wallet, messages,
call-center, attachments, medical-record). The info, services (sessions) and
appointments tabs are wired to existing endpoints; the remaining tabs render a
placeholder until their backends land (phases B2–B5). The list "مشاهده" action
now opens this detail page.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
hamed
2026-07-13 15:08:53 +03:30
co-authored by Claude Opus 4.8
parent 249b8872a7
commit 7ac875a7a6
4 changed files with 218 additions and 2 deletions
+1 -2
View File
@@ -45,8 +45,7 @@ export default function PatientsListPage() {
const total = data?.meta?.totalRecords ?? 0;
const editHref = (r: PatientRecord) => `/admin/patients/${r.uuid}/edit`;
// detail page arrives in phase B; view currently opens the edit form
const viewHref = editHref;
const viewHref = (r: PatientRecord) => `/admin/patients/${r.uuid}`;
return (
<div className="fade-in" style={{ maxWidth: 1160, margin: '0 auto' }}>