Commit Graph
872 Commits
Author SHA1 Message Date
Willie d3b9890028 fix(ui): align pages to design system — loading props, spacing, borders, click-to-toggle
- SyncPage/CollectPage/UpdatePage: root container space-y-5, remove manual margins
- Replace manual Spinner with Button loading prop across Sync, Collect, Update pages
- Fix double-toggle bug: wrap Checkbox in stopPropagation span for row click-to-toggle
- CollectPage: native checkbox → Checkbox component, border-2 → border on skill rows
- SyncPage: separator border-muted-dark → border-pencil-light/30, DiffItemRow index key → composite key
- UpdatePage: Card rotation → tilt prop, border-pencil/10 → border-muted, EmptyState for up-to-date
- UpdatePage: remove dead UpdatePageHeader component, Spinner import, outlined Card summary
- InstallForm: restructure layout with grouped sections and dashed separators
- HubManagerModal/SkillPickerModal/SearchPage/InstallPage/AuditRulesPage: minor design token alignment
2026-03-12 16:45:02 +08:00
Willie 095d076bc1 fix(ui): remove all left-border stripes, fix modifier HUD bug, refine components
Replace left-border colored stripes with severity dots across all pages
(AuditPage, AuditRulesPage, InstallForm, GitSyncPage, SkillsPage) and
components (Card accent variant, ConfirmDialog, Select). Card accent now
uses a thicker border instead of a left stripe.

Fix Cmd+S modifier HUD staying visible by resetting state immediately
after shortcut fires and adding a 2-second auto-dismiss safety timer.

Additional refinements: extract Checkbox/Select/Spinner/Tooltip into
standalone components, update Button link variant to pencil colors,
replace SkillsPage FilterChips with SegmentedControl connected, and
update style guide to mark left-border stripes as an anti-pattern.
2026-03-12 16:45:02 +08:00
Willie bb6b3f56d2 fix(ui): replace useEffect with render-time state adjustment in SkillsTable
Removes the anti-pattern of calling setState synchronously inside
useEffect to reset pagination when skills list changes. Uses React's
recommended "adjusting state during rendering" pattern instead, which
avoids cascading re-renders.
2026-03-12 16:45:02 +08:00
Willie 7ade470557 refactor(ui): rename oMLX references to skillshare-inspired
Remove external brand references from code comments, design tokens,
and style guide. The design philosophy is our own.
2026-03-12 16:45:02 +08:00
Willie acfbabd1b2 feat(skills): add ui-website-style skill with design system reference
Consolidate the UI dashboard and website design system guidance into a
dedicated skill. Moves STYLE_GUIDE.md from ui/ into the skill's
references/ directory so it lives alongside the actionable SKILL.md
that Claude uses for component selection, token usage, and page
structure decisions.
2026-03-12 16:45:02 +08:00
Willie cb8b5b530a feat(ui): add modifier keyboard shortcuts, HUD overlay, and sync progress animation
- Add Cmd/Ctrl+S shortcut to navigate to Sync page (cross-platform)
- Show floating HUD bar when holding Cmd/Ctrl to reveal modifier shortcuts
- Add indeterminate shimmer progress bar during sync operations
- Animate SVG pipeline dashed lines with flow effect while syncing
- Update KeyboardShortcutsModal to render modifier key combos (⌘/Ctrl)
- Add ScrollToTop button for long-scrolling pages
- Migrate page styles to use shared design tokens (radius, shadows)
2026-03-12 16:45:02 +08:00
Willie b4288ac7b1 fix(ui): redesign sidebar bottom bar with nav-consistent style
Replace horizontal icon+text buttons with vertical layout matching
the nav item style (icon + label, same padding/gap). Add keyboard
shortcuts toggle button and global shortcut hook integration.
2026-03-12 16:45:02 +08:00
Willie 99335ccf56 feat(ui): add sticky group headers in SkillsPage grouped view
Replace Virtuoso with GroupedVirtuoso for the grouped view so that
directory sub-headers stick below the toolbar while scrolling.
GroupedVirtuoso's TopItemList component is customized with the
measured toolbar height offset to position headers correctly.
2026-03-12 16:45:02 +08:00
Willie 314d6a3dff fix(sync): show duplicate skill names in collision message, fix vertical spacing
Display the actual duplicate skill name(s) in the "isolated by target
filters" info message so users can identify which skills collide.

