Merge pull request #2559 from Rapeter/codex/fix-storage-analysis-menu-icon

fix(web): add storage analysis menu icon
This commit is contained in:
RockChinQ
2026-09-23 18:17:21 +08:00
committed by GitHub
2 changed files with 9 additions and 0 deletions
@@ -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');
}}
>
<HardDrive />
{t('storageAnalysis.title')}
</DropdownMenuItem>
)}
@@ -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*<DropdownMenuItem[\s\S]*?<HardDrive\s*\/>[\s\S]*?\{t\('storageAnalysis\.title'\)\}/,
);
});
test('loads plugin pages through the authenticated Workspace-scoped asset route', () => {
assert.match(pluginPageSource, /useAuthenticatedPluginAsset/);
assert.match(