68 lines
1.7 KiB
Markdown
68 lines
1.7 KiB
Markdown
# T135 — fe-live-auth-accounts-jobs
|
||
|
||
> Status: `todo`
|
||
> Milestone: `M2`
|
||
> Kind: `feat`
|
||
> Est. change: `~200 lines` (target 100–200)
|
||
|
||
## Goal
|
||
|
||
完成後系統應:apps/web live:HTTP client、auth+refresh、OAuth 連帳、jobs、notifications;uid number→顯示
|
||
|
||
## Depends on
|
||
|
||
- T111
|
||
- T131
|
||
- T132
|
||
- T134
|
||
|
||
## Inputs
|
||
|
||
- 讀取 / 依賴:
|
||
- createRepos(live);Crew 改 oauthStart 非 createMock 主路徑
|
||
- Spec:`docs/product/haixun-backend/spec.md`(§9:AU-04 TH-01 TH-05 JB-01 A-08)
|
||
- 對照:`docs/product/haixun-backend/fe-spec-alignment.md`(**UI MUST**)
|
||
- 後端根:**`apps/backend`**
|
||
- **Remove(本 task 禁止實作):** 舊靈感 list/viral/bookmark/spark/searchTrends;generateFromFormula;ScoutTopic CRUD;live 以 simulate/createMock 當完成;Insights 真管線(P2)。
|
||
|
||
## Outputs
|
||
|
||
### 程式變更(預期路徑)
|
||
|
||
| 路徑 | 動作 | 說明 |
|
||
|------|------|------|
|
||
| `apps/web/src/data/**` | add/edit | live repos + token refresh |
|
||
| `apps/web/src/pages/CrewPage.tsx` | edit | OAuth 綁帳按鈕 |
|
||
| `apps/web/src/domain/types.ts` | edit | uid 相容 number|string 顯示 |
|
||
|
||
### 行為變更
|
||
|
||
- 切 live 可登入 me、連帳、看 jobs
|
||
|
||
### API / 契約(若有)
|
||
|
||
- LIVE_API_BASE
|
||
|
||
### 測試交付(強制)
|
||
|
||
- 手動或後續 T220
|
||
|
||
## Out of scope
|
||
|
||
- studio/scout 全量 live(後續)
|
||
|
||
## Acceptance
|
||
|
||
- [ ] Spec/UI MUST 覆蓋:`AU-04 TH-01 TH-05 JB-01 A-08`
|
||
- [ ] 每個相關 §9 ID 有可 grep 的 case 名(`TestXX_01_…` 或完整覆蓋在里程碑 test task)
|
||
- [ ] 未實作不回 102000+空 data
|
||
- [ ] 指令:
|
||
|
||
```bash
|
||
cd apps/web && npm run build
|
||
```
|
||
|
||
## Notes
|
||
|
||
mock 模式 createMock 可留。
|