Skip to content

feat(plugin-launcher): one 48px rounded tile per item and a wider panel - #2112

Merged
Tioit-Wang merged 3 commits into
mainfrom
feat/2085-plugin-launcher-grid
Nov 6, 2026
Merged

Tioit-Wang merged 3 commits into
mainfrom
feat/2085-plugin-launcher-grid

Conversation

@Tioit-Wang

Copy link
Copy Markdown
Collaborator

这个 PR 做了什么

#2091 合并之后,按评审定稿的视觉方案继续调整插件快捷面板的格子:

  1. 图标 34px → 48px,插件与本地应用统一为圆角方形(--radius-lg = 16px),不再靠方形/圆形区分。
  2. 删除「插件 / 应用」类型徽标,名称独占图标下方整行——这是挤压的根因:700px 时代每格约 74px,徽标连间距吃掉 30px,名称只剩三四个字。
  3. 窗口默认 900、最小 800(上限仍 1280),高度继续随内容走;800 是八列里每格仍放得下 48px 图标与可读名称的下限。
  4. 文档同步:18-plugin-launcher(中英)、ADR 0343、E2E-268;issue [Feature] 插件快捷面板:分组网格布局 + 正则带参唤起 + 启动本地应用 #2085 已相应改写。

明确的取舍

插件与本地应用在打开之前不再可区分:外观完全一致,来源只保留在悬停 title 里。这推翻了 issue 原文的「一眼分得开」,因此文档、ADR 的 Consequences 和 E2E-268 都改成「刻意不区分,同名两条都列出」,而不是只改 CSS。若之后要恢复区分,建议做悬停/页脚提示,而不是重新占掉每格的名字宽度。

验证

  • node --test launcher 相关 7 个套件 → 79 passed, 0 failed(含 plugin-launcher-window 新增断言:单一图标形状、icon-plugin/icon-app 与 tile-type 已不存在)
  • tsc -p apps/desktop --noEmit → 通过
  • biome lint → 136 files,无问题
  • node docs/scripts/check-docs.mjs → 612 页;check-locales.mjs → 89 对,均通过
  • 未做 Electron 实机验证(本机 pnpm shim 损坏),CI 结果待本 PR 首跑

Refs #2085
Follows up #2091

v_wyxgwang added 3 commits November 5, 2026 11:18
The 34px icon left room for a type badge but not for the name: at the previous default width a tile had about 40px of text and truncated after three characters. Every source now renders the same 48px rounded square, the badge is gone, and the name owns the whole line under the icon.

The window opens at 900 DIP and refuses to go below 800, which is the narrowest width where an eight-column row still fits the icon and a readable name. The trade-off is explicit: a plugin and an application look identical until one is opened, and the hover title is the only place that still names the source.
The spec still described a type badge, a square/round split and a 560 minimum width. It now states the two-part tile, the 48px shape, the 800/900 width floor and default, and that telling a plugin from an application is a deliberate non-goal covered only by the hover title.

The ADR records the same trade-off in its consequences, and E2E-268 gains a same-name step so the behaviour is checkable by hand.
Brings the tile change onto the current base; no conflicts, the merge is purely additive against the launcher files.
@Tioit-Wang
Tioit-Wang merged commit d225b05 into main Nov 6, 2026
6 checks passed
@vastsa
vastsa deleted the feat/2085-plugin-launcher-grid branch November 6, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant