Skip to content

feat(updates): show what's new after an update - #601

Merged
nixuuu merged 1 commit into
feat/whats-newfrom
feat/whats-new-ui
Nov 12, 2026
Merged

nixuuu merged 1 commit into
feat/whats-newfrom
feat/whats-new-ui

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

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

  • Desktop tracks its own 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.
  • Web tracks the web build version per gateway in localStorage. Its fixed public BFF notes endpoint fetches only Pages, without gateway credentials or a GitHub API fallback.
  • Mobile tracks the JS bundle version per install, independently of pairing, covering OTA and store updates. Add App updates to shared Settings navigation. The existing candidate-OTA notes preview also uses structured Pages notes. Changes are JS-only; no native files, modules, dependencies or app/fingerprint configuration changed.
  • First launch, unknown history and downgrades establish a baseline. Dismissal/relaunch retains the last update range for later visits. New / Improved / Fixed entries are deduplicated, with small scope tags and PR links. Recent releases stop at the running version. Loading, missing/truncated history, errors, retry and full GitHub Releases links are explicit.
  • Reuse the shared dialog/sheet, disclosure, controls, theme and motion tokens, including reduced motion. The launch notice floats above content without changing layout. The phone closes Updates before presenting What's new.

Validation

  • 15 focused unit tests passed, 77 assertions across the stack, including desktop history durability/restarts, invalid local storage, many skipped versions, channel changes, bounded archive retention after GitHub pruning, and archive-read failures. No web UI tests added.
  • bun install --frozen-lockfile, repository bun run lint, bun run format:check, changed-mobile-file ESLint and git diff --check passed. The Pages workflow passes actionlint with actionlint 1.7.12 and shellcheck 0.11.0.
  • Reviewed the code paths for scope isolation, fixed public fetch destinations, IPC authorization, safe PR links, first install, development builds, downgrade, channel promotion, publication lag, missing history, network/storage failure and retained ranges.
  • The complete stack passed gen:check, typecheck, lint, format:check and the production web build in the assigned remote review checkout, using nice -n 10. Full test shards run in CI.
  • Real Chromium review with fixture notes: .133 → .146 shows 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.
  • EAS CLI 27.4.1 fingerprints were generated at the actual dev base and feature head, in the same local path using nice -n 19. iOS stays 6ddec9ef559ee0095ac33e94ff9418a942053b17; Android stays 5f6eae3ab278f1cd543e9ed763f923a319b65ec9. No native build or OTA publication was performed. Native mobile rendering and a packaged Electron launch were not exercised.
  • The assigned remote review environment was cleaned up: browser closed, own web/gateway processes stopped, PostgreSQL container removed, checkout and fixture artifacts removed, all three assigned ports free. Verification artifacts stay outside the repository.

Copy audit (§8)

  • No post-update explanation → Updated to <version> with See what's new and a labelled Dismiss update notice control. One clear outcome and one action; no blocking launch dialog.
  • Developer release headings/commit prefixes → New, Improved, Fixed, capitalized plain summaries, separate scope tags and PR links. Navigation labels use the requested What's new; actions use verbs. No new glossary term, jargon, humour or color-only meaning.
  • Missing/error notes → 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 say No changes listed for this version. Full releases remain reachable.
  • From <previous> to <current> records the actual range; Recent releases separates manual browsing. Dates use Intl formatting. No duplicated status or native/OTA implementation details on the surface.
  • Real browser review covers short/typical/long summaries and scopes, version range labels, shrinkable columns, truncated tags, compact controls, light/dark, desktop/phone widths, focus/Escape and overlay seams. Long summaries wrap; tags truncate with the complete scope retained in the title; actions and the footer stay readable. No humour or meaning conveyed by color alone.

Related: #486, #583

@nixuuu
nixuuu added this pull request to stack #602 November 12, 2026 23:27
@nixuuu
nixuuu force-pushed the feat/whats-new-ui branch 2 times, most recently from a323bc3 to 96761ac Compare November 12, 2026 23:37
@nixuuu
nixuuu marked this pull request as ready for review November 12, 2026 23:54
@nixuuu
nixuuu merged commit f827274 into dev Nov 12, 2026
12 checks passed
@nixuuu
nixuuu deleted the feat/whats-new-ui branch November 12, 2026 23:55
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
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.

1 participant