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:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user