Files
luo d9d07422a9
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m44s
fix: update some files
2026-08-18 17:36:41 +08:00

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, 1 through 99, or 99+

Scenario: Open paginated notification drawer

  • WHEN 用户点击顶部通知铃铛
  • THEN 页面 MUST display notification items from GET /api/admin/notifications using page=1 and page_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