diff --git a/vehicle-data-platform/apps/web/src/main.tsx b/vehicle-data-platform/apps/web/src/main.tsx index 315ce1da..a3e3fcc7 100644 --- a/vehicle-data-platform/apps/web/src/main.tsx +++ b/vehicle-data-platform/apps/web/src/main.tsx @@ -7,6 +7,10 @@ import './v2/styles/workspace.css'; import './v2/styles/foundation.css'; import './v2/styles/experience.css'; import './v2/styles/event-center.css'; +import './v2/styles/apple-workspace.css'; +import './v2/styles/apple-data-pages.css'; +import './v2/styles/apple-governance.css'; +import './v2/styles/apple-map-pages.css'; if ('scrollRestoration' in window.history) { window.history.scrollRestoration = 'manual'; diff --git a/vehicle-data-platform/apps/web/src/v2/layout/AppShell.test.tsx b/vehicle-data-platform/apps/web/src/v2/layout/AppShell.test.tsx index 4db07e44..171555ce 100644 --- a/vehicle-data-platform/apps/web/src/v2/layout/AppShell.test.tsx +++ b/vehicle-data-platform/apps/web/src/v2/layout/AppShell.test.tsx @@ -115,10 +115,8 @@ test('opens contextual help for the active module and closes it without navigati expect(screen.getByRole('dialog', { name: '全局监控' })).toHaveTextContent('筛选会自动生效'); expect(document.querySelector('.v2-help-sheet')).toHaveClass('v2-workspace-help-sidesheet'); - const helpSummary = screen.getByRole('list', { name: '全局监控摘要' }); - expect(helpSummary).toHaveTextContent('页面目标快速完成'); - expect(helpSummary).toHaveTextContent('建议步骤3 项'); - expect(helpSummary).toHaveTextContent('快捷关闭Esc'); + expect(screen.getByRole('dialog', { name: '全局监控' })).toHaveTextContent('查看全车队实时位置、状态和最新上报。'); + expect(document.querySelectorAll('.v2-help-panel ol > li')).toHaveLength(3); expect(document.querySelector('.v2-help-overview.semi-card')).toBeInTheDocument(); expect(screen.getByText('建议操作')).toBeInTheDocument(); expect(help).toHaveAttribute('aria-expanded', 'true'); diff --git a/vehicle-data-platform/apps/web/src/v2/layout/AppShell.tsx b/vehicle-data-platform/apps/web/src/v2/layout/AppShell.tsx index 6d69bb1a..3d23abbb 100644 --- a/vehicle-data-platform/apps/web/src/v2/layout/AppShell.tsx +++ b/vehicle-data-platform/apps/web/src/v2/layout/AppShell.tsx @@ -86,18 +86,12 @@ function ContextHelp({ section, visible, mobile, onClose }: { section: string; v title={title} description="当前页面帮助与推荐操作" badge={`${content.tips.length} 项建议`} - summaryItems={[ - { label: '页面目标', value: '快速完成', detail: '保留当前任务状态', tone: 'primary' }, - { label: '建议步骤', value: `${content.tips.length} 项`, detail: '按顺序执行' }, - { label: '快捷关闭', value: 'Esc', detail: '随时返回页面' } - ]} footerNote="关闭帮助不会改变当前筛选、地图或任务状态" primaryAction={{ label: '返回当前页面', onClick: onClose }} onCancel={onClose} >