Repository navigation
feat(updates): show what's new after an update - #601
Merged
Merged
Conversation
nixuuu
force-pushed
the
feat/whats-new-ui
branch
from
November 12, 2026 23:32
0ee5a94 to
0b3665d
Compare
nixuuu
force-pushed
the
feat/whats-new-ui
branch
2 times, most recently
from
November 12, 2026 23:37
a323bc3 to
96761ac
Compare
nixuuu
force-pushed
the
feat/whats-new-ui
branch
from
November 12, 2026 23:38
96761ac to
7fe3225
Compare
nixuuu
marked this pull request as ready for review
November 12, 2026 23:54
nixuuu
added a commit
that referenced
this pull request
Nov 16, 2026
## Change Opening mobile “What's new” crashed after release notes loaded on the Hermes runtime bundled with React Native 0.88.1. The release note ordering used `Array.prototype.toSorted`, which is unavailable in the pinned Hermes version. The shared domain code now sorts copied arrays with `sort`, preserving the input index, and includes a regression test that runs with `toSorted` removed. Mobile documentation records the runtime compatibility requirement. ## Verification - `bun install --frozen-lockfile` - `bun run check:tmp ./packages/domain/src/release/notes.test.ts` — 8 passed, 47 assertions - `bun run --filter @canopy/domain typecheck` - `bun run --filter @canopy/mobile typecheck` - `bunx oxlint packages/domain/src/release/notes.ts packages/domain/src/release/note-range.ts packages/domain/src/release/notes.test.ts` - targeted mobile ESLint for `apps/mobile/src/features/updates/WhatsNew.tsx` - formatting and `git diff --check` - Full mobile Expo lint remains blocked by 111 existing errors in unrelated files; the edited mobile file passes targeted ESLint. Fixes: #601
nixuuu
added a commit
that referenced
this pull request
Nov 18, 2026
## Change The “Updated to …” notice disabled window dragging for as long as it remained visible. Remove its `data-window-no-drag` marker: the notice sits in the bottom corner and does not cover the title bar. Dismissal and the “See what's new” action keep their existing behavior. Update the desktop documentation and its status description to include this notice alongside other nonblocking toasts. Fixes: #601 ## Verification - Passed targeted lint and formatting for `WhatsNewHost.svelte`, plus `git diff --check`. - Reviewed the actual component and window-region CSS in an isolated Chromium fixture at desktop and phone widths, in light and dark themes. Restoring the original marker reproduced the disabled drag region; removing it restored `app-region: drag`. Both notice actions worked and no horizontal overflow appeared. - Native window movement in packaged Electron was not exercised. Full repository checks and builds are left to CI. - Copy audit: not applicable; no UI text changes.
nixuuu
added a commit
that referenced
this pull request
Nov 24, 2026
## Change The post-update notice could cover the composer's Continue button on narrow screens. It now shows the installed version, an underlined **View changes** action and a separate dismiss button in one row when they fit. Narrow web and desktop windows and the native app reserve space below the content. The action wraps beneath the version when space is tight. **View changes** opens **What's new** with the changes since the previous installed version. ## Copy audit Passed the UI copy audit. “See what's new” → “View changes” gives the action a short verb and object. The installed version stays visible, and the dismiss button has its own accessible name. ## Verification - Checked the shared renderer in Chromium at 320, 390, 1024 and 1280 px with short and long versions, enlarged text, light and dark themes, and reduced motion. The notice height at 1280 px fell from 82 to 42 px. - Opened the notes with keyboard and touch, dismissed the notice, and reopened the same version range from Settings. Verified that Continue remains reachable on narrow screens. - Mobile typechecking, scoped lint and formatting passed. Checked native layout with Yoga across 27 combinations of width, text scale and version length. - On-device appearance, touch and motion still need verification. The Android emulator was in use and this worker has no iOS simulator. The full repository gate runs in CI. Fixes: #601
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.
After an update, Canopy now offers a dismissible “Updated to …” card that opens What's new for the actual previous/current version range. The dialog never opens automatically. The same grouped notes remain available in Settings → App updates and the Updates popover, with recent releases of the running build's channel.
This is the UI layer of the two-PR What's new stack, based on
feat/whats-new. Merge both layers together into dev.Behavior
app.getVersion()in its Electron profile using the shared local-preference helper, across local/remote gateway switches. Linked-computer updates do not trigger its notice. Typed, sender-authorized IPC exposes only that history and the fixed, validated Pages notes JSON; renderer CSP stays unchanged.Validation
bun install --frozen-lockfile, repositorybun run lint,bun run format:check, changed-mobile-file ESLint andgit diff --checkpassed. The Pages workflow passes actionlint with actionlint 1.7.12 and shellcheck 0.11.0.gen:check,typecheck,lint,format:checkand the production web build in the assigned remote review checkout, usingnice -n 10. Full test shards run in CI..133 → .146shows a dismissible card and grouped notes; duplicate PRs and other-channel entries are excluded; first install is silent; dismissal/reload preserves the range without replaying the card; Settings → App updates and the Updates popover open the notes; Recent releases includes current and older versions. Reviewed light/dark, 1440×900 desktop and 390×844 phone widths, long summaries/scopes, wrapping, overlay seams, footer, focus and Escape. Notes requests use the fixture endpoint; the isolated updater source intentionally remains unavailable. No live GitHub API data was used.nice -n 19. iOS stays6ddec9ef559ee0095ac33e94ff9418a942053b17; Android stays5f6eae3ab278f1cd543e9ed763f923a319b65ec9. No native build or OTA publication was performed. Native mobile rendering and a packaged Electron launch were not exercised.Copy audit (§8)
Updated to <version>withSee what's newand a labelledDismiss update noticecontrol. One clear outcome and one action; no blocking launch dialog.New,Improved,Fixed, capitalized plain summaries, separate scope tags and PR links. Navigation labels use the requestedWhat's new; actions use verbs. No new glossary term, jargon, humour or color-only meaning.Could not load release notes. Retry or view releases on GitHub./Some release notes are not available yet. Retry or view releases on GitHub.The text states the issue and recovery action. Empty notes sayNo changes listed for this version.Full releases remain reachable.From <previous> to <current>records the actual range;Recent releasesseparates manual browsing. Dates use Intl formatting. No duplicated status or native/OTA implementation details on the surface.Related: #486, #583