feat(appstore): catalogue list shows name+headline only with view pointer (PILOT-404, PILOT-405)#275
Merged
Conversation
…nter (PILOT-404, PILOT-405) Replace the verbose multi-line catalogue listing with a compact one-line-per-app format (<id> <description>) followed by a 'Run pilotctl appstore view <id> for full details.' hint. JSON output is unchanged. Three tests added to cover the new format, the view-pointer hint, and JSON pass-through. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
descriptionfield in catalogue.json IS the headline — no schema change needed; it's already a one-liner teaser and is used as-is.pilotctl appstore cataloguetext-mode output from a verbose multi-line block per app to a compact one-line-per-app format:<id> <description>, followed by a footer hint:Run 'pilotctl appstore view <id>' for full details.--jsonoutput is unchanged (still emits the raw apps array).Changes
cmd/pilotctl/appstore_catalogue.go: Replace the verbose multi-line loop with a singlefmt.Printf("%-40s %s\n", e.ID, e.Description)per app, plus the footer hint.cmd/pilotctl/zz_appstore_cmds_test.go: Three new tests:TestCmdAppStoreCatalogueTextOneLinePerApp— asserts one line per app with id+descriptionTestCmdAppStoreCatalogueTextViewPointerHint— asserts the view-pointer hint appearsTestCmdAppStoreCatalogueJSONUnchanged— asserts--jsonoutput still parses as a valid arrayTest plan
GOWORK=off go build ./cmd/pilotctl/...— passesGOWORK=off go test -race ./cmd/pilotctl/...— all tests pass (12.9s)🤖 Generated with Claude Code