Fix responsiveness
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
<AppHeader title="Clinical Approval">
|
||||
<template #subtitle>
|
||||
<span v-if="currentBatch" class="text-sm text-ink-secondary">
|
||||
Batch: {{ currentBatch.id.substring(0, 8) }}...
|
||||
| Type: {{ formatBatchType(currentBatch.batchType) }}
|
||||
Batch {{ currentBatch.id.substring(0, 8) }}…
|
||||
· {{ formatBatchType(currentBatch.batchType) }}
|
||||
</span>
|
||||
</template>
|
||||
</AppHeader>
|
||||
|
||||
@@ -1,18 +1,12 @@
|
||||
<template>
|
||||
<div class="h-full min-h-0 flex flex-col">
|
||||
<AppHeader title="Cover Sheets" />
|
||||
<AppHeader
|
||||
title="Cover Sheets"
|
||||
description="Generate printable separators that reconnect scanned paper to batch metadata."
|
||||
/>
|
||||
|
||||
<div class="flex-1 overflow-y-auto p-4 sm:p-6 lg:p-8">
|
||||
<div class="max-w-7xl mx-auto space-y-6 lg:space-y-8">
|
||||
<div>
|
||||
<h1 class="text-[1.75rem] font-semibold text-ink-strong leading-tight tracking-tight">
|
||||
Cover Sheet Management
|
||||
</h1>
|
||||
<p class="mt-1 text-sm text-ink-secondary">
|
||||
Generate printable separators that reconnect scanned paper to batch metadata.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Top: 50 / 50 generation + preview -->
|
||||
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 lg:gap-8 items-start">
|
||||
<section class="card">
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<AppHeader title="Data Entry">
|
||||
<template #subtitle>
|
||||
<span v-if="currentBatch" class="text-sm text-ink-secondary">
|
||||
Batch: {{ currentBatch.id.substring(0, 8) }}...
|
||||
| Type: {{ currentBatch.batchType.replace(/_/g, ' ') }}
|
||||
Batch {{ currentBatch.id.substring(0, 8) }}…
|
||||
· {{ currentBatch.batchType.replace(/_/g, ' ') }}
|
||||
</span>
|
||||
</template>
|
||||
</AppHeader>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<template>
|
||||
<div class="h-full min-h-0 flex flex-col">
|
||||
<AppHeader title="FHIR Explorer">
|
||||
<AppHeader
|
||||
title="FHIR Explorer"
|
||||
description="Read-only inspection of exposed FHIR resources for administrators and integration staff."
|
||||
>
|
||||
<template #actions>
|
||||
<button type="button" class="btn-secondary text-sm" @click="openMetadata">
|
||||
CapabilityStatement
|
||||
@@ -10,15 +13,6 @@
|
||||
|
||||
<div class="flex-1 overflow-y-auto p-4 sm:p-6 lg:p-8">
|
||||
<div class="max-w-7xl mx-auto space-y-6">
|
||||
<div>
|
||||
<h1 class="text-[1.75rem] font-semibold text-ink-strong leading-tight tracking-tight">
|
||||
FHIR R4 Explorer
|
||||
</h1>
|
||||
<p class="mt-1 text-sm text-ink-secondary">
|
||||
Read-only inspection of exposed FHIR resources for administrators and integration staff.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Resource browser -->
|
||||
<section class="card space-y-5">
|
||||
<header>
|
||||
|
||||
@@ -1,18 +1,12 @@
|
||||
<template>
|
||||
<div class="h-full min-h-0 flex flex-col">
|
||||
<AppHeader title="Intake" />
|
||||
<AppHeader
|
||||
title="Intake"
|
||||
description="Create a digitization batch from a PDF or image scan."
|
||||
/>
|
||||
|
||||
<div class="flex-1 overflow-y-auto p-4 sm:p-6 lg:p-8">
|
||||
<div class="max-w-7xl mx-auto">
|
||||
<div class="mb-6">
|
||||
<h1 class="text-[1.75rem] font-semibold text-ink-strong leading-tight tracking-tight">
|
||||
Upload Scanned Document
|
||||
</h1>
|
||||
<p class="mt-1 text-sm text-ink-secondary">
|
||||
Create a digitization batch from a PDF or image scan.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 xl:grid-cols-[minmax(0,0.7fr)_minmax(0,0.3fr)] gap-6 lg:gap-8 items-start">
|
||||
<!-- Main — ~70%: upload + batch details -->
|
||||
<div class="space-y-6 min-w-0">
|
||||
|
||||
@@ -1,18 +1,12 @@
|
||||
<template>
|
||||
<div class="h-full min-h-0 flex flex-col">
|
||||
<AppHeader title="Live Capture" />
|
||||
<AppHeader
|
||||
title="Live Capture"
|
||||
description="Bedside observation recording — lighter than backfill digitization."
|
||||
/>
|
||||
|
||||
<div class="flex-1 overflow-y-auto p-4 sm:p-6 lg:p-8">
|
||||
<div class="max-w-5xl mx-auto space-y-6">
|
||||
<div>
|
||||
<h1 class="text-[1.75rem] font-semibold text-ink-strong leading-tight tracking-tight">
|
||||
Live Capture
|
||||
</h1>
|
||||
<p class="mt-1 text-sm text-ink-secondary">
|
||||
Bedside observation recording — lighter than backfill digitization.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Mode selector -->
|
||||
<div class="flex border-b border-line" role="tablist">
|
||||
<button
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="min-h-screen flex flex-col lg:flex-row bg-canvas">
|
||||
<!-- Brand panel -->
|
||||
<aside
|
||||
class="relative flex flex-col justify-between bg-navy text-white px-8 py-10 lg:w-[45%] lg:min-h-screen lg:px-12 lg:py-14"
|
||||
class="relative flex flex-col justify-between bg-navy text-white px-6 py-8 sm:px-8 sm:py-10 lg:w-[45%] lg:min-h-screen lg:px-12 lg:py-14"
|
||||
>
|
||||
<div
|
||||
class="pointer-events-none absolute inset-0 opacity-[0.07]"
|
||||
@@ -22,11 +22,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-10 lg:mt-20 max-w-md">
|
||||
<h1 class="text-[2rem] sm:text-[2.5rem] lg:text-[2.625rem] font-bold leading-tight tracking-tight">
|
||||
<div class="mt-6 sm:mt-10 lg:mt-20 max-w-md">
|
||||
<h1 class="text-[1.75rem] sm:text-[2.5rem] lg:text-[2.625rem] font-bold leading-tight tracking-tight">
|
||||
Digitize. Verify. Trust.
|
||||
</h1>
|
||||
<p class="mt-4 text-base text-white/70 leading-relaxed">
|
||||
<p class="mt-3 sm:mt-4 text-sm sm:text-base text-white/70 leading-relaxed">
|
||||
Scanned clinical records become governed, structured data your teams can verify and trust.
|
||||
</p>
|
||||
</div>
|
||||
@@ -44,9 +44,9 @@
|
||||
</aside>
|
||||
|
||||
<!-- Auth panel -->
|
||||
<div class="flex flex-1 items-center justify-center px-4 py-10 sm:px-8">
|
||||
<div class="w-full max-w-[440px] bg-surface border border-line rounded-card shadow-card p-6 sm:p-8">
|
||||
<div class="mb-8">
|
||||
<div class="flex flex-1 items-center justify-center px-4 py-8 sm:px-8 sm:py-10">
|
||||
<div class="w-full max-w-[440px] bg-surface border border-line rounded-card shadow-card p-5 sm:p-8">
|
||||
<div class="mb-6 sm:mb-8">
|
||||
<h2 class="text-[1.75rem] font-semibold text-ink-strong leading-tight">Sign in</h2>
|
||||
<p class="mt-2 text-sm text-ink-secondary">
|
||||
Use your VigilCare workstation credentials.
|
||||
|
||||
@@ -1,18 +1,12 @@
|
||||
<template>
|
||||
<div class="h-full min-h-0 flex flex-col">
|
||||
<AppHeader title="Patient History" />
|
||||
<AppHeader
|
||||
title="Patient History"
|
||||
description="Digitization lineage, promotion attribution, and audit trail for a patient."
|
||||
/>
|
||||
|
||||
<div class="flex-1 overflow-y-auto p-4 sm:p-6 lg:p-8">
|
||||
<div class="max-w-5xl mx-auto space-y-6">
|
||||
<div>
|
||||
<h1 class="text-[1.75rem] font-semibold text-ink-strong leading-tight tracking-tight">
|
||||
Patient History
|
||||
</h1>
|
||||
<p class="mt-1 text-sm text-ink-secondary">
|
||||
Digitization lineage, promotion attribution, and audit trail for a patient.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Search when no patient selected -->
|
||||
<section v-if="!patientId" class="card space-y-4">
|
||||
<h2 class="text-base font-semibold text-ink-strong">Find Patient</h2>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<template>
|
||||
<div class="h-full min-h-0 flex flex-col">
|
||||
<AppHeader title="Queue Dashboard">
|
||||
<AppHeader
|
||||
title="Queue Dashboard"
|
||||
description="Supervisor view of digitization backlog, aging work, and reject rate."
|
||||
>
|
||||
<template #actions>
|
||||
<button
|
||||
type="button"
|
||||
@@ -15,15 +18,6 @@
|
||||
|
||||
<div class="flex-1 overflow-y-auto p-4 sm:p-6 lg:p-8">
|
||||
<div class="max-w-7xl mx-auto space-y-6 lg:space-y-8">
|
||||
<div>
|
||||
<h1 class="text-[1.75rem] font-semibold text-ink-strong leading-tight tracking-tight">
|
||||
Queue Dashboard
|
||||
</h1>
|
||||
<p class="mt-1 text-sm text-ink-secondary">
|
||||
Supervisor view of digitization backlog, aging work, and reject rate.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<InlineError
|
||||
v-if="overviewError"
|
||||
title="Could not load queue overview"
|
||||
@@ -34,7 +28,7 @@
|
||||
/>
|
||||
|
||||
<!-- Priority work metrics -->
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-5 gap-3 sm:gap-4">
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-3 sm:gap-4">
|
||||
<div class="card-elevated">
|
||||
<p class="text-xs font-semibold uppercase tracking-wide text-ink-secondary">
|
||||
Pending Entry
|
||||
@@ -85,17 +79,15 @@
|
||||
{{ ((overview?.rejectRate ?? 0) * 100).toFixed(1) }}%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Secondary age metric -->
|
||||
<div class="card-elevated max-w-md">
|
||||
<p class="text-xs font-semibold uppercase tracking-wide text-ink-secondary">
|
||||
Average Time in Queue
|
||||
</p>
|
||||
<p class="mt-2 text-2xl font-bold tabular-nums text-ink-strong">
|
||||
{{ formatMinutes(overview?.averageTimeInQueueMinutes ?? 0) }}
|
||||
</p>
|
||||
<p class="text-xs text-ink-secondary mt-2">Target: under 24 hours</p>
|
||||
<div class="card-elevated">
|
||||
<p class="text-xs font-semibold uppercase tracking-wide text-ink-secondary">
|
||||
Average Time in Queue
|
||||
</p>
|
||||
<p class="mt-2 text-3xl font-bold tabular-nums text-ink-strong">
|
||||
{{ formatMinutes(overview?.averageTimeInQueueMinutes ?? 0) }}
|
||||
</p>
|
||||
<p class="text-xs text-ink-secondary mt-2">Target: under 24 hours</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Status breakdown from overview.statusCounts -->
|
||||
@@ -113,18 +105,18 @@
|
||||
<div
|
||||
v-for="{ status, count } in statusEntries"
|
||||
:key="status"
|
||||
class="flex items-center gap-3 sm:gap-4"
|
||||
class="flex items-center gap-2 sm:gap-4 min-w-0"
|
||||
>
|
||||
<div class="w-44 shrink-0">
|
||||
<div class="w-[7.5rem] sm:w-44 shrink-0 min-w-0">
|
||||
<StatusBadge :status="status" />
|
||||
</div>
|
||||
<div class="flex-1 h-2.5 rounded-full bg-canvas border border-line overflow-hidden">
|
||||
<div class="flex-1 min-w-0 h-2.5 rounded-full bg-canvas border border-line overflow-hidden">
|
||||
<div
|
||||
class="h-full rounded-full bg-primary-500"
|
||||
:style="{ width: `${(count / maxCount) * 100}%` }"
|
||||
/>
|
||||
</div>
|
||||
<span class="text-sm font-semibold tabular-nums text-ink-strong w-8 text-right">
|
||||
<span class="text-sm font-semibold tabular-nums text-ink-strong w-6 sm:w-8 text-right shrink-0">
|
||||
{{ count }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -1,27 +1,23 @@
|
||||
<template>
|
||||
<div class="h-full min-h-0 flex flex-col" data-testid="users-view">
|
||||
<AppHeader title="Users" />
|
||||
<AppHeader
|
||||
title="Users"
|
||||
description="Create accounts, update roles, and reset passwords for active staff."
|
||||
>
|
||||
<template #actions>
|
||||
<button
|
||||
type="button"
|
||||
class="btn-primary"
|
||||
data-testid="users-toggle-create"
|
||||
@click="showCreate = !showCreate"
|
||||
>
|
||||
{{ showCreate ? 'Cancel' : 'Create user' }}
|
||||
</button>
|
||||
</template>
|
||||
</AppHeader>
|
||||
|
||||
<div class="flex-1 overflow-y-auto p-4 sm:p-6 lg:p-8">
|
||||
<div class="max-w-7xl mx-auto space-y-6">
|
||||
<div class="flex flex-wrap items-start justify-between gap-4">
|
||||
<div>
|
||||
<h1 class="text-[1.75rem] font-semibold text-ink-strong leading-tight tracking-tight">
|
||||
Users
|
||||
</h1>
|
||||
<p class="mt-1 text-sm text-ink-secondary">
|
||||
Create accounts, update roles, and reset passwords for active staff.
|
||||
</p>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
class="btn-primary"
|
||||
data-testid="users-toggle-create"
|
||||
@click="showCreate = !showCreate"
|
||||
>
|
||||
{{ showCreate ? 'Cancel' : 'Create user' }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<section v-if="showCreate" class="card space-y-4" data-testid="users-create-form">
|
||||
<header>
|
||||
@@ -135,7 +131,7 @@
|
||||
description="Create a user or clear the role filter."
|
||||
/>
|
||||
<div v-else class="overflow-x-auto">
|
||||
<table class="w-full min-w-[640px] text-sm">
|
||||
<table class="w-full min-w-[36rem] text-sm">
|
||||
<thead>
|
||||
<tr class="border-b border-line text-left text-ink-secondary">
|
||||
<th class="py-2 px-3 font-medium">Full name</th>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<AppHeader title="Verification">
|
||||
<template #subtitle>
|
||||
<span v-if="currentBatch" class="text-sm text-ink-secondary">
|
||||
Batch: {{ currentBatch.id.substring(0, 8) }}...
|
||||
| Entered by: {{ currentBatch.enteredByUserId?.substring(0, 8) }}...
|
||||
Batch {{ currentBatch.id.substring(0, 8) }}…
|
||||
<span v-if="enteredByLabel"> · Entered by {{ enteredByLabel }}</span>
|
||||
</span>
|
||||
</template>
|
||||
</AppHeader>
|
||||
@@ -79,6 +79,15 @@ const batchId = computed(() => props.batchId ?? (route.params.batchId as string
|
||||
const currentBatch = computed(() => batchStore.currentBatch)
|
||||
const { documentUrl, documentError, documentLoading, refreshUrl } = usePresignedUrl(batchId)
|
||||
|
||||
const enteredByLabel = computed(() => {
|
||||
const batch = currentBatch.value
|
||||
if (!batch) return null
|
||||
if (batch.enteredByUserName?.trim()) return batch.enteredByUserName.trim()
|
||||
const fromQueue = batchStore.batches.find((b) => b.id === batch.id)
|
||||
if (fromQueue?.enteredByUserName?.trim()) return fromQueue.enteredByUserName.trim()
|
||||
return null
|
||||
})
|
||||
|
||||
function openBatch(id: string) {
|
||||
router.push(`/verification/${id}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user