Harden workstation UX and seed placeholder scans after Playwright QA.
CI / backend (push) Failing after 38s
CI / frontend (push) Successful in 9m35s

Fix mobile queue navigation, draft/loading states, and Intake overflow; seed MinIO demo PDFs so document viewing does not 500; add e2e smoke coverage.
This commit is contained in:
2026-10-06 15:07:15 +08:00
parent 7d7332641f
commit 3c7bf5bccb
47 changed files with 1160 additions and 140 deletions
+62
View File
@@ -0,0 +1,62 @@
# Playwright Style QA — Issue Report
**Date:** 2026-10-06
**App:** VigilCare Records web (`vigilcare-records-web`)
**Environments tested:** Production (`https://vigilcare-records.vectur45.com`) for discovery; local Vite (`http://127.0.0.1:3028`) with production API proxy for fix verification
**Viewports:** 375×812, 768×1024, 1280×800
**Account:** `admin1` / seed password
---
## Summary
QA covered login, shell navigation, Queue Dashboard, Intake, Cover Sheets, Data Entry (queue + batch), Verification, Clinical Approval, Live Capture, Patient History, FHIR Explorer, and Users. High-impact mobile workstation, Intake sidebar overflow, dead Cover Sheet link, and several loading/empty/dialog issues were **fixed in code** and re-verified locally. Remaining items are backend/storage, polish, or larger UX follow-ups.
---
## Issues
| ID | Severity | Page / flow | Issue | Status |
|----|----------|-------------|-------|--------|
| I-01 | High | Entry / Verification / Approval batch (≤1279px) | Queue rail hidden below `xl` with no in-view “back to queue” path | **Fixed** — mobile nav bar in `WorkstationLayout` |
| I-02 | High | Cover Sheets → Linked Batch | Link went to `/intake?batchId=…` which Intake never handled (dead flow) | **Fixed** — links to `/entry/:batchId` |
| I-03 | High | Intake → Recent Uploads | Full `BatchList` table (`min-w-[36rem]`) overflowed narrow sidebar past viewport | **Fixed** — `compact` stacked list |
| I-04 | Medium | Queue Dashboard | Metric cards showed `0` while overview still loading | **Fixed** — skeleton cards until overview loads |
| I-05 | Medium | Patient History | Failed/null history could leave blank content (no error set) | **Fixed** — store sets error; empty state after load |
| I-06 | Medium | Assign Entry Clerk dialog | No Teleport, weak a11y, no backdrop dismiss, double-submit risk | **Fixed** — aligned with ConfirmDialog pattern + `assigning` |
| I-07 | Medium | ConfirmDialog | Backdrop click did not cancel; z-index tied with toasts | **Fixed** — `@click.self` cancel, `z-[70]` |
| I-08 | Low | Toasts | Competing with modals / mobile chrome (`z-50`, `top-4`) | **Fixed** — `z-[60]`, `top-16` on small screens |
| I-09 | Low | Login | Inputs stayed editable while signing in | **Fixed** — `:disabled="loading"` |
| I-10 | Low | AppShell header | Truncated username had no tooltip | **Fixed** — `:title` |
| I-11 | Low | Live Capture tabs | Tab strip could clip on very narrow widths | **Fixed** — `overflow-x-auto` + `shrink-0` |
| I-12 | Low | FHIR Explorer results | Full resource IDs widened tables | **Fixed** — truncate + `title` |
| I-13 | Low | Cover Sheets table | Long patient/assignee names could blow cell width | **Fixed** — truncate + `title` |
| I-14 | Low | Workstation action bar | Mobile stacked slots made sticky bar very tall | **Fixed** — tighter wrap layout |
| I-15 | Low | ScanViewer PDF | Fixed 800×1100 iframe forced heavy pan on phones | **Fixed** — responsive iframe sizing |
| I-16 | Low | Queue Dashboard Refresh | Disabled state had no visual cue | **Fixed** — disabled opacity styles |
| I-17 | High (env) | Entry/Verification scan pane | Presigned document load returns **500** (“Could not load document”) | **Fixed (pending deploy)** — `SeedDocumentStorage` uploads placeholder PDFs + 404/503 instead of raw 500 |
| I-18 | Medium | Users → Deactivate | Destructive deactivate is one-click (no ConfirmDialog) | **Fixed** — ConfirmDialog |
| I-19 | Medium | Workstation drafts | Failed `getDraft` can still render empty form fields | **Fixed** — skeleton / InlineError / retry |
| I-20 | Low | Live Capture | Success panel can persist across mode tab changes | **Fixed** — reset on mode change |
| I-21 | Low | FHIR metadata errors | CapabilityStatement failures surface in search error slot | **Fixed** — dedicated `metadataError` |
| I-22 | Info | Auth bootstrap | Initial `/auth/me` 401 + refresh 422 before login (stale tokens) | **Accepted** — clears after successful login |
---
## Verified after fixes (local)
- Mobile entry batch shows **← Back to entry queue**; click returns to `/entry`
- Intake Recent Uploads uses compact list; **no horizontal overflow** of page/panel
- Assign Clerk dialog Teleports, lists clerks, **backdrop click dismisses**
- Username tooltip present; login disables fields while submitting
- Unit tests: **271 passed** (`npm run test:run`)
---
## Viewport notes
| Viewport | Notes |
|----------|--------|
| 375×812 | Shell drawer OK; workstation stack (scan then form) OK after mobile nav; tables use horizontal scroll where intended |
| 768×1024 | Same as mobile for workstation (rail still hidden until `xl`); Intake form readable |
| 1280×800 | Side nav + workstation rail visible; Intake two-column layout OK with compact recent list |