Remove the extra fmt.Println() before backup section — ui.Header()
already includes a leading newline, so the previous blank line created
a double gap.

Also replace VirtualizedGroupedView with native DOM GroupedView using
sticky sub-headers that respect the toolbar height offset.
2026-03-12 16:45:02 +08:00
Willie 5369595bc1 fix(install): skip target dotdirs during skill discovery
Repos like pbakaus/impeccable commit .claude/skills/ alongside their
source skills, causing discoverSkills to find every skill twice (36
instead of 18). Fix by deriving known target dotdir names (.claude,
.cursor, .skillshare, etc.) from targets.yaml project_path values and
skipping them during filepath.Walk.

Non-target hidden dirs (.curated, .system — used by openai/skills) are
still discovered as before. Injection pattern avoids circular import
between config and install packages.
2026-03-12 16:45:02 +08:00
Willie d6616a7cf1 fix(ui): improve SegmentedControl dark mode visibility, adjust sticky padding
- Add border to active button in connected SegmentedControl so it's
  visible in dark mode (bg-surface was nearly invisible against container)
- Increase sticky toolbar bottom padding (pb-2 → pb-4) for breathing
  room between filter chips and content
2026-03-12 16:45:02 +08:00
Willie 4c41443b7d fix(ui): refine sticky toolbar spacing, soften SegmentedControl and Input styles
- Tighten sticky toolbar gaps (search mb-4→mb-2, chips mb-6→mb-0)
- SegmentedControl connected mode: add p-1 inner padding + gap-0.5,
  active state from solid black to white surface with shadow
- Input: border-radius 4px→8px, focus ring matches pencil palette
2026-03-12 16:45:02 +08:00
Willie d6cbfc82d9 feat(ui): add sticky search/filters toolbar on SkillsPage, clean up LogPage
Wrap search bar, sort dropdown, view toggle, and filter chips in a
sticky container so they stay pinned while scrolling through skills
in all three view modes (grid/grouped/table).

Also clean up LogPage: remove unused imports, simplify status rendering
from Badge to inline dot+text, add pagination page size control, and
streamline section comments.
2026-03-12 16:45:02 +08:00
Willie 3227400958 refactor(ui): extract PageHeader component, tone down Badge and StatusBadge
- Extract shared PageHeader with icon/title/subtitle/actions props,
  replacing duplicated header markup across all 16 pages
- Shrink Badge to text-xs with tighter padding for subtler appearance
- Change StatusBadge normal states (merged/copied/linked) to default
  grey variant — only anomalies (warning/danger) use color
- TargetsPage: move delete button to top-right, restore dashed separator
  between path and mode row
2026-03-12 16:45:02 +08:00
Willie dfd62ee19c fix(ui): compact TargetsPage card layout, remove version stat from dashboard
- Move filter link and skill count inline with sync mode dropdown,
  eliminating separate rows and the dashed separator
- Use ghost variant for Filters button to match neutral B/W theme
- Show filter tags with Edit link when filters exist, inline link when empty
- Remove redundant Version card from DashboardPage stats grid
2026-03-12 16:45:02 +08:00
Willie 6b2d94776a fix(ui): allow Select dropdown to expand for full descriptions, improve TargetsPage filters
- Change dropdown panel from w-full to min-w-full so it can grow
  wider than the trigger when descriptions need more space
- Remove truncate from option description text
- Restructure TargetsPage filter section: only show filter UI for
  merge/copy modes, add inline filter badge display with +/− labels
