Skip to content

fix(web-admin): translate login_succeeded / login_failed event badges - #30

Merged
CarlJia merged 2 commits into
mainfrom
fix/event-badge-translation
Sep 22, 2026
Merged

CarlJia merged 2 commits into
mainfrom
fix/event-badge-translation

Conversation

@CarlJia

@CarlJia CarlJia commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Summary

EVENT_BADGES 决定 web-admin 派发日志筛选与插件列表徽标的中文标签。tg-notify v1.4.0 (PR #10) 在 subscribes 里新增 login_succeeded / login_failed,但这张表没跟上,所以面板列表与日志筛选都回退到英文原文,且这两类派发在日志筛选框里默认不被勾选、操作员看不到。

按现有配色补两行:

  • login_succeeded:登录成功(emerald,同 agent_online)
  • login_failed:登录失败(red,同 agent_offline)

Test plan

  • tsc -b clean
  • oxlint clean
  • 复现:tg-notify v1.4.0 装上后,在「插件」页 tg-notify 行的订阅徽标里 login_succeeded / login_failed 应渲染为「登录成功」/「登录失败」(不再回退到英文);进派发日志筛选框,这两类事件应默认勾选可见。

🤖 Generated with Claude Code

CarlJia and others added 2 commits September 22, 2026 11:47
EVENT_BADGES 决定派发日志筛选与插件列表徽标的中文标签。tg-notify
v1.4.0 (PR #10) 在 subscribes 里新增 login_succeeded / login_failed,
但这张表没跟上,所以面板列表与日志筛选都回退到英文原文,且这两类
派发在日志筛选框里默认不被勾选、操作员看不到。

按现有配色补两行:
- login_succeeded: 登录成功 (emerald, 同 agent_online)
- login_failed:    登录失败 (red,     同 agent_offline)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
web-admin 补 EVENT_BADGES 的 login_succeeded / login_failed 中文标签。
2.2.0 漏发了这一条,2.2.1 兜上。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@CarlJia
CarlJia merged commit 603e063 into main Sep 22, 2026
3 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.

1 participant