Skip to content

fix: sort skills alphabetically in the /skills panel - #1619

Merged
avoidwork merged 1 commit into
mainfrom
fix/tui
Oct 31, 2026
Merged

avoidwork merged 1 commit into
mainfrom
fix/tui

Conversation

@avoidwork

Copy link
Copy Markdown
Owner

Description

The /skills panel rendered skills in discovery order because the catalog sort groups by location (.skills last) and returns 0 for every pair when all skills share a location. This change sorts the normalized items alphabetically in the panel, matching the slash-command autocomplete ordering in app.js.

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor (no functional changes)
  • Performance improvement
  • CI / build / tooling

Testing

Added a regression test in tests/unit/tui/skillsPanel.test.js that feeds skills out of order and asserts the rendered output is alphabetical. The full TUI suite (449 tests) passes, including the new test.

Coverage

  • Line coverage maintained

Checklist

  • npm run lint passes
  • Tests pass with maintained line coverage
  • No forbidden patterns used
  • Conventional Commit style applied

The /skills view rendered skills in discovery order because the catalog
sort groups by location (.skills last) and returns 0 for every pair when
all skills share a location. Sort the normalized items by label in the
panel, matching the slash-command autocomplete ordering.
@avoidwork avoidwork added the bug Something isn't working label Oct 31, 2026
@avoidwork avoidwork self-assigned this Oct 31, 2026
@avoidwork
avoidwork merged commit 95e08bd into main Oct 31, 2026
3 checks passed
@avoidwork
avoidwork deleted the fix/tui branch October 31, 2026 15:15
@avoidwork avoidwork mentioned this pull request Oct 31, 2026
6 of 12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant