Pack audit fixes — categories, nav-dependency copy, Delete test#320
Pack audit fixes — categories, nav-dependency copy, Delete test#320
Conversation
Three follow-ups from the post-Fun-Layer audit: * **Categories**: move Home Row Mods from the stale "Gallery" label to "Ergonomics"; add Auto Shift Symbols there too (both reduce reach). Move Window Snapping and Mission Control from "Productivity" to "Navigation" — they're both spatial navigation. Vim Navigation is no longer the lone pack in its category; Gallery now shows ~three packs each in Ergonomics / Navigation / Layers plus Productivity. * **Nav-dependency copy**: add a line to Window Snapping, Mission Control (already done), Delete Enhancement, Numpad, Symbol, and Fun shortDescriptions explaining that Space-to-nav activation requires a Leader pack (Vim Navigation, KindaVim, or Neovim Terminal) to be on. Without this the user could install e.g. Numpad standalone, hold Space, get nothing, and not know why. * **Delete Enhancement runtime behavior test**: covers the only pack that lacked one. Asserts Space + bspc → `del` (default Forward Delete preset). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Code Review — PR #320: Pack audit fixes (categories, nav-dependency copy, Delete test)OverviewThree focused follow-ups from the post-Fun-Layer audit: category reclassification for four packs, dependency copy added to five ✅ What's good
🔍 Issues to fix1. Inconsistent "on" in dependency copy (Window Snapping) All five packs should use identical phrasing, but Window Snapping drops "on":
2. New test only covers the positive path The pack's headline promise is two things: "Regular Delete stays as-is" and "Leader+bspc → del." The test only asserts the second. Compare with XCTAssertTrue(output.contains("caps"), ...)
XCTAssertFalse(output.contains("esc"), ...)A second assertion (or a companion test) that plain // Verify base-case: plain bspc should NOT produce 'del'
let baseEvents = try simulate(
collectionIDs: [RuleCollectionIdentifier.deleteRemap],
script: "↓bspc 🕐30 ↑bspc 🕐30"
)
XCTAssertFalse(outputKeys(baseEvents).contains("del"),
"Plain bspc without Leader should NOT produce del; got: \(outputKeys(baseEvents))")💡 Pre-existing note (no action required now)
SummaryTwo actionable items before merge:
Everything else looks correct and consistent with project conventions. |
Summary
Three follow-ups from the post-Fun-Layer audit:
1. Category cleanup
Gallery(stale)ProductivityProductivityProductivityGallery now groups more evenly — ~3 packs per category across Ergonomics / Navigation / Layers plus the single-remap Productivity set. Vim Navigation is no longer alone.
2. Nav-dependency copy
Five packs need a Leader pack (Vim Navigation / KindaVim / Neovim Terminal) on for Space→nav activation, but didn't say so. Added a short dependency line to each
shortDescription:Mission Control already had this from the collision fix in #319.
3. Delete Enhancement runtime behavior test
Was the only pack without one. Asserts
Space + bspc → del(default Forward Delete preset).Test plan
swift testpasses (420 tests)🤖 Generated with Claude Code