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.
This commit is contained in:
@@ -1,5 +1,48 @@
|
||||
# Vue 3 + TypeScript + Vite
|
||||
# VigilCare Records — Web
|
||||
|
||||
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
||||
Vue 3 + TypeScript + Vite workstation UI for digitization intake, entry, verification, and clinical approval.
|
||||
|
||||
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
||||
## Scripts
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run dev # http://localhost:3028
|
||||
npm run build
|
||||
npm run test:run
|
||||
npm run test:e2e # Playwright smoke (requires app + API)
|
||||
```
|
||||
|
||||
## API proxy
|
||||
|
||||
Vite proxies `/api` and `/fhir` to a backend. By default that is `http://localhost:5217`.
|
||||
|
||||
To point the local UI at a remote API (e.g. production or staging) without changing `vite.config.ts`:
|
||||
|
||||
```bash
|
||||
VITE_API_PROXY=https://vigilcare-records.vectur45.com npm run dev
|
||||
```
|
||||
|
||||
Auth cookies/tokens are same-origin to the Vite host; the proxy forwards `/api/v1/*` to the target.
|
||||
|
||||
## Playwright smoke
|
||||
|
||||
`e2e/smoke.spec.ts` covers viewports **375 / 768 / 1280**:
|
||||
|
||||
1. Login as a role user
|
||||
2. Land on role home
|
||||
3. Open one workstation batch when available
|
||||
4. Use **Back to queue** (mobile/tablet) when the rail is hidden
|
||||
|
||||
```bash
|
||||
npx playwright install chromium # once
|
||||
BASE_URL=http://127.0.0.1:3028 npm run test:e2e
|
||||
```
|
||||
|
||||
Optional env:
|
||||
|
||||
| Variable | Default | Purpose |
|
||||
|----------|---------|---------|
|
||||
| `BASE_URL` | `http://127.0.0.1:3028` | App under test |
|
||||
| `E2E_USER` | `entry1` | Login username |
|
||||
| `E2E_PASSWORD` | `password` | Login password |
|
||||
| `E2E_ROLES` | `entry1,verifier1,approver1,intake1` | Comma-separated role smoke users |
|
||||
|
||||
Reference in New Issue
Block a user