Skip to content

feat: add release feature notifications#468

Draft
nieomylnieja wants to merge 10 commits into
mainfrom
add-new-feature-and-new-version-notifications
Draft

feat: add release feature notifications#468
nieomylnieja wants to merge 10 commits into
mainfrom
add-new-feature-and-new-version-notifications

Conversation

@nieomylnieja

@nieomylnieja nieomylnieja commented May 21, 2026

Copy link
Copy Markdown
Collaborator

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.

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.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants