1.0 KiB
1.0 KiB
MODIFIED Requirements
Requirement: Global Notification Bell
The admin frontend SHALL provide a global notification bell in the top navigation near the settings and user avatar entries.
Scenario: Display unread count
- GIVEN 用户已登录后台
- WHEN 顶部导航加载未读通知数量
- THEN 铃铛 MUST call
GET /api/admin/notifications/unread-count - AND 数量 MUST display as
0,1through99, or99+
Scenario: Open paginated notification drawer
- WHEN 用户点击顶部通知铃铛
- THEN 页面 MUST display notification items from
GET /api/admin/notificationsusingpage=1andpage_size=10 - AND 抽屉 MUST provide 全部、审批、临期、同步/系统分类
- AND 抽屉 MUST provide page controls based on the response
total - AND changing page MUST replace the visible items instead of appending items from a scroll event
- AND changing category MUST reset the page to 1
- AND 抽屉 MUST provide an entry to
/notifications