From 74a0aa3563eefffb1bb2a6a568f27911ac24a9bc Mon Sep 17 00:00:00 2001
From: Zhong <161557422+Rapeter@users.noreply.github.com>
Date: Mon, 21 Sep 2026 21:00:55 +0800
Subject: [PATCH] fix(web): add storage analysis menu icon
---
web/src/app/home/components/home-sidebar/HomeSidebar.tsx | 2 ++
web/tests/unit/oss-cloud-ui-privacy.test.mjs | 7 +++++++
2 files changed, 9 insertions(+)
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(