# Task Context Pack ## Task Goal 控制台已开发页(除登录)对齐和信企业 UI:单卡、约 32px、列表/表单 Pattern;AppShell 纳入;S0→S9 顺序;每页 Playwright 截图。 ## Knowledge Posture - Mode: standard - Maturity: L1 ## Current Slice Or Group S0(待编码批准):AppShell + ListPageShell/FormPageShell + 列表 CSS ## Gate Policy - Recommended: strict - Selected: **autonomous** - finalApprovalRequired: true - Policy Notes: 片间可对已批准的 simple/standard 且 risk_score≤3 连续推进;分析→编码与最终批准仍停。每页仍截图检查。 ## Requirement Source `.task/2026-11-19/ui-hexin-align/requirement.md` ## Implementation Source `.task/2026-11-19/ui-hexin-align/implementation-plan.md` ## Involved Modules Or Knowledge Areas - console AppShell/业务 Vue - design tokens + element-theme - frontend-ui 列表/页脚约定 - 参考 syops AdminListPage(只对齐 Pattern,不整库拷贝) ## Loaded Rules - `.cursor/rules/element-admin-ui.mdc` - `.cursor/rules/sy-standards.mdc` → element-plus / frontend-stack / visual-ux(主色 D41) - Marionettist gates(AGENTS.md) ## Loaded Docs - `docs/ui/ELEMENT_MIGRATION.md` - `docs/current/frontend-ui.md` - `D:\FDE\SP\design-system\` DESIGN.md, PAGE_PATTERNS.md - `docs/project/knowledge-map.md`(frontend 段) ## Allowed Modification Scope 当前片 S0: - `web/apps/console/src/AppShell.vue` - `web/apps/console/src/shared/**`(新壳组件与 CSS) - `web/apps/console/src/styles.css`(import) - tokens/element-theme 仅补缺 - `docs/evidence/ui-hexin/` 后续片见 implementation-plan 各片 Allowed。 ## Forbidden Modification Scope - `LoginPanel.vue` 与登录流程 - 后端、权限编码、Alembic - 第二 UI 库、无授权业务功能 - 未批准片的业务页大改(S0 期间) ## Key Existing Entrypoints - Shell: `AppShell.vue` → `RouterView` - Routes: `router.ts`(hash) - Lists: `DatasourceList` / `QueryList` / `MappingList` / `AlarmList` - Forms: `DatasourceEdit` / `QueryEdit` / `QueryVersionView` / `MappingEdit` / `AlarmDetail` - Home: `HomeView.vue` - Tokens: `web/design/tokens.css` → `shared/styles/element-theme.css` - E2E: `web/apps/console/e2e/*.spec.ts`;config `playwright.config.ts` - Ref: `D:\PROJECT\syops\frontend\src\features\admin\components\AdminListPage.vue` ## Execution Mode sequential;autonomous 下 S0 批准后可连续 S1…S9(各 standard/simple、risk≤3) ## Validation Commands - 模块 e2e(按片):`pnpm --dir web/apps/console exec playwright test e2e/.spec.ts`(以 package 脚本为准) - 截图:`docs/evidence/ui-hexin/S{n}-*.png` - 最终:相关 console e2e 回归 ## Assumptions - 映射列表 API 分页能力以现有 client 为准;无分页则不伪造数据 - 保留现有 `data-testid` 优先,结构变时最小改 e2e - 面包屑下不重复页面大标题(frontend-ui) ## Risks - 共享骨架改动影响所有后续页选择器 - MappingList 历史实现与列表约定差距大 - Tailwind 与 EP 共存间距类名不一致 ## Stop Conditions - 未获「开始编码」确认前不改代码 - 需伪造后端分页/改业务语义时停问 - e2e 大面积失败且非样式引起时停问 - 任务结束需最终批准 ## Delivery Notes - 主 Agent 可在本任务内连续实现+截图;不自动 commit/push