Commit Graph
18 Commits
Author SHA1 Message Date
TurtleandYifffan a5b0afda88 fix(client): drop the tooltip from row context-menu buttons
Session and workspace row ellipsis buttons gained a label tooltip when they
moved to the shared contextMenu.button factory. Keep the tooltip only on the
compact toolbar variant.

Co-authored-by: Yifffan <[email protected]>
2026-11-04 18:32:25 +08:00
zhc 45bb3da47e Merge master and position submenus with CSS anchors
master 通过 #7700 将 portal 菜单改为 CSS Anchor Positioning,并删除了
`useAnchoredPosition`。本次合并让子菜单跟进同一机制:

- 子卡片以父卡片内一个不随列表滚动、与卡片同尺寸的锚点框为默认锚点,
  侧开时默认在右侧、放不下时由 CSS 翻到左侧;单面板模式占据父卡片位置。
- JavaScript 只决定侧开或单面板,并提供当前行在父卡片内的偏移和子卡片
  自然高度;两者都是相对尺寸,双指缩放与平移由 CSS 锚点处理。
- 锚点框绕开了 WebKit 的两个问题:锚定到自身由锚点定位的父卡片时不会
  在其定位稳定后重新计算;锚定到滚动列表内的行时不计入滚动偏移。
- 删除 `useAnchoredPosition` 及其测试;`menu-submenu-position` 只保留
  侧开/单面板判断,相应单测改为验证模式与锚点名。
- 解决 README、测试与 package.json 冲突,沿用 master 的 CSS 锚点说明并
  补充子菜单定位描述。
2026-11-04 12:26:20 +08:00
zhc 13a8cc11c7 refactor(client): move menu target kinds to their owners
Address review on context-menu target ownership and MenuRow typing.

- `ui-workspace` declares the `workspace` target and `ui-conversation`
  declares `sessionHeader`; `ui-context-menu` no longer depends on
  `@deepseek-ai/dsh-workspace`.
- Remove `buttonTargetKey`. A shared button now toggles only the popup it
  opened, tracked by its instance id, so the menu service needs no
  per-kind identity rule.
- Name the optional-or-undefined props helper in `MenuRow`, document its
  package-internal props, and replace the `MenuDecoration` component with a
  typed render helper.
2026-11-03 17:27:32 +08:00
Yif 52ba88132e Merge master and address shared menu ownership review 2026-11-02 22:05:54 +08:00
Stevring 2c990f0b14 refactor(client): position floating panels with CSS anchors 2026-11-02 14:43:58 +08:00
Yif 16f54f5ecf fix(client): address Session menu review and coverage failures 2026-10-29 21:57:21 +08:00
Yif b8ede96fd8 feat(client): move native app opening into Session menus 2026-10-29 20:03:57 +08:00
zhc 9dce789696 refactor(client): render context menu icons through keyed slots 2026-10-28 20:27:27 +08:00
zhc a5f1d4a16a refactor(client): bind context menus at their Slot consumers
Merge master and preserve pinned-row visibility. Remove redundant Chat and tool-tree menu forwarding, unify trigger names, and bind file targets at the consuming Slot. Address CI static and coverage gaps without changing upstream scroll assertions.
2026-10-28 19:15:45 +08:00
zhc 49e9d42a00 refactor(context-menu): inject shared trigger bindings through slots 2026-10-28 17:08:06 +08:00
zhc 39da0914a9 fix(file-actions): reveal saved files from completion toasts 2026-10-26 15:25:25 +08:00
zhc 1de7f17cc0 fix(context-menu): use native downloads and explicit plugin presentation 2026-10-26 14:01:31 +08:00
zhc fa9bf4c407 feat(client): show configured shortcuts in structured session menus 2026-10-23 19:04:34 +08:00
zhc 076b0e5881 fix(client): clarify context menu ownership and render icon groups 2026-10-23 18:32:36 +08:00
zhc 174962f8ba Merge master and reconcile menu locale coverage 2026-10-23 12:05:49 +08:00
zhc 99cdeb0b9d feat(client): add workspace and directory context menus 2026-10-23 11:50:09 +08:00
zhc d3116fd9d3 fix(context-menu): refine feedback, timing and extension lifetimes 2026-10-22 15:35:52 +08:00
zhc 411f157983 feat(context-menu): add extensible resource actions and shared popup lifecycle 2026-10-22 15:35:52 +08:00