thread-master/docs/product/haixun-console/tasks/T005-router-placeholders.md

49 lines
878 B
Markdown
Raw Normal View History

2026-07-09 03:45:28 +00:00
# T005 — Router + route table + placeholder pages
> Status: `todo`
> Milestone: `M1`
> Est. change: `~150 lines`
## Goal
React Router path 路由就緒;各 `/app/*` 有占位頁。
## Depends on
- T004
## Inputs
- Spec §5.2 路由表
- 依賴:`react-router-dom`
## Outputs
### 程式變更
| 路徑 | 動作 | 說明 |
|------|------|------|
| `apps/web/src/App.tsx` | edit | BrowserRouter routes |
| `apps/web/src/pages/LoginPage.tsx` | add | 占位 |
| `apps/web/src/pages/TodayPage.tsx` 等 | add | 各入口占位 |
| `apps/web/src/pages/jobs/*` | add | 可選二級占位 |
### 行為變更
- `/login`、`/app/today`… 可直連
- `/app` redirect → `/app/today`
## Out of scope
- Auth guardT006
- 業務內容
## Acceptance
- [ ] 手動點導覽可切頁無 404
- [ ] `npm run build` 通過
```bash
cd apps/web && npm run build
```