Files
gt-agent-company/openspec/changes/add-notification-entry-and-unread-reminder/tasks.md
2026-07-29 10:25:13 +08:00

959 B

1. API and session flow

  • 1.1 Add typed notification models and list, unread-count, and single-read API methods from docs/通知.md.
  • 1.2 Set a pending notification-reminder marker after a valid login session is stored.

2. Notification UI

  • 2.1 Add the notification page and register it in src/pages.json.
  • 2.2 Add the notification shortcut and unread badge to the top user-information card using src/static/icons/通知.png.
  • 2.3 Render notification content without target resolution or controlled-resource navigation.
  • 2.4 Show the newest unread notification in a post-login home-page reminder modal.
  • 2.5 Mark each notification read when it becomes visible and remove the manual read action.

3. Verification

  • 3.1 Run pnpm type-check.
  • 3.2 Run the relevant ESLint and style checks.
  • 3.3 Verify the login-to-home reminder, newest-first display, entry badge, and read-on-visible behavior.