feat: add notification audit log tab to settings#2990
Draft
Copilot wants to merge 3 commits into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Agent-Logs-Url: https://github.com/whyour/qinglong/sessions/4c9f0ab1-8b0e-4b94-b295-39c90ed942c2 Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
Agent-Logs-Url: https://github.com/whyour/qinglong/sessions/4c9f0ab1-8b0e-4b94-b295-39c90ed942c2 Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add notification audit log feature to settings page
feat: add notification audit log tab to settings
Apr 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No historical record existed for notifications sent via
QLAPI.systemNotify— users had no visibility into what was sent, when, via which channel, or whether it succeeded.Backend
back/data/system.ts: AddednotifyLogtoAuthDataType, newNotifyStatusenum, andNotifyLogInfointerface (timestamp,title,content,status,notifyType).back/services/system.ts:notify()now resolves the active notification channel (fromnotificationInfoor system config) and writes a log entry to the DB after each send attempt. AddedgetNotifyLog()returning the 200 most recent entries, newest first, with DB-level cleanup of older records.back/api/system.ts: NewGET /system/notify-logendpoint.Frontend
src/pages/setting/notifyLog.tsx: New table component — columns: send time, title, content (truncated at 100 chars), channel, status (colored tag).src/pages/setting/index.tsx: Wires up data fetching and adds a 通知日志 tab between 登录日志 and 依赖设置.Logged fields per notification: