47 lines
803 B
Markdown
47 lines
803 B
Markdown
# T018 — Notification center + bell menu
|
||
|
||
> Status: `todo`
|
||
> Milestone: `M8`
|
||
> Est. change: `~160 lines`
|
||
|
||
## Goal
|
||
|
||
頂欄鈴鐺:未讀數、下拉列表、點擊已讀並導向 ref(job/outbox)。
|
||
|
||
## Depends on
|
||
|
||
- T017(至少 job 完成會產通知;outbox 完成也可產)
|
||
|
||
## Inputs
|
||
|
||
- Spec §4.6
|
||
|
||
## Outputs
|
||
|
||
### 程式變更
|
||
|
||
| 路徑 | 動作 | 說明 |
|
||
|------|------|------|
|
||
| `apps/web/src/components/layout/BellMenu.tsx` | add | |
|
||
| Topbar | edit | 接入 |
|
||
| mock notification helpers | edit | create on job/outbox complete |
|
||
|
||
### 行為變更
|
||
|
||
- 未讀 badge
|
||
- 點擊 navigate + mark read
|
||
|
||
## Out of scope
|
||
|
||
- email/push
|
||
|
||
## Acceptance
|
||
|
||
- [ ] job 或 outbox 完成後未讀 +1
|
||
- [ ] 點擊可跳轉
|
||
- [ ] `npm run build` 通過
|
||
|
||
```bash
|
||
cd apps/web && npm run build
|
||
```
|