From 0c60d356d11cfbb9290a050de9e6a11e23675661 Mon Sep 17 00:00:00 2001 From: Yunwen Zheng Date: Wed, 7 Jan 2026 13:31:48 -0500 Subject: [PATCH] RecentlyViewedDashboards: Hide entire section when there is no recently view item (#115905) * RecentlyViewedDashboards: Hide entire section when there is no recently view item --- .../components/RecentlyViewedDashboards.tsx | 6 +----- public/locales/en-US/grafana.json | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/public/app/features/browse-dashboards/components/RecentlyViewedDashboards.tsx b/public/app/features/browse-dashboards/components/RecentlyViewedDashboards.tsx index 8109de32145..effa0c8009b 100644 --- a/public/app/features/browse-dashboards/components/RecentlyViewedDashboards.tsx +++ b/public/app/features/browse-dashboards/components/RecentlyViewedDashboards.tsx @@ -39,7 +39,7 @@ export function RecentlyViewedDashboards() { retry(); }; - if (!evaluateBooleanFlag('recentlyViewedDashboards', false)) { + if (!evaluateBooleanFlag('recentlyViewedDashboards', false) || recentDashboards.length === 0) { return null; } @@ -76,10 +76,6 @@ export function RecentlyViewedDashboards() { )} {loading && } - {/* TODO: Better empty state https://github.com/grafana/grafana/issues/114804 */} - {!loading && recentDashboards.length === 0 && ( - {t('browse-dashboards.recently-viewed.empty', 'Nothing viewed yet')} - )} {!loading && recentDashboards.length > 0 && (