Commit Graph
1713 Commits
Author SHA1 Message Date
Menghuan1918 0cd0765fad refactor(ui): 删除组件替换后失效的样式规则(B3 收尾)
- sidebar.module.css: 删掉 editorDownloadLink(含 :hover 与 focus-visible 组内一行)、mediaPreviewNotice、largeFileDownload 及其说明注释;largeFileNoticeAction 仍被 LargeFileView 使用,保留。
- terminal.module.css: 删掉 .notice / .error / .action / .action:hover,以及同组零引用的 .noticeBlock。
2026-11-25 01:02:40 +08:00
Menghuan1918 5a8ab2f805 refactor(ui): 合入 B3 —— diff、终端与预览宿主接入统一组件层 2026-11-25 01:00:09 +08:00
Menghuan1918 09e9e046ae refactor(ui): 合入 B2 —— 侧边对话附件与图片状态接入统一组件层 2026-11-25 01:00:09 +08:00
Menghuan1918 387379aa8b refactor(ui): 合入 B1 —— 任务窗口、任务图与共享任务结构接入统一组件层 2026-11-25 01:00:09 +08:00
Menghuan1918 356cdbd18d refactor(ui): 任务窗口与任务图接入统一组件层
- TaskWindow:所有者/阻塞信息改用 FactList,视图与编辑态的两个字段改用
  Field(label 关联 input/textarea),空描述改用 Notice(hint),冲突/错误
  提示改用 Notice(error);窗口底部动作改用 ActionButton,图标移入按钮内容。
  MultilineField 增加可选 id,供 Field 的 label 关联。
- TasksGraph:空画布加载行改用共享 LoadingIndicator,删除自绘的旋转图标
  行与对应 CSS。
- tasks-graph.module.css:表单「描述字段吃满窗口」的规则跟随 Field 的 div
  结构改写;删除随替换失效的 .teamNote/.taskLabel/.jobPopMeta 作用域规则。
- 行为、文案、aria 名称与 data-* 均未改变;图形卡片与右下控件簇是图形
  专用形状,本轮不动(见报告)。
2026-11-25 00:59:30 +08:00
Menghuan1918 efc7900de4 refactor(ui): 标签页与预览宿主接入统一组件(B3)
- `diff/DiffFiles.tsx`:文件头徽标改 `StatusBadge`,`fileTag()` 改返回 `{ tone, label }`,tone 直接用组件自带的 added/deleted/renamed/neutral
- `diff/DiffRows.tsx`:「展开全部」改 `ActionButton`;折叠行保留原生 `[data-expandable]` 结构
- `TerminalView.tsx`:状态行改 `StatusLine` + `ActionButton`;不可用/连接错误改 `ErrorBlock`;终端失联改 `FallbackPane role="alert"`
- `builtins/media-preview.tsx`:不可播放改 `FallbackPane role="status"`,下载出口改 `DownloadLink`
- `PdfView.tsx`:工具栏下载改 `DownloadLink`,加载失败改 `ErrorBlock`
- `LargeFileView.tsx`:提示条下载改 `DownloadLink`,空文件占位改 `EmptyState`
- 收敛文档记录 B3 实施结果,以及两处统一层缺口(`StatusLine` 无 alert 角色、`ListRow` 无 disabled/aria 直通)

行为、文案、aria 名称与 `data-*` 不变,测试断言未改。门禁:typecheck、lint、全量 test(366 文件 / 4625 通过 / 18 skipped)全绿。
2026-11-25 00:58:51 +08:00
Menghuan1918 72f79f7bd6 refactor(ui): 侧边对话的附件与图片状态接入统一组件层
- SidechatImages:加载态改用 Notice(inline, loading),不可用改用 StatusLine(plain, role=status);
  缩略图仍是 blob URL 的 <a target=_blank><img>,行为不变。
- SidechatAttachments:读取失败的占位改用 StatusLine(plain);文件附件从手写 chip 换成
  ListRow(leading=FileTypeIcon、title=name、meta=size),外层 span 只保留宽度约束与悬浮 title。
- SideChatView.module.css:删除随之失效的 .sidechatAttachmentFailed / .sidechatAttachmentName /
  .sidechatAttachmentSize,.sidechatAttachmentFile 收成布局壳。
- 行为、文案、可访问性名称与 data-* 未变;测试断言零改动。

