From d3f2f1f7ae307fa60631bc5fc5847f64e2193527 Mon Sep 17 00:00:00 2001 From: Roy Date: Tue, 17 Feb 2026 21:03:44 +0100 Subject: [PATCH] Add reports to command bar (#7002) * Add reports to command bar * Add release notes --- packages/desktop-client/src/components/CommandBar.tsx | 11 +++++++++++ upcoming-release-notes/7002.md | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 upcoming-release-notes/7002.md diff --git a/packages/desktop-client/src/components/CommandBar.tsx b/packages/desktop-client/src/components/CommandBar.tsx index c039205e59..d7f4f3ea79 100644 --- a/packages/desktop-client/src/components/CommandBar.tsx +++ b/packages/desktop-client/src/components/CommandBar.tsx @@ -25,6 +25,7 @@ import { Command } from 'cmdk'; import { CellValue, CellValueText } from './spreadsheet/CellValue'; import { useAccounts } from '@desktop-client/hooks/useAccounts'; +import { useDashboardPages } from '@desktop-client/hooks/useDashboardPages'; import { useMetadataPref } from '@desktop-client/hooks/useMetadataPref'; import { useModalState } from '@desktop-client/hooks/useModalState'; import { useNavigate } from '@desktop-client/hooks/useNavigate'; @@ -143,6 +144,7 @@ export function CommandBar() { const allAccounts = useAccounts(); const { data: customReports = [] } = useReports(); + const { data: dashboardPages = [] } = useDashboardPages(); const accounts = allAccounts.filter(acc => !acc.closed); @@ -220,6 +222,15 @@ export function CommandBar() { ], onSelect: ({ id }) => handleNavigate(`/accounts/${id}`), }, + { + key: 'reports', + heading: t('Reports'), + items: dashboardPages.map(dashboardPage => ({ + ...dashboardPage, + Icon: SvgReports, + })), + onSelect: ({ id }) => handleNavigate(`/reports/${id}`), + }, { key: 'reports-custom', heading: t('Custom Reports'), diff --git a/upcoming-release-notes/7002.md b/upcoming-release-notes/7002.md new file mode 100644 index 0000000000..c136b3c08c --- /dev/null +++ b/upcoming-release-notes/7002.md @@ -0,0 +1,6 @@ +--- +category: Enhancements +authors: [bonroyage] +--- + +Add reports to command bar