2.6 KiB
2.6 KiB
1. Shell Routing and Contracts
- 1.1 Add route helper contracts for resolving known hashes, fallback routes, and page metadata.
- 1.2 Add shell view contracts for dashboard summaries, server instances, plugins, users, and provider status.
- 1.3 Extend frontend API types and client methods for game plugins, server instances, health, and plugin bridge authorization.
2. First-Party Page Implementation
- 2.1 Expand 首页 into an operational overview with health, server, plugin, user, and AI provider summary sections.
- 2.2 Expand 服务器管理 into an instance/run/job/log overview without dispatching unimplemented lifecycle workflows.
- 2.3 Expand 插件市场 into an installed plugin catalog with permissions, bridge readiness, and validation state.
- 2.4 Expand 用户管理 into a user/role/access-review overview using frontend-owned contracts.
- 2.5 Keep AI 提供商管理 compatible with the updated shell and shared page contracts.
3. Styling and Responsive Shell
- 3.1 Update shell/page styling for dense operational layouts, responsive navigation, and accessible active states.
- 3.2 Ensure page content avoids raw secret, host path, direct socket, and run credential display.
4. Tests and Browser Walkthrough
- 4.1 Add route helper and API client tests for shell resource contracts.
- 4.2 Add page rendering tests for each required first-party page.
- 4.3 Run
cd platform_web && npm test. - 4.4 Run
cd platform_web && npm run build. - 4.5 Run browser walkthrough for desktop and mobile shell views.
5. Verification
- 5.1 Run
scripts/check-structure.sh. - 5.2 Run
openspec validate implement-platform-web-console-shell --strict. - 5.3 Record verification evidence in this task file before marking verification tasks complete.
Evidence
cd platform_web && npm test: passed on 2026-07-03; Vitest reported 6 files and 14 tests passing.cd platform_web && npm run build: passed on 2026-07-03; TypeScript no-emit and Vite production build completed.- Browser walkthrough: passed on 2026-07-03 using local Chrome CDP against
http://127.0.0.1:5174/; checked 首页、服务器管理、插件市场、用户管理、AI 提供商管理 at desktop 1440x1000 and mobile 390x844 with no missing target content or page-level horizontal overflow. Screenshots were written under/tmp/platform-web-console-shell-walkthrough/. scripts/check-structure.sh: passed on 2026-07-03 withstructure check passed.openspec validate implement-platform-web-console-shell --strict: passed on 2026-07-03 withChange 'implement-platform-web-console-shell' is valid.