2026-03-12 16:45:02 +08:00
Willie 19a27202e8 feat(ui): redesign Select dropdown, add shared DialogShell/IconButton/Pagination/SegmentedControl
- Redesign Select with size variants (sm/md), B/W color scheme,
  dropdown animation, and consistent height with Button/Input
- Extract DialogShell for unified modal styling across all dialogs
- Add IconButton for icon-only actions with ghost/outline variants
- Add Pagination component for table views
- Add SegmentedControl for tab-like toggle groups
- Update Button: add link variant, border-2 for stronger presence
- Migrate all pages to use shared components, remove inline styles
2026-03-12 16:45:02 +08:00
Willie fff0711e36 feat(ui): add table view with pagination, virtualize grouped view, improve audit dialogs
Skills page gains a third "table" view with paginated list (10/25/50),
hover tooltips via createPortal, and localStorage persistence for the
selected view. Grouped view now uses Virtuoso for smooth scrolling with
large skill sets.

Install/audit dialogs refactored to card-based findings with severity
filter badges, structured grouping, and increased max-height. Confirm
dialog buttons bumped to medium size.
2026-03-12 16:45:02 +08:00
Willie 64a4c91c99 fix(ui): refine minimal redesign — dark mode B/W, link style, button polish
- Dark mode: replace blue accent with neutral gray for true B/W inversion
- Brighten dark mode semantic colors (success, warning, danger) for readability
- Links: replace wavy underlines with oMLX-style border-bottom (link-subtle class)
- Buttons: pill radius, outlined danger, subtle secondary/ghost hover
- Replace inline fontFamily monospace with global font-mono class (15+ files)
- Card: add overflow prop instead of global overflow-hidden removal
- ConfirmDialog/ExtrasModal: widen for better readability
- SkillsPage: neutral filter chips and badges (no blue/red in dark mode)
- BlockStamp/RiskMeter: consistent sizing with items-stretch
- Sidebar version: dynamic from API instead of hardcoded
2026-03-12 16:45:02 +08:00
Willie dfaf34215c docs: update website and built-in skill for extras first-class support
- diff.md: add --extras and --all flags
- status.md: add Extras section for sync status display
- doctor.md: add Extras health check section
- quick-reference.md: add Extras Management table and extras path
- project-skills.md: add extras to Mode Restrictions (supported) and directory structure
- sync-modes.md: add Extras Sync Modes section
- declarative-manifest.md: add Extras Configuration section
- SKILL.md: add extras commands to Quick Lookup table
2026-03-12 16:45:02 +08:00
Willie 46265ae2e7 feat(ui): match oMLX style — dark sidebar active, clean borders, 8px btn radius 2026-03-12 16:45:02 +08:00
Willie bcf72d52fc feat(ui): apply oMLX button palette — dark primary, outline secondary 2026-03-12 16:45:02 +08:00
Willie 773ce9ba08 chore(ui): final cleanup — remove CSS stubs and compat shims
- Remove all --color-postit-* and --color-tracked-* stub CSS variables
  from both @theme and .dark blocks in index.css
- Remove `postit` variant and `decoration` prop from Card.tsx
- Replace bg-postit Tailwind classes with bg-paper/bg-surface equivalents
- Replace animate-spin-slow/animate-pulse-gentle with standard animate-spin/animate-pulse
2026-03-12 16:45:02 +08:00
Willie fb34809b2f refactor(ui): rename HandButton→Button, HandInput→Input + remove deprecated aliases
- Rename HandButton.tsx → Button.tsx, export default function Button
- Rename HandInput.tsx → Input.tsx, rename exports: HandInput→Input,
  HandTextarea→Textarea, HandSelect→Select, HandCheckbox→Checkbox
