Skip to content

v1.9.1 - 标签不再占筛选项 / tags are not filters

Choose a tag to compare

@Athosoo Athosoo released this 25 Oct 09:43
· 22 commits to main since this release

1.9.1 — 标签不再占筛选项

一个标签只指向一个提交,静音它只能藏掉一行——它不该和分支一起排队。这一版把标签从筛选排里拿走,仍然留在提交行上作徽章。

变更

  • 标签退出筛选排:refGroups 不再收 tag: …,顺序变成「当前分支 → 其他本地分支 → 只有远程的分支」。host lib/index.js:616 不再剥掉 tag: 前缀,客户端据此区分标签与分支(1.9.0 里发布标签被当成分支画成实心 chip,就是这条前缀被剥掉导致的)。
  • 标签仍是行内标记:新增 refLabelOf,把 tag: v1.0.0 映射成 v1.0.0,行内徽章与导出的 SVG 都用它。
  • 可筛分支少于四条时整排不显示(SIDEBAR_TAB_FILTER_REFS_MIN = 4);已经静音过东西时仍然显示,因为「清除筛选」在那里。
  • 可见性过滤:标签不参与静音,但只被标签指着的提交必须仍算起点,否则静音任意分支时老版本提交会消失。
  • 清掉 1.6.1 遗留的死键 sidebar.expandGraph(「全屏查看」/「Full-window view」)。

验证

build-lib spliced 2843 / 1560 / 449 行、patch-host 23 处、166 个 locale 键、test-host 186/186、preview-tab 全过(含新的 refs 一节与「单分支时整排隐藏」用例)。

1.9.1 — tags are not filter candidates

A tag points at a single commit, so muting one hides exactly one row; it never deserved a slot next to the branches. Tags still show up on the commit rows as badges.

  • refGroups skips tag: …; host lib/index.js:616 keeps the prefix now so the client can tell a tag from a branch.
  • refLabelOf renders tag: v1.0.0 as v1.0.0 in row badges and in the exported SVG.
  • Fewer than four filterable branches and the row is not drawn at all (unless something is muted, because Clear filters lives there).
  • Dead sidebar.expandGraph keys from 1.6.1 removed.