feat: simplify login and unify monitor summary

This commit is contained in:
lingniu
2026-07-19 10:48:08 +08:00
parent dcc6b223d9
commit e02d8dba54
6 changed files with 329 additions and 181 deletions

View File

@@ -513,7 +513,10 @@ describe('V2 production entry', () => {
expect(corePageSources.MonitorPage).not.toContain('<textarea');
expect(corePageSources.MonitorPage).not.toContain('<button');
expect(corePageSources.MonitorPage).toContain('<Card className="v2-filterbar"');
expect(corePageSources.MonitorPage).toContain('<Card className="v2-kpis"');
expect(corePageSources.MonitorPage).toContain("from '../shared/WorkspaceMetricRail'");
expect(corePageSources.MonitorPage).toContain('<WorkspaceMetricRail');
expect(corePageSources.MonitorPage).toContain('className="v2-monitor-summary-rail"');
expect(corePageSources.MonitorPage).not.toContain('className="v2-kpis"');
expect(corePageSources.MonitorPage).toContain('<Card className="v2-monitor-table-panel"');
expect(corePageSources.MonitorPage).not.toContain('<section className="v2-filterbar"');
expect(corePageSources.MonitorPage).not.toContain('<section className="v2-kpis"');
@@ -639,7 +642,9 @@ describe('V2 production entry', () => {
expect(vehicleActionsSource).not.toContain('useSideSheetA11y');
expect(appShellSource).toContain('className="v2-password-modal"');
expect(appShellSource.match(/<PasswordInput/g)).toHaveLength(3);
expect(authGateSource.match(/<PasswordInput/g)).toHaveLength(2);
expect(authGateSource.match(/<PasswordInput/g)).toHaveLength(1);
expect(authGateSource).not.toContain('<Tabs');
expect(authGateSource).not.toContain('运维令牌');
expect(passwordInputSource).toContain('<Input');
expect(passwordInputSource).toContain('<Button');
expect(passwordInputSource).toContain("`${visible ? '隐藏' : '显示'}${visibilityLabel}`");