Repository navigation
fix(changes): 「Git / 本轮文件」切换恢复会话页的下划线 Tabs - #1236
Merged
Merged
Conversation
Menghuan1918
added a commit
that referenced
this pull request
Nov 24, 2026
Upstream moved under the branch while it was being rebased: the changes lens grew its own underline tabs (#1236) and kept ONE native branch select (#944), the task graph squared its controls (#948), the host admission call moved to rc.3's admit fallback, and the graph viewport got a fixed 248px floor. Where the two designs collided this takes upstream's newer chrome and re-applies the branch's kit only where it defines our own surfaces. - changes/GitGraphSection: keep the branch's kit buttons but restore the native branch select, and give it token colours plus the 32px / 44px touch sizes so it stops falling back to the OS chrome in a dark panel. - sidebar/dock-fallback: upstream's 28px host-matched geometry plus the branch's 44px coarse-pointer target (no longer a 32px base). - ui/workbench-section: the disclosure bar is exactly 28px INCLUDING its divider, so the sections keep the heights the changes graph measures. - tests: theme.spec, dock-fallback, git-graph-ui and git-view-worktree follow upstream's newer shapes; the surface sweep stops demanding one identical tab for upstream's underline lens strip, and the graph e2e clicks the shared section disclosure instead of the old div > button.
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.
This is by an automated agent, not a human.
变更
changes.module.css用主题 Token 绘制,不再引用宿主私有 CSS Modules 哈希类名(Changes tab lens toggle (Git / session files) renders as unstyled default buttons — borrowed host CSS-module hashes (wSkVaW_*) are stale #1098 的根因),宿主改版不会再把它打回原生按钮或胶囊。role=tablist/aria-selected/aria-controls/aria-labelledby)与左右方向键、Home/End 漫游焦点保持;tab.meta.lens持久化不变。Before / After
基线
dev@ 1b36bab(v0.32.1 行为),DSH 0.2.2-rc.3(仓库基线宿主),真实dsh web+pnpm pack产物经dsh plugin add挂载;同一 fixture(src/a.ts改动 +src/new.ts新增)、同一 420×126 裁切、同一主题与视口。Before(灰底胶囊分段控件):
After(会话页下划线 Tabs):
After 的计算样式:选中态
rgb(65,118,230)、未选中rgb(129,133,140)、13px/500、间距 24px —— 与宿主会话页 Tabs(wSkVaW_tab的 65,118,230 / 129,133,140、13px/500)逐项一致。验证
pnpm typecheck、pnpm lint:通过。vitest run tests/changes-tab.spec.tsx tests/theme.spec.ts tests/primitives-exports.spec.ts --maxWorkers=1:53 项通过。vitest run:3542 项通过、10 项失败;这些失败在基线提交 1b36bab 上逐条复现(Windows 符号链接权限、依赖pnpm pack的 manifest 用例、selection-quote),与本改动无关。tests/e2e/mount.e2e.ts:8/8 通过(真实dsh web+ Chromium,挂载的是本 PR 打包产物)。仓库脚本scripts/e2e-mount.sh在本机无法整条跑通:宿主 web 模板把command-compact等预设插件放在会话内挂载,而 scratch profile 的 node_modules 里没有这些包,session.create会以command-compact ... never started失败;补装@deepseek-ai/dsh-command-compact/dsh-compaction-basic后同一 lane 全部通过。已知边界
ui-primitives只有SegmentedControl/SegmentedTabs,都是胶囊),所以这条切换由插件自绘;宿主若改版式需要同步这里。evidence-1235分支(只有两张 PNG),PR 合并后可随时删除。Closes #1235