Skip to content

v1.9.0 — ref chips: one per branch

Choose a tag to compare

@Athosoo Athosoo released this 25 Oct 09:15
· 24 commits to main since this release

1.9.0 — 引用标签:一个分支一枚

筛选那一排以前是「一个 ref 一枚标签」:main、origin/main、origin/HEAD、feat/x、origin/feat/x、tag: v1.8.2 各占一枚,同一个分支出现两次,符号引用也混在里面;超过十二枚的部分被直接切掉,看不见也点不到。

现在:

  • 一个分支一枚标签 — feat/x 与 origin/feat/x 共用一枚,静音一次两边一起关掉;标签的 title 把两个名字都写出来。
  • 符号引用不再出现 — HEAD、HEAD -> main、origin/HEAD 不成为标签。
  • 排序有意义 — 当前分支在最前,然后是其他本地分支、只有远程的分支,最后是标签(灰色)。同级按名字。
  • 不再被切掉 — 默认显示前十二枚,多出来的给 +N,点开变「收起」。
  • 一键清空 — 有任何一枚静音时,旁边出现「清除筛选」。
  • 行内徽章同步 — HEAD -> main 现在显示成 main,计数从 +4 变成 +2;导出的 SVG 用的是同一套标签。

Toolbar layout, zoom, export, search and everything else are unchanged.

Verification

  • scripts/test-host.mjs: 186/186 checks passed
  • scripts/preview-tab.mjs: export, search, ref chips, conventions, tier-3 and overview sections all green
  • scripts/validate-lib.mjs: 166 locale keys resolve, all fork identifiers defined

English

The filter row used to carry one chip per ref — main, origin/main, origin/HEAD, feat/x, origin/feat/x, tag: v1.8.2 — so one branch showed up twice, symbolic refs got their own chips, and anything past twelve was sliced off and unreachable.

Now it is one chip per branch: a local branch and its remote twin share a chip and mute together (the chip's tooltip names both), HEAD / HEAD -> … / origin/HEAD never become chips, tags keep a grey one of their own, the order is current branch → other local → remote-only → tags, the row folds to +N past twelve, and a Clear filters chip appears whenever something is muted. Row badges and the exported SVG use the same labels, so HEAD -> main reads as main.