- Rename internal interface names (ButtonProps, InputProps, etc.)
- Update all 21 import sites across components/ and pages/
- Remove deprecated `wobbly` and `colors` exports from design.ts
2026-03-12 16:45:02 +08:00
Willie e8a850d757 feat(ui): clean all pages — remove hand-drawn decorations
Replace wobbly->radius, colors->palette, animate-sketch-in->animate-fade-in.
Remove all fontFamily var(--font-hand/heading) inline styles, decoration="tape",
variant="postit", and decorative rotate transforms. Rewrite SkillsPage card
components to use uniform surface-background cards with accent border-l for
tracked skills, dropping the postit/trackedColors arrays and getRotation helper.
2026-03-12 16:45:02 +08:00
Willie ef4e51abcf feat(ui): simplify remaining components — remove hand-drawn styling
Replace wobbly→radius, colors→palette, animate-sketch-in→animate-fade-in,
animate-pulse-gentle→animate-pulse across Skeleton, Toast, ConfirmDialog,
EmptyState, ErrorBoundary, StreamProgressBar, FilterTagInput, BlockStamp,
RiskMeter, FileViewerModal, SkillPickerModal, HubManagerModal, InstallForm.
Remove fontFamily overrides (now inherited from body), decoration="tape"
props from Card, dashed borders, rotation transforms, and hard-coded shadows.
BlockStamp simplified to clean inline-flex badge, no rotation.
2026-03-12 16:45:02 +08:00
Willie cf92a221b2 feat(ui): simplify core components — Card, Button, Input, Badge
Replace hand-drawn skeuomorphic styles (wobbly borders, shadow-translate
hover effects, handwriting font) with clean, minimal equivalents using
the updated radius/shadows tokens. Preserve all props and keyboard
navigation for backward compatibility.
2026-03-12 16:45:02 +08:00
Willie 06ca4696e2 feat(ui): rewrite design tokens — radius, palette, clean CodeMirror theme
- design.ts: replace wobbly border-radius with clean radius constants (4-12px),
  add semantic palette export; keep deprecated colors/wobbly aliases for migration
- codemirror-theme.ts: switch font to SFMono stack, replace dashed gutter border
  with 1px solid, swap postit highlights for info-light/warning-light
- audit/helpers.ts: migrate from colors.blue to palette.info
2026-03-12 16:45:02 +08:00
Willie 8f8991382c feat(ui): rewrite CSS tokens — minimal palette, remove hand-drawn effects 2026-03-12 16:45:02 +08:00
Willie 7b6f0e8f09 feat(ui): swap Google Fonts from Inter to DM Sans 2026-03-12 16:45:02 +08:00
Willie 70abe44cd0 test: add E2E runbook for extras refactor (JSON purity, copy, project mode)
18-step runbook covering sync --all --json single-object output, copy mode
file verification, project mode extras lifecycle, auto-migration, and mode
validation via shared helpers.
2026-03-12 16:45:02 +08:00
Willie d97e5a7c33 refactor(extras): consolidate duplicate logic and fix sync --all --json output
- Move checkExtrasSyncStatus to sync.CheckSyncStatus (shared)
- Add sync.EffectiveMode helper to replace inline mode defaults
- Add config.ValidateExtraMode to centralize mode validation
- Fix sync --all --json outputting two separate JSON objects
  by merging extras into the skills JSON output
- Fix swallowed JSON decode error in handleExtrasSync
- Remove dead symlink check in CollectExtraFiles (filepath.Walk
  follows symlinks so the check was unreachable)
