本卡屬 FR-196(母卡 CM-3875(已建)),卡 F-6,第三期批 10。只改 FE(compliance-manager-fe)。依賴:F-4、F-5、M-7。
前端第三期:紅點改成收到推送就更新(輪詢降為備援);頁面頂部那排橫幅補兩支(新版可更新只給平台管理員、排定維護給全員),照既有橫幅的形狀做、不另開一套;系統設定加「排定維護」小表單;鈴鐺列顯示「有 N 項更新」。
extend useNotificationCenter.js(socket 照 useSurveySocket.js 的 io 用法);兩支橫幅照 AiQuotaBanner.vue(hint-bar、關閉記 sessionStorage);表單照 notify-config/NotifyConfigForm.vue 形狀放系統設定;api.js/menu.json/i18n 新鍵本卡自己加(第三期 FE 只有本卡,無撞)
repo:~/Projects/Billows/Audit-Manager/compliance-manager-fe
改既有:src/composables/useNotificationCenter.js
改既有:src/layout/AppLayout.vue(第 124 行那排加兩行)
改既有:src/layout/NotificationBell.vue(merged_count 顯示「有 N 項更新」)
改既有:src/config/api/api.js
改既有:src/config/router/index.js
改既有:src/config/locales/i18n/zh-tw/menu.json、en/menu.json
改既有:src/config/locales/i18n/zh-tw/notification-center.json、en/notification-center.json
新開:src/components/product-update/UpdateAvailableBanner.vue
新開:src/components/system/MaintenanceBanner.vue
新開:src/views/system-config/MaintenanceScheduleForm.vue
useNotificationCenter.js:照 useSurveySocket.js 的 io(API.SOCKET_BASE + '/socket/notification-center', {auth:{token}});收 unread_changed → refresh();connect_error/斷線時輪詢間隔退回 60 秒,連上改 5 分鐘;unmount 斷線。UpdateAvailableBanner.vue:讀 API.PRODUCT_UPDATE_STATUS(既有),status==='available' 且使用者是平台管理員(userStore 既有判斷)才顯示;關閉記 sessionStorage['nc.banner.update.'+version]。MaintenanceBanner.vue:讀 /maintenance/current,有就顯示 starts_at+duration;關閉記 sessionStorage['nc.banner.maint.'+id]。兩支照 AiQuotaBanner.vue 的 hint-bar 形狀;掛進 AppLayout.vue 第 124 行那排。MaintenanceScheduleForm.vue 放系統設定(路由、menu.json 中英文、能力點 notification.banner.publish 守門用既有 v-can);三個欄位+送出。NotificationBell.vue 列:merged_count>1 時標題後加 i18n「有 N 項更新」。NOTIFICATION_CENTER_MAINTENANCE、_MAINTENANCE_CURRENT。兩個瀏覽器 A 指派給 B,B 不重整三秒內紅點變;斷網 10 秒再連回,紅點仍正確(備援輪詢);平台管理員登入看到新版橫幅、一般使用者看不到;管理員建一筆明天的維護 → 全員頂部橫幅、關閉後重整不再出現但收件匣有;鈴鐺一列顯示「有 2 項更新」;grep -rn border-left src/components/product-update src/components/system 為 0;menu.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 重寫)infra/task_alert/(entity/model/mapper/repo+domain/task_alert/service/task_alert_notification_domain_service.py claim/mark);排程先例 core/scheduler_update.py;SocketIO 登記 config/socketio_namespaces.py(檔頭紅線)與 handler 先例 jedi-survey app/handler/fill_survey_socketio_handler.py;橫幅先例 FE src/components/ai-quota/AiQuotaBanner.vue、掛點 src/layout/AppLayout.vue 124;iam 通知接口 common/iam_ports.py;十個寄信點行號在 design.md 表 4-1jedi-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.sql