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:
@@ -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' }}>
|
||||
|
||||
Reference in New Issue
Block a user