mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-26 11:26:55 +08:00
Merge pull request #2559 from Rapeter/codex/fix-storage-analysis-menu-icon
fix(web): add storage analysis menu icon
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user