Skip to content

feat(editor): show release notes after version upgrades - #201

Merged
fcoury merged 2 commits into
mainfrom
fcoury/whats-new
Aug 14, 2026
Merged

fcoury merged 2 commits into
mainfrom
fcoury/whats-new

Conversation

@fcoury-oai

Copy link
Copy Markdown
Collaborator

Red users currently have to discover release changes outside the editor, and there is no persistent way to announce a newly installed version once without interrupting every launch.

What changed

  • Open a branded, responsive What’s New panel once for each installed version, and record the version only after its first frame reaches an interactive or authenticated detached client.
  • Render the exact bundled CHANGELOG.md section immediately, refresh the matching GitHub release asynchronously, preserve skipped releases, and fall back safely when the network or release is unavailable.
  • Add highlights/full-changelog views with clickable tabs, keyboard and mouse scrolling, link navigation, theme-correct surfaces, responsive spacing, and scroll progress.
  • Expose :whats-new, :changelog, and a command-palette entry, plus show_whats_new and fetch_release_notes configuration toggles.
  • Preserve crash recovery, detached-session authentication, legacy preferences compatibility, compact terminals, and the shared dialog footer behavior.

How to Test

  1. Launch Red with a fresh configuration directory or remove last_seen_version from ~/.config/red/preferences.json; confirm the release panel appears immediately with the current version, Red branding, and bundled highlights.
  2. Close the panel and restart the same version; confirm it does not reappear, then run :whats-new and :changelog to reopen it manually.
  3. Press Tab or click each tab; confirm the full changelog opens, the footer changes to Tab Highlights, links remain navigable with [ / ], and long notes show scrolling progress.
  4. Set show_whats_new = false and restart; confirm automatic presentation is suppressed while :whats-new still works. Set fetch_release_notes = false to verify offline bundled notes.
  5. Resize to a compact terminal and switch between the Red and GitHub Light themes; confirm the modal stays inside the viewport and every non-code cell retains the same dialog background.

Verification

  • cargo test -p red --target-dir /private/tmp/red-whats-new-target --quiet — 1,360 library tests and all integration suites passed.
  • CARGO_TARGET_DIR=/private/tmp/red-whats-new-target cargo clippy --all-targets --all-features -- -D warnings — passed without warnings.
  • Interactive, detached, live GitHub-release, dark-theme, light-theme, full-changelog, and compact-terminal tmux smoke tests passed.

@fcoury
fcoury merged commit 02675ce into main Aug 14, 2026
25 checks passed
@fcoury
fcoury deleted the fcoury/whats-new branch August 14, 2026 19:11
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