- Fix integration test extras paths to use extras/<name>/ layout
2026-03-12 16:45:02 +08:00
Willie 7f5e4650c9 docs: merge v0.16.15 content into v0.17.0 changelog and release notes 2026-03-12 16:45:02 +08:00
Willie 50bc394321 docs: add changelog and release notes for v0.17.0
Covers: first-class extras command group, project mode, TUI wizard,
deep integration with status/doctor/diff/sync, Web UI page, and
auto-migration from flat to nested directory layout.
2026-03-12 16:45:02 +08:00
Willie f6264fc954 test: add integration tests for collect, status, diff, doctor, migration 2026-03-12 16:45:02 +08:00
Willie 9f8970c6c0 docs: add extras command reference and update sidebar 2026-03-12 16:45:02 +08:00
Willie 69038611c3 feat(ui): add Extras page, API client, and Dashboard card
- ExtrasPage with list, sync, remove, and add-extra modal
- API client types and methods for extras endpoints
- Dashboard stat card showing extras count/files/targets
- Nav item and route registration
2026-03-12 16:45:02 +08:00
Willie dae3f502c1 feat(server): add REST API endpoints for extras management
- GET /api/extras — list extras with sync status
- GET /api/extras/diff — per-file diff for extras
- POST /api/extras — create new extra
- POST /api/extras/sync — sync extras (all or by name)
- DELETE /api/extras/{name} — remove extra from config
2026-03-12 16:45:02 +08:00
Willie a786c1fe79 feat(extras): add init TUI wizard, collect command, and sync --json
- extras init TUI: multi-step bubbletea wizard (name → target → mode → confirm)
- extras collect: reverse-sync local files from target back to extras source
  with --from, --dry-run flags and dual-mode (global/project) support
- sync extras --json: structured JSON output for sync extras command
- CollectExtraFiles in internal/sync with tests
2026-03-12 16:45:02 +08:00
Willie 163548a6ee feat(diff): integrate extras into diff TUI with separator and detail panel 2026-03-12 16:45:02 +08:00
Willie 18ee11037d feat(diff): add --extras and --all flags for extras diff
Adds extras diff collection, plain text rendering, and JSON output.
--all implies --extras. Project mode supported via ExtrasSourceDirProject.
2026-03-12 16:45:02 +08:00
Willie 4af609e318 feat(doctor): add extras source/target health checks
Check each configured extra's source directory exists and count its
files; warn when one or more target parent directories are unreachable.
Runs in both global and project mode after the main doctor checks.
2026-03-12 16:45:02 +08:00
Willie d8cc25abd3 feat(status): show extras sync status in status output 2026-03-12 16:45:02 +08:00
Willie f4e54a1810 test: add integration tests for extras init, list, remove, sync 2026-03-12 16:45:02 +08:00
Willie c02b918057 feat(sync): add project mode support for sync extras and sync --all -p
cmdSyncExtras now parses mode args and auto-detects project mode via
projectConfigExists. Global logic is extracted into cmdSyncExtrasGlobal;
new cmdSyncExtrasProject handles project-scoped extras using
config.LoadProject and config.ExtrasSourceDirProject, with relative
target paths resolved against the project root.

sync --all in project mode now defers a cmdSyncExtras("-p", ...) call
instead of printing a warning, so extras are also synced.
2026-03-12 16:45:02 +08:00
Willie 18d54bd293 feat: implement extras init, list, and remove commands
- extras init: create new extra with --target/--mode flags, global + project mode
- extras list: show all extras with sync status detection, --json support
- extras remove: remove extra from config with --force confirmation
2026-03-12 16:45:02 +08:00
Willie f275435d6f feat(schema): add extras definition to config and project-config JSON schemas 2026-03-12 16:45:02 +08:00
Willie 0fcf6d1ee3 feat(sync): update extras source path to extras/<name>/ with auto-migration 2026-03-12 16:45:02 +08:00
Willie 6ece5c3e44 feat(config): add extras directory migration from flat to nested layout
Moves legacy extras dirs (configDir/name/) into configDir/extras/name/.
Idempotent: skips already-migrated dirs, warns on conflicts.
2026-03-12 16:45:02 +08:00
Willie 482778e50c feat(config): add extras name validation with reserved words and regex
ValidateExtraName rejects empty names, reserved words ("skills", "extras"),
and names that don't start with alphanumeric or contain invalid characters
(slashes, dots, spaces, leading dash/underscore). ValidateExtraNameUnique
prevents duplicate extra names in config.
2026-03-12 16:45:02 +08:00