Skip to content

feat(tui): package details view with version selection#62

Merged
DecampsRenan merged 3 commits into
mainfrom
package-details-version-select
Apr 1, 2026
Merged

feat(tui): package details view with version selection#62
DecampsRenan merged 3 commits into
mainfrom
package-details-version-select

Conversation

@DecampsRenan
Copy link
Copy Markdown
Owner

Summary

  • Pressing Enter on a search result now opens a details page instead of installing immediately, showing package metadata: description, author, license, weekly downloads, GitHub stars, and repo link
  • The version list is displayed as a table with filterable input; each row shows the publication date, all dist-tags (latest, next, beta…) with latest always first, and a supply-chain warning for releases under 7 days old
  • Selecting a version with Enter installs package@version; the search result list is also reformatted as a table with Package / Latest / Description columns

Test plan

  • spm add → type a query → results appear as a table
  • Press Enter on a result → details page loads with metadata, downloads, stars
  • Navigate version list, filter with text input, confirm a version installs pkg@version
  • Verify warning appears for versions published within the last 7 days
  • Verify latest tag always appears before other dist-tags

🤖 Generated with Claude Code

DecampsRenan and others added 3 commits April 1, 2026 15:12
When pressing Enter on a search result, opens a details page showing
package metadata (description, author, license, weekly downloads, GitHub
stars, repo link) and a scrollable, filterable version list. Each version
displays its publication date with a supply-chain warning for releases
under 7 days old, and all dist-tags (latest, next, beta…) with latest
always shown first. Pressing Enter on a version installs package@version.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
After the user selects a package version via the interactive add flow,
return an empty view to wipe the search/details TUI from the terminal,
then route the add command through progress.Run() so install output
renders with the same 5-line gradient display as the install command.
Translate French strings to English, add tests for search utilities
and model helpers, update CHANGELOG and README for the new package
details view.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@DecampsRenan DecampsRenan merged commit d026dd7 into main Apr 1, 2026
7 checks passed
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.

1 participant