Summary
The drawer's What's new page shows the latest releases at any time, grouped under New, Improved and Fixed. Items can carry a Take me there link straight to the feature. While there are notes the user hasn't read, the menu tags the row "N new"; reading the page clears it. It is never tagged for someone who just installed Scout.
Until 2026-11-22 a full-screen What's new sheet also popped up once, at the first calm moment after an update. That pop-up is gone from the code on develop: Spotlight (spotlight) replaced it with full-screen images and videos tied to one release. The sheet still opens by its link.
This replaced the release-notes post that used to be pinned to the community board. Those old posts stay where they are, but no new ones are made.
Status
Shipped in v1.1.96 (built 2026-09-27, eb7e2196) and in every store build since, including the current 1.1.121,
with the launch pop-up. On develop (2026-11-22, feat/spotlight) the pop-up is removed and the drawer page marks
notes read; that reaches users with the next store build (or OTA to it). The backend endpoint is deployed
(GET /api/release-notes answers on prod) and keeps ?after=, which store builds up to 1.1.121 still call for their
pop-up. No feature flag.
User-facing surfaces
- Drawer → What's new:
mobile/app/(drawer)/whats-new.tsx, deep linkscout://whats-new, a tile in the drawer's footer bar, after Settings (drawerSections.ts:394-403,DRAWER_FOOTER), visible to everyone. The latest 3 releases, newest first, under the standard drawer header, over the ember backdrop. Loading skeleton, error with Try again, empty state. - The menu's "N new" tag on that row (
drawerSections.ts:403), counted byuseUnseenReleaseNotes(mobile/src/hooks/useWhatsNew.ts:13). - The sheet by its link,
scout://whats-new-modal:mobile/app/whats-new-modal.tsx, afullScreenModal, layout "A + Embers + Got it" ofmobile/research/whats-new-lab.html: an X, "What's new" and the release date, the latest releases, a gold Got it. Nothing opens it on its own any more.
How it works
- Publishing. The deploy-apps skill drafts structured notes and publishes them once the release is installable
with
npm run release:notes -- --file <json>(backend/scripts/release-notes-publish.ts). The same file can carry the release's spotlights (spotlight). The script validates locally, then POSTs toPOST /api/admin/release-notesthroughProdAdmin. Every write goes throughvalidateReleaseNotes(backend/src/release-notes/release-notes.validate.ts):- the version looks like
1.2.3 - sections are titled New / Improved / Fixed
- each item has 1–3 bullets and a known icon
- links must be
scout://deep links, never the web (release-notes.fields.ts, shared with spotlight buttons) - republishing a version replaces it, which is how a typo gets fixed
- the version looks like
- Reading.
GET /api/release-notes?upTo=<installed>[&after=<last read>]is public (release-notes.controller.ts:25).selectReleaseNotes(release-notes.service.ts:32) compares versions numerically (1.1.10 > 1.1.9). Withafterit returns every version in (after, upTo]; without it, the latest 3 ≤ upTo. It never returns notes newer than the installed app. - Remembering what was read. The app persists
lastSeenReleaseVersionon the device, next totutorialSeen.- Finishing onboarding records the installed version (
store.ts,setTutorialSeen), so a brand-new user's menu starts with no tag. - The drawer page records the newest release it shows, once the notes are on screen
(
(drawer)/whats-new.tsx,setLastSeenReleaseVersion). Not the installed version: before this version's notes are published the page shows older ones, and the late notes must still count as new. It never moves the record backwards, and records nothing when the notes fail to load.
- Finishing onboarding records the installed version (
- Counting the unread (
mobile/src/utils/whatsNewGate.ts):unseenNotesQuery(:36): nothing while onboarding is unfinished, or when this version was already read (or the app was downgraded); "everything since last read" for an update; "latest only" for a device with no record.pickUnseenNotes(:44) keeps, for that last case, only the installed version's notes. A version with no notes (a hotfix) counts nothing.
- Take me there pushes the feature's screen from the drawer page. From the linked sheet it dismisses the sheet,
then navigates (
router.dismiss()thenrouter.navigate(path)): arouter.replacefrom a root modal would stack a second drawer navigator over Home. - Dates are formatted in UTC (
formatReleaseDate), so a release published for Sep 27 never reads "Sep 26" in the US. - Malformed data never crashes the page.
sanitizeReleaseNotesdrops any item or section the app cannot render.
Data model
release_notes (migration 20260927120000_release_notes), one row per version: version (PK text), released_at,
sections JSONB, spotlights JSONB (default [], migration 20261122120000_release_note_spotlights, see
spotlight), created_at, updated_at. sections = [{ title: New|Improved|Fixed, items?: [{ icon, heading, bullets[1-3], link?: { label, url: scout://… } }], fixes?: string[] }]. On the device: lastSeenReleaseVersion in
the persisted store.
API surface
| Method | Path | Auth | Purpose |
|---|---|---|---|
| GET | /api/release-notes?upTo=1.1.96&after=1.1.93 |
none | Releases in (after, upTo], newest first (the unread count; the old pop-up) |
| GET | /api/release-notes?upTo=1.1.96 |
none | Latest 3 releases ≤ upTo |
| POST | /api/admin/release-notes |
AdminGuard |
Validate and upsert one release's notes (and spotlights) |
Key files
backend/src/release-notes/:release-notes.validate.ts(the shape and the gate),release-notes.fields.ts,release-notes.service.ts,release-notes.controller.ts,release-notes.module.tsbackend/scripts/release-notes-publish.ts:npm run release:notesmobile/src/utils/whatsNewGate.ts: the unread count, dates, sanitising, puremobile/src/hooks/useWhatsNew.ts,mobile/src/api/releaseNotes.ts,mobile/src/query/queries/releaseNotes.tsmobile/src/components/whats-new/:WhatsNewContent.tsx(shared body),whatsNewIcons.ts(must matchRELEASE_NOTE_ICONS)mobile/app/(drawer)/whats-new.tsx,mobile/app/whats-new-modal.tsx- Design:
mobile/research/whats-new-lab.html(variant "A + Embers + Got it", chosen 2026-09-27)
Configuration and flags
No feature flag. DRAWER_LIMIT = 3 (release-notes.service.ts:8). The notes are cached for 5 minutes on the device.
Edge cases and known limits
- Read means shown. The tag clears once the page shows the notes, scrolled or not.
- A failed load clears nothing: the page shows its error and the tag stays.
- Notes published late still count. Until they are published, the tag has nothing to count.
- Once per version, per device. The record lives on the device, so a reinstall starts fresh, and a reinstalled returning user is treated as new (onboarding again).
- A hotfix release with no notes counts nothing, even to a user who updated to it.
- Existing users with no record count only the current release.
- The icon lists must match. The backend's
RELEASE_NOTE_ICONSand the app'sWHATS_NEW_ICONSare two copies in two projects. An unknown name falls back to a sparkle on the device, but the validator refuses it first.
What this feature does NOT do
- It does not pop up after an update any more (from the next store build). Spotlight does that, with images, once per release. Store builds up to 1.1.121 still pop the sheet up once.
- It is never tagged for a brand-new install. Finishing onboarding marks the installed version as read.
- It is not a push notification. Nothing is sent.
- It does not post to the community board any more. Old RELEASE NOTES posts remain but are no longer created.
(
release:announcestill exists inbackend/scriptsbut the deploy skill no longer runs it.) - It does not show notes for versions newer than the installed app, even if they are published.
- There are no images, promos or per-user content in the notes. Just headings, bullets and in-app links. (Images and videos are Spotlight's.)
Tests that cover it
backend/src/release-notes/release-notes.validate.spec.ts: every validation rule, and numeric version comparison.backend/src/release-notes/release-notes.service.spec.ts: version range, newest first, never newer than installed, drawer limit, malformed versions.backend/src/release-notes/release-notes.controller.spec.ts: query passing, 400 on bad notes with nothing written.backend/src/release-notes/release-notes.db.spec.ts(real Postgres): migration from scratch, JSONB round-trip, republish replaces in place.mobile/src/utils/__tests__/whatsNewGate.test.ts: new user, update, skipped versions, first-ever, downgrade, hotfix.mobile/src/domain/__tests__/store.lastSeenReleaseVersion.test.ts: onboarding records the version, persistence, legacy devices.mobile/screen-tests/whats-new.test.tsx(including: reading marks read; a failed load does not),mobile/screen-tests/whats-new-modal.test.tsx.mobile/src/components/navigation/__tests__/drawerSections.test.ts: the "N new" tag.e2e-rn-web/specs/flows/settings.spec.ts(What's new): no pop-up after an update, the tag clears for good once read, the linked sheet, the drawer page and its error.
Open questions
- Whether to backfill notes for releases before this feature. Only versions published with
release:notesexist.