fix(documents): report picker and card results through the shared outcome line, and register the disconnect as a destructive control

This commit is contained in:
Marc-André Bombeck committed 2026-09-26 13:32:52 +02:00
1 parent d109d67889
commit 9e38ee3a99
4 files changed
+46 -14

No files matched your search

@@ -579,6 +579,13 @@ const REGISTRY: DestructiveEntry[] = [
recovery: "permanent",
confirm: ["AlertDialog"],
})),
{
file: "components/settings/integrations/document-sources-card.tsx",
destroys:
"the stored Paperless-ngx or Papra address and API token; documents already imported stay in the vault — reconnecting means typing the token again",
recovery: "permanent",
confirm: ["AlertDialog"],
},
];
// ── Detectors ─────────────────────────────────────────────────────────────
@@ -161,6 +161,13 @@ const PINNED_AFFORDANCES: Record<
"src/components/documents/document-card.tsx": { "text-success": 1 },
"src/components/documents/document-detail-sheet.tsx": { "toast.success": 2 },
"src/components/documents/documents-view.tsx": { "toast.success": 3 },
// The document picker's per-row result: tinted only for the `imported` /
// `duplicate` outcome the import route returned for that one document, i.e.
// a document the vault now holds. The run's headline goes through
// WrittenOutcomeLine; a row sits inside a button, where its <p> cannot.
"src/components/documents/sources/document-source-picker.tsx": {
"text-success": 1,
},
"src/components/error-details.tsx": { CheckCircle2: 2, "text-success": 1 },
"src/components/illness/episode-menu.tsx": {
CheckCircle2: 2,