Repository navigation
fix(changes): 使用官方 Tabs 修复 Git / 本轮文件样式 - #939
Merged
Merged
Conversation
Menghuan1918
added a commit
that referenced
this pull request
Oct 16, 2026
…to dev(@hairyf) 冲突解决(按 D4 与仓库现役不变量): - status() 改为 porcelain v2(branch/upstream/ahead-behind/detached/operation 一次读回), 但保留 dev 的行/字段上限、pathspec 化 numstat 与 #909 的分侧计数;v2 记录遍历抽成 porcelainV2Tokens,状态解析与 pathspec 提取共用同一份字段知识; - GitLens 的 Merge/Staged/Changes 三组取 #944,两组各读自己那一侧(#909), Merge 组不印行数(冲突不是行数故事,也不许把某一侧当「这个数」); sideEntries 保留(每组只读自己那一半的 XY 字母); - ChangesTab 保留 #939 的官方 Tabs 外观与 a11y 包装、刷新按 #944 只留给本轮文件镜头; - 测试:git.spec 导入取并集、rmSync 清理改回 removeTree、smoke 的 branch/detached 断言 按 porcelain v2 语义改写,其余用例按新契约微调(band 顺序、changesOps 第 4 参 wait)。 剔除夹带(D4):.agents/skills/handle/SKILL.md、eslint/vitest 的 soruce/vscode 忽略项、 webRuntime→connection.requestRejection 栅栏与 ownEntryId 放宽(index.ts / context-types.ts 取 dev)、栅栏类测试桩与注释一并回退,栅栏归属留给 0.2.1 兼容批。
Collaborator
Collaborator
Author
|
@hairyfbot 新版本回归,重新提一个 issue,建票并修复 |
This was referenced Nov 21, 2026
Collaborator
hairyf
pushed a commit
to yanzhaohui1999/DSH-better-sidebar
that referenced
this pull request
Nov 21, 2026
omdsh-dev#1101 为摆脱宿主私有哈希类名(omdsh-dev#1098)改用公开的 SegmentedControl,视觉随之退回灰底胶囊;omdsh-dev#939 已按审阅意见改成官方会话页的下划线 Tabs,这一版把它丢了。 现在这条切换由插件自己的 changes.module.css 绘制:13px/500、未选中三级文字、选中态品牌色 + 2px 下划线压在页头分隔线上、24px 间距,ARIA 关联与左右方向键 / Home / End 漫游焦点照旧;不引用任何宿主私有类名。 Refs: omdsh-dev#1235
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.
变更
wSkVaW_tabs/tab/tabActive样式类,不修改 DSH 源码,也不复制视觉样式。验证
pnpm exec vitest run tests/changes-tab.spec.tsx tests/theme.spec.ts tests/primitives-exports.spec.ts --maxWorkers=1:36 项通过。pnpm typecheck:通过。pnpm exec eslint src/client/changes/ChangesTab.tsx tests/changes-tab.spec.tsx:通过。git diff --check:通过。pnpm watch重建成功,产物含官方 Tabs 与 24px 间隔;用户已审阅并确认 OK。修复前
修复后
已知边界
官方 Tabs 目前是宿主内部实现,宿主更新若改动 CSS 类名需同步适配;待宿主公开组件后改用直接导入。