Skip to content

add post-login notification modal#197

Merged
duguwanglong merged 2 commits intomainfrom
add_popup_message
Apr 28, 2026
Merged

add post-login notification modal#197
duguwanglong merged 2 commits intomainfrom
add_popup_message

Conversation

@JohnYin-hub
Copy link
Copy Markdown
Contributor

背景

本次新增登录后的产品通知弹窗,用于在用户进入 WebUI 后展示重要福利和版本变化信息。首批通知包含 token 免费期延长福利,以及当前版本的新功能/新变化说明。

主要变更

  • 新增后端通知服务与 /api/notifications 接口,支持按用户查询未关闭通知。
  • 新增通知弹窗组件,将福利通知和版本更新内容合并到一个弹窗中展示。
  • 支持“知道了”和“不再提醒”两种行为:
    • “知道了”只关闭本次弹窗,下次登录仍会展示。
    • “不再提醒”会记录到后端,后续登录不再展示对应通知。
  • 新增当前版本更新内容说明,包括本地登录账号、钉钉 Channel 重写、Windows 安装升级修复、工具体系优化、OneSEC 参数优化、统一输入与命令、SQLite 恢复脚本、Gemini 3 支持等。
  • 优化更新弹窗中的部分中英文文案。

测试

  • npm run lint
  • npm run test:run -- src/components/layout/Layout.test.tsx
  • source .venv/bin/activate && pytest tests/server/routes/test_notifications_routes.py

@duguwanglong duguwanglong merged commit b092156 into main Apr 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants