Skip to content

feat(appstore): catalogue list shows name+headline only with view pointer (PILOT-404, PILOT-405)#275

Merged
TeoSlayer merged 1 commit into
mainfrom
feat/pilot-404-405-catalogue-headline-list
Jun 17, 2026
Merged

feat(appstore): catalogue list shows name+headline only with view pointer (PILOT-404, PILOT-405)#275
TeoSlayer merged 1 commit into
mainfrom
feat/pilot-404-405-catalogue-headline-list

Conversation

@TeoSlayer

Copy link
Copy Markdown
Collaborator

Summary

  • PILOT-404: The description field in catalogue.json IS the headline — no schema change needed; it's already a one-liner teaser and is used as-is.
  • PILOT-405: Changed pilotctl appstore catalogue text-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.
  • --json output is unchanged (still emits the raw apps array).

Changes

  • cmd/pilotctl/appstore_catalogue.go: Replace the verbose multi-line loop with a single fmt.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+description
    • TestCmdAppStoreCatalogueTextViewPointerHint — asserts the view-pointer hint appears
    • TestCmdAppStoreCatalogueJSONUnchanged — asserts --json output still parses as a valid array

Test plan

  • GOWORK=off go build ./cmd/pilotctl/... — passes
  • GOWORK=off go test -race ./cmd/pilotctl/... — all tests pass (12.9s)
  • New tests exercise both the headline-only format and the view-pointer hint

🤖 Generated with Claude Code

…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>
@TeoSlayer TeoSlayer requested a review from Alexgodoroja as a code owner June 17, 2026 08:44
@TeoSlayer TeoSlayer merged commit 129af20 into main Jun 17, 2026
11 of 12 checks passed
@TeoSlayer TeoSlayer deleted the feat/pilot-404-405-catalogue-headline-list branch June 17, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants