From 485aa6324c25f18c6ed1c237d5f6fb19cc8e57c4 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 16 Oct 2025 23:03:02 +1100 Subject: [PATCH] Dashboard item fix (#10596) * Fix for "subscribed categories" dashboard item * Tweak filter display * Tweak filter for "Subscribed Parts" --- .../src/components/dashboard/DashboardWidgetLibrary.tsx | 7 +++++-- src/frontend/src/tables/InvenTreeTableHeader.tsx | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/components/dashboard/DashboardWidgetLibrary.tsx b/src/frontend/src/components/dashboard/DashboardWidgetLibrary.tsx index 49f1c20e33..17a9cf739f 100644 --- a/src/frontend/src/components/dashboard/DashboardWidgetLibrary.tsx +++ b/src/frontend/src/components/dashboard/DashboardWidgetLibrary.tsx @@ -24,14 +24,17 @@ export function BuiltinQueryCountWidgets(): DashboardWidgetProps[] { title: t`Subscribed Parts`, description: t`Show the number of parts which you have subscribed to`, modelType: ModelType.part, - params: { starred: true } + params: { starred: true, active: true } }), QueryCountDashboardWidget({ label: 'sub-cat', title: t`Subscribed Categories`, description: t`Show the number of part categories which you have subscribed to`, modelType: ModelType.partcategory, - params: { starred: true } + params: { + starred: true, + top_level: 'none' + } }), QueryCountDashboardWidget({ label: 'invalid-bom', diff --git a/src/frontend/src/tables/InvenTreeTableHeader.tsx b/src/frontend/src/tables/InvenTreeTableHeader.tsx index d023dec887..dc55b6f8d9 100644 --- a/src/frontend/src/tables/InvenTreeTableHeader.tsx +++ b/src/frontend/src/tables/InvenTreeTableHeader.tsx @@ -250,7 +250,10 @@ export default function InvenTreeTableHeader({