Files
vigilcare-records/phase-plan-mcp-fixes.md
Trent 3c7bf5bccb
CI / backend (push) Failing after 38s
CI / frontend (push) Successful in 9m35s
Harden workstation UX and seed placeholder scans after Playwright QA.
Fix mobile queue navigation, draft/loading states, and Intake overflow; seed MinIO demo PDFs so document viewing does not 500; add e2e smoke coverage.
2026-10-06 15:07:15 +08:00

89 lines
4.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Phase Plan — Remaining MCP / Playwright QA Fixes
Follow-up work after the 2026-10-06 Playwright style QA pass. See `issue-report.md` for full findings.
**Status (2026-10-06):** Phases 1–5 implemented in code. Document seed/MinIO placeholder upload runs on API bootstrap (`SeedDocumentStorage`). Frontend smoke: `npm run test:e2e`.
---
## Phase 1 — Reliability & trust (next sprint)
| Item | Issue IDs | Work |
|------|-----------|------|
| Scan document 500 | I-17 | Trace API presign → MinIO for seeded batches; fix storage path/credentials or seed real objects; keep UI Retry |
| Draft load errors | I-19 | Surface `batchStore.error` / draft loading skeleton in Entry, Verification, Approval forms |
| Deactivate confirm | I-18 | Wire `ConfirmDialog` (`variant="danger"`) before user deactivate on Users |
| Status-aware batch deep links | I-02 follow-up | Cover Sheet / dashboard links route by batch status (`/entry`, `/verification`, `/approval`) instead of always entry |
**Exit criteria:** Opening any seeded batch shows either a document or a clear infra error; draft failures never look like “blank healthy form”; deactivate requires confirm.
---
## Phase 2 — Workstation mobile UX
| Item | Work |
|------|------|
| Compact batch switcher | Below `xl`, add optional `<select>` or sheet of queue batches next to “Back to queue” |
| Scan pane height | Cap scan viewport (`max-h-[45vh]`) on small screens so form actions stay reachable without endless scroll |
| Action bar density | Collapse secondary actions into a menu on ≤375 width if more than two primaries appear |
| Fit-width on resize | Call ScanViewer `fitWidth()` on container resize (VueUse `useResizeObserver`) |
**Exit criteria:** Entry/verification/approval batch flows completable at 375 without relying on browser Back or sidebar alone.
---
## Phase 3 — States & feedback polish
| Item | Issue IDs | Work |
|------|-----------|------|
| Live Capture mode reset | I-20 | Clear `lastResult` / store success when switching New vs Existing tabs |
| FHIR metadata error placement | I-21 | Dedicated `metadataError` under CapabilityStatement action |
| Confirm in-flight labels | — | Optional `confirmLoading` prop on `ConfirmDialog` |
| Dashboard refresh a11y | — | `aria-busy` already on metrics; ensure Refresh announces completion |
| Toast vs Help panel | I-08 follow-up | Smoke-test toast while Help drawer open; adjust if still obscured |
**Exit criteria:** Empty / loading / error / success states consistent on Live Capture, FHIR Explorer, and dialogs.
---
## Phase 4 — Tables & density
| Item | Work |
|------|------|
| BatchList responsive columns | Hide Track / shorten Created below `sm` in table mode; keep `compact` for sidebars |
| Cover Sheets list | `hidden lg:table-cell` for Created / Linked Batch; card layout optional for mobile |
| Dashboard batch table | Same compact date formatting as Intake compact list |
| FHIR JSON panel | `max-h-[50vh]` on small screens |
**Exit criteria:** No page-level horizontal overflow at 375/768 except intentional `overflow-x-auto` regions.
---
## Phase 5 — Hardening & automation
| Item | Work |
|------|------|
| Playwright smoke suite | Script viewport matrix (375 / 768 / 1280) for login → role home → one workstation open → back to queue |
| Visual regression | Snapshot workstation mobile nav, Intake compact recent, Assign dialog |
| Proxy docs | Document `VITE_API_PROXY=https://…` for local UI against remote API |
| Role-based QA | Repeat smoke as `entry1`, `verifier1`, `approver1`, `intake1` (not only admin) |
**Exit criteria:** CI or local npm script catches regressions for I-01 / I-03 class failures.
---
## Suggested order
1. Phase 1 (scan 500 + draft errors) — blocks real clerk work
2. Phase 2 — completes mobile workstation
3. Phase 3–4 — polish
4. Phase 5 — lock in with automation
---
## Out of scope (accepted)
- Stale-token `/auth/me` 401 noise before login (I-22)
- Redesigning brand/login marketing panel
- Changing Tailwind design tokens or brand colors