diff --git a/web/src/app/home/components/home-sidebar/HomeSidebar.tsx b/web/src/app/home/components/home-sidebar/HomeSidebar.tsx index ed71fb2f0..20c3843a7 100644 --- a/web/src/app/home/components/home-sidebar/HomeSidebar.tsx +++ b/web/src/app/home/components/home-sidebar/HomeSidebar.tsx @@ -37,6 +37,7 @@ import { Puzzle, RefreshCcw, UsersRound, + HardDrive, } from 'lucide-react'; import { useTheme } from '@/components/providers/theme-provider'; @@ -2172,6 +2173,7 @@ export default function HomeSidebar({ openSettings('storageAnalysis'); }} > + {t('storageAnalysis.title')} )} diff --git a/web/tests/unit/oss-cloud-ui-privacy.test.mjs b/web/tests/unit/oss-cloud-ui-privacy.test.mjs index 37a992612..cfcf3b662 100644 --- a/web/tests/unit/oss-cloud-ui-privacy.test.mjs +++ b/web/tests/unit/oss-cloud-ui-privacy.test.mjs @@ -71,6 +71,13 @@ test('does not expose storage analysis in Cloud settings or via a deep link', () ); }); +test('renders storage analysis with the storage icon in the user menu', () => { + assert.match( + homeSidebarSource, + /canViewStorageAnalysis\s*&&\s*\(\s*[\s\S]*?\{t\('storageAnalysis\.title'\)\}/, + ); +}); + test('loads plugin pages through the authenticated Workspace-scoped asset route', () => { assert.match(pluginPageSource, /useAuthenticatedPluginAsset/); assert.match(