thread-master/docs/product/demand-radar/tasks/T591-fe-followup-inbox-and-...

51 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# T591 — fe-followup-inbox-and-stats
> Status: `done`
> Milestone: `M5`
> Kind: `feat`
> Est. change: `~200 lines`
## Goal
完成後系統應CRM 有待追蹤收件匣(完成/延後/產生 AI 追蹤訊息)與轉換統計頁。
## Depends on
- T574、T587、T589
## Inputs
- Spec`../spec.md` §4.7、§4.8、§5.3、§9.5ST-02 呈現規則)
## Outputs
### 程式變更(預期路徑)
| 路徑 | 動作 | 說明 |
|------|------|------|
| `apps/web/src/components/radar/FollowupInbox.tsx` | add | 到期清單+完成/延後/產生 AI 訊息+`escalated` 建議提示 |
| `apps/web/src/pages/CrmStatsPage.tsx` | add | 三維度統計(沿用既有圖表/表格元件) |
| `apps/web/src/App.tsx` | edit | 註冊 `/app/crm/stats`(或掛為 `/app/crm` 分頁) |
| `apps/web/src/data/live/radarRepos.ts` | edit | followupsstatsfollowup message 實作 |
| `apps/web/src/styles/radar.css` | edit | 收件匣與統計樣式 |
### 行為變更
- 樣本不足維度顯示絕對數+「樣本不足」標籤,**不顯示百分比或排名**。
- `escalated` 顯示「建議轉未成交」但不代為變更階段,需使用者點按。
- AI 追蹤訊息產出後提供複製;不宣稱自動送出。
## Out of scope
- 金額圖表P1
## Acceptance
- [x] 延後與完成操作後清單即時更新
- [x] 樣本 3 筆的維度不顯示百分比
- [x] 指令:
```bash
cd apps/web && npm run build && npm run check:tokens && npm run test && npm run lint
```