thread-master/docs/product/haixun-backend/tasks/T135-fe-live-auth-accounts-...

68 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2026-07-10 12:54:45 +00:00
# T135 — fe-live-auth-accounts-jobs
> Status: `todo`
> Milestone: `M2`
> Kind: `feat`
> Est. change: `~200 lines` (target 100200)
## Goal
完成後系統應apps/web liveHTTP client、auth+refresh、OAuth 連帳、jobs、notificationsuid number→顯示
## Depends on
- T111
- T131
- T132
- T134
## Inputs
- 讀取 / 依賴:
- createRepos(live)Crew 改 oauthStart 非 createMock 主路徑
- Spec`docs/product/haixun-backend/spec.md`§9AU-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/searchTrendsgenerateFromFormulaScoutTopic CRUDlive 以 simulatecreateMock 當完成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
- [ ] SpecUI 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 可留。