Repository navigation
v1.9.1 - 标签不再占筛选项 / tags are not filters
1.9.1 — 标签不再占筛选项
一个标签只指向一个提交,静音它只能藏掉一行——它不该和分支一起排队。这一版把标签从筛选排里拿走,仍然留在提交行上作徽章。
变更
- 标签退出筛选排:
refGroups不再收tag: …,顺序变成「当前分支 → 其他本地分支 → 只有远程的分支」。hostlib/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.
refGroupsskipstag: …; hostlib/index.js:616keeps the prefix now so the client can tell a tag from a branch.refLabelOfrenderstag: v1.0.0asv1.0.0in 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.expandGraphkeys from 1.6.1 removed.