feat: add release feature notifications#468
Draft
nieomylnieja wants to merge 10 commits into
Draft
Conversation
Show a cached TTY notification after successful commands when a newer sloctl release includes feature updates. Add coverage for notifier behavior and CLI execution flow, including end-to-end notification tests.
…ew-version-notifications
Detect how sloctl was installed so notifications can suggest the right upgrade command for Homebrew, `go install`, or the install script fallback.
Show notifications for releases without feature entries and include bug-fix sections when extracting release notes. Refresh the plain-text styling and wrap long install commands to fit narrower terminals.
Run update notifications before command execution and let users upgrade, skip, or defer until the next version. Replace the GitHub proxy tests with deterministic TTY fixtures and a local release fixture server.
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.
Motivation
Currently sloctl users have no automated way to find out about new versions of
the CLI. This PR aims at improving this UX gap.
Summary
Added an interactive update prompt that appears before command execution when a
new sloctl release is available. The prompt shows release highlights, defaults to
running the update command, and lets users skip once or skip until the next
version.
Updated notification rendering to use the shared sloctl terminal theme across
Huh and Glamour, with light/dark color handling and cleaned-up release-note
display.
Moved CLI-visible notification behavior into Bats coverage with full expected
stderr fixtures.
Testing
Covered the update prompt, release-note parsing/display, cache behavior,
install-command selection, and skip/update actions in Bats unit tests.
Release Notes
Added an interactive sloctl update prompt that displays release highlights and
lets users upgrade, skip once, or skip until the next version.