app: grouped skills view with review-pipeline toggle#32
Merged
Conversation
Rebuild the Skills view (PR 2 of the overnight UX program) as a source-grouped master/detail. The left list groups skills by install source with mono uppercase headers and counts: a pinned REVIEW PIPELINE group, PERSONAL, one PLUGINS group per marketplace, PROJECT, and a COCKPIT STORE group that always shows (it carries the Install/sync affordances). A substring search filters across all groups. The detail pane shows the selected skill's name, path, source chip, description, and body via the shared <Markdown> renderer, plus a "Use in review" card wired to set_skill_review_pipeline. The SKILL.md editor is gated strictly on source.kind === "CockpitStore"; external sources (personal/plugin/project) are read-only with a managed note, so an external skill can never be copied into the store via save_skill. Grouping and search are pure helpers in lib/skill-groups.ts with unit tests covering group order, marketplace splitting, pipeline pinning, cross-group search, and empty-source handling. Store gains a setSkillReviewPipeline action (optimistic flip, reconciled with the refreshed list). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Selection uses border-primary (brand stays reserved for pipeline identity); review-pipeline toggles are disabled per-skill while a command is in flight so a stale response can't clobber the final click; handleSave re-asserts editability locally; failure rollback re-reads before surfacing the error so the message survives. Store tests pin all three behaviors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reopened continuation of #26 (GitHub auto-closed it when its base branch was deleted on #25's merge; a closed PR's base cannot be retargeted). Same commits, rebased onto main. Original review + description: #26.
🤖 Generated with Claude Code