feature: RBAC + Clinical Audit Logging

This commit is contained in:
voltsrage
2026-06-21 15:46:55 +08:00
parent a43db52813
commit 5af6ab490e
83 changed files with 4281 additions and 70 deletions
+4 -3
View File
@@ -14,7 +14,7 @@ npm install
npm run dev
```
Open http://localhost:5173
Open http://localhost:5173 — you will be redirected to `/login`. Demo credentials are seeded by the API (see repo root README / Phase 31 plan).
Optional `.env`:
@@ -35,6 +35,7 @@ VITE_API_URL=http://localhost:5270
| Path | View |
|---|---|
| `/login` | Sign in — JWT auth against the clinical API |
| `/ward` | Virtual Ward — active patients by NEWS2 risk |
| `/patients/:encounterId` | Patient detail — vitals, alerts, charts, replay, reasoning |
| `/alerts` | Alert Center — global alert inbox with feedback buttons |
@@ -73,8 +74,8 @@ src/
│ ├── ui/ # Button, Badge, Card, Modal, EmptyState, Skeleton
│ └── ward/ # WardTable, PatientRow, PatientCard
├── composables/ # useChartData, useReplayControls, usePolling, useFeedback, chartFormat
├── stores/ # ward, alerts, settings, feedback (localStorage persistence)
├── views/ # WardDashboard, PatientDetail, AlertCenter, FeedbackSummary
├── stores/ # ward, alerts, auth, settings, feedback (localStorage persistence)
├── views/ # LoginView, WardDashboard, PatientDetail, AlertCenter, FeedbackSummary
└── __tests__/ # Vitest — store, composables, components, views
```