Skip to content

Add a one-time What's new dialog to the home page - #1445

Merged
microbit-matt-hillsdon merged 3 commits into
home-pagefrom
whats-new
Nov 23, 2026
Merged

microbit-matt-hillsdon merged 3 commits into
home-pagefrom
whats-new

Conversation

@microbit-matt-hillsdon

@microbit-matt-hillsdon microbit-matt-hillsdon commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Introduces the Home page and saved projects to people arriving at the new editor.

  • Shown once per browser on the Home page after cookie consent, to new and returning users alike: on shared school machines the change is new to the teacher even when the browser is not. Bump currentVersion in WhatsNewDialog.tsx to show it again.
  • Only on the Home page, so iframe mode and the no-IndexedDB fallback never see it.
  • Suppressed by noWelcome, like the welcome video.
  • Independent of the welcome video, so a new user sees What's new on Home and then the video on first opening the editor.
  • "My projects" and "View all" reuse the existing messages so the dialog matches the page in every language.

Later we may want to switch to showing it only to returning users who haven't seen it yet (release-notice version ≥ 1), once the announce period is over.

  • Confirm a new user should see both What's new and the welcome video
  • Review copy with the content team
  • Get the new strings translated before launch

Shown once per browser after cookie consent, to new users too: on
shared school machines the change is new to the teacher even when the
browser is not. Holds back the editor's welcome video for the rest of
that page load so a new user doesn't get two dialogs in a row.
@github-actions

Copy link
Copy Markdown

Preview build will be at
https://review-python.microbit.org/whats-new/

A new user may see both: What's new on Home, then the video on first
opening the editor.
@microbit-matt-hillsdon
microbit-matt-hillsdon marked this pull request as ready for review November 23, 2026 13:26
@microbit-matt-hillsdon
microbit-matt-hillsdon merged commit 8027961 into home-page Nov 23, 2026
3 checks passed
microbit-matt-hillsdon added a commit that referenced this pull request Nov 23, 2026
Fixes the e2e failure on `home-page` after #1445: "keeps projects across
a reload" saw What's new on the REVIEW stage.

The `noWelcome` flag was only in the e2e URL's flag params, which in-app
links drop. A reload after following one, e.g. the breadcrumb back to
Home, loaded the app without it, and `noWelcome` is only on by default
for the local stage.

The fixture now sets `noWelcome` in localStorage, which `flags.ts`
already reads, so it survives navigation and reloads. Tests that want
the first-visit dialogs use `test.use({ welcome: true })`, which
replaces the URL option added in #1445.
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