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
@@ -40,6 +40,12 @@
@retry="reloadHistory"
/>
<EmptyState
v-else-if="historyLoaded && !history"
title="No history available for this patient."
description="The patient may not exist, or digitization history could not be loaded. Try another search or retry."
/>
<template v-else-if="history">
<!-- Summary -->
<div class="grid grid-cols-2 sm:grid-cols-4 gap-3 sm:gap-4">
@@ -283,10 +289,13 @@ const batchStore = useBatchStore()
const patientId = ref(props.patientId ?? (route.params.patientId as string | undefined))
const selectedPatientId = ref<string | undefined>()
const history = ref<PatientDigitizationHistoryResponse | null>(null)
const historyLoaded = ref(false)
async function reloadHistory() {
if (!patientId.value) return
historyLoaded.value = false
history.value = await batchStore.getPatientHistory(patientId.value)
historyLoaded.value = true
}
watch(
@@ -294,9 +303,12 @@ watch(
async (id) => {
patientId.value = id
if (id) {
historyLoaded.value = false
history.value = await batchStore.getPatientHistory(id)
historyLoaded.value = true
} else {
history.value = null
historyLoaded.value = false
}
},
{ immediate: true },