feat(selfupdate): render changelog inline in update modal#139
Merged
Conversation
Operators currently see only a small "Release notes ↗" link in the update modal. Clicking it opens GitHub in a new tab — useful, but friction-full when you want a quick "what's changing?" before hitting Update. Fetch the release body from the GitHub Releases API, cap it at 16 KiB so a runaway changelog can't bloat /api/version/check, and render it inline in the modal. Markdown is rendered via a small allowlist subset of GitHub-flavored markdown — headings, bullet lists, bold, inline code, and links (routed through safeHref so javascript: URLs can't sneak in). Anything outside the allowlist lands as escaped plain text; the existing release-notes link is kept for the full formatted view. The inline block is a collapsible <details> default-open, scrollable if long, so it doesn't push the primary Update button below the fold on short viewports. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Details
` (default-open) so operators see what's changing before pressing Update.Why
Operators asked: "I want to read the changelog before I click Update, not after." The old modal only had a tiny link to GitHub — clicking it opens a new tab, which breaks the flow when all you want is a 5-second glance at what's in the release.
Safety
Test plan
🤖 Generated with Claude Code