本卡屬 FR-196(母卡 FR-196 母案(同清單上一張)),卡 F-1,第一期批 4。只改 FE(compliance-manager-fe)。依賴:M-1、F-3。
右上角鈴鐺換成通知中心的:紅點=未讀通知數;點開是最近十筆(圖示、標題、所屬專案、相對時間、未讀點),上面一排類別分段;底部「全部標為已讀」「查看全部通知」「通知設定」;最底一行固定「我的待辦任務(N)」連到任務頁,N 不計進紅點。原本鈴鐺裡的待辦任務清單與「流程進站」清單移除。紅點每 60 秒自己更新。雛形 prototype/index.html 第一個分頁。
new 一支元件取代舊段(AppTopbar 598 行已接近上限,鈴鐺整段抽出去);reuse 既有 v-styleclass 下拉與 v-badge;分段用 SegmentButtons(small);useNotificationCenter.js 輪詢照 useUserUtil().getTaskQueue 的呼叫方式;TopbarStageQueue.vue 退役刪檔
repo:~/Projects/Billows/Audit-Manager/compliance-manager-fe
改既有:src/layout/AppTopbar.vue(第 484~540 行整段換成 `<NotificationBell/>`;`getStageQueue`、`stageQueue`、`messages` 相關程式刪)
新開:src/layout/NotificationBell.vue
新開:src/composables/useNotificationCenter.js(unread/todo/recent;60 秒 setInterval,unmount 清)
src/layout/NotificationBell.vue:照雛形 prototype/index.html 第一個分頁的結構(頭:標題+未讀 Tag+全部標為已讀;分段:全部/任務/掃描/系統/公告 用 SegmentButtons small;列:圖示+標題+來源+時間+未讀點;底:查看全部/通知設定;最底:我的待辦任務(N))。下拉沿用 AppTopbar 現有 v-styleclass 寫法,紅點沿用 v-badge。src/composables/useNotificationCenter.js:unread/todo/recent ref;refresh() 打 UNREAD_COUNT;60 秒 setInterval,onBeforeUnmount 清;markRead(uid)/markAllRead() 後 refresh()。AppTopbar.vue:第 484~540 行整段換 <NotificationBell/>;刪 getStageQueue、stageQueue、messages、genMessage 相關;TopbarStageQueue.vue 刪檔,grep -rn TopbarStageQueue src 為 0。notification-center.json,不從雛形抄;樣式套全站(grep border-left\|font-size 為 0)。登入後鈴鐺紅點數=unread-count.unread;DEV 手插一列後 60 秒內紅點變;點開看到那列(圖示、標題、來源、相對時間、未讀點)、類別分段切換有效;點「全部標為已讀」紅點歸零;最底一行「我的待辦任務(N)」N=todo、點了到 my-tasks;TopbarStageQueue.vue 已刪且 grep 無引用;grep -n 'border-left\|font-size' src/layout/NotificationBell.vue 為 0;文案全來自 notification-center.json
~/Projects/Billows/Audit-Manager/compliance-manager-be/docs/features/FR-196-2611-notification-center/design.md §3 決策定案、§5 詳細設計(§5.1 套件職責與 port、§5.2 資料表、§5.3 API、§5.5 前端)、§6 拆卡表本卡那列、§8 風險;討論稿(Artifact,連結在 README)只在想知道「為什麼這樣裁」時看~/Projects/Billows/Audit-Manager/compliance-manager-be/docs/features/FR-196-2611-notification-center/prototype/index.html(四個分頁:鈴鐺、通知中心、通知設定、系統橫幅;純畫面,只取結構與資訊順序;文案依 i18n 重寫)jedi-bulletin/jedi_bulletin/plugin/(contract/assembly/migrations)、jedi-notification/README.md;主系統接線 core/plugins/bulletin.py、core/plugins/_host.py::host_defaults、core/plugins/license.py::TenantAdminDirectory;寄信點 app/flow_engine/service/workflow_execution_service.py:1246、stage_entered_notify_service.py:117、app/task_alert/service/scan_alert_app_service.py:74;既有投遞紀錄表 infra/task_alert/model/task_alert_notification.py;鈴鐺 FE src/layout/AppTopbar.vue 484~540、TopbarStageQueue.vue;seed 先例 scripts/sql/2026-05-22-seed-oscal-ssp-roles.sql、2026-11-10-fr194-ui-routes-entry-gates.sqldocs/claude/domain-capabilities.md、FE docs/claude/frontend-overview.md §4。三擇一、預設不新增:reuse → extend → 確認沒有才新增。回寫列出本卡 reuse 了哪些、新增了哪些、為什麼不能 reuse。本案設計已做過重複盤點(橫幅、投遞紀錄、去重戳、個人資料頁),卡上「reuse/extend/new」是結論,照它做。