Skip to content

feat(ui): skills marketplace — 3-column card grid, categories, sort (reference-grade browse) - #692

Merged
jackwener merged 1 commit into
mainfrom
feat/skills-marketplace
Jul 9, 2026
Merged

feat(ui): skills marketplace — 3-column card grid, categories, sort (reference-grade browse)#692
jackwener merged 1 commit into
mainfrom
feat/skills-marketplace

Conversation

@jackwener

Copy link
Copy Markdown
Member

Redesigns the skills page toward the maintainer's reference comparison: the 市场 tab becomes a real marketplace.

市场 tab

  • 3-column auto-fill card grid (2/1-col on narrow): icon tile + name + slug mono + 2-line description + category Chip + install state, quiet install icon-button (only the + acts — card body honest-inert)
  • Category filter (7-bucket taxonomy, parsed from managed-source front-matter, unknown → 效率工具, backward-compatible optional field through core type → IPC scrubber → UI) and sort (名称/最近) — client-side via SettingsSelect
  • Install counts deliberately OMITTED — no real data; no fake numbers
  • 官方精选 section label; 导入本地 Skill moved in; placeholder catalog constant deleted

内置 / 已安装 rows

  • Reference-style rows: name + clamped description; visible slug chip retired into the row tooltip; Switch / open-SKILL.md / exception-only state_error Chip preserved
  • 使用 button SKIPPED with reason: no chat-prefill mechanism exists for skills — no dead UI invented

Governance

All shipped primitives + contracts honored (Chip/Item/PageHeader, 4px ruler, radius families, icon funnel, no oklch literals); skills.test.ts re-pinned to the market grid in new form; new fixture test pins the 7-source category catalog. Desktop 2294/2294 + ui 46/46 exit-code gated; dead-css/console/a11y/copy checks clean; alignment auditor clean; light/dark/narrow captures verified. Implemented by an opus worktree agent to the maintainer's spec.

…+ upgraded rows

市场 tab is now a real marketplace grid over managed sources (was a static
即将上线 placeholder catalog):
- 3-column auto-fill grid (min 260px → 2/1 col on narrow); each card = icon
  tile + name + slug mono caption + 2-line clamped description + category Chip
  + installed state, with a quiet + install icon-button (Download) top-right.
  Card body inert; only the + acts. 官方精选 label + 导入本地 Skill action.
- Client-side category filter (全部分类 ∨) + sort (排序:名称/最近 ∨) via
  SettingsSelect on the tab row's right. Install counts OMITTED (no data).
- The old 已安装-tab 来源库 list folded into this grid.

内置 / 已安装 rows: slug moved from a visible chip into the row title
tooltip (技能:<id>); visible row is name + description only. Switch,
open-SKILL.md button, and exception-only state_error Chip all kept.
使用 button SKIPPED — no chat-prefill/invoke mechanism exists to wire it to.

Data model (backward-compatible, all optional-resolved):
- ManagedSkillSourceEntry/Record gain category (fixed 7-bucket taxonomy;
  parsed from `category:` front-matter, unknown/missing → 效率工具).
  toManagedSkillSourceEntry + module-panel-types + IPC carry it through.
- resolveManagedSkillSourcesRoot honors a dev-gated MAKA_SKILL_SOURCES_ROOT
  override so the smoke fixture seeds a deterministic catalog off-home.

Fixture: module-skills seeds 7 managed sources across categories + 2
workspace skills so the grid/filter/sort and 内置/已安装 rows render
meaningfully in CDP captures.

Contracts re-pinned: skills.test.ts (来源库 list → 市场 card grid),
visual-smoke-fixture.test.ts (+ market catalog seeding). check-dead-css
clean; audit-alignment clean (incl. module-skills). No new icons; no raw
oklch literals; new CSS scoped to .maka-skill-* module owners.
@jackwener
jackwener merged commit 3b9f63a into main Jul 9, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the feat/skills-marketplace branch July 14, 2026 05:05
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