From a3b32524f7cf5f27066a48d35f313cce28f099f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 28 Jun 2026 18:29:45 +0200 Subject: [PATCH] fix(documents): skeleton loading, calmer review badge, larger touch targets The inbound-document list and review panels used centered spinners; swap them for the app's Skeleton pattern so the resolved content lands without a layout jump. The low-confidence review badge moves from destructive red to a calm amber, matching the surface's non-alarming posture. Approve / reject / edit / save controls grow to the 44px touch floor, the upload file input gains an accessible label, and each document row exposes aria-expanded. --- .../documents/inbound-documents-view.tsx | 51 +++++++++++++------ 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/src/components/documents/inbound-documents-view.tsx b/src/components/documents/inbound-documents-view.tsx index b95ec9a62..83a300b1a 100644 --- a/src/components/documents/inbound-documents-view.tsx +++ b/src/components/documents/inbound-documents-view.tsx @@ -27,6 +27,7 @@ import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { NativeSelect } from "@/components/ui/native-select"; import { Separator } from "@/components/ui/separator"; +import { Skeleton } from "@/components/ui/skeleton"; import { apiDelete, apiFetch, apiPatch, apiPost } from "@/lib/api/api-fetch"; import { useTranslations } from "@/lib/i18n/context"; import { invalidateKeys, queryKeys } from "@/lib/query-keys"; @@ -136,6 +137,7 @@ export function InboundDocumentsView() { type="file" accept="image/jpeg,image/png,image/webp,application/pdf" className="max-w-xs" + aria-label={t("documents.upload.fileLabel")} disabled={upload.isPending} /> @@ -549,6 +569,7 @@ function EditFields({