- docs/dth/experiment-platform/web-design.md: T1 架构设计
- src/frontend/src/main.tsx + App.tsx: 入口 + 路由
- src/frontend/src/api/{auth,operators,runs,client}.ts: 4 文件
- src/frontend/src/components/{AuthContext,ProtectedRoute,OperatorCard,RunResult,Radar}.tsx: 5 组件(Radar SVG 自绘 139 行)
- src/frontend/src/views/{Login,Dashboard,OperatorList,Run}.tsx: 4 页
- src/frontend/src/styles.css: 159 行(< 200 预算,无 UI 库)
- src/frontend/vite.config.ts: proxy /api → :30000
- tests/e2e/dth_frontend.test.sh: 14 case (5 API + 4 routes + 2 static + 3 list)
- openspec/changes/chg_0004_experiment_platform_frontend/{5 工件}
- package-lock.json: +react/react-dom/react-router-dom/axios + vite/typescript
Co-Authored-By: Claude Opus 4.8 <[email protected]>
26 lines
796 B
YAML
26 lines
796 B
YAML
# spec: experiment_platform_web@chg_0004
|
|
scenarios:
|
|
- id: S1
|
|
cases: [C1_curl_login_success_returns_token]
|
|
- id: S2
|
|
cases: [C1_curl_login_success_returns_token]
|
|
- id: S3
|
|
cases: [C2_curl_login_wrong_password_returns_401]
|
|
- id: S4
|
|
cases: [C3_curl_list_operators_returns_three, C6_static_routes_resolve]
|
|
- id: S5
|
|
cases: [C4_curl_run_hello_mpc_returns_uuid, C6_static_routes_resolve]
|
|
- id: S6
|
|
cases: [C5_curl_get_run_returns_real_output, C6_static_routes_resolve]
|
|
- id: 全部
|
|
cases: [C7_test_runner_passes_all, C8_check_spec_coverage_gap_zero]
|
|
|
|
gate:
|
|
blocking_gap_tolerance: 0
|
|
implementation_files:
|
|
- src/frontend/src/
|
|
- src/frontend/vite.config.ts
|
|
- src/frontend/index.html
|
|
- tests/e2e/dth_frontend.test.sh
|
|
test_files:
|
|
- tests/e2e/ |