缺口(未在 ui/** 造件,按任务约束只报告):非交互的文件 chip 仍缺共享件,
当前由 SidechatAttachments.FileChip 与 SideChatView.tsx 的附件卡手写两处。
2026-11-25 00:58:06 +08:00
Menghuan1918 fd13838b09 refactor(ui): 统一组件层地基与批次规划
- 新增 DownloadLink(kit.tsx)与 FallbackPane(patterns.tsx),从 ui/index.ts 导出;
  样式只用 --dsw-* / --ds-* 令牌,覆盖下载出口与 pane 级兜底消息两个跨页面模式
- 示范替换孤儿标签页占位组件(改用 FallbackPane role="status",文案与类型 chip 不变)
  与 binary-download(整页 FallbackPane + DownloadLink),删除 binary 独占的
  .editorBinary / .editorBinaryNotice 规则
- tests/ui-kit.spec.tsx、tests/ui-patterns.spec.tsx 补两个新组件的契约:
  download 属性、inline 变体、role 只在调用方要求时透传
- docs/plans/2026-11-25-ui-kit-convergence.md:36 个未接入 tsx 的 A/B/C 分类与
  B1–B4 批次(任务/作业 → 侧边对话 → 标签页与预览宿主 → 文件树与侧栏外壳)
2026-11-25 00:55:07 +08:00
Menghuan1918 d7e525471e docs(changelog): rebuild the unreleased section after rebasing onto v0.33.0
0.33.0 已把原来的「未发布」条目全部发出去,rebase 后这些条目与 main 的
v0.33.0 段重复。这里以 main 的发布段为准,只保留仍未发布的线索工作台与
划选相关条目,避免同一批修复出现两次。
2026-11-24 16:43:50 +08:00
Menghuan1918 8aa4ae32b1 chore: reconcile the clues line with dev's newest client surfaces
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.
2026-11-24 16:43:27 +08:00
Menghuan1918 51b77e36ea i18n(es): translate dev's new catalog keys 2026-11-24 16:43:27 +08:00
Menghuan1918 bdbd9f4ff6 test(e2e): pin the pack shelf's own scroll before measuring the settled row 2026-11-24 16:43:27 +08:00
Menghuan1918 cea6282cec fix(rebase): keep the 0.33.0 surface and adapt to dev's newer host contracts 2026-11-24 16:43:27 +08:00
Menghuan1918 a90abe4304 feat(selection): compact popup with lateral rewrite flyout 2026-11-24 16:43:27 +08:00
Menghuan1918 99ecc6dee7 feat(navigation): clarify Clues labels and reorder default guide 2026-11-24 16:43:27 +08:00
Menghuan1918 08002a0211 feat(selection): configure rewriting and translate selections directly 2026-11-24 16:43:27 +08:00
Menghuan1918 39ccabcefb feat(sidebar): polish loading, floating windows and clue provenance 2026-11-24 16:43:27 +08:00
Menghuan1918 3313b8779f fix(clues): restore horizontal source selection in wide panes 2026-11-24 16:43:27 +08:00
Menghuan1918 dc3b8aba33 feat(clues): refine resizable workbench and resource previews 2026-11-24 16:43:27 +08:00
Menghuan1918andDevin 934d57655a test(clues): follow the rebuilt workbench surfaces
The specs still drove the wide source tabs, the nested pin strip and a
separate create-pack window. Helpers and assertions now exercise the
SelectMenu source picker, the inline pack form, the docked-or-floating
window helper and the 12px workbench axis, with touch targets at 44px.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-24 16:43:27 +08:00
Menghuan1918andDevin 1ddabbc227 refactor(clues): restyle the detail, pack, collect and share windows
The clue windows kept redundant title inputs, bare radios and file pickers
and doubled footer borders. They now sit on the shared ListRow, SearchField
and Disclosure patterns with compact action footers, while the Feishu
preview follows the same density.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-24 16:43:27 +08:00
Menghuan1918andDevin de90a883a3 refactor(clues): rebuild the main tab as a two-section workbench
The tab stacked a path bar, wide source tabs and a nested pin strip over
the list. It now reads as a workbench: resources and packs collapse like
VS Code sections, the source picker is a compact SelectMenu over two
toolbar rows, pins fold into the list, and new packs are created inline.
The first-use help and the selection bubble got opaque, compact surfaces.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-24 16:43:27 +08:00
Menghuan1918andDevin 90854255fc feat(clues): prefer docked sidebar surfaces for heavy clue flows
Heavy clue flows always opened the same way regardless of how the user
works. A volatile windowSurface preference (sidebar by default, floating
as the alternative) now drives the detail, pack, share and settings
windows, exposed as a segmented row on the clue sources settings page
and in the host settings toggle; the settings surfaces were restyled to
match the shared Disclosure and row patterns.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-24 16:43:27 +08:00
Menghuan1918andDevin e32546bd25 refactor(ui): flatten shared fields, rows and disclosures on host tokens
The clue surfaces were carrying raw details markers, mismatched field
backdrops and doubled docked title bars. Give the shared layer a Disclosure
pattern, align the SearchField frame and window chrome on the host tokens,
and let docked windows drop their duplicate title row.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-24 16:43:27 +08:00
Menghuan1918 7c6ab16362 test(e2e): follow the docked clue windows and the rebuilt tab hooks 2026-11-24 16:43:27 +08:00
Menghuan1918 3bb884db1b test(clues): rebuild the clue suite down to 18k lines, keeping each contract 2026-11-24 16:43:27 +08:00
Menghuan1918 f082166211 feat(clues): list individual pull request checks from the detail read 2026-11-24 16:43:27 +08:00
Menghuan1918 891974c4a5 feat(clues): auto-check an authorizing device-code attempt at the CLI cadence 2026-11-24 16:43:27 +08:00
Menghuan1918 bcc0efa917 feat(windows): clue windows open docked in the right sidebar when a session is available 2026-11-24 16:43:27 +08:00
Menghuan1918 efbc21d65c refactor(i18n): ship only the official host languages, drop the better-locale override
Dictionaries now follow the host's own locale list: zh/en static, ja/de/es/fr/pt/ru
in the lazy locale chunk (new es dictionary). t() reads the host's active locale
directly (exact id, base language, then en); attachBetterLocale and the optional
@huanlin/dsh-plugin-better-locale peer are removed along with the 14 non-official
dictionaries.
2026-11-24 16:43:27 +08:00
Menghuan1918 30a73d38f5 chore(clues): drop internal-only exports, dead helpers and orphan facades
43 client clue symbols had no consumer outside their module; they are now
module-private. Removes the dead isClueSelectionServerAction, the scope-note
alias, the unused ClueTabSettings shape, the Feishu/GitHub/detail re-export
facades nothing imported, and the last orphan clue CSS rule.
2026-11-24 16:43:27 +08:00
Menghuan1918 594d75cd13 refactor(clues): settings facts, errors and empty state use the shared components
Dependency, plan, install and connection rows are FactRows (with a trailing
action seat and data-* passthrough); source-list failures are ErrorBlocks;
the empty catalogue is an EmptyState. Drops the settings sheet's dead rules.
2026-11-24 16:43:27 +08:00
Menghuan1918 3af5dd0a9c refactor(clues): pack, detail and Feishu windows use the shared components
Pack footers, conflict/binding/add errors and empty states; detail failure
and footer actions (ActionButton); Feishu task/doc fields and save rows.
Field and ActionFooter pass data-* through for e2e locators. Drops the
window sheets' now-unreferenced rules.
2026-11-24 16:43:27 +08:00
Menghuan1918 2f99b1ffea refactor(clues): tab states, scope fields and pins use the shared components
Catalogue/pin/refresh/search errors are ErrorBlocks (a busy retry stays
focusable via aria-disabled); idle/needs-scope/unsupported/no-workspace
states are EmptyStates; scope editor fields are Fields with real htmlFor;
pinned rows are ListRows. Drops 50 now-unreferenced clue-tab rules.
2026-11-24 16:43:27 +08:00
Menghuan1918 cff412f554 refactor(clues): windows use the shared field/choice/error/footer components
ChoiceCard renders a fieldset so a busy window locks every option natively;
ActionFooter gains a bleed mode for gutter-padded window roots and a status
seat for its leading fact.
2026-11-24 16:43:26 +08:00
Menghuan1918 0edd9e9e81 refactor(clues): browse and pack rows use the shared row/state components
The pack shelf and the browse results each carried their own row shell, their
own empty state and their own error+retry line. They now share ListRow,
EmptyState and ErrorBlock, and the local copies are gone.

ListRow grew the two contracts those callers actually need:
- titleLabel so the accessible name can be "Manage pack: X" while the visible
  title stays "X";
- primary so the roving-focus marker (data-list-primary + its tab stop) lands
  on the title button, which is what useListNavigation focuses;
- a navigating row keeps name + subtitle inside that button, so the whole
  two-line caption is one click target and one accessible name.

Removed from clues-tab.module.css: the .packRow/.packOpen/.packGlyph/
.packName/.packMeta/.packCount/.packReference family plus the two coarse-
pointer orphans left behind. tests/clues-tab-css.spec.ts now asserts that
contract against the shared patterns sheet, where the rules actually live.
2026-11-24 16:43:26 +08:00
Menghuan1918 9056ea2c7c feat(ui): shared page-pattern layer (facts, rows, states, fields, choices)
The clue surface carried 31 hand-written fact rows, 14 list-row shells, 10
empty states, 14 error+retry blocks, 15 stacked fields, 6 choice groups, 11
status footers and 9 action bars — 968 lines of CSS in ten near-identical
families that had already drifted apart (four spellings of the retry row,
three different "selected" pictures).

These eight components own those shapes once, on the same token-only contract
as the global kit: flat fills, one 1px border language, no shadow, no resting
state painted, native keyboard semantics (a navigating title is a real
<button>, a choice is a real <input>), tabular figures, 44px touch targets.

patterns.module.css joins the theme guard and the host-token guard; the new
spec pins the contract structurally (default states unstyled, native controls
preserved) rather than cosmetically.
2026-11-24 16:43:26 +08:00
Menghuan1918 5ee81fb073 feat(clues): collect resources from files, Feishu and GitHub, adapted to DSH 0.2.2-rc.2
This lands the clue collection line on top of origin/dev (v0.32.1, DSH
0.2.2-rc.2). The 14 commits that carried it are squashed into this one
because every one of them overlapped upstream's own changes (version,
19 dictionaries, CHANGELOG), and each intermediate commit would have
failed to compile against rc.2's menu API. The pre-integration head is
kept at backup/clues-uiux-refresh-pre-rebase.

What the feature is:
- a Clues tab that reads local files, Feishu tasks/docs and GitHub
  issues/pulls through one source registry, with a scope row, shared
  search, filters, paging and stable [[dsh-clue:...]] references;
- one window host for detail, pack management, source configuration,
  new pack and sharing (preview and edit are separate paths: a read is
  never saved over);
- .cluepack export/import with per-row resolvability previews;
- a source runtime that owns dependency installs and connection
  authorization (gh, lark-cli device code) and only probes on an
  explicit read;
- the public betterSidebarClues service and the windows capability
  (features gains clues / windowHost).

Merged with upstream rather than over it:
- the settings section keeps upstream's start-page takeover group and
  this branch's clue sources group; navigation is now six groups;
- the dictionaries keep both sides' new keys (1211 each, verified equal
  across all 19), the external-plugin guide and CHANGELOG keep both
  histories, and service features list both capability sets.

Adapted to 0.2.2-rc.2:
- menu call sites use anchorPoint instead of getAnchorRect;
- the shared SelectMenu mounts the host menu only while open, because
  rc.2's Menu reads the DOM during render and broke server-rendered
  settings surfaces;
- the submenu flip workaround stays deleted (the host positions
  submenus now), pinned by an updated layout-css assertion.

Version 0.33.0 (three synced spots) with a new 未发布 / Unreleased
changelog section; package.json regains the ./clues export, lib/clues.js
and the uqr dependency that upstream never had.

Gates: typecheck, lint, 5410 unit tests, build, check:consumer-types and
the full mount lane (35 passed) against dsh 0.2.2-rc.2 in Chromium.
2026-11-24 16:43:26 +08:00
Atlas Zeng 0f4b87c49d release: merge dev for v0.33.0 (Side Chat 工具树、安装下限与 UI 修复)
合入 v0.33.0:Side Chat 工具调用树、安装下限改由 engines.dsh 独立裁决、一批 UI 修复。

PR #1257
2026-11-24 14:37:07 +08:00
hairyf 4e919c17ae docs(contributors): credit the v0.33.0 batch
Adds the PR authors merged since v0.32.1 (UI fixes, the DSH 0.2.3 admission
fix and the recommended-catalog entries) and extends the yanzhaohui1999 row.
2026-11-24 12:00:13 +08:00
蔡少毅 089246e660 fix(host): 0.2.3 的 admit 需要注入 connection.authentication
DSH 0.2.3 起 Connection.admit 把凭据校验委托给嵌套服务
connection.authentication,而 cordis 只允许显式注入该服务的调用方读取它。插件
此前只注入 connection,admit 一被调用就抛 cannot get property
"connection.authentication" without inject,又被宿主兜底成空 body 的 400:底部
终端 chunk 加载、打开文件、侧边对话全部只剩 HTTP 400。

准入改为三级:requestRejection 存在时照旧;否则走
ctx.inject(['connection.authentication']) 子 fiber 里的 admit(0.2.3+ 的宿主
在这里能读到凭据校验器);再否则直接 admit。rc.2–rc.5 没有该嵌套服务,子 fiber
不激活,旧宿主行为不变;不重建信任表,无准入路径时仍直接抛错。

测试:tests/trusted-hosts.spec.ts 新增 0.2.3 形状——插件上下文调用 admit 抛
inject 错误、经注入的 provider 上下文裁决——覆盖放行 / 401 / 403 三档。

AI-Co-Authored-By: lead
2026-11-24 11:59:08 +08:00
hairyf 3e3d3196d5 chore(release): prepare v0.33.0
- bump package.json, dsh.plugin.json and SIDEBAR_SERVICE_VERSION to 0.33.0
- move both changelogs out of Unreleased and add the four merged UI fixes
  (#1011, #1233, #945, #948) plus the recommended-catalog batch
- update README install commands, compatibility table, DSH badge and Recent Updates
- point the external plugin guide and the adaptation doc at v0.33.0 and the rc.3 floor
2026-11-24 11:53:51 +08:00
Hairy 14219fa9d6 Merge pull request #1240 from omdsh-dev/fix/git-detail-close-button
fix(changes): Git 详情面板的关闭按钮常驻 Tabs 行最右侧(#991)
2026-11-21 20:47:27 +08:00
hairyfbot e2544268a1 docs(screenshots): issue #991 修复前后对照
真实 dsh web + Chromium,同一 fixture / 视口 1440x900 / 浅色主题:details 与 diff 两个页签的 Before / After。
2026-11-21 17:55:11 +08:00
hairyfbot 3be1065d54 test(e2e): 真实宿主断言关闭按钮常驻 Tabs 行最右侧(#991)
git-graph 用例在「提交详情」页签上断言面板只有一个关闭按钮、它挂在 Tabs 那一行(tablist 的父行)末尾,切到「差异」后仍在同一行,点击它关闭整块面板。
2026-11-21 17:55:11 +08:00
hairyfbot 4a6c1bd880 fix(changes): Git 详情面板的关闭按钮常驻 Tabs 行最右侧(#991)
底部面板的「提交详情 / 内容 / 差异」是一条 Tabs,但关闭整块面板的 X 原先画在「内容 / 差异」的页内头行上——切到「提交详情」时那条头行整块不渲染,于是该页签没有关闭入口,只能先切页签再点 X。

现在关闭按钮属于 Tabs 那一行:无论选中哪个页签都停在最右端、位置不变,点击关闭的是整块面板;「内容 / 差异」头行里重复的 X 已移除。只有一个视图、没有 Tabs 行的预览保持原来的头行位置。
2026-11-21 17:45:14 +08:00
Hairy 2cb529f1b2 Merge pull request #1238 from omdsh-dev/fix/blank-session-dock-entry
fix(sidebar): 空白会话在右侧栏展开时仍能打开底部工作台(#989)
2026-11-21 15:31:13 +08:00
Hairy 7e757f972e Merge pull request #1011 from yanzhaohui1999/fix/native-files-header-align
fix(files): align the native files search header with the session tab rule (#1006)
2026-11-21 15:30:18 +08:00
hairyfbot 92899af758 test(e2e): 展开态入口位置断言改为轮询,避开面板滑入动画 2026-11-21 15:15:58 +08:00
hairyfbot fb9967b8df fix(sidebar): 空白会话在右侧栏展开时仍能打开底部工作台(#989)
blank 会话里宿主不渲染会话头 utilities,插件的底部工作台入口只剩右上角那个
备用入口;而它在宿主右侧面板展开时整个不渲染,于是「先开右栏」就再也打不开
底部工作台。#1053 修的是正常会话的会话头入口,这一处当时被留了下来。

现在展开态照常渲染,并改锚**面板左缘**:展开态宿主的 Split / Fullscreen /
Collapse 搬进了面板内部,锚在那簇控件左侧会落进面板、盖住面板内容;面板左缘
那一格是会话头那一行的右端空位,与收起态入口同一列。

真实宿主(DSH 0.2.2-rc.5 + Chromium,1440x900,空白新会话)实测:
- 收起态:入口 1364,11(不变);
- 展开态:修复前屏上 0 个入口,修复后 756,10(面板左缘 792),点击可打开底部面板。

tests/dock-fallback.spec.tsx 把「展开态不渲染」改成「展开态渲染且锚在面板左缘
756px 并仍可点击」(还原旧守卫即红);tests/e2e/blank-session-dock-entry.e2e.ts
新增真实宿主用例:展开右栏后入口仍在、屏上恰好一个、右缘不越过面板左缘。
2026-11-21 15:11:16 +08:00