From 3c2c333a5674b5d7ed2ec1c7091eecd6f07c671a Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Mon, 23 Mar 2026 01:56:51 +0100 Subject: [PATCH] feat: show dangling attachment count in Storage panel Adds a 'Dangling Records' card to the storage overview grid and includes dangling records in the cleanup eligibility check. --- .../modals/instanceSettingsPanels/StoragePanel.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/web/src/components/modals/instanceSettingsPanels/StoragePanel.tsx b/packages/web/src/components/modals/instanceSettingsPanels/StoragePanel.tsx index 9393646e..0f3d3006 100644 --- a/packages/web/src/components/modals/instanceSettingsPanels/StoragePanel.tsx +++ b/packages/web/src/components/modals/instanceSettingsPanels/StoragePanel.tsx @@ -70,7 +70,7 @@ export function StoragePanel() { if (!stats) return null; - const hasOrphans = stats.orphanedFiles > 0 || stats.unlinkedAttachments > 0; + const hasOrphans = stats.orphanedFiles > 0 || stats.unlinkedAttachments > 0 || stats.danglingAttachments > 0; return (