Repository navigation
feat(admin): 节点页表格新增 agent_version 列 - #32
Merged
Merged
Conversation
字段一直在 /api/nodes 管理端响应里,操作员看不出哪些机器还跑着旧 agent; 面板新增「版本」列,从未连上来的节点显示「—」。公开状态页仍然不带这个字段。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…-version # Conflicts: # CHANGELOG.md # web-admin/scripts/cls-budget.mjs
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.
「节点」管理页表格新增「版本」列,显示每台节点上报的 agent 构建版本(
agent_version)——这个字段一直只在管理端 API 的响应里,操作员看不出哪些机器还跑着旧 agent。从未连上来的节点显示「—」。字段仍属面板专属,公开状态页的响应里没有它。新列放在「状态」与「流量」之间,与操作员关心的「机器身份 / 健康 / 版本」相邻;列宽重排为 20/22/12/10/14%,加上右对齐的「操作」列总和 100%。空值(
agent_version为"",从未连上来的节点)走|| <span className="text-muted-foreground">—</span>的兜底,继承父单元的text-sm。oxlint+tsc -b+vite build+ 真实 Chrome 跑cls-budget全 7 条路由绿,其中/admin/nodes路径的 marker 改为两台节点各自的1.0.0/2.2.1——同一个常量满足不了「每行显示自己那一份」。Post-Deploy Monitoring & Validation
无新 hub 日志或 metrics:
agent_version字段一直在GET /api/nodes响应里,面板只是顺带画出来。验证由面板直连:任选一个在线节点,「节点」页该行出现「版本」单元,里面是 agent 上报的那串;从未连过的节点该单元是「—」。未命中时浏览器 devtools 看nodes[i].agent_version是否为字符串——若undefined,说明前端类型假设与 API 不一致。回滚:revert PR。