Skip to content

fix(Log): CI Tooltip 各检查项状态图标按通过/失败/运行中上色 - #40

Merged
ThreeFish-AI merged 1 commit into
feature/1.x.xfrom
ThreeFish-AI/log-ci-tooltip-color
Jun 30, 2026
Merged

fix(Log): CI Tooltip 各检查项状态图标按通过/失败/运行中上色#40
ThreeFish-AI merged 1 commit into
feature/1.x.xfrom
ThreeFish-AI/log-ci-tooltip-color

Conversation

@ThreeFish-AI

Copy link
Copy Markdown
Owner

背景

PR #37 合入后,Log 视图 CI 状态 Tooltip 内每项检查的状态图标呈单色(灰色),无法区分通过/失败/运行中——如下图:失败的 Quality Gate 与通过的 Test Coverage / SonarQube 图标颜色一致,仅头部汇总图标有红色。

根因

tipGlyph() 返回的是裸 <svg>,缺少 .g-{state} 上色包裹。CSS 颜色规则(#ci-tip .g-success/.g-failure/.g-pending)作用于该包裹类,因此只有头部(包了 <span class="g g-failure">)上色,各检查行图标继承前景色呈灰色单色。

修复

tipGlyph() 统一包裹 <span class="g g-{state}">,每项检查图标按状态上色,与头部及 Log 主行图标语义一致:

状态 图标 颜色
通过 绿(testing.iconPassed
未通过 红(testing.iconFailed
运行中 旋转圆环 黄(testing.iconQueued
未知/跳过 短横 灰(descriptionForeground

并补充缺失的 .g-unknown CSS 类。运行中(pending)状态现在在 Tooltip 每行也以黄色旋转图标呈现,与 Log 主行一致。

变更

验证

🤖 Generated with Claude Code

tipGlyph 此前返回裸 SVG,缺少 .g-{state} 包裹,导致 Tooltip 内每项检查图标
继承前景色呈单色(仅头部图标上色)。现统一包裹:绿=通过、红=失败、黄=运行中、
灰=未知,与头部及 Log 行图标语义一致。

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
@ThreeFish-AI
ThreeFish-AI merged commit 31b590a into feature/1.x.x Jun 30, 2026
5 checks passed
@ThreeFish-AI
ThreeFish-AI deleted the ThreeFish-AI/log-ci-tooltip-color branch June 30, 2026 07:35
ThreeFish-AI added a commit that referenced this pull request Jul 4, 2026
- package.json:版本号 0.0.9-rc.2 → 0.0.9
- CHANGELOG.md:将 [0.0.9-rc.2] / [0.0.9-rc.1] 两段合并为单个综合条目 [0.0.9],
  并回填自上一正式版 0.0.6 以来从未记录的变更(#40-#45 的 CI 状态/远程分支删除/
  清理已删远程分支/UI-UX 全局系统化 #43/Log All 修复 #45,及 #49 Emerald 图标);
  底部引用链接同步更新(移除 rc 链接,新增 [0.0.9])
- docs/releases/v0.0.9.md:新建正式版发布说明,以 rc.1 结构为蓝本扩写为面向公开用户的
  全量叙述,移除 Release Candidate 措辞,规模实证更新为 6 视图 / 97 命令 / 6 配置 / 324 单测
- docs/releases/{v0.0.9-rc.1,v0.0.9-rc.2}.md:删除 rc 发布说明(已发布 pre-release 正文已固化,删源无影响)
- docs/releases/README.md、docs/.agents/knowledge-map.md:索引与知识地图收敛至 v0.0.9 单行

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
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