Skip to content

fix(ui): detail round 6 — one affordance one home (palette hints, skills CTA, runtime chip) - #649

Merged
jackwener merged 1 commit into
mainfrom
fix/ui-detail-round6
Jul 8, 2026
Merged

fix(ui): detail round 6 — one affordance one home (palette hints, skills CTA, runtime chip)#649
jackwener merged 1 commit into
mainfrom
fix/ui-detail-round6

Conversation

@jackwener

Copy link
Copy Markdown
Member

Detail-audit round 6 — non-settings sweep (command palette, skills module page), lens: duplicated affordances + component re-skin overrides.

Findings & fixes

1. Command palette showed the same shortcut hints twice

The input row carried an inline-end addon (↵ 执行 / Esc 关闭) while the footer bar showed ↑↓ 选择 · ↵ 执行 · Esc 关闭 — both visible in the same viewport. The footer (the standard palette pattern, cf. VS Code/Raycast/Linear) is the single home now. Addon markup + its 4 CSS blocks removed; both pinning contracts updated to assert the absence instead.

2. Skills 添加 CTA was a ghost wearing fake primary chrome

.maka-skill-add-button re-skinned variant=ghost into a black-gradient pill with raw oklch(0.19/0.32/1 0 0) literals — a theme leak (ignores palette tokens entirely, wrong in dark/brand themes) plus radius-pill off the button radius family. This is exactly the component-re-skin antipattern from round 2 (killed .settingsInlineTextButton/.settingsBotAction). Now a genuine variant=default primary — the same recipe as daily-review's 生成每日回顾, so adjacent module pages share one CTA form.

3. Skills runtime chip duplicated the Switch

Every row showed an 已启用 chip immediately next to an ON switch — two controls saying the same thing (exception-only lens). The chip now renders only for state_error (状态异常), the one state the switch can't express; enabled/disabled wording remains in the row hover text. Dead data-status=disabled CSS variant removed.

Verification

  • Desktop suite 2250/2250 green (contracts updated in their new pinned form, incl. the second import-shape copy in command-palette-a11y-copy-contract)
  • check-dead-css clean
  • CDP re-captures of module-skills + command-palette-open fixtures verify all three visually

…lls CTA, runtime chip)

- Command palette: shortcut hints (↵ 执行 / Esc 关闭) were duplicated —
  once as an input addon, once in the footer bar. The footer is the
  single source now; addon markup + CSS removed, contracts updated to
  pin the absence.
- Skills 添加 CTA: was variant=ghost re-skinned by CSS into a hardcoded
  black-gradient pill (raw oklch literals that ignore theme palettes +
  off-family radius-pill). Now a real variant=default primary, same
  recipe as daily-review's 生成每日回顾 — one CTA form across module
  pages.
- Skills runtime chip: 已启用/已停用 duplicated the adjacent Switch.
  Exception-only now — the chip renders solely for state_error; the
  enabled/disabled wording stays in the hover text.
@jackwener
jackwener merged commit 00ad425 into main Jul 8, 2026
3 checks passed
@jackwener
jackwener deleted the fix/ui-detail-round6 branch July 8, 2026 17:37
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