Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

What's new once more: Apps, Publish your bots, the Cloud, Team (#7764)

Milind Sonia6ef46949f2c
diff --git a/apps/docs/content/docs/security/analytics.mdx b/apps/docs/content/docs/security/analytics.mdx
index e37c4aa41a..acac39f5bc 100644
--- a/apps/docs/content/docs/security/analytics.mdx
+++ b/apps/docs/content/docs/security/analytics.mdx
@@ -154,7 +154,7 @@ use their own Boat key, and how many bots run on cloud computers, without sendin
| `app_snapshot` | Once a day, as described above | The properties in the snapshot table |
| `cloud_card_shown` | The MausBot Cloud card is shown | `variant`: `signed_out`, `free` |
| `cloud_card_action` | You act on the MausBot Cloud card | `action`: `start`, `howto`, `signin`, `not_now`, `close` |
-| `whats_new` | The What's new popups (each once per person, and again from Announcements): What's new, one centred popup on every page but a branded build's, a slide comes on screen, counted once per slide each time the popup is up, or you act on it; the Teams one, now only for a Team Cloud's members, it comes on screen or you act on it | `action`: `seen`, `next`, `back` (the slide changed, by its buttons, its dots or the arrow keys), `get_pro` (Get Pro, which opens Add a Cloud), `see_cloud` (See the new Cloud, which opens the Cloud website), `start_team` (Start a Team, which opens the Team plan's checkout on the Cloud website, or Add a Cloud for someone with a plan of their own), `invite` (Invite your team, which opens the team's People page on MausBot Cloud), `get_key` (Get a ModelGo key, which opens ModelGo's site), `add_key` (Add key, which opens Settings → AI where the key goes), `see_team_plans` (See Team plans, which opens the website's Team plans), `got_it`, `not_now`, `close` (the X, Escape or a click outside); `slide`: the slide it happened on: `pro` (the new MausBot Cloud), `team` (Team), `modelgo` (ModelGo, a sponsor), `teams` (the Teams popup); `audience`: `no_plan` (no Cloud plan on this desktop), `own_plan` (a Cloud plan of one's own), `team_admin` (a Team Cloud's Owner or Admin), `other` (anyone else What's new can't place: a Cloud's or a server's page, a browser, a plan being bought), and for the Teams popup `team_member` (a Team Cloud's member, or a desktop signed in to a team), `no_team` (everyone else); `signed_in`: true/false, signed in to MausBot Cloud in the app (What's new only); `campaign`: the popup's campaign, `whats-new-2026-11b` (the three slides), `whats-new-2026-11` (the earlier one, from Announcements) or `teams-2026-11b` |
+| `whats_new` | The What's new popups (each once per person, and again from Announcements): What's new, one centred popup on every page but a branded build's, a slide comes on screen, counted once per slide each time the popup is up, or you act on it; the Teams one, now only for a Team Cloud's members, it comes on screen or you act on it | `action`: `seen`, `next`, `back` (the slide changed, by its buttons, its dots or the arrow keys), `get_pro` (Get Pro, which opens Add a Cloud), `see_cloud` (See the new Cloud, which opens the Cloud website), `start_team` (Start a Team, which opens the Team plan's checkout on the Cloud website, or Add a Cloud for someone with a plan of their own), `invite` (Invite your team, which opens the team's People page on MausBot Cloud), `open_apps` (Open apps, which opens Published apps), `get_key` and `add_key` (the ModelGo slide's Get a ModelGo key and Add key, in `whats-new-2026-11b` only), `see_team_plans` (See Team plans, which opens the website's Team plans), `got_it` (the last slide, when it only tells), `not_now` (on a slide that sells or has a button of its own), `close` (the X, Escape or a click outside); `slide`: the slide it happened on, in What's new's order: `apps` (Your apps have a home), `publish` (Publish your bots), `pro` (the new MausBot Cloud) or `cloudNews` (What's new in MausBot Cloud, for whom has a Cloud), `team` (Team) or `teamNews` (What's new for your team, for whom is in one), `together` (the notice of This computer and My Cloud together, last), `modelgo` (ModelGo, a sponsor, in `whats-new-2026-11b` only), `teams` (the Teams popup); `audience`: `no_plan` (no Cloud plan on this desktop), `own_plan` (a Cloud plan of one's own), `team_admin` (a Team Cloud's Owner or Admin), `other` (anyone else What's new can't place: a Cloud's or a server's page, a browser, a plan being bought), and for the Teams popup `team_member` (a Team Cloud's member, or a desktop signed in to a team), `no_team` (everyone else); `signed_in`: true/false, signed in to MausBot Cloud in the app (What's new only); `campaign`: the popup's campaign, `whats-new-2026-11c` (Apps, Publish, the Cloud, Team and the notice of the bots together), `whats-new-2026-11b` (the new Cloud, Team and ModelGo), `whats-new-2026-11` (the earliest, from Announcements) or `teams-2026-11b` |
| `cloud_howto` | The "Show me how" tip ends | `result`: `no_button`, `skipped`, `closed` |
| `cloud_dialog_shown` | The Add a Cloud dialog opens | `source`: `app_card`, `app_howto`, `app_menu`, `app_settings`, `app_routines`, `app_whats_new_pro` (Get Pro in the What's new popup), `app_whats_new_team` (Start a Team in it, for someone with a plan of their own), `app_onboarding` (Try Cloud under MausBot's first messages); `view`: the dialog's first screen |
| `cloud_dialog_view` | The Add a Cloud dialog reaches a step | `view`: `received`, `starting`, `ready` |
@@ -170,7 +170,7 @@ use their own Boat key, and how many bots run on cloud computers, without sendin
| `cloud_welcome_ended` | A new Cloud's welcome ends | `reason`: `done`, `skipped`; `at`: the step it ended on |
| `product_hunt_card` | You act on the Product Hunt card | `action`: `upvote`, `not_now`, `close` |
| `boat_offer` | Boat's credit offer: its one-time card is shown or you act on it, or you act on it on the Boat card in Settings → API keys | `action`: `shown` (the card only), `get_boat`, `claim` (the drafted email to Boat opened), `not_now`, `close`; `place`: `card`, `settings` |
-| `modelgo_offer` | ModelGo, a sponsor: its What's new slide or its first-run option is shown, or you act on the slide, the first-run option or the ModelGo row in Settings → API keys | `action`: `shown` (the slide and the first-run option), `get_key` (ModelGo's site opened), `add_key` (Settings: a key was saved there; first run: you opened the ModelGo row to add one; the slide: Add key opened Settings), `not_now`, `close` (the slide only: What's new closed while it was on screen); `place`: `popup` (the What's new slide), `onboarding`, `settings`; `campaign`: the What's new campaign, on the slide's events only |
+| `modelgo_offer` | ModelGo, a sponsor: its What's new slide (`whats-new-2026-11b` only) or its first-run option is shown, or you act on the slide, the first-run option or the ModelGo row in Settings → API keys | `action`: `shown` (the slide and the first-run option), `get_key` (ModelGo's site opened), `add_key` (Settings: a key was saved there; first run: you opened the ModelGo row to add one; the slide: Add key opened Settings), `not_now`, `close` (the slide only: What's new closed while it was on screen); `place`: `popup` (the What's new slide, `whats-new-2026-11b` only), `onboarding`, `settings`; `campaign`: the What's new campaign, on the slide's events only |
| `announcement` | A card from the project's public announcements file (sponsor offers, product news, tips; [Announcements](https://github.com/milind-soni/OpenMausBot/blob/main/docs/announcements.md)) is shown, or you act on it | `id`: the card's own id from that file, the same for everyone who sees the card; `kind`: `sponsor`, `product`, `tip`; `action`: `shown`, `primary` (its main button), `secondary` (its second button), `close` (Not now, the X or Escape) |
| `simple_mode_prompt` | The Simple mode popup, shown once in each browser after an update when nothing else is on screen, is shown, its Simple mode switch is flipped, or it is closed (Done, the X, Escape or a click outside) | `action`: `shown`, `toggled`, `closed`; `mode`: `simple`, `advanced`, the mode it was shown or closed in, or the one a flip turned on |
| `new_look_notice` | The notice that Simple is now the only look, shown once in each browser that was on Advanced mode, when nothing else is on screen, is shown or closed (Done, the X, Escape or a click outside) | `action`: `shown`, `closed` |
diff --git a/docs/analytics.md b/docs/analytics.md
index 5ac2413958..2170f29cff 100644
--- a/docs/analytics.md
+++ b/docs/analytics.md
@@ -150,7 +150,7 @@ use their own Boat key, and how many bots run on cloud computers, without sendin
| `app_snapshot` | Once a day, as described above | The properties in the snapshot table |
| `cloud_card_shown` | The MausBot Cloud card is shown | `variant`: `signed_out`, `free` |
| `cloud_card_action` | You act on the MausBot Cloud card | `action`: `start`, `howto`, `signin`, `not_now`, `close` |
-| `whats_new` | The What's new popups (each once per person, and again from Announcements): What's new, one centred popup on every page but a branded build's, a slide comes on screen, counted once per slide each time the popup is up, or you act on it; the Teams one, now only for a Team Cloud's members, it comes on screen or you act on it | `action`: `seen`, `next`, `back` (the slide changed, by its buttons, its dots or the arrow keys), `get_pro` (Get Pro, which opens Add a Cloud), `see_cloud` (See the new Cloud, which opens the Cloud website), `start_team` (Start a Team, which opens the Team plan's checkout on the Cloud website, or Add a Cloud for someone with a plan of their own), `invite` (Invite your team, which opens the team's People page on MausBot Cloud), `get_key` (Get a ModelGo key, which opens ModelGo's site), `add_key` (Add key, which opens Settings → AI where the key goes), `see_team_plans` (See Team plans, which opens the website's Team plans), `got_it`, `not_now`, `close` (the X, Escape or a click outside); `slide`: the slide it happened on: `pro` (the new MausBot Cloud), `team` (Team), `modelgo` (ModelGo, a sponsor), `teams` (the Teams popup); `audience`: `no_plan` (no Cloud plan on this desktop), `own_plan` (a Cloud plan of one's own), `team_admin` (a Team Cloud's Owner or Admin), `other` (anyone else What's new can't place: a Cloud's or a server's page, a browser, a plan being bought), and for the Teams popup `team_member` (a Team Cloud's member, or a desktop signed in to a team), `no_team` (everyone else); `signed_in`: true/false, signed in to MausBot Cloud in the app (What's new only); `campaign`: the popup's campaign, `whats-new-2026-11b` (the three slides), `whats-new-2026-11` (the earlier one, from Announcements) or `teams-2026-11b` |
+| `whats_new` | The What's new popups (each once per person, and again from Announcements): What's new, one centred popup on every page but a branded build's, a slide comes on screen, counted once per slide each time the popup is up, or you act on it; the Teams one, now only for a Team Cloud's members, it comes on screen or you act on it | `action`: `seen`, `next`, `back` (the slide changed, by its buttons, its dots or the arrow keys), `get_pro` (Get Pro, which opens Add a Cloud), `see_cloud` (See the new Cloud, which opens the Cloud website), `start_team` (Start a Team, which opens the Team plan's checkout on the Cloud website, or Add a Cloud for someone with a plan of their own), `invite` (Invite your team, which opens the team's People page on MausBot Cloud), `open_apps` (Open apps, which opens Published apps), `get_key` and `add_key` (the ModelGo slide's Get a ModelGo key and Add key, in `whats-new-2026-11b` only), `see_team_plans` (See Team plans, which opens the website's Team plans), `got_it` (the last slide, when it only tells), `not_now` (on a slide that sells or has a button of its own), `close` (the X, Escape or a click outside); `slide`: the slide it happened on, in What's new's order: `apps` (Your apps have a home), `publish` (Publish your bots), `pro` (the new MausBot Cloud) or `cloudNews` (What's new in MausBot Cloud, for whom has a Cloud), `team` (Team) or `teamNews` (What's new for your team, for whom is in one), `together` (the notice of This computer and My Cloud together, last), `modelgo` (ModelGo, a sponsor, in `whats-new-2026-11b` only), `teams` (the Teams popup); `audience`: `no_plan` (no Cloud plan on this desktop), `own_plan` (a Cloud plan of one's own), `team_admin` (a Team Cloud's Owner or Admin), `other` (anyone else What's new can't place: a Cloud's or a server's page, a browser, a plan being bought), and for the Teams popup `team_member` (a Team Cloud's member, or a desktop signed in to a team), `no_team` (everyone else); `signed_in`: true/false, signed in to MausBot Cloud in the app (What's new only); `campaign`: the popup's campaign, `whats-new-2026-11c` (Apps, Publish, the Cloud, Team and the notice of the bots together), `whats-new-2026-11b` (the new Cloud, Team and ModelGo), `whats-new-2026-11` (the earliest, from Announcements) or `teams-2026-11b` |
| `cloud_howto` | The "Show me how" tip ends | `result`: `no_button`, `skipped`, `closed` |
| `cloud_dialog_shown` | The Add a Cloud dialog opens | `source`: `app_card`, `app_howto`, `app_menu`, `app_settings`, `app_routines`, `app_whats_new_pro` (Get Pro in the What's new popup), `app_whats_new_team` (Start a Team in it, for someone with a plan of their own), `app_onboarding` (Try Cloud under MausBot's first messages); `view`: the dialog's first screen |
| `cloud_dialog_view` | The Add a Cloud dialog reaches a step | `view`: `received`, `starting`, `ready` |
@@ -166,7 +166,7 @@ use their own Boat key, and how many bots run on cloud computers, without sendin
| `cloud_welcome_ended` | A new Cloud's welcome ends | `reason`: `done`, `skipped`; `at`: the step it ended on |
| `product_hunt_card` | You act on the Product Hunt card | `action`: `upvote`, `not_now`, `close` |
| `boat_offer` | Boat's credit offer: its one-time card is shown or you act on it, or you act on it on the Boat card in Settings → API keys | `action`: `shown` (the card only), `get_boat`, `claim` (the drafted email to Boat opened), `not_now`, `close`; `place`: `card`, `settings` |
-| `modelgo_offer` | ModelGo, a sponsor: its What's new slide or its first-run option is shown, or you act on the slide, the first-run option or the ModelGo row in Settings → API keys | `action`: `shown` (the slide and the first-run option), `get_key` (ModelGo's site opened), `add_key` (Settings: a key was saved there; first run: you opened the ModelGo row to add one; the slide: Add key opened Settings), `not_now`, `close` (the slide only: What's new closed while it was on screen); `place`: `popup` (the What's new slide), `onboarding`, `settings`; `campaign`: the What's new campaign, on the slide's events only |
+| `modelgo_offer` | ModelGo, a sponsor: its What's new slide (`whats-new-2026-11b` only) or its first-run option is shown, or you act on the slide, the first-run option or the ModelGo row in Settings → API keys | `action`: `shown` (the slide and the first-run option), `get_key` (ModelGo's site opened), `add_key` (Settings: a key was saved there; first run: you opened the ModelGo row to add one; the slide: Add key opened Settings), `not_now`, `close` (the slide only: What's new closed while it was on screen); `place`: `popup` (the What's new slide, `whats-new-2026-11b` only), `onboarding`, `settings`; `campaign`: the What's new campaign, on the slide's events only |
| `announcement` | A card from the project's public announcements file (sponsor offers, product news, tips; [Announcements](https://github.com/milind-soni/OpenMausBot/blob/main/docs/announcements.md)) is shown, or you act on it | `id`: the card's own id from that file, the same for everyone who sees the card; `kind`: `sponsor`, `product`, `tip`; `action`: `shown`, `primary` (its main button), `secondary` (its second button), `close` (Not now, the X or Escape) |
| `simple_mode_prompt` | The Simple mode popup, shown once in each browser after an update when nothing else is on screen, is shown, its Simple mode switch is flipped, or it is closed (Done, the X, Escape or a click outside) | `action`: `shown`, `toggled`, `closed`; `mode`: `simple`, `advanced`, the mode it was shown or closed in, or the one a flip turned on |
| `new_look_notice` | The notice that Simple is now the only look, shown once in each browser that was on Advanced mode, when nothing else is on screen, is shown or closed (Done, the X, Escape or a click outside) | `action`: `shown`, `closed` |
diff --git a/docs/announcements.md b/docs/announcements.md
index 29e7809330..7d98013866 100644
--- a/docs/announcements.md
+++ b/docs/announcements.md
@@ -254,12 +254,12 @@ Tests never download the live file: `server/testing/setup.ts` and the verificati
(`scripts/control-omb.ts`, which the renderer previews and UI tests run on) set `OMB_DISABLE_ANNOUNCEMENTS=1`, so their
pages get no cards whatever `main` holds. The server's tests hand the store a fake fetch.
-## Moving the built-in sponsor slide into the feed later
+## Moving the built-in sponsor offer into the feed later
-The sponsor's offer (`MODELGO_OFFER_NOTICE`) is now What's new's last slide. To move it to the feed instead: publish a
-`sponsor` card with the same words, its mark and `MODELGO_URL` as its `open_url`, and drop the slide from
-`whatsNewCarousel` in a release whose app treats the old seen ids as the card's (mark `announcement:<id>` seen when
-`modelgo-offer-2026-11` or `whats-new-2026-11b` is).
+The sponsor's offer (`MODELGO_OFFER_NOTICE`) was What's new's last slide in `whats-new-2026-11b`; `whats-new-2026-11c`
+has no sponsor slide, and the offer stays listed in Announcements. To bring it back as a card: publish a `sponsor` card
+with the same words, its mark and `MODELGO_URL` as its `open_url`, in a release whose app treats the old seen ids as the
+card's (mark `announcement:<id>` seen when `modelgo-offer-2026-11` or `whats-new-2026-11b` is).
## Design notes
diff --git a/docs/cloud-pro.md b/docs/cloud-pro.md
index aa812015c2..48c37f2f3c 100644
--- a/docs/cloud-pro.md
+++ b/docs/cloud-pro.md
@@ -2387,36 +2387,49 @@ a later launch, in the list's order. A new notice is one entry in `NOTICES` and
its fact in AppNotices. So What's new and Boat's credit offer never share a
launch: What's new comes first, and the Boat card waits for a later one.
-1. **What's new** (`whats-new/WhatsNewPopup`, campaign id `whats-new-2026-11b`):
- one centered popup with up to three slides, **Next** and **Back**, its dots
+1. **What's new** (`whats-new/WhatsNewPopup`, campaign id `whats-new-2026-11c`):
+ one centered popup with its slides, **Next** and **Back**, its dots
and the arrow keys, each slide with a short loop of the app itself (its
- still where motion is reduced), once per person: a close is kept in the
+ still where motion is reduced) or a picture drawn from the app's own
+ labels, once per person: a close is kept in the
workspace record (on a Team Cloud, the person's own), in the page's storage
and in this desktop's own record (`electron/desktop-prefs.mjs`), so every
port the app's page is served on agrees. A close also counts as seeing the
- earlier What's new (`whats-new-2026-11`), the Teams popup and ModelGo's
- sponsor card, so nobody sees those again; a new campaign id shows it once
- more to everyone who closed them. It is the launch's notice, centred, on
- every page but a branded build's, never during setup (the welcome, the
- tour), before a new install's first reply, a call, a move, another dialog,
- busy work or an update being offered, and never in the launch MausBot's
- first-launch card took. In the launch a new install's welcome finished, it
- comes once the first chat has had its first reply. `lib/whats-new.ts`
- decides the slides (`whatsNewCarousel`), in this order:
+ earlier What's new (`whats-new-2026-11b`, `whats-new-2026-11`), the Teams
+ popup and ModelGo's sponsor card, so nobody sees those again; a new campaign
+ id shows it once more to everyone who closed them. It is the launch's notice,
+ centred, on every page but a branded build's, never during setup (the
+ welcome, the tour), before a new install's first reply, a call, a move,
+ another dialog, busy work or an update being offered, and never in the
+ launch MausBot's first-launch card took. In the launch a new install's
+ welcome finished, it comes once the first chat has had its first reply.
+ `lib/whats-new.ts` decides the slides (`whatsNewCarousel`), in this order:
+ - **Your apps have a home**, for everyone: where the apps the bots build
+ are (Published apps, under the section that page lists them in), and
+ **Open apps**, which opens Published apps. The words about opening an
+ app in its own window and installing it are only on this computer's
+ page of the desktop app, which can do both.
+ - **Publish your bots**, for everyone: Share as template in the bot's
+ Share or ⋯ menu, then Publish. It only tells; it has no button.
- **Meet the new MausBot Cloud**: on this computer's page of a desktop that
sells the Cloud and no organization runs, for someone with no Cloud plan
- (signed out, or signed in with none).
+ (signed out, or signed in with none). Whoever has a Cloud (a plan of
+ their own or a team's, or this page is a Cloud's) gets **What's new in
+ MausBot Cloud** instead, which only tells.
- **Team**: for anyone who can start a team (on the website, or in the
app's Add a Cloud for a plan of one's own on this desktop) and a Team
- Cloud's Owner and Admins (**Invite your team**, the team's People page);
- never someone already in a team or a Team Cloud's member, who keep the
- Teams popup's **Got it**.
- - **ModelGo**, the sponsor: wherever `modelgoOfferable` allows it, on a Team
- Cloud only for its Owner and Admins. **Get a ModelGo key** opens the
- sponsor's exact address; **Add key** opens Settings → AI, where its key
- goes, for whoever may change this place's settings.
-
- No slide for someone: no popup.
+ Cloud's Owner and Admins (**Invite your team**, the team's People page).
+ Someone already in a team, or a Team Cloud's member, gets **What's new
+ for your team** instead, which only tells and sells nothing.
+ - **Your bots are in one list now**, last: the notice of This computer and
+ My Cloud together, with its switches, where its corner notice would show
+ and main calls it due and it was never drawn. Main hears that it was
+ shown, which turns the default on, only once that slide is on screen;
+ someone who closes What's new before it gets the corner notice on a
+ later launch.
+
+ A slide that only tells has no **Not now**; the last slide, when it only
+ tells, ends with **Got it**.
A plan slide shows only while the Admin's offer sells its plan, with that
plan's price from the offer (the Team plan's free trial when it has one);
diff --git a/electron/desktop-prefs.mjs b/electron/desktop-prefs.mjs
index 1edf757437..5b57fd7511 100644
--- a/electron/desktop-prefs.mjs
+++ b/electron/desktop-prefs.mjs
@@ -12,7 +12,7 @@ import { accountFullName } from "./system-name.mjs";
export { DESKTOP_PORTS } from "./desktop-ports.mjs";
/** The only notices a page may record, so no page can write anything else into the file. */
-export const DESKTOP_NOTICES = Object.freeze(["whats-new-2026-11", "boat-credit-2026-11", "grok-move-2026-11", "modelgo-offer-2026-11", "teams-2026-11b", "whats-new-2026-11b"]);
+export const DESKTOP_NOTICES = Object.freeze(["whats-new-2026-11", "boat-credit-2026-11", "grok-move-2026-11", "modelgo-offer-2026-11", "teams-2026-11b", "whats-new-2026-11b", "whats-new-2026-11c"]);
const WHATS_NEW = DESKTOP_NOTICES[0];
/** A card from the project's announcements file someone closed (src/lib/announcements.ts), and the last day a sponsor's
* card was shown: kept beside the fixed notices, the newest few only. */
diff --git a/electron/desktop-prefs.node-test.mjs b/electron/desktop-prefs.node-test.mjs
index 3123819f79..edd75a100e 100644
--- a/electron/desktop-prefs.node-test.mjs
+++ b/electron/desktop-prefs.node-test.mjs
@@ -26,7 +26,7 @@ test("a page on an older release keeps working with the longer list: its own ids
});
test("What's new, Boat's credit offer and the Grok Bot move are the notices a page can record; seen and analytics survive a restart; a broken record never stops the app", () => {
- assert.deepEqual([...DESKTOP_NOTICES], [POPUP, BOAT, GROK, MODELGO, "teams-2026-11b", "whats-new-2026-11b"]);
+ assert.deepEqual([...DESKTOP_NOTICES], [POPUP, BOAT, GROK, MODELGO, "teams-2026-11b", "whats-new-2026-11b", "whats-new-2026-11c"]);
let saved = null;
const writes = [];
const prefs = createDesktopPrefs({ read: () => saved, write: value => { writes.push(value); saved = structuredClone(value); } });
diff --git a/packages/phone-protocol/src/cloud-hints.ts b/packages/phone-protocol/src/cloud-hints.ts
index 0885006e45..670a26d388 100644
--- a/packages/phone-protocol/src/cloud-hints.ts
+++ b/packages/phone-protocol/src/cloud-hints.ts
@@ -8,7 +8,7 @@ export const TEAM_LEFT_REFUSAL = "unauthorized: you are no longer in this team";
/** On a Team Cloud, the welcome's own record (shown, done, hidden) is each person's: one admin finishing it ends it for
* nobody else. Its steps (an AI connected, files) stay the team's, since they are facts about the team's Cloud. So is
* whether they saw the Teams What's new and What's new (src/lib/notices.ts TEAMS_NOTICE, WHATS_NEW_NOTICE). */
-export const TEAM_PERSONAL_HINTS: ReadonlySet<string> = new Set(["cloud-welcome-shown", CLOUD_WELCOME_DONE, "cloud-setup-hidden", "teams-2026-11b", "whats-new-2026-11b"]);
+export const TEAM_PERSONAL_HINTS: ReadonlySet<string> = new Set(["cloud-welcome-shown", CLOUD_WELCOME_DONE, "cloud-setup-hidden", "teams-2026-11b", "whats-new-2026-11b", "whats-new-2026-11c"]);
/** When the person last opened Announcements, in epoch milliseconds: `announcements-read-<ms>`. A record keeps one, the
* newest; on a Team Cloud it is each person's. */
diff --git a/scripts/bench-desktop.ts b/scripts/bench-desktop.ts
index 11919d84a3..29ef1daebf 100644
--- a/scripts/bench-desktop.ts
+++ b/scripts/bench-desktop.ts
@@ -49,7 +49,7 @@ const { values } = parseArgs({
const only = new Set((values.only ?? PHASES.join(",")).split(",").map((phase) => phase.trim()).filter(Boolean));
for (const phase of only) if (!(PHASES as readonly string[]).includes(phase)) throw new Error(`unknown phase ${phase}; phases: ${PHASES.join(", ")}`);
const IDLE_MS = Number(values["idle-seconds"]) * 1000;
-const STORAGE = { "omb-analytics-opt-out": "1", "omb-email-gate": "skipped", "omb-simple-mode-prompt": "1", "grok-move-2026-11": "1", "teams-2026-11b": "1", "modelgo-offer-2026-11": "1", "whats-new-2026-11b": "1", "omb-advanced-mode": values.advanced ? "1" : "0" };
+const STORAGE = { "omb-analytics-opt-out": "1", "omb-email-gate": "skipped", "omb-simple-mode-prompt": "1", "grok-move-2026-11": "1", "teams-2026-11b": "1", "modelgo-offer-2026-11": "1", "whats-new-2026-11b": "1", "whats-new-2026-11c": "1", "omb-advanced-mode": values.advanced ? "1" : "0" };
const log = (line: string) => process.stderr.write(`bench-desktop: ${line}\n`);
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
const round = (value: number, digits = 1) => Math.round(value * 10 ** digits) / 10 ** digits;
diff --git a/scripts/bench-launch.mjs b/scripts/bench-launch.mjs
index d1fa983d58..0daf58d6aa 100644
--- a/scripts/bench-launch.mjs
+++ b/scripts/bench-launch.mjs
@@ -99,7 +99,7 @@ function seed() {
return seeded;
}
-const STORAGE = { "omb-analytics-opt-out": "1", "omb-email-gate": "skipped", "omb-simple-mode-prompt": "1", "grok-move-2026-11": "1", "teams-2026-11b": "1", "modelgo-offer-2026-11": "1", "whats-new-2026-11b": "1", "omb-advanced-mode": "0" };
+const STORAGE = { "omb-analytics-opt-out": "1", "omb-email-gate": "skipped", "omb-simple-mode-prompt": "1", "grok-move-2026-11": "1", "teams-2026-11b": "1", "modelgo-offer-2026-11": "1", "whats-new-2026-11b": "1", "whats-new-2026-11c": "1", "omb-advanced-mode": "0" };
const electron = require("electron");
const DEV_PAGE_PORT = BENCH_PORTS[0] - 3600;
const fixtureEnv = () => ({
diff --git a/scripts/testing/web-app-ui.e2e.test.ts b/scripts/testing/web-app-ui.e2e.test.ts
index e91d292778..771bf9d882 100644
--- a/scripts/testing/web-app-ui.e2e.test.ts
+++ b/scripts/testing/web-app-ui.e2e.test.ts
@@ -80,7 +80,7 @@ async function connect(url: string) {
return value.result.value;
};
await request("Page.enable");
- await request("Page.addScriptToEvaluateOnNewDocument", { source: "localStorage.setItem('omb-analytics-opt-out','1');localStorage.setItem('omb-email-gate','skipped');localStorage.setItem('grok-move-2026-11','1');localStorage.setItem('teams-2026-11b','1');localStorage.setItem('modelgo-offer-2026-11','1');localStorage.setItem('whats-new-2026-11b','1');" });
+ await request("Page.addScriptToEvaluateOnNewDocument", { source: "localStorage.setItem('omb-analytics-opt-out','1');localStorage.setItem('omb-email-gate','skipped');localStorage.setItem('grok-move-2026-11','1');localStorage.setItem('teams-2026-11b','1');localStorage.setItem('modelgo-offer-2026-11','1');localStorage.setItem('whats-new-2026-11b','1');localStorage.setItem('whats-new-2026-11c','1');" });
await request("Runtime.enable");
await request("Emulation.setTouchEmulationEnabled", { enabled: true, maxTouchPoints: 1 });
await request("Emulation.setDeviceMetricsOverride", { width: 390, height: 844, deviceScaleFactor: 1, mobile: true });
diff --git a/server/main-thread.e2e.test.ts b/server/main-thread.e2e.test.ts
index 23a3f7c234..3406d42817 100644
--- a/server/main-thread.e2e.test.ts
+++ b/server/main-thread.e2e.test.ts
@@ -293,9 +293,11 @@ it("moves an archived or deleted main thread to the only open one, a thread the
try {
const { bot } = await cli("new-bot", "--name", "Keeper");
writeFileSync(join(dataDir, "room-plan.json"), JSON.stringify({
- [bot.id]: { turns: [
- { steps: [{ tool: "start_thread", arguments: { title: "Side job", message: "Check the side job." } }], reply: "Opened a side job." },
- { reply: "Side job checked." },
+ // Picked by each turn's own words: the side job's turn may start before the turn that opened it has finished. The
+ // side job's words also name the thread it came from, so its entry comes first.
+ [bot.id]: { script: [
+ { key: "check", match: ["Check the side job."], reply: "Side job checked." },
+ { key: "open", match: ["Open a side job."], steps: [{ tool: "start_thread", arguments: { title: "Side job", message: "Check the side job." } }], reply: "Opened a side job." },
] },
}));
const first = bot.activeTaskId as string;
diff --git a/src/assets/whats-new/apps-dark.mp4 b/src/assets/whats-new/apps-dark.mp4
new file mode 100644
index 0000000000..290971aa12
Binary files /dev/null and b/src/assets/whats-new/apps-dark.mp4 differ
diff --git a/src/assets/whats-new/apps-dark.webp b/src/assets/whats-new/apps-dark.webp
new file mode 100644
index 0000000000..0bf51ac91a
Binary files /dev/null and b/src/assets/whats-new/apps-dark.webp differ
diff --git a/src/assets/whats-new/modelgo-dark.mp4 b/src/assets/whats-new/modelgo-dark.mp4
deleted file mode 100644
index aebb3906f4..0000000000
Binary files a/src/assets/whats-new/modelgo-dark.mp4 and /dev/null differ
diff --git a/src/assets/whats-new/modelgo-dark.webp b/src/assets/whats-new/modelgo-dark.webp
deleted file mode 100644
index bba22c43e8..0000000000
Binary files a/src/assets/whats-new/modelgo-dark.webp and /dev/null differ
diff --git a/src/assets/whats-new/modelgo-light.mp4 b/src/assets/whats-new/modelgo-light.mp4
deleted file mode 100644
index e15cdb9ede..0000000000
Binary files a/src/assets/whats-new/modelgo-light.mp4 and /dev/null differ
diff --git a/src/assets/whats-new/modelgo-light.webp b/src/assets/whats-new/modelgo-light.webp
deleted file mode 100644
index e4dddd2c29..0000000000
Binary files a/src/assets/whats-new/modelgo-light.webp and /dev/null differ
diff --git a/src/cloud-buy-preview.tsx b/src/cloud-buy-preview.tsx
index 9fdf7d13c2..d699f77515 100644
--- a/src/cloud-buy-preview.tsx
+++ b/src/cloud-buy-preview.tsx
@@ -84,12 +84,13 @@ function Preview() {
const state = params.get("state") ?? "choose";
const asked = POPUPS[state];
const plans = asked?.account ? whatsNewView(asked.account, asked.offer) : "none";
- const popup = asked ? whatsNewCarousel({ plans, modelgo: true, addKey: true,
+ const popup = asked ? whatsNewCarousel({ plans, cloud: !asked.account || (typeof plans === "object" && plans.audience === "own"),
+ apps: { place: asked.account ? "computer" : "cloud", install: Boolean(asked.account) },
team: asked.account ? { kind: "start", inApp: typeof plans === "object" && plans.audience === "own", url: "" } : INVITE }) : null;
if (popup && typeof popup === "object") {
return <div className="relative h-screen overflow-hidden">
<MockApp />
- <WhatsNewPopup view={popup} report={noop} onBuy={noop} onAddKey={noop} onDone={noop} />
+ <WhatsNewPopup view={popup} report={noop} onBuy={noop} onOpenApps={noop} onDone={noop} />
</div>;
}
const view = VIEWS[state] ?? VIEWS.choose!;
diff --git a/src/components/AppNotices.test.ts b/src/components/AppNotices.test.ts
index dd7b55a5b7..6c04c9efc0 100644
--- a/src/components/AppNotices.test.ts
+++ b/src/components/AppNotices.test.ts
@@ -32,13 +32,13 @@ vi.mock("./whats-new/TeamPicture", () => ({ TeamPicture: () => null }));
// Who MausBot belongs to: unknown (as before the session answers) unless a test says otherwise.
vi.mock("@/lib/default-bot", async original => ({ ...await original<typeof import("@/lib/default-bot")>(), useViewerEmail: () => f.viewerEmail }));
vi.mock("@/lib/brand", () => ({ brandStatus: () => ({ brand: { name: "OpenMausBot" }, source: f.brand, file: "" }), productName: () => "MausBot" }));
-vi.mock("./Avatar", async original => ({ ...await original<typeof import("./Avatar")>(), MausAvatar: () => null }));
+vi.mock("./Avatar", async original => ({ ...await original<typeof import("./Avatar")>(), MausAvatar: () => null, BotAvatar: () => null }));
vi.mock("./lazy-screens", async original => ({ ...await original<typeof import("./lazy-screens")>(), GrokMoveDialog: () => "THE MOVE DIALOG" }));
vi.mock("@/components/EngineLibrary", () => ({ engineReady: (instance: { snapshot: { state: string; authenticated?: boolean } }) =>
instance.snapshot.state === "available" && instance.snapshot.authenticated !== false }));
import { AppNotices } from "./AppNotices";
import { TwoPlacesCard } from "./TwoPlacesCard";
-import { BOAT_OFFER_NOTICE, CLOUD_INTRO, EARLIER_WHATS_NEW_NOTICE, GROK_MOVE_NOTICE, launchNotice, localDay, MODELGO_OFFER_NOTICE, PRODUCT_HUNT_NOTICE, PRODUCT_HUNT_UNTIL, PRODUCT_HUNT_URL, STAR_NOTICE, TEAMS_NOTICE, WHATS_NEW_NOTICE } from "@/lib/notices";
+import { BOAT_OFFER_NOTICE, CLOUD_INTRO, EARLIER_WHATS_NEW_NOTICE, GROK_MOVE_NOTICE, launchNotice, localDay, MODELGO_OFFER_NOTICE, PREVIOUS_WHATS_NEW_NOTICE, PRODUCT_HUNT_NOTICE, PRODUCT_HUNT_UNTIL, PRODUCT_HUNT_URL, STAR_NOTICE, TEAMS_NOTICE, WHATS_NEW_NOTICE } from "@/lib/notices";
import { BOAT_OFFER, boatClaimMailto } from "@/lib/boat-offer";
import { track } from "@/lib/analytics";
import { ADVANCED_MODE_KEY, setAdvancedMode } from "@/lib/interface-mode";
@@ -619,14 +619,16 @@ describe("Boat's credit offer", () => {
});
describe("What's new after the update", () => {
- const PRO = "Meet the new MausBot Cloud", TEAM = "Shared bots for your whole team";
+ const PRO = "Meet the new MausBot Cloud", TEAM = "Shared bots for your whole team", APPS = "Your apps have a home", PUBLISH = "Publish your bots";
const ID = WHATS_NEW_NOTICE;
const BOAT = "$50 of Boat credit for you";
let modal: boolean;
const steps = () => vi.mocked(track).mock.calls.filter(([event]) => event === "whats_new").map(([, props]) => props as Record<string, unknown>);
const step = (action: string, slide: string, audience = "no_plan", signedIn = false) => ({ action, slide, audience, signed_in: signedIn, campaign: ID });
const seenOnDesktop = () => desk.saved?.seen ?? [];
- const on = (html: string) => /data-whats-new="(pro|team|modelgo)"/.exec(html)?.[1] ?? null;
+ const on = (html: string) => /data-whats-new="(\w+)"/.exec(html)?.[1] ?? null;
+ /** Next, with the slide's own effects run as the page runs them. */
+ const next = async (times = 1) => { for (let i = 0; i < times; i++) { press("Next"); render(); f.effects.forEach(effect => effect()); await flush(); } };
const fresh = () => { desk = desktopMachine(); storage.delete(ID); f.state.config.onboarding.hintsSeen = withTourFinished(undefined); };
const keptForGood = async () => {
expect(render()).toBe("");
@@ -651,15 +653,16 @@ describe("What's new after the update", () => {
querySelectorAll: () => modal ? [{ closest: () => null, checkVisibility: () => true }] : [] });
});
- it("no Cloud plan: once, before every other card, a modal with the new Cloud then Team in the Admin's numbers; Get Pro opens Add a Cloud with its tag", async () => {
+ it("no Cloud plan: once, before every other card, a modal with Apps, Publish, then the new Cloud and Team in the Admin's numbers; Get Pro opens Add a Cloud with its tag", async () => {
returning(); storage.delete(STAR_NOTICE);
const html = await launch();
- expect(on(html)).toBe("pro");
- for (const text of [PRO, TEAM, "Pro · $49/month + tax · 14-day money-back", "Free for 3 days, then $40/month + tax", "Get Pro", "See the new Cloud", "Start a Team", "Next", "Not now"])
+ expect(on(html)).toBe("apps");
+ expect(slidesOf(html)).toEqual(["apps", "publish", "pro", "team"]);
+ for (const text of [APPS, "Open apps", PUBLISH, PRO, TEAM, "Pro · $49/month + tax · 14-day money-back", "Free for 3 days, then $40/month + tax", "Get Pro", "See the new Cloud", "Start a Team", "Next", "Not now"])
expect(html).toContain(text);
- for (const part of ['role="dialog"', 'aria-modal="true"', 'aria-labelledby="whats-new-pro-title"']) expect(html).toContain(part);
+ for (const part of ['role="dialog"', 'aria-modal="true"', 'aria-labelledby="whats-new-apps-title"']) expect(html).toContain(part);
for (const other of [STAR, INTRO]) expect(html).not.toContain(other);
- expect(steps()).toEqual([step("seen", "pro")]);
+ expect(steps()).toEqual([step("seen", "apps")]);
expect(await settle()).toContain(PRO);
expect(steps(), "seen once while it is up").toHaveLength(1);
expect(seenOnDesktop()).toEqual([]);
@@ -671,40 +674,43 @@ describe("What's new after the update", () => {
await keptForGood();
});
- it("Next shows the Team slide, Back the new Cloud again, each step counted", async () => {
+ it("Next walks Apps, Publish, the new Cloud and Team; Back goes back; each step counted", async () => {
account = free;
await launch();
+ await next(2);
+ expect(on(render())).toBe("pro");
press("Next");
expect(on(render())).toBe("team");
f.effects.forEach(effect => effect()); await flush();
press("Back");
expect(on(render())).toBe("pro");
- expect(steps()).toEqual([step("seen", "pro", "no_plan", true), step("next", "pro", "no_plan", true), step("seen", "team", "no_plan", true), step("back", "team", "no_plan", true)]);
+ const at = (action: string, slide: string) => step(action, slide, "no_plan", true);
+ expect(steps()).toEqual([at("seen", "apps"), at("next", "apps"), at("seen", "publish"), at("next", "publish"), at("seen", "pro"), at("next", "pro"), at("seen", "team"), at("back", "team")]);
expect(f.dispatch).not.toHaveBeenCalled(); expect(seenOnDesktop()).toEqual([]);
});
it("See the new Cloud and Start a Team open the Cloud website with their slide's tag, and end it for good", async () => {
- await launch();
+ await launch(); await next(2);
press("See the new Cloud"); await flush();
expect(window.ogb?.openExternal).toHaveBeenCalledWith("https://cloud.openmausbot.com/cloud?src=app_whats_new_pro");
expect(steps().at(-1)).toEqual(step("see_cloud", "pro"));
await keptForGood();
fresh(); vi.mocked(window.ogb!.openExternal!).mockClear();
- await relaunch(); press("Next");
+ await relaunch(); await next(3);
press("Start a Team"); await flush();
expect(window.ogb?.openExternal).toHaveBeenCalledWith("https://cloud.openmausbot.com/pro/buy?plan=team&src=app_whats_new_team");
expect(steps().at(-1)).toEqual(step("start_team", "team"));
await keptForGood();
});
- it("a Cloud plan of one's own, in no team: Team and the sponsor's, never the new Cloud", async () => {
+ it("a Cloud plan of one's own, in no team: what is new on their Cloud and Team, never the new Cloud's sale", async () => {
for (const state of [paid(), tierPlan("starter"), tierPlan("personal"), tierPlan("max"), paid({ trial: trial("active") })]) {
vi.clearAllMocks(); fresh(); account = state;
const html = await relaunch();
- expect(on(html), JSON.stringify(state.entitlement)).toBe("team");
- expect(slidesOf(html)).toEqual(["team", "modelgo"]);
+ expect(on(html), JSON.stringify(state.entitlement)).toBe("apps");
+ expect(slidesOf(html)).toEqual(["apps", "publish", "cloudNews", "team"]);
expect(html).not.toContain(PRO); expect(html).not.toContain("Get Pro");
- expect(steps()).toEqual([step("seen", "team", "own_plan", true)]);
+ expect(steps()).toEqual([step("seen", "apps", "own_plan", true)]);
}
press("Start a Team"); await flush();
expect(f.dispatch, "the app's own Add a Cloud, which lists the Team plan").toHaveBeenCalledWith({ type: "openCloudAdd", source: "app_whats_new_team" });
@@ -712,13 +718,13 @@ describe("What's new after the update", () => {
await keptForGood();
});
- it("no plan slides for anyone in a team, nor while a payment is linked or needs attention or a checkout is open: Team on the website where it is news, and the sponsor's", async () => {
+ it("no plan slides for anyone in a team, nor while a payment is linked or needs attention or a checkout is open: a team's news for whom is in one, Team on the website where it is news", async () => {
returning();
const team = { id: "t1", name: "Design Studio", role: "member" as const, machine: null };
const inTeam: CloudAccountState[] = [paid({ teams: [team] }), { ...free, teams: [{ ...team, role: "owner" }] }, tierPlan("team"), tierPlan("business")];
const buying: CloudAccountState[] = [{ ...free, purchase: { state: "confirming" as const } }, { ...free, entitlement: { plan: "pro", tier: "pro", status: "inactive", expiresAt: null, version: 3 } },
{ ...free, checkout: { plan: "pro", startedAt: NOW } }];
- for (const [cases, shown] of [[inTeam, ["modelgo"]], [buying, ["team", "modelgo"]]] as const) {
+ for (const [cases, shown] of [[inTeam, ["apps", "publish", "cloudNews", "teamNews"]], [buying, ["apps", "publish", "team"]]] as const) {
for (const state of cases) {
fresh(); account = state;
const html = await relaunch();
@@ -729,26 +735,26 @@ describe("What's new after the update", () => {
expect(steps().filter(props => props.slide === "pro")).toEqual([]);
});
- it("a plan slide the Admin doesn't sell is left out; offline, Team at its listed price; the sponsor's stays", async () => {
+ it("a plan slide the Admin doesn't sell is left out; offline, Team at its listed price; Apps and Publish stay", async () => {
returning();
offer = PLAIN_OFFER;
const proOnly = await relaunch();
- expect(slidesOf(proOnly)).toEqual(["pro", "modelgo"]); expect(proOnly).not.toContain(TEAM);
+ expect(slidesOf(proOnly)).toEqual(["apps", "publish", "pro"]); expect(proOnly).not.toContain(TEAM);
fresh(); account = paid();
- expect(slidesOf(await relaunch()), "a plan of one's own and no Team plan sold").toEqual(["modelgo"]);
+ expect(slidesOf(await relaunch()), "a plan of one's own and no Team plan sold").toEqual(["apps", "publish", "cloudNews"]);
fresh(); account = signedOut; offer = null;
const offline = await relaunch();
- expect(slidesOf(offline)).toEqual(["team", "modelgo"]); expect(offline).toContain("$40 a month for 2 people, $20 for each extra person.");
+ expect(slidesOf(offline)).toEqual(["apps", "publish", "team"]); expect(offline).toContain("$40 a month for 2 people, $20 for each extra person.");
fresh(); account = { status: "unavailable" }; offer = teamOffer;
- expect(slidesOf(await relaunch())).toEqual(["team", "modelgo"]);
+ expect(slidesOf(await relaunch())).toEqual(["apps", "publish", "team"]);
fresh(); account = signedOut;
- expect(slidesOf(await relaunch()), "back online").toEqual(["pro", "team", "modelgo"]);
+ expect(slidesOf(await relaunch()), "back online").toEqual(["apps", "publish", "pro", "team"]);
});
it("one promo a launch: What's new first; Boat's credit offer waits for the next launch, a reload in this one included", async () => {
returning(); storage.delete(BOAT_OFFER_NOTICE); storage.set(CLOUD_INTRO, "1"); desk.saved = null;
const first = await launch();
- expect(on(first)).toBe("pro"); expect(first).not.toContain(BOAT);
+ expect(on(first)).toBe("apps"); expect(first).not.toContain(BOAT);
press("Not now"); await flush();
expect(render(), "nothing else after it in this launch").toBe("");
expect(await launch(), "a reload is the same launch").toBe("");
@@ -770,11 +776,11 @@ describe("What's new after the update", () => {
expect(on(await launch()), "the first chat, before its first reply").toBeNull();
expect(launchNotice()).toBeNull();
f.state.bots = structuredClone(FIRST_REPLY);
- expect(on(await settle()), "the first reply came, in the launch the welcome finished in").toBe("pro");
+ expect(on(await settle()), "the first reply came, in the launch the welcome finished in").toBe("apps");
session.clear(); f.values = []; desk = desktopMachine(); storage.delete(ID); f.state.config.onboarding.hintsSeen = [];
markLaunchDialog("mausbot");
expect(on(await launch()), "the launch MausBot's first card took").toBeNull();
- expect(on(await relaunch())).toBe("pro");
+ expect(on(await relaunch())).toBe("apps");
});
it("claims the launch for the popups, so MausBot's card waits for a later one", async () => {
@@ -798,22 +804,22 @@ describe("What's new after the update", () => {
f.state = saved; f.updater = null; account = signedOut; modal = false; bridges.cloud.offer.mockImplementation(async () => offer); desk = desktopMachine();
}
expect(steps()).toEqual([]); expect(seenOnDesktop()).toEqual([]);
- expect(on(await relaunch())).toBe("pro");
+ expect(on(await relaunch())).toBe("apps");
f.state.bots[0].busy = true;
expect(await settle(), "a turn starts while it is up").toBe("");
f.state.bots[0].busy = false;
- expect(on(await settle()), "back once the turn ends").toBe("pro");
+ expect(on(await settle()), "back once the turn ends").toBe("apps");
});
it("Not now, the X, Escape and a click outside end it for good on this computer and in the workspace", async () => {
for (const how of ["Not now", "Close", "Escape", "outside"] as const) {
fresh();
- expect(on(await relaunch()), how).toBe("pro");
+ expect(on(await relaunch()), how).toBe("apps");
if (how === "Escape") expect(keydown("Escape").preventDefault, how).toHaveBeenCalled();
else if (how === "outside") {
const backdrop = tree().find(node => typeof node.props.onMouseDown === "function")!;
backdrop.props.onMouseDown({ target: {}, currentTarget: backdrop });
- expect(on(render()), "a press inside the dialog").toBe("pro");
+ expect(on(render()), "a press inside the dialog").toBe("apps");
backdrop.props.onMouseDown({ target: backdrop, currentTarget: backdrop });
} else press(how);
await flush();
@@ -833,38 +839,43 @@ describe("What's new after the update", () => {
it("a first run on this computer leaves it for a later launch: everyone who installs sees it once", async () => {
f.state.config.onboarding.hintsSeen = [...withTourFinished(undefined), "onboarding-cloud-v1"];
- expect(on(await relaunch())).toBe("pro");
+ expect(on(await relaunch())).toBe("apps");
});
it("a new campaign id shows it once more to someone who closed an earlier one, the Teams popup and the sponsor's card included", async () => {
- const earlier = ["cloud-pro-update-2026-10", "whats-new-2026-10", EARLIER_WHATS_NEW_NOTICE, TEAMS_NOTICE, MODELGO_OFFER_NOTICE];
+ const earlier = ["cloud-pro-update-2026-10", "whats-new-2026-10", EARLIER_WHATS_NEW_NOTICE, PREVIOUS_WHATS_NEW_NOTICE, TEAMS_NOTICE, MODELGO_OFFER_NOTICE];
fresh(); for (const id of earlier) storage.set(id, "1"); desk.saved = { seen: earlier.filter(id => id.endsWith("11") || id.endsWith("11b")) };
f.state.config.onboarding.hintsSeen = [...withTourFinished(undefined), ...earlier];
const html = await relaunch();
- expect(slidesOf(html)).toEqual(["pro", "team", "modelgo"]);
+ expect(ID).toBe("whats-new-2026-11c");
+ expect(slidesOf(html)).toEqual(["apps", "publish", "pro", "team"]);
press("Not now"); await flush();
await keptForGood();
- for (const id of [EARLIER_WHATS_NEW_NOTICE, TEAMS_NOTICE, MODELGO_OFFER_NOTICE]) expect(seenOnDesktop(), id).toContain(id);
+ for (const id of [PREVIOUS_WHATS_NEW_NOTICE, EARLIER_WHATS_NEW_NOTICE, TEAMS_NOTICE, MODELGO_OFFER_NOTICE]) expect(seenOnDesktop(), id).toContain(id);
});
it("on every page but a branded build's: the plan slides only on this computer's page of a desktop that sells the Cloud and no organization runs", async () => {
(window.ogb as Record<string, any>).remoteClient.active = true;
- expect(slidesOf(await relaunch()), "a remote client's window").toEqual(["team", "modelgo"]);
+ const remote = await relaunch();
+ expect(slidesOf(remote), "a remote client's window").toEqual(["apps", "publish", "team"]);
+ expect(remote, "it installs no app").toContain("Save any page a bot makes as an app and open it there any time.");
fresh(); showWindow(LOCAL_ORIGIN); f.brand = "file";
expect(on(await relaunch()), "a branded build").toBeNull();
fresh(); f.brand = "default"; desk.offered = false;
- expect(slidesOf(await relaunch()), "a desktop that sells no Cloud").toEqual(["team", "modelgo"]);
+ expect(slidesOf(await relaunch()), "a desktop that sells no Cloud").toEqual(["apps", "publish", "team"]);
fresh(); desk.offered = true;
(window.ogb as Record<string, unknown>).organization = { state: async () => ({ status: "connected", organization: { id: "o", name: "Acme" } }), onState: () => () => {} };
- expect(slidesOf(await relaunch()), "an organization's desktop").toEqual(["modelgo"]);
+ expect(slidesOf(await relaunch()), "an organization's desktop").toEqual(["apps", "publish"]);
fresh(); f.state.config.managedPolicy = { organizationName: "Acme", companyModelsOnly: true, allowedEngines: "all" };
- expect(on(await relaunch()), "one that also refuses the sponsor: nothing").toBeNull();
+ expect(slidesOf(await relaunch()), "one that also refuses the sponsor: the same").toEqual(["apps", "publish"]);
fresh(); delete f.state.config.managedPolicy;
snapshot = { status: "none" }; viewer = { hosted: false, canSave: true, cloudHome: true }; f.state.config.cloudHome = true;
f.state.config.onboarding.hintsSeen = [...withTourFinished(undefined), "cloud-setup-hidden"]; showWindow(MY_CLOUD);
- expect(slidesOf(await relaunch()), "My Cloud's page").toEqual(["team", "modelgo"]);
+ const cloud = await relaunch();
+ expect(slidesOf(cloud), "My Cloud's page: a Cloud they have").toEqual(["apps", "publish", "cloudNews", "team"]);
+ expect(cloud, "its apps are listed under its own heading").toContain("under “In this Cloud”");
fresh(); f.state.config.onboarding.hintsSeen = [...withTourFinished(undefined), "cloud-setup-hidden"]; viewer = { hosted: true, canSave: true }; showWindow(VPS);
- expect(slidesOf(await relaunch()), "a saved server's page").toEqual(["team", "modelgo"]);
+ expect(slidesOf(await relaunch()), "a saved server's page").toEqual(["apps", "publish", "team"]);
expect(steps().filter(props => props.slide === "pro")).toEqual([]);
});
});
@@ -1388,33 +1399,30 @@ describe("bots in two places", () => {
});
});
-describe("What's new for everyone: the new Cloud, Team and the sponsor's slides", () => {
- const SPONSOR = "ModelGo is now in MausBot", TEAMS = "MausBot is better with your team", CORNER = 'data-notice="modelgo-offer"';
- const URL_EXACT = "https://modelgo.ai/?utm_source=openmausbot&utm_medium=sponsorship&utm_content=app&campaign_id=openmausbot&ad_group_id=app";
- const OLD = [EARLIER_WHATS_NEW_NOTICE, TEAMS_NOTICE, MODELGO_OFFER_NOTICE];
+describe("What's new for everyone once more: Apps, Publish your bots, then the Cloud and Team", () => {
+ const APPS = "Your apps have a home", PUBLISH = "Publish your bots", TEAMS = "MausBot is better with your team", CORNER = 'data-notice="modelgo-offer"';
+ const SPONSOR = "ModelGo is now in MausBot";
+ const OLD = [PREVIOUS_WHATS_NEW_NOTICE, EARLIER_WHATS_NEW_NOTICE, TEAMS_NOTICE, MODELGO_OFFER_NOTICE];
const due = () => { storage.delete(WHATS_NEW_NOTICE); desk = desktopMachine(); f.state.config.onboarding.hintsSeen = hints().filter(id => id !== WHATS_NEW_NOTICE); };
const sponsor = () => vi.mocked(track).mock.calls.filter(([name]) => name === "modelgo_offer").map(([, props]) => props);
- const slideAt = (html: string) => /data-whats-new="(\w+)"/.exec(html)?.[1] ?? null;
- /** Next until the sponsor's slide is on screen. */
- const toSponsor = async () => { while (slideAt(render()) !== "modelgo") { press("Next"); render(); f.effects.forEach(effect => effect()); await flush(); } };
const gone = async () => {
expect(render()).toBe("");
for (const id of [WHATS_NEW_NOTICE, ...OLD]) {
expect(storage.get(id), id).toBe("1"); expect(hints(), id).toContain(id); expect(desk.saved?.seen, id).toContain(id);
}
const next = await relaunch();
- for (const text of [SPONSOR, TEAMS, CORNER]) expect(next, "never again, nor the old Teams popup or corner card").not.toContain(text);
+ for (const text of [APPS, TEAMS, CORNER]) expect(next, "never again, nor the old Teams popup or corner card").not.toContain(text);
};
beforeEach(() => {
due();
vi.stubGlobal("document", { activeElement: null, body: null, documentElement: { dataset: {} }, getElementById: () => null, querySelector: () => null, querySelectorAll: () => [] });
});
- it("someone who closed the earlier What's new, the Teams popup and the sponsor's card sees it once; closing it is for good, on every record", async () => {
+ it("someone who closed every earlier What's new, the Teams popup and the sponsor's card sees it once; closing it is for good, on every record", async () => {
for (const id of OLD) storage.set(id, "1");
desk.saved = { seen: [...OLD] }; f.state.config.onboarding.hintsSeen = [...hints(), ...OLD];
const html = await launch();
- expect(slidesOf(html)).toEqual(["pro", "modelgo"]);
+ expect(slidesOf(html), "the Admin's offer here sells no Team plan").toEqual(["apps", "publish", "pro"]);
for (const part of ['role="dialog"', 'aria-modal="true"', "items-center justify-center"]) expect(html, "a centred modal").toContain(part);
expect(html).not.toContain(CORNER);
expect(launchNotice()).toBe(WHATS_NEW_NOTICE);
@@ -1425,72 +1433,73 @@ describe("What's new for everyone: the new Cloud, Team and the sponsor's slides"
it("someone who saw none of them: What's new, and never the Teams popup or the corner card after it", async () => {
for (const id of OLD) storage.delete(id);
const html = await launch();
- expect(html).toContain(SPONSOR); expect(html).not.toContain(TEAMS); expect(html).not.toContain(CORNER);
+ expect(html).toContain(APPS); expect(html).not.toContain(TEAMS); expect(html).not.toContain(CORNER);
press("Close"); await flush();
expect(render(), "nothing follows in this launch").toBe("");
await gone();
});
- it("the sponsor's slide: its words and label, Get a ModelGo key at exactly the sponsor's address; counted as its card was, with the campaign", async () => {
- await launch(); await toSponsor();
- const html = render();
- for (const text of [SPONSOR, "One API key, every model.", "Sponsor", "Get a ModelGo key", "Add key"]) expect(html).toContain(text);
- expect(sponsor()).toEqual([{ action: "shown", place: "popup", campaign: WHATS_NEW_NOTICE }]);
- press("Get a ModelGo key"); await flush();
- expect(window.ogb?.openExternal).toHaveBeenCalledWith(URL_EXACT);
- expect(sponsor().at(-1)).toEqual({ action: "get_key", place: "popup", campaign: WHATS_NEW_NOTICE });
- expect(vi.mocked(track)).toHaveBeenCalledWith("whats_new", expect.objectContaining({ action: "get_key", slide: "modelgo", campaign: WHATS_NEW_NOTICE }));
+ it("Apps names the screen and its section as the app does; Open apps opens Published apps and ends it for good", async () => {
+ const html = await launch();
+ expect(html).toContain("The apps your bots build now live in “Published apps”, under “On this computer”. Save any page a bot makes as an app, open it in its own window and install it on your computer.");
+ press("Open apps"); await flush();
+ expect(f.dispatch).toHaveBeenCalledWith({ type: "showPublishedApps" });
+ expect(vi.mocked(track)).toHaveBeenCalledWith("whats_new", expect.objectContaining({ action: "open_apps", slide: "apps", campaign: WHATS_NEW_NOTICE }));
await gone();
});
- it("Add key opens Settings where the key goes; it is only for who may change this place's settings", async () => {
- await launch(); await toSponsor();
- press("Add key"); await flush();
- expect(f.dispatch).toHaveBeenCalledWith({ type: "toggleAppSettings", open: true, section: "connections" });
- expect(sponsor().at(-1)).toEqual({ action: "add_key", place: "popup", campaign: WHATS_NEW_NOTICE });
- await gone();
- due(); f.state.config.onboarding.hintsSeen = [...hints(), "cloud-setup-hidden"]; viewer = { hosted: true, canSave: false }; showWindow(VPS);
- const member = await relaunch();
- expect(member).toContain(SPONSOR); expect(member).not.toContain("Add key");
+ it("Publish your bots names the bot's menu item and the card's button, and asks nothing of a bot: no button of its own", async () => {
+ const html = await launch();
+ expect(html).toContain(PUBLISH);
+ expect(html).toContain("Share a bot as a template others can add to their own MausBot. Choose “Share as template” in the bot&#x27;s Share or ⋯ menu, then “Publish”.");
+ expect(vi.mocked(api).mock.calls.filter(([path]) => String(path).includes("/messages")), "nothing sent to a bot").toEqual([]);
});
- it("the sponsor's slide only where ModelGo may be offered: never a branded build, an organization that refuses it, or a Team Cloud's member", async () => {
+ it("no sponsor's slide in it: not for anyone, and nothing counted on modelgo_offer", async () => {
+ for (const setup of [() => {}, () => { f.state.config.managedPolicy = { organizationName: "Acme", companyModelsOnly: false, allowedEngines: ["modelgo"] }; },
+ () => { f.state.config.team = { id: "team-acme", name: "Acme" }; viewer = { hosted: false, canSave: true }; }]) {
+ due(); setup();
+ const html = await relaunch();
+ expect(html).toContain(APPS); expect(html).not.toContain(SPONSOR); expect(html).not.toContain("Get a ModelGo key");
+ }
+ expect(sponsor()).toEqual([]);
+ });
+
+ it("on every page but a branded build's, Apps and Publish for everyone, a Team Cloud's member and an organization that refuses the sponsor included", async () => {
f.brand = "file";
expect(await launch(), "white-label").toBe("");
f.brand = "default";
f.state.config.managedPolicy = { organizationName: "Acme", companyModelsOnly: false, allowedEngines: ["claudeAgent"] };
- expect(slidesOf(await relaunch()), "a list without ModelGo").toEqual(["pro"]);
- f.state.config.managedPolicy = { organizationName: "Acme", companyModelsOnly: false, allowedEngines: ["modelgo"] };
- expect(slidesOf(await relaunch()), "listed").toEqual(["pro", "modelgo"]);
- f.state.config.managedPolicy = { organizationName: "Team", team: true, companyModelsOnly: false, allowedEngines: ["codex"] };
- expect(slidesOf(await relaunch()), "a Team Cloud's rules are no organization-managed desktop").toEqual(["pro", "modelgo"]);
+ expect(slidesOf(await relaunch())).toEqual(["apps", "publish", "pro"]);
delete f.state.config.managedPolicy;
- f.state.config.team = { id: "team-acme", name: "Acme" };
- viewer = { hosted: false, canSave: true };
- expect(slidesOf(await relaunch()), "a Team Cloud's admin").toContain("modelgo");
- viewer = { hosted: false, canSave: false };
- expect(await relaunch(), "a member: nothing of it").not.toContain(SPONSOR);
+ due(); showWindow(MY_CLOUD); snapshot = { status: "none" };
+ viewer = { hosted: true, canSave: false, cloudHome: true, teamRole: "member" };
+ f.state.config = { ...f.state.config, cloudHome: true, team: { id: "team-acme", name: "Acme" } };
+ f.state.config.onboarding.hintsSeen = [...hints(), "cloud-setup-hidden", CLOUD_WELCOME_DONE];
+ const member = await relaunch();
+ expect(slidesOf(member), "a Team Cloud's member: what is new, never a button that sells").toEqual(["apps", "publish", "cloudNews", "teamNews"]);
+ for (const sale of ["Get Pro", "Start a Team", "Invite your team", "See the new Cloud"]) expect(member).not.toContain(sale);
});
for (const metChief of [false, true]) {
it(`a new install: never in the welcome or before the first reply, then once in the welcome's own launch${metChief ? " (after meeting the Chief)" : ""}`, async () => {
f.state.bots = [];
f.state.config.onboarding = { ...EMPTY_ONBOARDING };
- expect(await launch(), "the welcome is due").not.toContain(SPONSOR);
+ expect(await launch(), "the welcome is due").not.toContain(APPS);
f.state.welcomeOpen = true;
f.state.config.onboarding = { ...EMPTY_ONBOARDING, completedAt: "2026-11-01", version: 1, hintsSeen: [...withTourFinished(undefined), ...(metChief ? [MET_CHIEF_HINT] : [])] };
- expect(await settle(), "the welcome is open").not.toContain(SPONSOR);
+ expect(await settle(), "the welcome is open").not.toContain(APPS);
f.state.welcomeOpen = false; markWelcomeFinished();
- expect(await settle(), "the welcome just finished, nothing said yet").not.toContain(SPONSOR);
+ expect(await settle(), "the welcome just finished, nothing said yet").not.toContain(APPS);
f.state.bots = [{ tasks: [{ threadId: "first" }] }];
- expect(await settle(), "the first chat, before its first reply").not.toContain(SPONSOR);
+ expect(await settle(), "the first chat, before its first reply").not.toContain(APPS);
expect(launchNotice()).toBeNull();
f.state.bots = structuredClone(FIRST_REPLY);
- expect(await settle(), "the first reply came").toContain(SPONSOR);
+ expect(await settle(), "the first reply came").toContain(APPS);
expect(launchNotice()).toBe(WHATS_NEW_NOTICE);
press("Not now"); await flush();
expect(await launch(), "a reload").toBe("");
- expect(await relaunch(), "a later launch").not.toContain(SPONSOR);
+ expect(await relaunch(), "a later launch").not.toContain(APPS);
});
}
@@ -1499,7 +1508,7 @@ describe("What's new for everyone: the new Cloud, Team and the sponsor's slides"
account = paid({ trial: running }); snapshot = { status: "paid", tier: "pro", trial: running, notice: "active", credit: { grantedUsd: 5, remainingUsd: 5, state: "active" } };
f.state.bots = [{ tasks: [{ threadId: "first" }] }]; markWelcomeFinished();
const html = await launch();
- expect(html).toContain("Your free trial ends on"); expect(html).not.toContain(SPONSOR);
+ expect(html).toContain("Your free trial ends on"); expect(html).not.toContain(APPS);
});
it("a launch the move popup took leaves it for the next launch", async () => {
@@ -1513,31 +1522,31 @@ describe("What's new for everyone: the new Cloud, Team and the sponsor's slides"
expect(await launch(), "its first messages are still arriving").toBe("");
vi.advanceTimersByTime(6_000);
const grok = await settle();
- expect(grok).toContain("data-grok-move-popup"); expect(grok).not.toContain(SPONSOR);
+ expect(grok).toContain("data-grok-move-popup"); expect(grok).not.toContain(APPS);
press("Not now"); await flush();
f.state.bots = structuredClone(FIRST_REPLY);
const after = await settle();
- expect(after, "not in this launch, nor the old corner card").not.toContain(SPONSOR); expect(after).not.toContain(CORNER);
- expect(await relaunch(), "the next launch").toContain(SPONSOR);
+ expect(after, "not in this launch, nor the old corner card").not.toContain(APPS); expect(after).not.toContain(CORNER);
+ expect(await relaunch(), "the next launch").toContain(APPS);
});
it("never in the launch MausBot's first-launch card took", async () => {
f.viewerEmail = null;
f.state.bots = [{ ...structuredClone(FIRST_REPLY[0]), id: "maus", defaultBot: {} }];
- expect(await launch(), "the card is due").not.toContain(SPONSOR);
+ expect(await launch(), "the card is due").not.toContain(APPS);
markLaunchDialog("mausbot"); f.state.bots[0].welcomed = true;
- expect(await settle(), "the card closed in this launch").not.toContain(SPONSOR);
+ expect(await settle(), "the card closed in this launch").not.toContain(APPS);
f.state.bots[0].welcomed = true;
- expect(await relaunch(), "the next launch").toContain(SPONSOR);
+ expect(await relaunch(), "the next launch").toContain(APPS);
});
it("never over a live call or a move, and waits for the bots to load", async () => {
f.state.liveCall = { status: "active" };
- expect(await launch(), "a live call").not.toContain(SPONSOR);
+ expect(await launch(), "a live call").not.toContain(APPS);
f.state.liveCall = undefined; f.state.hydrated = false;
- expect(await relaunch(), "until the bots load").not.toContain(SPONSOR);
+ expect(await relaunch(), "until the bots load").not.toContain(APPS);
f.state.hydrated = true;
- expect(await relaunch()).toContain(SPONSOR);
+ expect(await relaunch()).toContain(APPS);
});
});
@@ -1691,7 +1700,7 @@ describe("cards from the announcements file", () => {
});
describe("Update MausBot on your phone", () => {
- const TITLE = "Update MausBot on your phone", MODELGO = "ModelGo is now in MausBot";
+ const TITLE = "Update MausBot on your phone", WHATS_NEW = "Your apps have a home";
const OLD = { id: "0f8c2a41-1111-4222-8333-444455556666", name: "Ada's iPhone", createdAt: 1, lastSeenAt: 1, cloudDesktopAccess: false };
const NEW = { id: "5b5b5b5b-1111-4222-8333-444455556666", name: "Work phone", createdAt: 1, lastSeenAt: 1, cloudDesktopAccess: false, e2eAt: 2 };
const OTHER = { ...OLD, id: "7c7c7c7c-1111-4222-8333-444455556666", name: "Old Android" };
@@ -1769,10 +1778,10 @@ describe("Update MausBot on your phone", () => {
it("is a notice to act on: ahead of What's new, which waits for a later launch, and behind the Grok Bot popup", async () => {
storage.delete(WHATS_NEW_NOTICE); desk = desktopMachine();
const html = await launch();
- expect(html).toContain(TITLE); expect(html).not.toContain(MODELGO);
+ expect(html).toContain(TITLE); expect(html).not.toContain(WHATS_NEW);
press("Not now"); await flush();
expect(await settle(), "What's new is no follower").toBe("");
- expect(await relaunch(), "the next launch").toContain(MODELGO);
+ expect(await relaunch(), "the next launch").toContain(WHATS_NEW);
storage.delete(GROK_MOVE_NOTICE); session.clear(); f.state.config.onboarding.hintsSeen = withTourFinished(undefined); storage.delete("phone-app-update:0f8c2a41");
const first = await launch();
expect(first, "the Grok Bot popup goes first").not.toContain(TITLE);
@@ -1854,16 +1863,17 @@ describe("the Teams What's new", () => {
}
});
- it("a Team Cloud's admin gets What's new with Invite your team and the sponsor's, kept in their own record, never the team's; this popup never follows", async () => {
+ it("a Team Cloud's admin gets What's new with Invite your team after what is new on the Cloud, kept in their own record, never the team's; this popup never follows", async () => {
storage.delete(WHATS_NEW_NOTICE); desk = desktopMachine();
onTeamCloud("admin", "desktop");
const html = await launch();
- expect(slidesOf(html)).toEqual(["team", "modelgo"]);
+ expect(slidesOf(html)).toEqual(["apps", "publish", "cloudNews", "team"]);
expect(html).toContain("Invite your team"); expect(html).not.toContain("Start a Team"); expect(html).not.toContain(TITLE);
+ for (let i = 0; i < 3; i++) { press("Next"); render(); f.effects.forEach(effect => effect()); await flush(); }
press("Invite your team"); await flush();
expect(window.open, "a Cloud's page opens links as a browser does").toHaveBeenCalledWith("https://admin.openmausbot.com/cloud/team/team-acme/people?do=invite", "_blank", "noopener,noreferrer");
expect(vi.mocked(track)).toHaveBeenCalledWith("whats_new", expect.objectContaining({ action: "invite", slide: "team", audience: "team_admin", campaign: WHATS_NEW_NOTICE }));
- expect(wrote("/api/me/welcome")).toEqual([{ hints: [WHATS_NEW_NOTICE, TEAMS_NOTICE, MODELGO_OFFER_NOTICE, EARLIER_WHATS_NEW_NOTICE] }]);
+ expect(wrote("/api/me/welcome")).toEqual([{ hints: [WHATS_NEW_NOTICE, PREVIOUS_WHATS_NEW_NOTICE, EARLIER_WHATS_NEW_NOTICE, TEAMS_NOTICE, MODELGO_OFFER_NOTICE] }]);
expect(wrote("/api/config"), "never the team's record").toEqual([]);
expect(desk.saved?.seen).toEqual(expect.arrayContaining([WHATS_NEW_NOTICE, TEAMS_NOTICE]));
expect(render()).toBe("");
@@ -1901,10 +1911,10 @@ describe("the Teams What's new", () => {
describe("bots together by default", () => {
let saved: unknown, reads: string[], lent: boolean, lends: boolean[];
- const install = () => {
+ const install = (workspace = "computer:/data") => {
const together = createPlacesTogether({
pref: { read: () => { if (saved === undefined) throw Object.assign(new Error("none"), { code: "ENOENT" }); return saved; }, write: (value: unknown) => { saved = JSON.parse(JSON.stringify(value)); } },
- cloud: () => ({ origin: MY_CLOUD, account: "a", asleep: false }), computer: () => "computer:/data",
+ cloud: () => ({ origin: MY_CLOUD, account: "a", asleep: false }), computer: () => workspace,
powerChecked: async () => { reads.push("admin"); return true; },
local: async (route: string) => { reads.push(`computer ${route}`); return new Response(JSON.stringify({ bots: [] })); },
cloudFetch: async (url: string) => { reads.push(`cloud ${url}`); return new Response(JSON.stringify({ bots: [] })); },
@@ -1919,57 +1929,157 @@ describe("bots together by default", () => {
beforeEach(() => { saved = undefined; reads = []; lent = false; lends = []; resetPlacesTogetherForTest(); });
afterEach(() => resetPlacesTogetherForTest());
- it("once, on this computer's page, for a person who never chose: drawing it turns the list on, lends nothing and reads nothing of My Cloud yet", async () => {
- returning(); storage.set(CLOUD_INTRO, "1");
+ const CORNER = 'data-notice="together-default"', SLIDE = 'data-whats-new-slide="together"';
+ const team = { id: "t1", name: "Design Studio", role: "member" as const, machine: null };
+ /** This What's new not seen yet on this desktop. */
+ const whatsNewUnseen = () => { desk = desktopMachine(); storage.delete(WHATS_NEW_NOTICE); };
+ const onScreen = (html: string) => /data-whats-new="(\w+)"/.exec(html)?.[1] ?? null;
+ /** Next until the notice's slide is on screen, each slide's effects run as the page runs them. */
+ const toTogether = async () => {
+ for (let i = 0; i < 6 && onScreen(render()) !== "together"; i++) { press("Next"); render(); f.effects.forEach(effect => effect()); await flush(); }
+ expect(onScreen(render())).toBe("together");
+ };
+
+ it("the update's own launch: one carousel, the notice's slide last; opening it tells main nothing, reaching that slide turns the default on", async () => {
+ returning(); whatsNewUnseen(); account = paid({ teams: [team] });
const together = install();
- expect(together.on()).toBe(false);
const html = await launch();
- expect(html).toContain('data-notice="together-default"');
+ expect(slidesOf(html)).toEqual(["apps", "publish", "cloudNews", "teamNews", "together"]);
+ expect(onScreen(html)).toBe("apps");
+ expect(html).toContain('aria-modal="true"');
+ expect(html).not.toContain(CORNER);
expect(html).toContain("Your bots are in one list now");
expect(html).toContain("Let your Clouds&#x27; bots run commands on this computer");
- expect(html).not.toContain(STAR);
- expect(together.on()).toBe(true);
+ expect(html).toContain("What&#x27;s new in MausBot Cloud");
+ expect(html).toContain("What&#x27;s new for your team");
+ expect(html, "nothing sold to someone with a plan and a team").not.toContain("Get Pro");
+ expect(html).not.toContain("Start a Team");
+ expect(together.on(), "open on its first slide: the notice is not shown, so main turns nothing on").toBe(false);
+ expect(await settle()).toContain(SLIDE);
+ expect(together.on(), "still nothing while the person stays on the first slides").toBe(false);
+ await toTogether();
+ expect(together.on(), "shown: the default is on, as the corner notice's drawing turns it").toBe(true);
expect(lends, "the default never lends commands").toEqual([]);
expect(reads.filter(read => !read.startsWith("computer")), "no read of My Cloud at the start").toEqual([]);
+ expect(await settle(), "kept on screen though main no longer calls the notice due").toContain(SLIDE);
press("Got it");
- expect(await settle()).not.toContain('data-notice="together-default"');
+ expect(await settle()).not.toContain(CORNER);
resetPlacesTogetherForTest();
- expect(await launch(), "closed: never again").not.toContain('data-notice="together-default"');
+ const next = await relaunch();
+ expect(next, "the slide was the notice: never in the corner after").not.toContain(CORNER);
+ expect(next).not.toContain(SLIDE);
expect(together.on(), "and it stays on").toBe(true);
});
- it("never in the launch What's new or the Cloud card takes: it waits for a later launch", async () => {
- returning();
+ it("closed before the notice's slide: main is never told, the carousel never comes back, and the corner notice shows it on a later launch", async () => {
+ returning(); whatsNewUnseen(); storage.set(CLOUD_INTRO, "1"); account = paid({ teams: [team] });
+ const together = install();
+ expect(slidesOf(await launch())).toContain("together");
+ press("Next"); render(); f.effects.forEach(effect => effect()); await flush();
+ press("Close"); await flush();
+ expect(await settle(), "nothing else in this launch").toBe("");
+ expect(together.on(), "the notice was never on screen").toBe(false);
+ resetPlacesTogetherForTest();
+ const next = await relaunch();
+ expect(next, "What's new is seen: it never comes back for the notice").not.toContain("data-whats-new");
+ expect(next).toContain(CORNER);
+ expect(together.on(), "the corner notice, drawn, turns the default on").toBe(true);
+ });
+
+ it("My Cloud as home: the slide keeps its line that this computer's bots now run while the app is open, though main stops saying it once shown", async () => {
+ returning(); whatsNewUnseen(); account = paid({ teams: [team] });
+ install("profile:default");
+ const html = await launch();
+ expect(html).toContain(SLIDE);
+ expect(html).toContain("data-together-notice-background");
+ await toTogether();
+ // Main tells the page it changed (here: the window is focused, which asks again): the notice is no longer due.
+ for (const [type, listener] of vi.mocked(window.addEventListener).mock.calls) if (type === "focus") (listener as () => void)();
+ await flush();
+ expect(desk.handlers.get("places-together:state")!({ page: "local" }), "main no longer says it").not.toHaveProperty("profileHome");
+ expect(await settle()).toContain("This computer&#x27;s bots and their routines now run while the app is open.");
+ });
+
+ it("no Cloud plan of the kind sold here: the selling Cloud and Team slides, unchanged, before the notice's", async () => {
+ returning(); whatsNewUnseen(); account = signedOut;
+ offer = { ...PLAIN_OFFER, plans: [...PLAIN_OFFER.plans, { tier: "team", label: "Team", amount: 4000, trialDays: 3 }] };
+ install();
+ const html = await launch();
+ expect(slidesOf(html)).toEqual(["apps", "publish", "pro", "team", "together"]);
+ expect(html).toContain("Meet the new MausBot Cloud");
+ expect(html).toContain("Start a Team");
+ });
+
+ it("someone who already saw this What's new never gets the carousel again for the notice: the corner notice, as before", async () => {
+ returning(); storage.set(CLOUD_INTRO, "1"); account = paid({ teams: [team] });
+ install();
+ const html = await launch();
+ expect(html).not.toContain("data-whats-new");
+ expect(html).toContain(CORNER);
+ });
+
+ it("whose corner notice was already drawn: never the slide; the corner notice as before until it is closed", async () => {
+ returning(); storage.set(CLOUD_INTRO, "1"); account = paid({ teams: [team] });
+ saved = { v: 1, noticed: { a: NOW - DAY } };
+ const together = install();
+ expect(together.on(), "drawn on 0.1.182: on already").toBe(true);
+ const html = await launch();
+ expect(html).not.toContain(SLIDE);
+ expect(html).not.toContain("data-whats-new");
+ expect(html).toContain(CORNER);
+ whatsNewUnseen(); install(); resetPlacesTogetherForTest();
+ const unseen = await relaunch();
+ expect(slidesOf(unseen), "What's new for a plan and a team, without the notice's slide").toEqual(["apps", "publish", "cloudNews", "teamNews"]);
+ });
+
+ it("fresh install: What's new does not show in its first chat's launch, so the corner notice does, and the slide never follows", async () => {
+ whatsNewUnseen(); account = paid({ teams: [team] }); storage.set(CLOUD_INTRO, "1");
+ f.state.bots = [{ tasks: [{ threadId: "first", usage: { turns: 0 } }] }];
install();
const html = await launch();
- expect(html).not.toContain('data-notice="together-default"');
+ expect(html).not.toContain("data-whats-new");
+ expect(html).toContain(CORNER);
+ press("Got it");
+ f.state.bots = structuredClone(FIRST_REPLY);
+ resetPlacesTogetherForTest();
+ const next = await relaunch();
+ expect(next).not.toContain(SLIDE);
+ expect(next).not.toContain(CORNER);
});
it("no suggestion to move bots to My Cloud goes ahead of it: not while it is due, nor while main has not said whether it is", async () => {
- returning(); storage.set(CLOUD_INTRO, "1"); storage.set(PRODUCT_HUNT_NOTICE, "1");
+ returning(); whatsNewUnseen(); storage.set(CLOUD_INTRO, "1"); storage.set(PRODUCT_HUNT_NOTICE, "1");
desk.handlers.set("two-places:state", async () => ({ suggest: { key: "cloud:mine", name: "My Cloud", kind: "cloud" } }));
desk.handlers.set("places-together:state", () => new Promise(() => {}));
- expect(await launch(), "main has not said yet").not.toContain('data-notice="two-places"');
+ const waiting = await launch();
+ expect(waiting, "main has not said yet").not.toContain('data-notice="two-places"');
+ expect(waiting, "nor What's new, which may carry the notice").not.toContain("data-whats-new");
resetPlacesTogetherForTest();
install();
const due = await launch();
expect(due).not.toContain('data-notice="two-places"');
- expect(due).toContain('data-notice="together-default"');
+ expect(due).toContain(SLIDE);
});
- it("never for a person who chose either way, nor on My Cloud's page", async () => {
+ it("not eligible: never the slide nor the corner notice for a person who chose either way, on My Cloud's page, and no slide on a branded build's", async () => {
returning();
saved = { v: 1, on: false };
install();
- expect(await launch()).not.toContain('data-notice="together-default"');
+ for (const html of [await launch()]) { expect(html).not.toContain(CORNER); expect(html).not.toContain(SLIDE); }
saved = { v: 1, on: true };
resetPlacesTogetherForTest();
install();
- expect(await launch()).not.toContain('data-notice="together-default"');
+ for (const html of [await launch()]) { expect(html).not.toContain(CORNER); expect(html).not.toContain(SLIDE); }
saved = undefined;
resetPlacesTogetherForTest();
install();
showWindow(MY_CLOUD);
- expect(await launch()).not.toContain('data-notice="together-default"');
+ for (const html of [await launch()]) { expect(html).not.toContain(CORNER); expect(html).not.toContain(SLIDE); }
+ showWindow(LOCAL_ORIGIN); f.brand = "file";
+ resetPlacesTogetherForTest();
+ install();
+ const branded = await relaunch();
+ expect(branded).not.toContain(SLIDE);
+ expect(branded, "a branded build has no What's new: the corner notice, as before").toContain(CORNER);
});
});
diff --git a/src/components/AppNotices.tsx b/src/components/AppNotices.tsx
index 7e9fbfda7c..4d18524a16 100644
--- a/src/components/AppNotices.tsx
+++ b/src/components/AppNotices.tsx
@@ -9,22 +9,21 @@ import { track } from "@/lib/analytics";
import { announcementConditions, announcementPlan, announcementPlatform, announcementSurface, markLaunchAnnouncement, pickAnnouncement, providersRestricted, rememberCardSeen, rememberSponsorDay,
reportAnnouncement, SPONSOR_CARDS_FOR_TEAM_MEMBERS, useAnnouncementCards, type SeenRecord } from "@/lib/announcements";
import { boatOfferRuns } from "@/lib/boat-offer";
-import { modelgoOfferable } from "@/lib/modelgo-offer";
import { brandStatus } from "@/lib/brand";
import { buyOfferAllowed, cloudNoticeKind, cloudPlanView, cloudTrialNotice, cloudTrialView, offerTrialDays } from "@/lib/cloud-plan";
import { jobRoutine, useCloudIntent } from "@/lib/cloud-intent";
import { CLOUD_INTENT_GIVEN, cloudSetupStage } from "@/lib/cloud-setup";
import { cornerPopupWaits, firstChatQuiet, firstReplyPending } from "@/lib/corner-popup";
-import { ANNOUNCEMENT_NOTICE, BOAT_OFFER_NOTICE, CLOUD_INTRO, CLOUD_NOTICE, CLOUD_TRIAL_NOTICE, dismissNotice, dismissNotices, EARLIER_WHATS_NEW_NOTICE, GROK_MOVE_NOTICE, introShown, introStage, launchNotice, markLaunchNotice, MODELGO_OFFER_NOTICE, nextNotice, noticeSeen, PHONE_UPDATE_NOTICE, phoneUpdateHint, PRODUCT_HUNT_NOTICE, TOGETHER_NOTICE, PRODUCT_HUNT_UNTIL, PRODUCT_HUNT_URL, SIMPLE_MODE_NOTICE, STAR_NOTICE, TEAMS_NOTICE, TWO_PLACES_NOTICE, UPDATES_CONSENT_NOTICE, usedBefore, WHATS_NEW_NOTICE } from "@/lib/notices";
+import { ANNOUNCEMENT_NOTICE, BOAT_OFFER_NOTICE, CLOUD_INTRO, CLOUD_NOTICE, CLOUD_TRIAL_NOTICE, dismissNotice, dismissNotices, EARLIER_WHATS_NEW_NOTICE, GROK_MOVE_NOTICE, introShown, introStage, launchNotice, markLaunchNotice, MODELGO_OFFER_NOTICE, nextNotice, noticeSeen, PHONE_UPDATE_NOTICE, phoneUpdateHint, PREVIOUS_WHATS_NEW_NOTICE, PRODUCT_HUNT_NOTICE, TOGETHER_NOTICE, PRODUCT_HUNT_UNTIL, PRODUCT_HUNT_URL, SIMPLE_MODE_NOTICE, STAR_NOTICE, TEAMS_NOTICE, TWO_PLACES_NOTICE, UPDATES_CONSENT_NOTICE, usedBefore, WHATS_NEW_NOTICE } from "@/lib/notices";
import { rememberNoticeSeen } from "@/lib/announcement-history";
import { reportTeams, teamsAction } from "@/lib/teams-whats-new";
import { useTwoPlaces } from "@/lib/two-places";
-import { useTogetherNoticeDue } from "@/lib/places-together";
+import { togetherSlideShown, useTogetherNoticeDrawn, useTogetherNoticeDue } from "@/lib/places-together";
import { SIMPLE_ONLY } from "@/lib/simple-only";
import { useAdvancedBackDue, useNewLookDue } from "@/lib/new-look";
import { useAdvancedMode } from "@/lib/interface-mode";
import { useSimpleModePromptSeen } from "@/lib/simple-mode-prompt";
-import { reportWhatsNew, WHATS_NEW_SOURCES, whatsNewAudience, whatsNewCarousel, whatsNewView, type WhatsNewAction, type WhatsNewSlide } from "@/lib/whats-new";
+import { reportWhatsNew, togetherSlideDue, WHATS_NEW_SOURCES, whatsNewAudience, whatsNewCarousel, whatsNewView, type WhatsNewAction, type WhatsNewSlide } from "@/lib/whats-new";
import { cloudSignInDue, onboardingCloudOffered, welcomeFinishedThisLaunch, type WelcomeViewer } from "@/lib/onboarding";
import { launchDialogShown, markLaunchDialog } from "@/lib/launch-dialogs";
import { useUpdaterState } from "@/lib/updater";
@@ -120,6 +119,9 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { q
const twoFact = !local || two.suggest === null || (cloudHeld && togetherDue === true) ? false : two.suggest === undefined || cloudHeld ? null : true;
// Once drawn it stays until closed, though main stops calling it due as soon as one of its switches is used.
const [togetherOpen, setTogetherOpen] = useState(false);
+ // The notice's slide in What's new, kept in this page's carousel once shown there (main stops calling it due then).
+ const togetherDrawn = useTogetherNoticeDrawn();
+ const [togetherSlideKept, setTogetherSlideKept] = useState(false);
const togetherFact = togetherOpen ? true : remote || !local || togetherDue === false ? false : togetherDue === null || (state.liveCall && state.liveCall.status !== "ended") ? null : true;
// Phones whose older app lost its way in: this computer's own page only, never a Cloud, a server's page or client mode.
const linkPhones = useRetiredLinkPhones(!remote && local);
@@ -147,8 +149,10 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { q
const branded = brandStatus().source === "file", team = Boolean(state.config?.team);
const liveCall = Boolean(state.liveCall && state.liveCall.status !== "ended");
// What's new, once per person on every page but a branded build's. Its plan slides: This computer's page of a desktop that
- // sells MausBot Cloud, never one an organization runs.
+ // sells MausBot Cloud, never one an organization runs. Its last slide is the notice of the bots together, for whom that
+ // notice is due and was never drawn; closed before that slide, the corner notice shows it on a later launch.
const whatsNewSeen = noticeSeen(record, WHATS_NEW_NOTICE) || Boolean(desktopState?.seen.includes(WHATS_NEW_NOTICE));
+ const togetherSlide = togetherSlideDue({ here: local && !remote && !branded, due: togetherDue, drawn: togetherDrawn, kept: togetherSlideKept });
const whatsNewHere = !branded && !whatsNewSeen;
const plansDue = !whatsNewHere || !bridge || !desktop || organization === true ? false : !desktopState || organization === null ? null : desktopState.cloud;
const whatsNewFor = plansDue === false ? null : whatsNewAudience(account);
@@ -184,8 +188,11 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { q
const teams = teamsAction({ team: state.config?.team, viewer, account, canAddCloud: Boolean(bridge) });
// Owed while it has a slide for this person (or may, while that is read): the Teams popup and the sponsor's card it took
// in wait for it, and count as seen with it.
- const whatsNewState = !whatsNewHere ? "none" : whatsNewCarousel({ plans, team: organization === true ? null : teams, teamSold,
- modelgo: sponsorsHere && modelgoOfferable(state.config?.managedPolicy), addKey: viewer?.canSave !== false, staging: account?.staging === true });
+ // A Cloud this person has: this page is one, or this desktop's sign-in has a plan of its own or a team's.
+ const hasCloud = viewer?.cloudHome === true || whatsNewFor === "own" || whatsNewFor === "team";
+ const whatsNewState = !whatsNewHere ? "none" : togetherSlide === null ? "loading" : whatsNewCarousel({ plans, team: organization === true ? null : teams, teamSold,
+ cloud: hasCloud, apps: { place: state.config?.cloudHome === true ? "cloud" : "computer", install: local && !remote && Boolean(window.ogb?.appInstall) },
+ staging: account?.staging === true, together: togetherSlide });
const whatsNew = typeof whatsNewState === "object" ? whatsNewState : null;
const whatsNewOwed = whatsNewState !== "none";
const whatsNewBlocked = useOtherDialogOpen(whatsNewOwed, true) || liveCall;
@@ -362,10 +369,14 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { q
}
if (notice === WHATS_NEW_NOTICE && whatsNew) {
- const report = (action: WhatsNewAction, slide: WhatsNewSlide) => reportWhatsNew(action, slide, whatsNew);
- const done = () => { close(); rememberNoticeSeen(WHATS_NEW_NOTICE, record, writer, [TEAMS_NOTICE, MODELGO_OFFER_NOTICE, EARLIER_WHATS_NEW_NOTICE]); };
+ const report = (action: WhatsNewAction, slide: WhatsNewSlide) => {
+ // Shown here, the notice of the bots together is done: kept in this carousel, and never in the corner after.
+ if (action === "seen" && slide === "together" && !togetherSlideKept) { setTogetherSlideKept(true); void togetherSlideShown(); }
+ reportWhatsNew(action, slide, whatsNew);
+ };
+ const done = () => { close(); rememberNoticeSeen(WHATS_NEW_NOTICE, record, writer, [PREVIOUS_WHATS_NEW_NOTICE, EARLIER_WHATS_NEW_NOTICE, TEAMS_NOTICE, MODELGO_OFFER_NOTICE]); };
return <WhatsNewPopup view={whatsNew} report={report} onDone={done} onBuy={slide => dispatch({ type: "openCloudAdd", source: WHATS_NEW_SOURCES[slide] })}
- onAddKey={() => dispatch({ type: "toggleAppSettings", open: true, section: "connections" })} />;
+ onOpenApps={() => dispatch({ type: "showPublishedApps" })} />;
}
if (notice === UPDATES_CONSENT_NOTICE && consent.state) {
diff --git a/src/components/TogetherChoice.tsx b/src/components/TogetherChoice.tsx
new file mode 100644
index 0000000000..23e1dce36e
--- /dev/null
+++ b/src/components/TogetherChoice.tsx
@@ -0,0 +1,56 @@
+import { useState } from "react";
+import { t } from "@/lib/i18n";
+import { setPlacesTogether, setTogetherCommands, togetherNoticeDone, usePlacesTogether } from "@/lib/places-together";
+import { Switch } from "./SettingsPrimitives";
+
+/** The choice the notice of "This computer and My Cloud together" offers, wherever it is shown (the corner notice, What's
+ * new's slide): its first switch turns the joining off at once (back to two separate lists); its second is "Let your Clouds'
+ * bots run commands on this computer", as lending says it now, never turned on for them, and turned on only after the same
+ * question the OpenMausBot icon's menu asks. Either switch ends the notice for good. `id` keeps its labels apart from any
+ * other copy's. */
+export function TogetherChoice({ id = "together-notice" }: { id?: string }) {
+ const together = usePlacesTogether();
+ // Lending's own word, live while the choice is up (also when the icon's menu changes it); while the person's own turn
+ // waits on the icon's question, the switch shows where they turned it.
+ const [turning, setTurning] = useState<boolean | null>(null);
+ const [busy, setBusy] = useState<"list" | "commands" | null>(null);
+ const [failed, setFailed] = useState(false);
+ const [touched, setTouched] = useState(false);
+ // My Cloud as home: main says so only while the notice is due, which What's new's slide ends as it is shown.
+ const [kept] = useState(() => ({ home: false }));
+ if (together?.profileHome) kept.home = true;
+ const commands = turning ?? (typeof together?.commands === "boolean" ? together.commands : null);
+ // Until the person turns it, the notice's own drawing is turning it on: never shown off for the moment main takes.
+ const on = touched ? together?.on === true : together?.on !== false || together?.notice === true;
+ const turnList = () => {
+ if (busy) return;
+ setBusy("list"); setFailed(false); setTouched(true);
+ togetherNoticeDone();
+ void setPlacesTogether(!on, "notice").catch(() => setFailed(true)).finally(() => setBusy(null));
+ };
+ const turnCommands = () => {
+ if (busy) return;
+ const next = !(commands ?? false);
+ setBusy("commands"); setFailed(false); setTurning(next);
+ togetherNoticeDone();
+ void setTogetherCommands(next).catch(() => setFailed(true)).finally(() => { setTurning(null); setBusy(null); });
+ };
+ return <>
+ {kept.home && <p data-together-notice-background className="-mt-2 mb-3 text-[12px] leading-snug text-ink-secondary">{t("together.notice.background")}</p>}
+ <div className="mb-3 flex flex-col gap-2.5">
+ <label className="flex items-center justify-between gap-3 text-[13px] text-ink">
+ <span id={`${id}-list`}>{t("together.notice.list")}</span>
+ <Switch data-together-notice-list checked={on} disabled={busy !== null} aria-labelledby={`${id}-list`} onClick={turnList} />
+ </label>
+ {on && <div className="flex flex-col gap-1">
+ <label className="flex items-center justify-between gap-3 text-[13px] text-ink">
+ <span id={`${id}-commands`}>{t("together.notice.commands")}</span>
+ <Switch data-together-notice-commands checked={commands === true} disabled={busy !== null || commands === null} aria-labelledby={`${id}-commands`} onClick={turnCommands} />
+ </label>
+ <p className="text-[12px] leading-snug text-ink-secondary">{t(commands ? "together.notice.commandsOn" : "together.notice.commandsOff")}</p>
+ </div>}
+ {!on && <p data-together-notice-off className="text-[12px] leading-snug text-ink-secondary">{t("together.notice.off")}</p>}
+ </div>
+ {failed && <p role="alert" className="mb-3 text-[12px] text-danger">{t("together.switch.failed")}</p>}
+ </>;
+}
diff --git a/src/components/TogetherNotice.tsx b/src/components/TogetherNotice.tsx
index f61dd741f7..c822532fed 100644
--- a/src/components/TogetherNotice.tsx
+++ b/src/components/TogetherNotice.tsx
@@ -1,66 +1,27 @@
import { useEffect, useState } from "react";
import { Merge } from "lucide-react";
import { t } from "@/lib/i18n";
-import { setPlacesTogether, setTogetherCommands, togetherNoticeDone, togetherNoticeShown, usePlacesTogether } from "@/lib/places-together";
+import { togetherNoticeDone, togetherNoticeShown } from "@/lib/places-together";
import { NoticeCard, PRIMARY_BUTTON } from "./NoticeCard";
-import { Switch } from "./SettingsPrimitives";
+import { TogetherChoice } from "./TogetherChoice";
/** The one-time notice of "This computer and My Cloud together" being on by default (electron/places-together.mjs): a
* card in the corner, like every other notice, that never takes focus or waits for an answer. Drawing it is what turns the
- * default on (main does nothing before). Its first switch turns the joining off at once (back to two separate lists); its
- * second is "Let your Clouds' bots run commands on this computer", as lending says it now, never turned on for them, and
- * turned on only after the same question the OpenMausBot icon's menu asks. Got
- * it, the close button, Escape or either switch, and it never shows again. */
+ * default on (main does nothing before). It carries the choice (TogetherChoice) What's new's slide carries too, and shows
+ * where that slide could not: a launch What's new does not show in. Got it, the close button, Escape or either switch,
+ * and it never shows again. */
export function TogetherNotice({ onClose }: { onClose: () => void }) {
- const together = usePlacesTogether();
// Told once per notice on screen (a kept object, not a ref: notices are also drawn outside a live tree in tests).
const [told] = useState(() => ({ current: false }));
- // Lending's own word, live while the notice is up (also when the icon's menu changes it); while the person's own turn
- // waits on the icon's question, the switch shows where they turned it.
- const [turning, setTurning] = useState<boolean | null>(null);
- const [busy, setBusy] = useState<"list" | "commands" | null>(null);
- const [failed, setFailed] = useState(false);
- const [touched, setTouched] = useState(false);
useEffect(() => {
if (told.current) return;
told.current = true;
void togetherNoticeShown();
}, []);
- const commands = turning ?? (typeof together?.commands === "boolean" ? together.commands : null);
- // Until the person turns it, the notice's own drawing is turning it on: never shown off for the moment main takes.
- const on = touched ? together?.on === true : together?.on !== false || together?.notice === true;
const done = () => { togetherNoticeDone(); onClose(); };
- const turnList = () => {
- if (busy) return;
- setBusy("list"); setFailed(false); setTouched(true);
- togetherNoticeDone();
- void setPlacesTogether(!on, "notice").catch(() => setFailed(true)).finally(() => setBusy(null));
- };
- const turnCommands = () => {
- if (busy) return;
- const next = !(commands ?? false);
- setBusy("commands"); setFailed(false); setTurning(next);
- togetherNoticeDone();
- void setTogetherCommands(next).catch(() => setFailed(true)).finally(() => { setTurning(null); setBusy(null); });
- };
return <NoticeCard titleId="together-notice-title" notice="together-default" icon={Merge} title={t("together.notice.title")} onDismiss={done}>
<p className="mb-3 mt-1 text-[13px] text-ink-secondary">{t("together.notice.body")}</p>
- {together?.profileHome && <p data-together-notice-background className="-mt-2 mb-3 text-[12px] leading-snug text-ink-secondary">{t("together.notice.background")}</p>}
- <div className="mb-3 flex flex-col gap-2.5">
- <label className="flex items-center justify-between gap-3 text-[13px] text-ink">
- <span id="together-notice-list">{t("together.notice.list")}</span>
- <Switch data-together-notice-list checked={on} disabled={busy !== null} aria-labelledby="together-notice-list" onClick={turnList} />
- </label>
- {on && <div className="flex flex-col gap-1">
- <label className="flex items-center justify-between gap-3 text-[13px] text-ink">
- <span id="together-notice-commands">{t("together.notice.commands")}</span>
- <Switch data-together-notice-commands checked={commands === true} disabled={busy !== null || commands === null} aria-labelledby="together-notice-commands" onClick={turnCommands} />
- </label>
- <p className="text-[12px] leading-snug text-ink-secondary">{t(commands ? "together.notice.commandsOn" : "together.notice.commandsOff")}</p>
- </div>}
- {!on && <p data-together-notice-off className="text-[12px] leading-snug text-ink-secondary">{t("together.notice.off")}</p>}
- </div>
- {failed && <p role="alert" className="mb-3 text-[12px] text-danger">{t("together.switch.failed")}</p>}
+ <TogetherChoice />
<button type="button" data-together-notice-done className={PRIMARY_BUTTON} onClick={done}>{t("together.notice.done")}</button>
</NoticeCard>;
}
diff --git a/src/components/whats-new/WhatsNewPopup.test.ts b/src/components/whats-new/WhatsNewPopup.test.ts
index 464e077830..1683ef3794 100644
--- a/src/components/whats-new/WhatsNewPopup.test.ts
+++ b/src/components/whats-new/WhatsNewPopup.test.ts
@@ -15,10 +15,9 @@ const PRO = "Meet the new MausBot Cloud", TEAM = "Shared bots for your whole tea
let host: HTMLDivElement, root: Root, opener: HTMLButtonElement;
let steps: Array<[WhatsNewAction, WhatsNewSlide]>;
-const props = { report: vi.fn((action: WhatsNewAction, slide: WhatsNewSlide) => void steps.push([action, slide])), onBuy: vi.fn(), onAddKey: vi.fn(), onDone: vi.fn() };
-const THREE: WhatsNewView = { ...BOTH, slides: ["pro", "team", "modelgo"], addKey: true };
-const SPONSOR = "ModelGo is now in MausBot";
-const MODELGO_URL = "https://modelgo.ai/?utm_source=openmausbot&utm_medium=sponsorship&utm_content=app&campaign_id=openmausbot&ad_group_id=app";
+const props = { report: vi.fn((action: WhatsNewAction, slide: WhatsNewSlide) => void steps.push([action, slide])), onBuy: vi.fn(), onOpenApps: vi.fn(), onDone: vi.fn() };
+const NEWS: WhatsNewView = { ...BOTH, slides: ["apps", "publish", "cloudNews", "teamNews"], audience: "other", plans: {}, apps: { place: "computer", install: true } };
+const APPS = "Your apps have a home", PUBLISH = "Publish your bots", CLOUD_NEWS = "What's new in MausBot Cloud", TEAM_NEWS = "What's new for your team";
const show = async (view: WhatsNewView = BOTH) => { await act(async () => { root.render(createElement(WhatsNewPopup, { view, ...props })); }); };
const dialog = () => host.querySelector<HTMLElement>('[role="dialog"]')!;
const title = () => document.getElementById(dialog().getAttribute("aria-labelledby")!)!.textContent;
@@ -80,11 +79,11 @@ describe("the What's new popup", () => {
it("a light skin gets the light loops; reduced motion gets each slide's still, never a video", async () => {
document.documentElement.style.setProperty("--code-color-scheme", "light");
- await show(THREE);
+ await show();
expect(live().querySelector("video")!.getAttribute("src")).toMatch(/cloud-light\.mp4/);
await act(async () => root.render(null));
document.documentElement.dataset.reducedMotion = "true";
- await show(THREE);
+ await show();
expect(host.querySelector("video")).toBeNull();
expect(live().querySelector("img")!.getAttribute("src")).toMatch(/cloud-light\.webp/);
expect(live().querySelector("img")!.getAttribute("alt")).toBe("The app's Cloud plans: the pointer picks Pro's free trial.");
@@ -191,37 +190,52 @@ describe("the What's new popup", () => {
expect(title()).toBe(PRO); expect(props.onDone).not.toHaveBeenCalled();
});
- it("three slides: the new Cloud, Team, then the sponsor's, with its words, sponsor label, loop, Get a ModelGo key and Add key", async () => {
- await show(THREE);
- expect(live().getAttribute("aria-label")).toBe("Slide 1 of 3");
- await click("Next"); await click("Next");
+ it("Apps: where the apps are, by the screen's and section's own names, the apps screen's loop in either skin, and Open apps", async () => {
+ await show(NEWS);
const slide = live();
- expect(title()).toBe(SPONSOR); expect(live().getAttribute("aria-label")).toBe("Slide 3 of 3");
- expect(slide.textContent).toContain("One API key, every model.");
- expect(slide.querySelector("[data-modelgo-sponsor]")!.textContent).toBe("Sponsor");
- expect(slide.querySelector("video")!.getAttribute("aria-label")).toBe("Settings, AI: the pointer sets up ModelGo and pastes a key.");
- expect(slide.querySelector("video")!.getAttribute("src")).toMatch(/modelgo-dark\.mp4/);
- expect([...slide.querySelectorAll("button")].map(item => item.textContent)).toEqual(["Get a ModelGo key", "Add key"]);
- expect(slide.textContent, "no plan terms on the sponsor's slide").not.toContain("$");
- expect(steps).toEqual([["seen", "pro"], ["next", "pro"], ["seen", "team"], ["next", "team"], ["seen", "modelgo"]]);
+ expect(title()).toBe(APPS); expect(live().getAttribute("aria-label")).toBe("Slide 1 of 4");
+ expect(slide.textContent).toContain("The apps your bots build now live in “Published apps”, under “On this computer”. Save any page a bot makes as an app, open it in its own window and install it on your computer.");
+ const clip = slide.querySelector("video")!;
+ expect(clip.getAttribute("src")).toMatch(/apps-dark\.mp4/); expect(clip.getAttribute("poster")).toMatch(/apps-dark\.webp/);
+ expect(clip.getAttribute("aria-label")).toBe("Published apps: the apps your bots built, each as a card; the pointer opens one.");
+ expect(button("Not now"), "Apps has a button of its own, and Not now").toBeTruthy();
+ await click("Open apps");
+ expect(props.onOpenApps).toHaveBeenCalledOnce(); expect(props.onDone).toHaveBeenCalledOnce(); expect(steps.at(-1)).toEqual(["open_apps", "apps"]);
+
+ await act(async () => root.render(null));
+ document.documentElement.style.setProperty("--code-color-scheme", "light");
+ await show({ ...NEWS, apps: { place: "cloud", install: false } });
+ expect(live().querySelector("video")!.getAttribute("src"), "filmed in the dark look only").toMatch(/apps-dark\.mp4/);
+ expect(live().textContent, "a page that can't install apps or open their windows says only what it can")
+ .toContain("The apps your bots build now live in “Published apps”, under “In this Cloud”. Save any page a bot makes as an app and open it there any time.");
});
- it("Get a ModelGo key opens exactly the sponsor's address; Add key opens Settings where its key goes; each ends it", async () => {
- await show({ ...THREE, slides: ["modelgo"] });
- await click("Get a ModelGo key"); await flush();
- expect(window.ogb!.openExternal).toHaveBeenCalledWith(MODELGO_URL);
- expect(props.onDone).toHaveBeenCalledOnce(); expect(steps.at(-1)).toEqual(["get_key", "modelgo"]);
- vi.clearAllMocks(); await act(async () => root.render(null)); await show({ ...THREE, slides: ["modelgo"] });
- await click("Add key");
- expect(props.onAddKey).toHaveBeenCalledOnce(); expect(props.onDone).toHaveBeenCalledOnce(); expect(steps.at(-1)).toEqual(["add_key", "modelgo"]);
- expect(window.ogb!.openExternal).not.toHaveBeenCalled();
- await act(async () => root.render(null)); await show({ ...THREE, slides: ["modelgo"], addKey: false });
- expect(button("Add key"), "someone who can't change this place's settings").toBeUndefined();
+ it("Publish your bots names the menu item and the card's button; it and the slides that only tell offer no Not now, and only the last ends with Got it", async () => {
+ await show(NEWS);
+ await click("Next");
+ const slide = live();
+ expect(title()).toBe(PUBLISH);
+ expect(slide.textContent).toContain("Share a bot as a template others can add to their own MausBot. Choose “Share as template” in the bot's Share or ⋯ menu, then “Publish”.");
+ expect(slide.querySelector('[data-whats-new-picture="publish"]')!.textContent, "the menu drawn from the app's own labels").toContain("Share as template");
+ expect(slide.querySelector("video"), "a drawn picture, no clip").toBeNull();
+ expect([...slide.querySelectorAll("button")]).toHaveLength(0);
+ expect(button("Not now")).toBeUndefined(); expect(button("Got it")).toBeUndefined();
+ await click("Next");
+ expect(title()).toBe(CLOUD_NEWS);
+ expect(live().querySelector("video"), "the Cloud's clip shows the plans as sold; this slide draws My Cloud").toBeNull();
+ expect(live().querySelector('[data-whats-new-picture="cloudNews"]')!.textContent).toBe("My Cloud");
+ expect(button("Not now")).toBeUndefined(); expect(button("Got it")).toBeUndefined();
+ await click("Next");
+ expect(title()).toBe(TEAM_NEWS);
+ expect(button("Not now")).toBeUndefined();
+ await click("Got it");
+ expect(props.onDone).toHaveBeenCalledOnce(); expect(steps.at(-1)).toEqual(["got_it", "teamNews"]);
+ expect(props.onOpenApps).not.toHaveBeenCalled();
});
it("a Team Cloud's Owner or Admin: Invite your team opens the team's People page", async () => {
const url = "https://cloud.openmausbot.com/team/t1/people?invite=1";
- await show({ ...THREE, slides: ["team", "modelgo"], plans: {}, team: { kind: "invite", url } });
+ await show({ ...BOTH, slides: ["team"], plans: {}, team: { kind: "invite", url } });
expect([...live().querySelectorAll("button")].map(item => item.textContent)).toEqual(["Invite your team"]);
await click("Invite your team"); await flush();
expect(window.ogb!.openExternal).toHaveBeenCalledWith(url);
@@ -230,7 +244,7 @@ describe("the What's new popup", () => {
});
it("a page that sells no plan starts a Team on the website, even for an audience it can't tell", async () => {
- await show({ ...THREE, slides: ["team"], audience: "other", plans: { team: { name: "Team", terms: "$40 a month for 2 people, $20 for each extra person." } }, team: { kind: "start", inApp: false } });
+ await show({ ...BOTH, slides: ["team"], audience: "other", plans: { team: { name: "Team", terms: "$40 a month for 2 people, $20 for each extra person." } }, team: { kind: "start", inApp: false } });
expect(live().textContent).toContain("$40 a month for 2 people, $20 for each extra person.");
await click("Start a Team"); await flush();
expect(window.ogb!.openExternal).toHaveBeenCalledWith("https://cloud.openmausbot.com/pro/buy?plan=team&src=app_whats_new_team");
diff --git a/src/components/whats-new/WhatsNewPopup.tsx b/src/components/whats-new/WhatsNewPopup.tsx
index 7507aa6ac1..ebfebfb128 100644
--- a/src/components/whats-new/WhatsNewPopup.tsx
+++ b/src/components/whats-new/WhatsNewPopup.tsx
@@ -1,13 +1,11 @@
import { useEffect, useState, type ReactNode } from "react";
-import { ArrowLeft, ArrowRight, Check, X } from "lucide-react";
+import { ArrowLeft, ArrowRight, Check, Cloud, Copy, Download, LayoutTemplate, Monitor, MoreHorizontal, Search, X } from "lucide-react";
+import appsClip from "@/assets/whats-new/apps-dark.mp4";
+import appsStill from "@/assets/whats-new/apps-dark.webp";
import cloudDark from "@/assets/whats-new/cloud-dark.mp4";
import cloudDarkStill from "@/assets/whats-new/cloud-dark.webp";
import cloudLight from "@/assets/whats-new/cloud-light.mp4";
import cloudLightStill from "@/assets/whats-new/cloud-light.webp";
-import modelgoDark from "@/assets/whats-new/modelgo-dark.mp4";
-import modelgoDarkStill from "@/assets/whats-new/modelgo-dark.webp";
-import modelgoLight from "@/assets/whats-new/modelgo-light.mp4";
-import modelgoLightStill from "@/assets/whats-new/modelgo-light.webp";
import teamDark from "@/assets/whats-new/team-dark.mp4";
import teamDarkStill from "@/assets/whats-new/team-dark.webp";
import teamLight from "@/assets/whats-new/team-light.mp4";
@@ -18,23 +16,42 @@ import { t } from "@/lib/i18n";
import { reducedMotion } from "@/lib/onboarding";
import { newCloudUrl, startTeamUrl, type PlanSlide, type WhatsNewAction, type WhatsNewSlide, type WhatsNewView } from "@/lib/whats-new";
import type { LocaleKey } from "@/locales";
-import { MODELGO_URL } from "../../../shared/modelgo";
import { CLOSE, PRIMARY, QUIET, SHEET } from "../cloud-buy/parts";
+import { BotAvatar } from "../Avatar";
import { LinkButton, NotNowButton } from "../NoticeCard";
+import { TogetherChoice } from "../TogetherChoice";
export const WHATS_NEW_POPUP = "[data-whats-new]";
-const WORDS: Record<WhatsNewSlide, { title: LocaleKey; body: LocaleKey }> = {
- pro: { title: "whatsNew.cloud.title", body: "whatsNew.cloud.body" },
- team: { title: "whatsNew.team.title", body: "whatsNew.team.bodyInbox" },
- modelgo: { title: "modelgoOffer.title", body: "modelgoOffer.line" },
+const TITLES: Record<WhatsNewSlide, LocaleKey> = {
+ apps: "whatsNew.apps.title", publish: "whatsNew.publish.title", pro: "whatsNew.cloud.title", cloudNews: "whatsNew.cloudNews.title",
+ team: "whatsNew.team.title", teamNews: "whatsNew.teamNews.title", together: "together.notice.title",
};
+/** A slide's words; Apps and Publish name the screen, section and menu items as the app labels them. */
+function body(slide: WhatsNewSlide, view: WhatsNewView): string {
+ switch (slide) {
+ case "apps": return t(view.apps?.install ? "whatsNew.apps.body" : "whatsNew.apps.bodyHere",
+ { screen: t("publishedApps.title"), section: t(view.apps?.place === "cloud" ? "localApps.section.cloud" : "localApps.section.computer") });
+ case "publish": return t("whatsNew.publish.body", { item: t("template.shareAsTemplate"), share: t("chat.export.heading"), publish: t("template.publish") });
+ case "pro": return t("whatsNew.cloud.body");
+ case "cloudNews": return t("whatsNew.cloudNews.body");
+ case "team": return t("whatsNew.team.bodyInbox");
+ case "teamNews": return t("whatsNew.teamNews.body");
+ case "together": return t("together.notice.body");
+ }
+}
+/** Slides that only tell: they offer no Not now, and the last slide, when it is one, ends with Got it. */
+const TELLING: readonly WhatsNewSlide[] = ["publish", "together", "cloudNews", "teamNews"];
type Clip = { video: string; still: string };
+type Clips = { label: LocaleKey; focus: string; dark: Clip; light: Clip };
/** `focus`: where a clip's pointer clicks, kept in view when a taller slide crops the clip's sides. */
-const PICTURES: Record<WhatsNewSlide, { label: LocaleKey; focus: string; dark: Clip; light: Clip }> = {
+const TEAM_CLIP: Clips = { label: "whatsNew.team.videoLabel", focus: "object-[40%_50%]", dark: { video: teamDark, still: teamDarkStill }, light: { video: teamLight, still: teamLightStill } };
+/** The apps screen was filmed in the dark look only. */
+const APPS_CLIP: Clip = { video: appsClip, still: appsStill };
+const PICTURES: Record<"apps" | "pro" | "team" | "teamNews", Clips> = {
+ apps: { label: "whatsNew.apps.videoLabel", focus: "object-[6%_50%]", dark: APPS_CLIP, light: APPS_CLIP },
pro: { label: "whatsNew.cloud.videoLabel", focus: "object-[50%_50%]", dark: { video: cloudDark, still: cloudDarkStill }, light: { video: cloudLight, still: cloudLightStill } },
- team: { label: "whatsNew.team.videoLabel", focus: "object-[40%_50%]", dark: { video: teamDark, still: teamDarkStill }, light: { video: teamLight, still: teamLightStill } },
- modelgo: { label: "modelgoOffer.videoLabel", focus: "object-[80%_50%]", dark: { video: modelgoDark, still: modelgoDarkStill }, light: { video: modelgoLight, still: modelgoLightStill } },
+ team: TEAM_CLIP, teamNews: TEAM_CLIP,
};
const TEAM_POINTS: readonly LocaleKey[] = ["whatsNew.team.apps", "whatsNew.team.groupChats", "whatsNew.team.memory", "whatsNew.team.handoff", "whatsNew.team.accessUse"];
const NAV = "ui-button ui-button-pill min-h-9 gap-1 px-3";
@@ -47,6 +64,58 @@ const controls = (popup: Element | null) => [...(popup?.querySelectorAll<HTMLEle
* every slide is one height, cropping the clip's sides around where it clicks. It plays only on the slide on screen;
* elsewhere, and wherever motion is reduced, its still. */
function Picture({ slide, active }: { slide: WhatsNewSlide; active: boolean }) {
+ if (slide === "together") return <TogetherPicture />;
+ if (slide === "publish") return <PublishPicture />;
+ if (slide === "cloudNews") return <CloudPicture />;
+ return <ClipPicture slide={slide} active={active} />;
+}
+
+const DRAWN = "relative grid aspect-[2/1] shrink-0 grow place-items-center overflow-hidden bg-ink/[0.035] [@media(max-height:600px)]:hidden";
+const DRAWN_CARD = "rounded-xl border-[0.5px] border-ink/10 bg-app shadow-sm";
+
+/** The bot's menu with Share as template, drawn from the app's own labels. */
+const PUBLISH_ROWS = [[Search, "chat.find"], [LayoutTemplate, "template.shareAsTemplate"], [Copy, "chat.export.copy"], [Download, "chat.export.download"]] as const;
+function PublishPicture() {
+ return <div data-whats-new-picture="publish" aria-hidden="true" className={DRAWN}>
+ <div className="flex w-[58%] min-w-[220px] flex-col items-end gap-1.5">
+ <span className={cn(DRAWN_CARD, "grid size-8 place-items-center rounded-full text-ink")}><MoreHorizontal size={16} /></span>
+ <div className={cn(DRAWN_CARD, "flex w-full flex-col gap-0.5 p-1.5")}>
+ {PUBLISH_ROWS.map(([Icon, label]) => <div key={label} className={cn("flex items-center gap-2 rounded-lg px-2 py-1.5 text-[13px]",
+ label === "template.shareAsTemplate" ? "bg-ink/[0.06] font-medium text-ink" : "text-ink-secondary")}>
+ <Icon size={15} className="shrink-0" /><span className="min-w-0 truncate">{t(label)}</span>
+ </div>)}
+ </div>
+ </div>
+ </div>;
+}
+
+/** My Cloud, drawn: the Cloud slide's clip shows the plans as they were sold, so the slide that only tells has none. */
+function CloudPicture() {
+ return <div data-whats-new-picture="cloudNews" aria-hidden="true" className={DRAWN}>
+ <div className="flex flex-col items-center gap-2.5">
+ <span className="grid size-14 place-items-center rounded-2xl bg-accent/10 text-accent"><Cloud size={26} /></span>
+ <span className="text-[13px] font-medium text-ink">{t("cloudSetup.myCloud")}</span>
+ </div>
+ </div>;
+}
+
+/** Bots of both places in one list, as the sidebar now shows them: drawn, not a clip, so it is the same in every language. */
+const TOGETHER_ROWS = [["Ledger", "orange", "computer"], ["Scout", "blue", "cloud"], ["Git Tasks", "teal", "computer"], ["Atlas", "green", "cloud"]] as const;
+function TogetherPicture() {
+ return <div data-whats-new-picture="together" aria-hidden="true" className={DRAWN}>
+ <div className={cn(DRAWN_CARD, "flex w-[64%] min-w-[220px] flex-col gap-0.5 p-1.5")}>
+ {TOGETHER_ROWS.map(([name, color, home]) => <div key={name} className="flex items-center gap-2 rounded-lg px-2 py-1.5 text-[13px] text-ink">
+ <BotAvatar bot={{ name, color }} size={20} state="happy" animated={false} label="" />
+ <span className="min-w-0 flex-1 truncate font-medium">{name}</span>
+ <span className="flex shrink-0 items-center gap-1 text-[11px] text-ink-tertiary">
+ {home === "cloud" ? <Cloud size={12} /> : <Monitor size={12} />}{t(home === "cloud" ? "cloudSetup.myCloud" : "rail.thisComputer")}
+ </span>
+ </div>)}
+ </div>
+ </div>;
+}
+
+function ClipPicture({ slide, active }: { slide: keyof typeof PICTURES; active: boolean }) {
const scheme = useColorScheme();
const { label, focus, ...clips } = PICTURES[slide], clip = clips[scheme === "dark" ? "dark" : "light"];
const fill = cn("absolute inset-0 size-full select-none object-cover", focus);
@@ -59,13 +128,13 @@ function Picture({ slide, active }: { slide: WhatsNewSlide; active: boolean }) {
/**
* What's new after an update, one slide at a time: Next and Back, its dots, the arrow keys. Focus
- * starts at a slide's title and stays inside; Escape (while focus is inside), ×, a click outside and Not now end it, and so
- * does every button that opens something. `report` counts each slide seen once and each step. `onBuy` opens the app's own
- * Add a Cloud for a slide: Get Pro, and Start a Team for someone with a plan of their own, whom the website's Get Team
- * would only tell to write in. `onAddKey` opens Settings where the sponsor's key goes.
+ * starts at a slide's title and stays inside; Escape (while focus is inside), ×, a click outside, Not now and Got it end it,
+ * and so does every button that opens something. `report` counts each slide seen once and each step. `onBuy` opens the
+ * app's own Add a Cloud for a slide: Get Pro, and Start a Team for someone with a plan of their own, whom the website's Get
+ * Team would only tell to write in. `onOpenApps` opens Published apps.
*/
-export function WhatsNewPopup({ view, report, onBuy, onAddKey, onDone }: {
- view: WhatsNewView; report: (action: WhatsNewAction, slide: WhatsNewSlide) => void; onBuy: (slide: PlanSlide) => void; onAddKey?: () => void; onDone: () => void;
+export function WhatsNewPopup({ view, report, onBuy, onOpenApps, onDone }: {
+ view: WhatsNewView; report: (action: WhatsNewAction, slide: WhatsNewSlide) => void; onBuy: (slide: PlanSlide) => void; onOpenApps?: () => void; onDone: () => void;
}) {
const [at, setAt] = useState(0);
const slide = view.slides[at] ?? view.slides[0]!, count = view.slides.length;
@@ -110,15 +179,14 @@ export function WhatsNewPopup({ view, report, onBuy, onAddKey, onDone }: {
const buy = (of: PlanSlide) => { report(of === "pro" ? "get_pro" : "start_team", of); onBuy(of); onDone(); };
const team = view.team ?? { kind: "start", inApp: view.audience === "own" };
- const actions = (of: WhatsNewSlide): ReactNode => of === "pro"
+ const actions = (of: WhatsNewSlide): ReactNode => of === "apps"
+ ? onOpenApps && <button type="button" data-whats-new-open-apps className={cn(PRIMARY, "ui-button-lg")} onClick={() => { end("open_apps"); onOpenApps(); }}>{t("whatsNew.apps.open")}</button>
+ : of === "pro"
? <>
<button type="button" className={cn(PRIMARY, "ui-button-lg")} onClick={() => buy("pro")}>{t("cloudBuy.card.get", { plan: view.plans.pro?.name ?? "Pro" })}</button>
<LinkButton url={newCloudUrl(view.staging)} label={t("whatsNew.cloud.see")} className={cn(QUIET, "ui-button-lg gap-1.5")} onOpened={() => end("see_cloud")} />
</>
- : of === "modelgo" ? <>
- <LinkButton url={MODELGO_URL} label={t("modelgoOffer.getKey")} className={cn(PRIMARY, "ui-button-lg gap-1.5")} onOpened={() => end("get_key")} />
- {view.addKey && onAddKey && <button type="button" className={cn(QUIET, "ui-button-lg")} onClick={() => { end("add_key"); onAddKey(); }}>{t("modelgoOffer.addKey")}</button>}
- </>
+ : TELLING.includes(of) ? (of === view.slides[count - 1] ? <button type="button" data-whats-new-got-it className={cn(PRIMARY, "ui-button-lg")} onClick={() => end("got_it")}>{t("together.notice.done")}</button> : null)
: team.kind === "invite"
? <LinkButton url={team.url} label={t("teamsNew.invite")} className={cn(PRIMARY, "ui-button-lg gap-1.5")} onOpened={() => end("invite")} />
: team.inApp
@@ -130,27 +198,27 @@ export function WhatsNewPopup({ view, report, onBuy, onAddKey, onDone }: {
className={cn(SHEET, "group/sheet animate-pop-in relative flex max-h-full w-full max-w-[520px] flex-col overflow-hidden outline-none")}>
<div className="grid min-h-0 overflow-y-auto overflow-x-hidden">
{view.slides.map((of, index) => {
- const here = index === at;
+ const here = index === at, shown = actions(of);
return <section key={of} role="group" aria-label={t("whatsNew.slideOf", { n: index + 1, count })} inert={!here} data-whats-new-slide={of}
className={cn("flex flex-col [grid-area:1/1] transition-[opacity,transform,visibility] duration-300 ease-out motion-reduce:transition-none",
here ? "visible translate-x-0 opacity-100" : cn("invisible opacity-0", index < at ? "-translate-x-6 rtl:translate-x-6" : "translate-x-6 rtl:-translate-x-6"))}>
<Picture slide={of} active={here} />
<div className="flex flex-col px-6 pt-5">
<p className="text-[12px] font-medium uppercase leading-4 tracking-[0.06em] text-ink-tertiary">{t("whatsNew.eyebrow")}</p>
- <h2 id={titleId(of)} tabIndex={-1} className="mt-1 text-[19px] font-semibold leading-6 tracking-[-0.012em] text-ink outline-none! [text-wrap:balance]">{t(WORDS[of].title)}</h2>
- <p className="mt-2 text-[14px] leading-5 text-ink-secondary [text-wrap:pretty]">{t(WORDS[of].body)}</p>
- {of === "modelgo" && <p data-modelgo-sponsor className="mt-1 text-[12px] leading-4 text-ink-tertiary">{t("modelgoOffer.sponsor")}</p>}
+ <h2 id={titleId(of)} tabIndex={-1} className="mt-1 text-[19px] font-semibold leading-6 tracking-[-0.012em] text-ink outline-none! [text-wrap:balance]">{t(TITLES[of])}</h2>
+ <p className="mt-2 text-[14px] leading-5 text-ink-secondary [text-wrap:pretty]">{body(of, view)}</p>
+ {of === "together" && <div className="mt-3"><TogetherChoice id="whats-new-together" /></div>}
{of === "team" && <ul className="mt-3 flex flex-col gap-1.5 text-[13px] leading-[18px] text-ink">
{TEAM_POINTS.map(point => <li key={point} className="flex items-start gap-2"><Check size={14} strokeWidth={2} className="mt-0.5 shrink-0 text-ink-tertiary" aria-hidden="true" />{t(point)}</li>)}
</ul>}
- <div className="mt-5 flex flex-wrap items-start gap-2">{actions(of)}</div>
- {of !== "modelgo" && view.plans[of] && <p className="mt-2.5 text-[12px] leading-4 text-ink-tertiary">{view.plans[of]!.terms}</p>}
+ {shown && <div className={cn("flex flex-wrap items-start gap-2", of === "together" ? "mt-2" : "mt-5")}>{shown}</div>}
+ {(of === "pro" || of === "team") && view.plans[of] && <p className="mt-2.5 text-[12px] leading-4 text-ink-tertiary">{view.plans[of]!.terms}</p>}
</div>
</section>;
})}
</div>
<div className="mt-4 flex items-center gap-3 border-t-[0.5px] border-ink/10 px-4 py-2.5">
- <NotNowButton onClick={() => end("not_now")} />
+ {TELLING.includes(slide) ? <span className="min-h-9" /> : <NotNowButton onClick={() => end("not_now")} />}
{count > 1 && <>
<div className="flex flex-1 items-center justify-center gap-1.5">
{view.slides.map((of, index) => <button key={of} type="button" aria-label={t("whatsNew.slideOf", { n: index + 1, count })} aria-current={index === at ? "true" : undefined}
diff --git a/src/components/whats-new/WhatsNewTogether.dom.test.ts b/src/components/whats-new/WhatsNewTogether.dom.test.ts
new file mode 100644
index 0000000000..d0cfe9641e
--- /dev/null
+++ b/src/components/whats-new/WhatsNewTogether.dom.test.ts
@@ -0,0 +1,131 @@
+// @vitest-environment happy-dom
+// What's new's slide for "This computer and My Cloud together": the corner notice's choice inside the carousel, writing
+// exactly what the notice writes, with the carousel's keyboard as it was.
+import { act, createElement } from "react";
+import { createRoot, type Root } from "react-dom/client";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import { setLocale } from "@/lib/i18n";
+import { resetPlacesTogetherForTest, type PlacesTogetherState } from "@/lib/places-together";
+import type { WhatsNewAction, WhatsNewSlide, WhatsNewView } from "@/lib/whats-new";
+import { TogetherNotice } from "../TogetherNotice";
+import { WhatsNewPopup } from "./WhatsNewPopup";
+
+(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
+const VIEW: WhatsNewView = { slides: ["cloudNews", "teamNews", "together"], audience: "own", signedIn: true, staging: false, plans: {} };
+
+let host: HTMLDivElement, root: Root, said: PlacesTogetherState, lent: boolean, steps: Array<[WhatsNewAction, WhatsNewSlide]>;
+const state = (over: Partial<PlacesTogetherState> = {}): PlacesTogetherState => ({ v: 1, available: true, on: true, here: "computer",
+ other: { home: "cloud", state: "ready", bots: [] }, notice: true, commands: lent, ...over });
+const page = {
+ state: vi.fn(async () => ({ ...said, commands: lent })),
+ set: vi.fn(async (on: boolean) => { said = on ? state({ notice: undefined }) : state({ on: false, other: null, notice: undefined }); return said; }),
+ open: vi.fn(async () => true),
+ onChanged: vi.fn(() => () => {}),
+ noticeShown: vi.fn(async () => true),
+ noticeDone: vi.fn(async () => {}),
+ setCommands: vi.fn(async (on: boolean) => { lent = on; return on; }),
+};
+const props = { report: vi.fn((action: WhatsNewAction, slide: WhatsNewSlide) => void steps.push([action, slide])), onBuy: vi.fn(), onOpenApps: vi.fn(), onDone: vi.fn() };
+const flush = async () => { for (let i = 0; i < 5; i++) await act(async () => { await Promise.resolve(); }); };
+const show = async (view: WhatsNewView = VIEW) => { await act(async () => { root.render(createElement(WhatsNewPopup, { view, ...props })); }); await flush(); };
+const q = (selector: string) => host.querySelector<HTMLElement>(`[data-whats-new-slide]:not([inert]) ${selector}`);
+const click = async (selector: string) => { await act(async () => { q(selector)!.click(); }); await flush(); };
+const key = async (name: string) => {
+ const event = new KeyboardEvent("keydown", { key: name, bubbles: true, cancelable: true });
+ await act(async () => { (document.activeElement ?? document.body).dispatchEvent(event); });
+ return event;
+};
+/** The carousel opened, then walked to its last slide, the notice's. */
+const showTogether = async () => { await show(); await key("ArrowRight"); await key("ArrowRight"); await flush(); };
+const focused = () => document.activeElement!.getAttribute("aria-labelledby") || (document.activeElement as HTMLElement).textContent || document.activeElement!.getAttribute("aria-label");
+/** What the bridge was asked, in order: the same calls from the slide as from the corner notice. */
+const writes = () => [
+ ...page.set.mock.calls.map(call => ["set", ...call]),
+ ...page.setCommands.mock.calls.map(call => ["setCommands", ...call]),
+ ...(page.noticeDone.mock.calls.length ? [["noticeDone"]] : []),
+];
+
+beforeEach(() => {
+ setLocale("en"); vi.clearAllMocks(); steps = []; lent = false; said = state();
+ (window as { ogb?: unknown }).ogb = { placesTogether: page, openExternal: vi.fn(async () => true) };
+ host = document.body.appendChild(document.createElement("div")); root = createRoot(host);
+});
+afterEach(async () => {
+ await act(async () => root.unmount());
+ document.body.replaceChildren(); resetPlacesTogetherForTest(); delete (window as { ogb?: unknown }).ogb;
+});
+
+describe("What's new's together slide", () => {
+ it("comes last, with the notice's words and its two switches: the list on, commands off as lending says, and no buy button", async () => {
+ await show();
+ expect(host.querySelector("[data-whats-new]")!.getAttribute("data-whats-new")).toBe("cloudNews");
+ expect(steps, "opened on the first slide: the notice's is not seen").toEqual([["seen", "cloudNews"]]);
+ await key("ArrowRight"); await key("ArrowRight"); await flush();
+ expect(host.querySelector("[data-whats-new]")!.getAttribute("data-whats-new")).toBe("together");
+ expect(q("h2")!.textContent).toBe("Your bots are in one list now");
+ expect(q("[data-together-notice-list]")!.getAttribute("aria-checked")).toBe("true");
+ expect(q("[data-together-notice-commands]")!.getAttribute("aria-checked")).toBe("false");
+ expect(host.querySelector("[data-whats-new-slide='together']")!.textContent).toContain("work a Cloud bot hands to a bot here runs without commands");
+ expect(q("[data-whats-new-got-it]")!.textContent, "the last slide, which only tells: Got it").toBe("Got it");
+ expect(page.noticeShown, "the carousel tells main when it is seen, not the slide on its own").not.toHaveBeenCalled();
+ expect(steps).toEqual([["seen", "cloudNews"], ["next", "cloudNews"], ["seen", "teamNews"], ["next", "teamNews"], ["seen", "together"]]);
+ });
+
+ it("the switches write the same state as the corner notice's: the list off, then back on, and commands on through main's own question", async () => {
+ await showTogether();
+ await click("[data-together-notice-list]");
+ expect(q("[data-together-notice-off]")!.textContent).toContain("show apart again");
+ expect(q("[data-together-notice-commands]")).toBeNull();
+ await click("[data-together-notice-list]");
+ await click("[data-together-notice-commands]");
+ expect(q("[data-together-notice-commands]")!.getAttribute("aria-checked")).toBe("true");
+ expect(host.querySelector("[data-whats-new-slide='together']")!.textContent).toContain("can run any command on this computer as you");
+ const fromSlide = writes();
+ expect(fromSlide).toEqual([["set", false, "notice"], ["set", true, "notice"], ["setCommands", true], ["noticeDone"]]);
+ expect(props.onDone, "a switch never ends the carousel").not.toHaveBeenCalled();
+
+ await act(async () => root.unmount());
+ resetPlacesTogetherForTest(); vi.clearAllMocks(); lent = false; said = state();
+ root = createRoot(host);
+ await act(async () => { root.render(createElement(TogetherNotice, { onClose: () => {} })); }); await flush();
+ for (const selector of ["[data-together-notice-list]", "[data-together-notice-list]", "[data-together-notice-commands]"]) {
+ await act(async () => { host.querySelector<HTMLElement>(selector)!.click(); }); await flush();
+ }
+ expect(writes(), "the corner notice, switched the same way").toEqual(fromSlide);
+ });
+
+ it("a failed switch says so on the slide and leaves the carousel up", async () => {
+ page.setCommands.mockRejectedValueOnce(new Error("no"));
+ await showTogether();
+ await click("[data-together-notice-commands]");
+ expect(q("[role='alert']")!.textContent).toBe("That couldn't be saved. Try again.");
+ expect(q("[data-together-notice-commands]")!.getAttribute("aria-checked")).toBe("false");
+ expect(props.onDone).not.toHaveBeenCalled();
+ });
+
+ it("keyboard as before: Tab reaches both switches and stays inside, the arrows move slides, Escape closes", async () => {
+ await show();
+ expect(q("h2")!.textContent).toBe("What's new in MausBot Cloud");
+ expect(q("button.ui-button-primary"), "a slide that only tells has no buy button").toBeNull();
+ await key("ArrowRight");
+ expect(q("h2")!.textContent).toBe("What's new for your team");
+ expect(q("[data-whats-new-got-it]"), "not the last slide: Next, not Got it").toBeNull();
+ await key("ArrowRight");
+ expect(host.querySelector("[data-whats-new]")!.getAttribute("data-whats-new")).toBe("together");
+ const order: Array<string | null> = [];
+ for (let i = 0; i < 4; i++) { expect((await key("Tab")).defaultPrevented).toBe(true); order.push(focused()); }
+ expect(order, "no Not now on a slide that only tells").toEqual(["whats-new-together-list", "whats-new-together-commands", "Got it", "Slide 1 of 3"]);
+ expect((await key("Escape")).defaultPrevented).toBe(true);
+ expect(props.onDone).toHaveBeenCalledTimes(1);
+ expect(steps.at(-1)).toEqual(["close", "together"]);
+ });
+
+ it("alone, it ends with Got it, counted on its slide; before main has turned the default on it still shows the list on", async () => {
+ said = state({ on: false, other: null });
+ await show({ ...VIEW, slides: ["together"] });
+ expect(q("[data-together-notice-list]")!.getAttribute("aria-checked"), "not drawn yet: shown on, as the slide's showing turns it on").toBe("true");
+ await click("[data-whats-new-got-it]");
+ expect(props.onDone).toHaveBeenCalledTimes(1);
+ expect(steps.at(-1)).toEqual(["got_it", "together"]);
+ });
+});
diff --git a/src/lib/notices.test.ts b/src/lib/notices.test.ts
index c135988aa6..9152e88d47 100644
--- a/src/lib/notices.test.ts
+++ b/src/lib/notices.test.ts
@@ -2,7 +2,7 @@ import { afterEach, beforeEach, expect, it, vi } from "vitest";
import { EMPTY_ONBOARDING, type OnboardingStatus } from "@/lib/onboarding";
import { withTourReset } from "@/lib/guided-tour";
import { DESKTOP_NOTICES } from "../../electron/desktop-prefs.mjs";
-import { ANNOUNCEMENT_NOTICE, BOAT_OFFER_NOTICE, CLOUD_INTRO, CLOUD_NOTICE, CLOUD_TRIAL_NOTICE, dismissNotice, dismissNotices, EARLIER_WHATS_NEW_NOTICE, FOLLOWERS, GROK_MOVE_NOTICE, introShown, introStage, launchNotice, localDay, markLaunchNotice, MODELGO_OFFER_NOTICE, MUST_ACT,
+import { ANNOUNCEMENT_NOTICE, BOAT_OFFER_NOTICE, CLOUD_INTRO, CLOUD_NOTICE, CLOUD_TRIAL_NOTICE, dismissNotice, dismissNotices, EARLIER_WHATS_NEW_NOTICE, FOLLOWERS, GROK_MOVE_NOTICE, introShown, introStage, launchNotice, localDay, markLaunchNotice, MODELGO_OFFER_NOTICE, MUST_ACT, PREVIOUS_WHATS_NEW_NOTICE,
nextNotice, noticeSeen, NOTICES, OLD_PRO_DISMISSALS, PHONE_UPDATE_NOTICE, phoneUpdateHint, PRODUCT_HUNT_NOTICE, SIMPLE_MODE_NOTICE, STAR_NOTICE, TEAMS_NOTICE, TOGETHER_NOTICE, TWO_PLACES_NOTICE, UPDATES_CONSENT_NOTICE, usedBefore, WHATS_NEW_NOTICE, type NoticeFacts,
type NoticeId } from "./notices";
@@ -46,7 +46,7 @@ it("is one queue: What's new first, then the Simple mode popup, the product-upda
expect(nextNotice(facts(true, true, true, true, true, true, true), id => id === WHATS_NEW_NOTICE)).toBe(UPDATES_CONSENT_NOTICE);
expect(nextNotice(facts(true, true, true, true, true, null, true), none)).toBeNull();
expect(nextNotice(facts(true, true, true, true, true, false, null), none)).toBeNull();
- expect(WHATS_NEW_NOTICE).toBe("whats-new-2026-11b");
+ expect(WHATS_NEW_NOTICE).toBe("whats-new-2026-11c");
expect(nextNotice(facts(true, true, true, true, true, true), none)).toBe(WHATS_NEW_NOTICE);
expect(nextNotice(facts(true, true, true, true, true, null), none)).toBeNull();
expect(nextNotice(facts(true, true, true, true, true, true), id => id === WHATS_NEW_NOTICE)).toBe(PRODUCT_HUNT_NOTICE);
@@ -70,7 +70,7 @@ it("is one queue: What's new first, then the Simple mode popup, the product-upda
});
it("Boat's credit offer and the Grok Bot move are ones the desktop keeps for its every page, as What's new is", () => {
- expect(DESKTOP_NOTICES).toEqual([EARLIER_WHATS_NEW_NOTICE, BOAT_OFFER_NOTICE, GROK_MOVE_NOTICE, MODELGO_OFFER_NOTICE, TEAMS_NOTICE, WHATS_NEW_NOTICE]);
+ expect(DESKTOP_NOTICES).toEqual([EARLIER_WHATS_NEW_NOTICE, BOAT_OFFER_NOTICE, GROK_MOVE_NOTICE, MODELGO_OFFER_NOTICE, TEAMS_NOTICE, PREVIOUS_WHATS_NEW_NOTICE, WHATS_NEW_NOTICE]);
});
it("the Teams What's new goes ahead of every notice, holds the queue while it waits, and the rest keep their order after it", () => {
diff --git a/src/lib/notices.ts b/src/lib/notices.ts
index d096ebe6de..00e83fa501 100644
--- a/src/lib/notices.ts
+++ b/src/lib/notices.ts
@@ -3,10 +3,13 @@ import { hintSeen, hintSeenPatch, type OnboardingStatus } from "@/lib/onboarding
/** "MausBot is better with your team": once per person whom What's new has nothing for (a Team Cloud's members), on every
* surface but a branded build or an organization's desktop. On a Team Cloud its record is each person's (TEAM_PERSONAL_HINTS). */
export const TEAMS_NOTICE = "teams-2026-11b";
-/** What's new, the new Cloud, Team and the sponsor's slides: each person sees it once, as the launch's notice. A new id shows
- * it once more. Seeing it counts as seeing the Teams popup and the sponsor's card. On a Team Cloud its record is each person's. */
-export const WHATS_NEW_NOTICE = "whats-new-2026-11b";
-/** The earlier What's new, with the new Cloud and Team only. */
+/** What's new (src/lib/whats-new.ts whatsNewCarousel): each person sees it once, as the launch's notice. A new id shows it
+ * once more. Seeing it counts as seeing the earlier ones, the Teams popup and the sponsor's card. On a Team Cloud its record
+ * is each person's. */
+export const WHATS_NEW_NOTICE = "whats-new-2026-11c";
+/** The What's new before it, with the new Cloud, Team and the sponsor's slides. */
+export const PREVIOUS_WHATS_NEW_NOTICE = "whats-new-2026-11b";
+/** The first What's new, with the new Cloud and Team only. */
export const EARLIER_WHATS_NEW_NOTICE = "whats-new-2026-11";
export const UPDATES_CONSENT_NOTICE = "updates-consent";
/** The Simple mode popup, once per browser (simple-mode-prompt.ts keeps whether it was closed). */
@@ -25,7 +28,7 @@ export const PRODUCT_HUNT_UNTIL = Date.UTC(2026, 10, 1);
export const BOAT_OFFER_NOTICE = "boat-credit-2026-11";
/** The Move from Grok Bot popup: each person sees it once, first of all, after their welcome. */
export const GROK_MOVE_NOTICE = "grok-move-2026-11";
-/** The sponsor's card for ModelGo, now What's new's last slide: kept as seen with it, and listed in Announcements. */
+/** The sponsor's card for ModelGo, later a slide of What's new 2026-11b: kept as seen with What's new, and listed in Announcements. */
export const MODELGO_OFFER_NOTICE = "modelgo-offer-2026-11";
/** Update MausBot on your phone: once per phone with an older app after this computer's secure link ended. */
export const PHONE_UPDATE_NOTICE = "phone-app-update";
diff --git a/src/lib/places-together.ts b/src/lib/places-together.ts
index 0ea03975b7..2afd5dfa3e 100644
--- a/src/lib/places-together.ts
+++ b/src/lib/places-together.ts
@@ -76,6 +76,12 @@ export function useTogetherNoticeDue(): boolean | null {
return hasBridge ? due : false;
}
+/** The notice of the default was drawn on this computer before and never closed: main still calls it due, and calls the
+ * list on with no choice of the person's, which only a drawn notice does (electron/places-together.mjs). */
+export function useTogetherNoticeDrawn(): boolean {
+ return usePlacesTogetherPart((state) => state?.notice === true && state.on === true);
+}
+
/** The notice was drawn: main turns the default on from now (it never does before). */
export async function togetherNoticeShown(): Promise<void> {
const page = bridge();
@@ -89,6 +95,13 @@ export function togetherNoticeDone(): void {
void bridge()?.noticeDone?.().catch(() => {});
}
+/** What's new showed the notice's slide: the default is on from now, as the drawn notice turns it, and the corner notice
+ * never shows for this account, as when it is closed. */
+export async function togetherSlideShown(): Promise<void> {
+ await togetherNoticeShown();
+ togetherNoticeDone();
+}
+
/** The notice's own switch for "Let My Cloud's bots run commands on this computer": what main says it is now. */
export async function setTogetherCommands(on: boolean): Promise<boolean> {
const page = bridge();
diff --git a/src/lib/whats-new.test.ts b/src/lib/whats-new.test.ts
index a4b54eaa8c..91df35da93 100644
--- a/src/lib/whats-new.test.ts
+++ b/src/lib/whats-new.test.ts
@@ -7,7 +7,7 @@ vi.mock("@/lib/analytics", () => ({ track: vi.fn() }));
import { track } from "@/lib/analytics";
import { setLocale } from "@/lib/i18n";
import { WHATS_NEW_NOTICE } from "@/lib/notices";
-import { newCloudUrl, reportWhatsNew, startTeamUrl, WHATS_NEW_SOURCES, whatsNewAudience, whatsNewCarousel, whatsNewSlides, whatsNewView, type WhatsNewView } from "./whats-new";
+import { newCloudUrl, reportWhatsNew, startTeamUrl, togetherSlideDue, WHATS_NEW_SOURCES, whatsNewAudience, whatsNewCarousel, whatsNewSlides, whatsNewView, type WhatsNewView } from "./whats-new";
const DAY = 86_400_000, NOW = Date.UTC(2026, 10, 12);
const OFFER: CloudOffer = { recommended: "pro", refundDays: 14, plans: [
@@ -108,80 +108,97 @@ describe("the funnel", () => {
});
it("counts each step with its slide, who it was for and the campaign; never an email, a name or an address", () => {
- expect(WHATS_NEW_NOTICE).toBe("whats-new-2026-11b");
+ expect(WHATS_NEW_NOTICE).toBe("whats-new-2026-11c");
reportWhatsNew("seen", "pro", { audience: "none", signedIn: false });
reportWhatsNew("start_team", "team", { audience: "own", signedIn: true });
reportWhatsNew("invite", "team", { audience: "other", signedIn: false, team: { kind: "invite", url: "https://x.test/team/t1/people" } });
+ reportWhatsNew("open_apps", "apps", { audience: "other", signedIn: false });
+ reportWhatsNew("got_it", "teamNews", { audience: "other", signedIn: true });
reportWhatsNew("next", "team", { audience: "other", signedIn: false }, "whats-new-2026-11");
expect(vi.mocked(track).mock.calls).toEqual([
["whats_new", { action: "seen", slide: "pro", audience: "no_plan", signed_in: false, campaign: WHATS_NEW_NOTICE }],
["whats_new", { action: "start_team", slide: "team", audience: "own_plan", signed_in: true, campaign: WHATS_NEW_NOTICE }],
["whats_new", { action: "invite", slide: "team", audience: "team_admin", signed_in: false, campaign: WHATS_NEW_NOTICE }],
+ ["whats_new", { action: "open_apps", slide: "apps", audience: "other", signed_in: false, campaign: WHATS_NEW_NOTICE }],
+ ["whats_new", { action: "got_it", slide: "teamNews", audience: "other", signed_in: true, campaign: WHATS_NEW_NOTICE }],
["whats_new", { action: "next", slide: "team", audience: "other", signed_in: false, campaign: "whats-new-2026-11" }],
]);
- });
-
- it("the sponsor's slide counts on whats_new and, as its card did, on modelgo_offer with place popup and the campaign", () => {
- const view = { audience: "none" as const, signedIn: false };
- for (const action of ["seen", "get_key", "add_key", "not_now", "close", "next", "back"] as const) reportWhatsNew(action, "modelgo", view);
- const sponsor = vi.mocked(track).mock.calls.filter(([event]) => event === "modelgo_offer");
- expect(sponsor).toEqual([["shown", "get_key", "add_key", "not_now", "close"].map(action => ["modelgo_offer", { action, place: "popup", campaign: WHATS_NEW_NOTICE }])].flat());
- expect(vi.mocked(track).mock.calls.filter(([event]) => event === "whats_new")).toHaveLength(7);
- vi.mocked(track).mockClear();
- reportWhatsNew("get_pro", "pro", view);
- expect(vi.mocked(track).mock.calls.map(([event]) => event), "no sponsor event for another slide").toEqual(["whats_new"]);
+ expect(vi.mocked(track).mock.calls.some(([event]) => event === "modelgo_offer"), "no slide is the sponsor's now").toBe(false);
});
});
-describe("the three slides: the new Cloud, Team and the sponsor's", () => {
+describe("the slides: Apps, Publish, then the Cloud and Team, then the notice of the bots together", () => {
const start = (inApp = false) => ({ kind: "start" as const, inApp, url: "https://cloud.openmausbot.com/pro/buy?plan=team&src=app_whats_new_teams" });
const invite = { kind: "invite" as const, url: "https://cloud.openmausbot.com/team/t1/people?invite=1" };
+ const apps = { place: "computer" as const, install: true };
const carousel = (extra: Partial<Parameters<typeof whatsNewCarousel>[0]> = {}) =>
- whatsNewCarousel({ plans: whatsNewView({ status: "signed-out" }, OFFER), team: start(), modelgo: true, addKey: true, ...extra });
+ whatsNewCarousel({ plans: whatsNewView({ status: "signed-out" }, OFFER), team: start(), cloud: false, apps, ...extra });
+ const slides = (extra: Partial<Parameters<typeof whatsNewCarousel>[0]> = {}) => (carousel(extra) as WhatsNewView).slides;
- it("no plan on this desktop: all three, in order, each with its plan's terms", () => {
+ it("no plan on this desktop: Apps, Publish, the new Cloud and Team, the plans with their terms", () => {
const view = carousel() as WhatsNewView;
- expect(view.slides).toEqual(["pro", "team", "modelgo"]);
+ expect(view.slides).toEqual(["apps", "publish", "pro", "team"]);
expect(view.team).toEqual({ kind: "start", inApp: false });
expect(view.plans).toEqual({ pro: { name: "Pro", terms: "Pro · $49/month + tax · 14-day money-back" }, team: { name: "Team", terms: "Free for 3 days, then $40/month + tax" } });
- expect(view.audience).toBe("none"); expect(view.addKey).toBe(true);
+ expect(view.audience).toBe("none"); expect(view.apps).toEqual(apps);
});
- it("a plan of one's own: Team, in the app's own Add a Cloud, and the sponsor's", () => {
- const view = carousel({ plans: whatsNewView(onPlan("pro"), OFFER), team: start(true) }) as WhatsNewView;
- expect(view.slides).toEqual(["team", "modelgo"]); expect(view.team).toEqual({ kind: "start", inApp: true }); expect(view.audience).toBe("own");
+ it("a plan of one's own: what is new on their Cloud, and Team in the app's own Add a Cloud", () => {
+ const view = carousel({ plans: whatsNewView(onPlan("pro"), OFFER), team: start(true), cloud: true }) as WhatsNewView;
+ expect(view.slides).toEqual(["apps", "publish", "cloudNews", "team"]); expect(view.team).toEqual({ kind: "start", inApp: true }); expect(view.audience).toBe("own");
});
- it("a page that sells no plan (a Cloud's, a browser, a remote client): Team on the website at the listed price, and the sponsor's", () => {
- const view = carousel({ plans: "none", staging: true }) as WhatsNewView;
- expect(view.slides).toEqual(["team", "modelgo"]);
- expect(view.plans).toEqual({ team: { name: "Team", terms: "$40 a month for 2 people, $20 for each extra person." } });
- expect(view.audience).toBe("other"); expect(view.staging).toBe(true);
+ it("in a team, on this desktop or as a Team Cloud's member: what is new on the Cloud and in the team, never a button that sells", () => {
+ const view = carousel({ plans: "none", team: { kind: "got-it" }, cloud: true }) as WhatsNewView;
+ expect(view.slides).toEqual(["apps", "publish", "cloudNews", "teamNews"]);
+ expect(view.team).toBeUndefined(); expect(view.plans).toEqual({});
});
- it("a Team Cloud's Owner or Admin: Invite your team and the sponsor's, with no price", () => {
- const view = carousel({ plans: "none", team: invite }) as WhatsNewView;
- expect(view.slides).toEqual(["team", "modelgo"]); expect(view.team).toEqual(invite); expect(view.plans).toEqual({});
+ it("a Team Cloud's Owner or Admin on its page: Invite your team, with no price, after what is new on the Cloud", () => {
+ const view = carousel({ plans: "none", team: invite, cloud: true, apps: { place: "cloud", install: false } }) as WhatsNewView;
+ expect(view.slides).toEqual(["apps", "publish", "cloudNews", "team"]); expect(view.team).toEqual(invite); expect(view.plans).toEqual({});
+ expect(view.apps).toEqual({ place: "cloud", install: false });
});
- it("someone already in a team, or a Team Cloud's member, gets no Team slide; with no sponsor either, nothing at all", () => {
- expect((carousel({ plans: "none", team: { kind: "got-it" } }) as WhatsNewView).slides).toEqual(["modelgo"]);
- expect(carousel({ plans: "none", team: { kind: "got-it" }, modelgo: false })).toBe("none");
- expect(carousel({ plans: "none", team: null, modelgo: false })).toBe("none");
+ it("a page that sells no plan and knows of no Cloud (a browser, a remote client): Team on the website at the listed price", () => {
+ const view = carousel({ plans: "none", staging: true }) as WhatsNewView;
+ expect(view.slides).toEqual(["apps", "publish", "team"]);
+ expect(view.plans).toEqual({ team: { name: "Team", terms: "$40 a month for 2 people, $20 for each extra person." } });
+ expect(view.audience).toBe("other"); expect(view.staging).toBe(true);
});
- it("where ModelGo may not be offered, no sponsor's slide; the plan slides stay", () => {
- expect((carousel({ modelgo: false }) as WhatsNewView).slides).toEqual(["pro", "team"]);
+ it("an organization's desktop: no team slide of any kind; Apps and Publish still", () => {
+ expect(slides({ plans: "none", team: null })).toEqual(["apps", "publish"]);
+ expect(slides({ plans: "none", team: null, cloud: true })).toEqual(["apps", "publish", "cloudNews"]);
});
it("an offer that sells no Team plan drops the Team slide; one not read keeps it at the listed price", () => {
const noTeam = { ...OFFER, plans: OFFER.plans.filter(plan => plan.tier !== "team") };
- expect((carousel({ plans: whatsNewView(free, noTeam), teamSold: false }) as WhatsNewView).slides).toEqual(["pro", "modelgo"]);
- expect((carousel({ plans: "none", teamSold: undefined }) as WhatsNewView).slides).toEqual(["team", "modelgo"]);
- expect((carousel({ plans: "none", team: invite, teamSold: false }) as WhatsNewView).slides, "inviting needs no plan to sell").toEqual(["team", "modelgo"]);
+ expect(slides({ plans: whatsNewView(free, noTeam), teamSold: false })).toEqual(["apps", "publish", "pro"]);
+ expect(slides({ plans: "none", teamSold: undefined })).toEqual(["apps", "publish", "team"]);
+ expect(slides({ plans: "none", team: invite, teamSold: false }), "inviting needs no plan to sell").toEqual(["apps", "publish", "team"]);
+ });
+
+ it("the notice of the bots together comes last, after the Cloud and the team", () => {
+ expect(slides({ plans: "none", team: { kind: "got-it" }, cloud: true, together: true })).toEqual(["apps", "publish", "cloudNews", "teamNews", "together"]);
+ expect(slides({ plans: whatsNewView(onPlan("pro"), OFFER), team: start(true), cloud: true, together: true })).toEqual(["apps", "publish", "cloudNews", "team", "together"]);
});
it("waits while the plan slides are read", () => {
expect(carousel({ plans: "loading" })).toBe("loading");
});
});
+
+describe("the notice of the bots together, as What's new's last slide: for whom", () => {
+ it("where its corner notice would show, while main calls it due and it was never drawn", () => {
+ expect(togetherSlideDue({ here: true, due: true, drawn: false, kept: false })).toBe(true);
+ expect(togetherSlideDue({ here: true, due: true, drawn: true, kept: false }), "drawn in the corner before: the corner keeps it").toBe(false);
+ expect(togetherSlideDue({ here: true, due: false, drawn: false, kept: false }), "closed, or no My Cloud to bring together").toBe(false);
+ });
+
+ it("not eligible: another place's page, a branded build or a browser never gets the slide; while main has not answered it waits; once shown it stays", () => {
+ expect(togetherSlideDue({ here: false, due: true, drawn: false, kept: false })).toBe(false);
+ expect(togetherSlideDue({ here: true, due: null, drawn: false, kept: false })).toBeNull();
+ expect(togetherSlideDue({ here: true, due: false, drawn: true, kept: true }), "kept in the carousel that showed it").toBe(true);
+ });
+});
diff --git a/src/lib/whats-new.ts b/src/lib/whats-new.ts
index 2de6e0af40..01c390aa3e 100644
--- a/src/lib/whats-new.ts
+++ b/src/lib/whats-new.ts
@@ -4,13 +4,14 @@ import { CLOUD_TEAM_TIERS } from "../../electron/cloud-team-plan.mjs";
import { track } from "@/lib/analytics";
import { cloudPlanView, moneyBackShort, offerPlanLabel, trialRunning, trialTerms, usd } from "@/lib/cloud-plan";
import { t } from "@/lib/i18n";
-import { reportModelgoOffer, type ModelgoOfferAction } from "@/lib/modelgo-offer";
import { WHATS_NEW_NOTICE } from "@/lib/notices";
import type { TeamsAction } from "@/lib/teams-whats-new";
-/** The plan slides, then the sponsor's. */
+/** The plan slides, which sell a Cloud plan or a team. Someone they don't sell to is told what is new instead: `cloudNews`
+ * for a Cloud they have, `teamNews` for a team they are in. `apps` and `publish` tell everyone; `together` carries the notice
+ * of "This computer and My Cloud together". */
export type PlanSlide = "pro" | "team";
-export type WhatsNewSlide = PlanSlide | "modelgo";
+export type WhatsNewSlide = PlanSlide | "apps" | "publish" | "cloudNews" | "teamNews" | "together";
/** Who the account is to MausBot Cloud: no plan, a plan of its own, in a team, or something else (being bought, needing
* attention, not checked). Null until the sign-in is restored and checked. */
export type WhatsNewAudience = "none" | "own" | "team" | "other";
@@ -57,10 +58,13 @@ export interface WhatsNewView {
plans: Partial<Record<PlanSlide, { name: string; terms: string }>>;
/** Without it, the Team slide starts a team: in the app for a plan of one's own, else on the website. */
team?: WhatsNewTeam;
- /** The sponsor's slide offers Add key, which opens Settings where its key goes. */
- addKey?: boolean;
+ /** The Apps slide: which section of Published apps lists the apps saved here, and whether this page opens one in its own
+ * window and installs it on the computer. */
+ apps?: WhatsNewApps;
}
+export interface WhatsNewApps { place: "computer" | "cloud"; install: boolean }
+
/** "loading" while the account or the offer is read; "none" when nothing is for this account now (a later launch may say
* otherwise). A slide whose plan the Admin doesn't offer is left out. */
export function whatsNewView(account: CloudAccountState | null, offer: CloudOffer | null | undefined): WhatsNewView | "loading" | "none" {
@@ -83,39 +87,52 @@ export function whatsNewView(account: CloudAccountState | null, offer: CloudOffe
}
/**
- * What's new with all three slides, for everyone once: the new Cloud where `plans` (whatsNewView, "none" where this page
- * can't sell a plan) has it; Team where `team` starts or grows one (a member of a team is only told, so has no slide), unless
- * the Admin's offer was read and sells no Team plan (`teamSold` false); the sponsor's where `modelgo`.
+ * Whether What's new carries the slide of "This computer and My Cloud together": where its corner notice would show (this
+ * computer's own page, never a branded build's), while main calls it due (`due`, null until main answers) and it was
+ * never drawn on screen before (`drawn`: an earlier launch showed the corner notice, which stays the one it gets). `kept`:
+ * this page's carousel already showed the slide, which stays in it however main's answer reads now.
*/
-export function whatsNewCarousel({ plans, team, teamSold, modelgo, addKey, staging = false }: {
- plans: WhatsNewView | "loading" | "none"; team: TeamsAction | null; teamSold?: boolean; modelgo: boolean; addKey: boolean; staging?: boolean;
+export function togetherSlideDue({ here, due, drawn, kept }: { here: boolean; due: boolean | null; drawn: boolean; kept: boolean }): boolean | null {
+ if (kept) return true;
+ if (!here || due === false) return false;
+ return due === null ? null : !drawn;
+}
+
+/**
+ * What's new, for everyone once, in this order:
+ * - Apps and Publish your bots, on every page;
+ * - the new Cloud where `plans` (whatsNewView, "none" where this page can't sell a plan) has it, else what is new on the
+ * Cloud the person has (`cloud`);
+ * - Team where `team` starts or grows one, unless the Admin's offer was read and sells no Team plan (`teamSold` false), else
+ * what is new in the team they are in (`team` "got-it");
+ * - the notice of "This computer and My Cloud together" last, where `together` (togetherSlideDue).
+ */
+export function whatsNewCarousel({ plans, team, teamSold, cloud, apps, staging = false, together = false }: {
+ plans: WhatsNewView | "loading" | "none"; team: TeamsAction | null; teamSold?: boolean; cloud: boolean; apps: WhatsNewApps; staging?: boolean;
+ together?: boolean;
}): WhatsNewView | "loading" | "none" {
if (plans === "loading") return "loading";
const sold = typeof plans === "object" ? plans : null;
const teamSlide: WhatsNewTeam | null = !team || team.kind === "got-it" || (team.kind === "start" && teamSold === false) ? null
: team.kind === "invite" ? { kind: "invite", url: team.url } : { kind: "start", inApp: team.inApp };
const slides: WhatsNewSlide[] = [
- ...(sold?.slides.includes("pro") ? ["pro" as const] : []),
- ...(teamSlide ? ["team" as const] : []),
- ...(modelgo ? ["modelgo" as const] : []),
+ "apps", "publish",
+ ...(sold?.slides.includes("pro") ? ["pro" as const] : cloud ? ["cloudNews" as const] : []),
+ ...(teamSlide ? ["team" as const] : team?.kind === "got-it" ? ["teamNews" as const] : []),
+ ...(together ? ["together" as const] : []),
];
- if (!slides.length) return "none";
const teamTerms = teamSlide?.kind !== "start" ? null : sold?.plans.team ?? { name: "Team", terms: t("teamsNew.price") };
return {
slides, audience: sold?.audience ?? "other", signedIn: sold?.signedIn ?? false, staging: sold?.staging ?? staging,
plans: { ...(sold?.plans.pro && slides.includes("pro") ? { pro: sold.plans.pro } : {}), ...(teamTerms ? { team: teamTerms } : {}) },
- ...(teamSlide ? { team: teamSlide } : {}), addKey,
+ ...(teamSlide ? { team: teamSlide } : {}), apps,
};
}
-export type WhatsNewAction = "seen" | "next" | "back" | "get_pro" | "see_cloud" | "start_team" | "invite" | "get_key" | "add_key" | "not_now" | "close";
-
-const SPONSOR_STEPS: Partial<Record<WhatsNewAction, ModelgoOfferAction>> = { seen: "shown", get_key: "get_key", add_key: "add_key", not_now: "not_now", close: "close" };
+export type WhatsNewAction = "seen" | "next" | "back" | "got_it" | "get_pro" | "see_cloud" | "start_team" | "invite" | "open_apps" | "not_now" | "close";
-/** Every step of every slide on `whats_new`; the sponsor's slide also on `modelgo_offer`, as its card was counted. */
+/** Every step of every slide on `whats_new`. */
export function reportWhatsNew(action: WhatsNewAction, slide: WhatsNewSlide, view: Pick<WhatsNewView, "audience" | "signedIn" | "team">, campaign: string = WHATS_NEW_NOTICE) {
const audience = view.team?.kind === "invite" ? "team_admin" : view.audience === "own" ? "own_plan" : view.audience === "none" ? "no_plan" : "other";
track("whats_new", { action, slide, audience, signed_in: view.signedIn, campaign });
- const sponsor = slide === "modelgo" ? SPONSOR_STEPS[action] : undefined;
- if (sponsor) reportModelgoOffer(sponsor, "popup", campaign);
}
diff --git a/src/locales/de.json b/src/locales/de.json
index ad73dd8f77..2026725353 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -435,6 +435,10 @@
"whatsNew.team.memory": "Ein Teamgedächtnis, das die Bots teilen",
"whatsNew.team.handoff": "Bots geben einander im ganzen Team Arbeit weiter",
"whatsNew.team.accessUse": "Wähle, wer jeden Bot nutzen darf",
+ "whatsNew.cloudNews.title": "Neu in MausBot Cloud",
+ "whatsNew.cloudNews.body": "Während deine Cloud aktualisiert wird oder stark ausgelastet ist, sagt die App das jetzt, statt nicht zu laden oder dich um eine neue Einrichtung zu bitten. Eine Cloud, deren Uhr nach dem Ruhezustand nachgeht, stellt sie selbst richtig.",
+ "whatsNew.teamNews.title": "Neu für dein Team",
+ "whatsNew.teamNews.body": "Gruppenchats zeigen ihre Threads als Feed, mit dem offenen Thread daneben. Jede Person im Chat kann einen fertigen Thread schließen, und eine neue Antwort öffnet ihn wieder.",
"whatsNew.team.start": "Team starten",
"cloudHowTo.title": "Hier fügst du eine Cloud hinzu",
"cloudHowTo.body": "Klicke auf dieses Menü und wähle dann „Add a Cloud“. Hier wechselst du auch zwischen diesem Computer und der Cloud.",
diff --git a/src/locales/en.json b/src/locales/en.json
index 8bfaf42a14..e94b846413 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -567,8 +567,6 @@
"modelgoOffer.getKey": "Get a ModelGo key",
"modelgoOffer.name": "ModelGo",
"modelgoOffer.link": "Get a key",
- "modelgoOffer.addKey": "Add key",
- "modelgoOffer.videoLabel": "Settings, AI: the pointer sets up ModelGo and pastes a key.",
"cloudIntro.badge.one": "Free for 1 day",
"cloudIntro.badge.many": "Free for {days} days",
"cloudIntro.title": "Keep your bots working when this computer is off",
@@ -598,6 +596,17 @@
"whatsNew.team.accessUse": "Choose who can use each bot",
"whatsNew.team.start": "Start a Team",
"whatsNew.team.videoLabel": "A team's group chat in MausBot: messages from people and bots, each with its replies.",
+ "whatsNew.cloudNews.title": "What's new in MausBot Cloud",
+ "whatsNew.cloudNews.body": "While a Cloud is being updated or is very busy, the app now says so instead of failing to load or asking you to set it up again. A Cloud whose clock fell behind after sleeping corrects it by itself.",
+ "whatsNew.teamNews.title": "What's new for your team",
+ "whatsNew.teamNews.body": "Group chats show their threads as a feed, with the open thread beside it. Anyone in the chat can close a finished thread, and a new reply reopens it.",
+ "whatsNew.apps.title": "Your apps have a home",
+ "whatsNew.apps.body": "The apps your bots build now live in “{screen}”, under “{section}”. Save any page a bot makes as an app, open it in its own window and install it on your computer.",
+ "whatsNew.apps.bodyHere": "The apps your bots build now live in “{screen}”, under “{section}”. Save any page a bot makes as an app and open it there any time.",
+ "whatsNew.apps.open": "Open apps",
+ "whatsNew.apps.videoLabel": "Published apps: the apps your bots built, each as a card; the pointer opens one.",
+ "whatsNew.publish.title": "Publish your bots",
+ "whatsNew.publish.body": "Share a bot as a template others can add to their own MausBot. Choose “{item}” in the bot's {share} or ⋯ menu, then “{publish}”.",
"teamsNew.title": "MausBot is better with your team",
"teamsNew.sharedBot": "One shared bot for everyone: set it up once, everyone uses it.",
"teamsNew.files": "Team files and templates everyone's bots can use.",
diff --git a/src/locales/es.json b/src/locales/es.json
index 3680531a5e..bf1aa1b133 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -334,6 +334,10 @@
"whatsNew.team.memory": "Una memoria de equipo que comparten los bots",
"whatsNew.team.handoff": "Los bots se pasan trabajo entre sí en todo el equipo",
"whatsNew.team.accessUse": "Elige quién puede usar cada bot",
+ "whatsNew.cloudNews.title": "Novedades en MausBot Cloud",
+ "whatsNew.cloudNews.body": "Mientras tu Cloud se actualiza o está muy ocupada, la app ahora lo dice en lugar de no cargar o pedirte que la configures de nuevo. Una Cloud cuyo reloj se atrasó tras dormir lo corrige sola.",
+ "whatsNew.teamNews.title": "Novedades para tu equipo",
+ "whatsNew.teamNews.body": "Los chats de grupo muestran sus hilos como un feed, con el hilo abierto al lado. Cualquiera en el chat puede cerrar un hilo terminado, y una nueva respuesta lo vuelve a abrir.",
"whatsNew.team.start": "Crear un equipo",
"cloudHowTo.title": "Añade una Cloud desde aquí",
"cloudHowTo.body": "Haz clic en este menú y elige «Add a Cloud». También es donde cambias entre este equipo y la Cloud.",
diff --git a/src/locales/fr.json b/src/locales/fr.json
index ec13bd230d..bd16084c89 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -299,6 +299,10 @@
"whatsNew.team.memory": "Une mémoire d'équipe partagée par les bots",
"whatsNew.team.handoff": "Les bots se passent le travail dans toute l'équipe",
"whatsNew.team.accessUse": "Choisissez qui peut utiliser chaque bot",
+ "whatsNew.cloudNews.title": "Du nouveau dans MausBot Cloud",
+ "whatsNew.cloudNews.body": "Pendant que votre Cloud est mis à jour ou très occupé, l'app le dit désormais au lieu d'échouer au chargement ou de vous demander de le configurer à nouveau. Un Cloud dont l'horloge a pris du retard après une mise en veille la corrige tout seul.",
+ "whatsNew.teamNews.title": "Du nouveau pour votre équipe",
+ "whatsNew.teamNews.body": "Les discussions de groupe affichent leurs fils sous forme de flux, avec le fil ouvert à côté. Toute personne de la discussion peut fermer un fil terminé, et une nouvelle réponse le rouvre.",
"whatsNew.team.start": "Créer une équipe",
"cloudHowTo.title": "Ajoutez un Cloud ici",
"cloudHowTo.body": "Cliquez sur ce menu, puis choisissez « Add a Cloud ». C'est aussi là que vous passez de cet ordinateur au Cloud.",
diff --git a/src/locales/hi.json b/src/locales/hi.json
index f4c1f9be64..beee345900 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -297,6 +297,10 @@
"whatsNew.team.memory": "टीम की मेमोरी, जिसे बॉट साझा करते हैं",
"whatsNew.team.handoff": "बॉट पूरी टीम में एक-दूसरे को काम सौंपते हैं",
"whatsNew.team.accessUse": "चुनें कि हर बॉट का इस्तेमाल कौन कर सकता है",
+ "whatsNew.cloudNews.title": "MausBot Cloud में नया क्या है",
+ "whatsNew.cloudNews.body": "जब आपका Cloud अपडेट हो रहा हो या बहुत व्यस्त हो, तो ऐप अब यह बताता है, बजाय लोड न होने या उसे फिर से सेट अप करने को कहने के। जिस Cloud की घड़ी सोने के बाद पीछे रह गई हो, वह उसे अपने आप ठीक कर लेता है।",
+ "whatsNew.teamNews.title": "आपकी टीम के लिए नया क्या है",
+ "whatsNew.teamNews.body": "ग्रुप चैट अपने थ्रेड को एक फ़ीड के रूप में दिखाते हैं, खुला थ्रेड बगल में। चैट में कोई भी पूरा हुआ थ्रेड बंद कर सकता है, और नया जवाब उसे फिर से खोल देता है।",
"whatsNew.team.start": "टीम शुरू करें",
"cloudHowTo.title": "यहाँ से Cloud जोड़ें",
"cloudHowTo.body": "इस मेनू पर क्लिक करें, फिर \"Add a Cloud\" चुनें। यहीं से आप इस कंप्यूटर और Cloud के बीच भी बदलते हैं।",
diff --git a/src/locales/it.json b/src/locales/it.json
index 44fc102aab..9d953f9f95 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -593,6 +593,10 @@
"whatsNew.team.memory": "Una memoria di team condivisa dai bot",
"whatsNew.team.handoff": "I bot si passano il lavoro in tutto il team",
"whatsNew.team.accessUse": "Scegli chi può usare ogni bot",
+ "whatsNew.cloudNews.title": "Novità in MausBot Cloud",
+ "whatsNew.cloudNews.body": "Mentre il tuo Cloud viene aggiornato o è molto occupato, l'app ora lo dice invece di non caricarsi o di chiederti di configurarlo di nuovo. Un Cloud il cui orologio è rimasto indietro dopo la sospensione lo corregge da solo.",
+ "whatsNew.teamNews.title": "Novità per il tuo team",
+ "whatsNew.teamNews.body": "Le chat di gruppo mostrano i loro thread come un feed, con il thread aperto accanto. Chiunque nella chat può chiudere un thread finito, e una nuova risposta lo riapre.",
"whatsNew.team.start": "Crea un team",
"teamsNew.title": "MausBot funziona meglio con il tuo team",
"teamsNew.sharedBot": "Un bot condiviso per tutti: lo configuri una volta, lo usano tutti.",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 5a3534ebd1..76295085f8 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -397,6 +397,10 @@
"whatsNew.team.memory": "ボットが共有するチームのメモリー",
"whatsNew.team.handoff": "ボット同士がチーム全体で仕事を引き継ぎます",
"whatsNew.team.accessUse": "ボットごとに、使える人を選べます",
+ "whatsNew.cloudNews.title": "MausBot Cloud の新機能",
+ "whatsNew.cloudNews.body": "Cloud の更新中や非常に混み合っているときは、読み込みに失敗したり設定し直しを求めたりする代わりに、アプリがそのことを表示するようになりました。スリープ後に時計が遅れた Cloud は自動で修正します。",
+ "whatsNew.teamNews.title": "チームの新機能",
+ "whatsNew.teamNews.body": "グループチャットはスレッドをフィードで表示し、開いているスレッドを横に並べます。チャットの誰でも終わったスレッドを閉じられ、新しい返信があると再び開きます。",
"whatsNew.team.start": "Team を始める",
"cloudHowTo.title": "ここから Cloud を追加できます",
"cloudHowTo.body": "このメニューをクリックして、「Add a Cloud」を選んでください。このコンピューターと Cloud の切り替えもここで行います。",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index d40672941c..ffe926b76a 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -387,6 +387,10 @@
"whatsNew.team.memory": "봇들이 함께 쓰는 팀 메모리",
"whatsNew.team.handoff": "봇끼리 팀 전체에서 일을 넘겨줘요",
"whatsNew.team.accessUse": "봇마다 누가 쓸 수 있는지 정해요",
+ "whatsNew.cloudNews.title": "MausBot Cloud의 새로운 기능",
+ "whatsNew.cloudNews.body": "Cloud가 업데이트 중이거나 매우 바쁠 때, 이제 앱이 불러오기에 실패하거나 다시 설정하라고 하는 대신 그 사실을 알려 줍니다. 잠자기 후 시계가 늦어진 Cloud는 스스로 시계를 맞춥니다.",
+ "whatsNew.teamNews.title": "팀의 새로운 기능",
+ "whatsNew.teamNews.body": "그룹 채팅은 스레드를 피드로 보여 주고, 열린 스레드를 옆에 표시합니다. 채팅에 있는 누구나 끝난 스레드를 닫을 수 있고, 새 답장이 오면 다시 열립니다.",
"whatsNew.team.start": "팀 시작하기",
"cloudHowTo.title": "여기서 클라우드를 추가하세요",
"cloudHowTo.body": "이 메뉴를 누른 뒤 클라우드 추가를 고르세요. 이 컴퓨터와 클라우드를 오갈 때도 이 메뉴를 써요.",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 20c8a5c5f0..d86c596657 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -344,6 +344,10 @@
"whatsNew.team.memory": "Pamięć zespołu, którą dzielą boty",
"whatsNew.team.handoff": "Boty przekazują sobie pracę w całym zespole",
"whatsNew.team.accessUse": "Wybierz, kto może korzystać z każdego bota",
+ "whatsNew.cloudNews.title": "Nowości w MausBot Cloud",
+ "whatsNew.cloudNews.body": "Gdy Twoja Cloud jest aktualizowana lub bardzo zajęta, aplikacja teraz to mówi, zamiast nie wczytać się lub prosić o ponowną konfigurację. Cloud, której zegar spóźnił się po uśpieniu, sama go poprawia.",
+ "whatsNew.teamNews.title": "Nowości dla Twojego zespołu",
+ "whatsNew.teamNews.body": "Czaty grupowe pokazują swoje wątki jako kanał, z otwartym wątkiem obok. Każdy na czacie może zamknąć zakończony wątek, a nowa odpowiedź otwiera go ponownie.",
"whatsNew.team.start": "Załóż zespół",
"cloudHowTo.title": "Dodaj Chmurę tutaj",
"cloudHowTo.body": "Kliknij to menu, a następnie wybierz Dodaj Chmurę. Tutaj też przełączasz się między tym komputerem a Chmurą.",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 802939b99d..af80443335 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -545,8 +545,6 @@
"modelgoOffer.getKey": "Obter uma chave do ModelGo",
"modelgoOffer.name": "ModelGo",
"modelgoOffer.link": "Obter uma chave",
- "modelgoOffer.addKey": "Adicionar chave",
- "modelgoOffer.videoLabel": "Configurações, IA: o ponteiro configura o ModelGo e cola uma chave.",
"productHunt.title": "Estamos no ar no Product Hunt",
"productHunt.body": "O MausBot acabou de ser lançado. Seu voto significaria muito para nós.",
"productHunt.button": "Votar no Product Hunt",
@@ -579,6 +577,17 @@
"whatsNew.team.accessUse": "Escolha quem pode usar cada bot",
"whatsNew.team.start": "Criar uma equipe",
"whatsNew.team.videoLabel": "O chat em grupo de uma equipe no MausBot: mensagens de pessoas e bots, cada uma com suas respostas.",
+ "whatsNew.cloudNews.title": "Novidades no MausBot Cloud",
+ "whatsNew.cloudNews.body": "Enquanto sua Cloud está sendo atualizada ou muito ocupada, o app agora avisa, em vez de falhar ao carregar ou pedir para configurá-la de novo. Uma Cloud cujo relógio atrasou depois de dormir o corrige sozinha.",
+ "whatsNew.teamNews.title": "Novidades para sua equipe",
+ "whatsNew.teamNews.body": "Os chats em grupo mostram suas conversas como um feed, com a conversa aberta ao lado. Qualquer pessoa no chat pode encerrar uma conversa concluída, e uma nova resposta a reabre.",
+ "whatsNew.apps.title": "Seus apps têm um lugar",
+ "whatsNew.apps.body": "Os apps que seus bots criam agora ficam em “{screen}”, em “{section}”. Salve qualquer página de um bot como app, abra-a em uma janela própria e instale-a no seu computador.",
+ "whatsNew.apps.bodyHere": "Os apps que seus bots criam agora ficam em “{screen}”, em “{section}”. Salve qualquer página de um bot como app e abra-a ali quando quiser.",
+ "whatsNew.apps.open": "Abrir apps",
+ "whatsNew.apps.videoLabel": "Apps publicados: os apps que seus bots criaram, cada um em um cartão; o ponteiro abre um deles.",
+ "whatsNew.publish.title": "Publique seus bots",
+ "whatsNew.publish.body": "Compartilhe um bot como modelo que outras pessoas podem adicionar ao próprio MausBot. Escolha “{item}” no menu {share} ou ⋯ do bot e depois “{publish}”.",
"teamsNew.title": "O MausBot é melhor com a sua equipe",
"teamsNew.sharedBot": "Um bot compartilhado para todos: configure uma vez e todo mundo usa.",
"teamsNew.files": "Arquivos e modelos da equipe que os bots de todos podem usar.",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index cf05ffcb20..e0c35b0efa 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -344,6 +344,10 @@
"whatsNew.team.memory": "Общая командная память ботов",
"whatsNew.team.handoff": "Боты передают друг другу работу по всей команде",
"whatsNew.team.accessUse": "Выбирайте, кто может пользоваться каждым ботом",
+ "whatsNew.cloudNews.title": "Что нового в MausBot Cloud",
+ "whatsNew.cloudNews.body": "Пока ваш Cloud обновляется или сильно загружен, приложение теперь сообщает об этом, а не выдаёт ошибку загрузки и не просит настроить его заново. Cloud, у которого после сна отстали часы, исправляет их сам.",
+ "whatsNew.teamNews.title": "Что нового для вашей команды",
+ "whatsNew.teamNews.body": "Групповые чаты показывают свои ветки лентой, а открытую ветку — рядом. Любой участник чата может закрыть завершённую ветку, а новый ответ открывает её снова.",
"whatsNew.team.start": "Создать команду",
"cloudHowTo.title": "Добавьте облако отсюда",
"cloudHowTo.body": "Нажмите это меню, затем выберите «Добавить облако». Здесь же вы переключаетесь между этим компьютером и облаком.",
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index f565f87f09..e431628b70 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -39857,8 +39857,6 @@
"server.github.card.fetch": "dec517e83d4eb81a911f73675cc43c1b4b9be16e07748398b096d83473cc1a57",
"server.github.card.description": "03af79bfc8dd9f02aa1b65c41a556748059391ea1c098a7501a79b7b8cdadead",
"server.github.card.connectInApps": "2360dc1e61bdfbe9a204c0e21d1f42b98a284cca9e8198e9047b333a511d1c3a",
- "modelgoOffer.addKey": "12626d65b219dd74ede3ad8e834b1ed810320ca311e3086ce9801666bcb2b7cc",
- "modelgoOffer.videoLabel": "4ddeafbe10928e66ec0bb070cf0b0beb7e64afe4878955a5dc98f437e3b1c12c",
"whatsNew.cloud.videoLabel": "6cb60aba9d846d853846f1c5d4e92fdbdfbf9d5da3a10993acb04d6547d7ff77",
"whatsNew.team.videoLabel": "404fe8f14cc88887dbccc35a2acbb46f7bf2081f8ebdff0aed01e910f19f8aa2",
"cloudWork.update": "d2d2afbd7ca6ff7569512ecc4578f11f3848cdbf0cc56d9a4ff1fc8777dd637b",
diff --git a/src/locales/tr.json b/src/locales/tr.json
index 1db64e6b63..cdf03afd9b 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -333,6 +333,10 @@
"whatsNew.team.memory": "Botların paylaştığı ekip belleği",
"whatsNew.team.handoff": "Botlar tüm ekipte birbirine iş devreder",
"whatsNew.team.accessUse": "Her botu kimin kullanabileceğini seçin",
+ "whatsNew.cloudNews.title": "MausBot Cloud'da yenilikler",
+ "whatsNew.cloudNews.body": "Cloud'unuz güncellenirken veya çok yoğunken uygulama artık yüklenemeyip kalmak ya da yeniden kurmanızı istemek yerine bunu söylüyor. Uyku sonrası saati geri kalan bir Cloud onu kendisi düzeltir.",
+ "whatsNew.teamNews.title": "Ekibiniz için yenilikler",
+ "whatsNew.teamNews.body": "Grup sohbetleri konularını bir akış olarak, açık konuyu yanında gösterir. Sohbetteki herkes biten bir konuyu kapatabilir; yeni bir yanıt onu yeniden açar.",
"whatsNew.team.start": "Ekip oluştur",
"cloudHowTo.title": "Buradan bir Cloud ekleyin",
"cloudHowTo.body": "Bu menüye tıklayın, ardından Cloud ekle seçeneğini belirleyin. Bu bilgisayar ile Cloud arasında geçiş de buradan yapılır.",
diff --git a/src/locales/uk.json b/src/locales/uk.json
index 83999b134a..19d2695030 100644
--- a/src/locales/uk.json
+++ b/src/locales/uk.json
@@ -298,6 +298,10 @@
"whatsNew.team.memory": "Командна пам’ять, спільна для ботів",
"whatsNew.team.handoff": "Боти передають одне одному роботу в усій команді",
"whatsNew.team.accessUse": "Обирайте, хто може користуватися кожним ботом",
+ "whatsNew.cloudNews.title": "Що нового в MausBot Cloud",
+ "whatsNew.cloudNews.body": "Поки ваш Cloud оновлюється або дуже завантажений, застосунок тепер повідомляє про це, а не видає помилку завантаження чи просить налаштувати його знову. Cloud, у якого після сну відстав годинник, виправляє його сам.",
+ "whatsNew.teamNews.title": "Що нового для вашої команди",
+ "whatsNew.teamNews.body": "Групові чати показують свої гілки стрічкою, а відкриту гілку — поруч. Будь-хто в чаті може закрити завершену гілку, а нова відповідь відкриває її знову.",
"whatsNew.team.start": "Створити команду",
"cloudHowTo.title": "Додайте Cloud звідси",
"cloudHowTo.body": "Клацніть це меню, а потім виберіть «Add a Cloud». Тут також можна перемикатися між цим комп’ютером і Cloud.",
diff --git a/src/locales/vi.json b/src/locales/vi.json
index 2d8b3a6818..34bd19ec58 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -333,6 +333,10 @@
"whatsNew.team.memory": "Bộ nhớ nhóm mà các bot dùng chung",
"whatsNew.team.handoff": "Các bot chuyển việc cho nhau trong cả nhóm",
"whatsNew.team.accessUse": "Chọn ai có thể dùng từng bot",
+ "whatsNew.cloudNews.title": "Có gì mới trong MausBot Cloud",
+ "whatsNew.cloudNews.body": "Khi Cloud của bạn đang cập nhật hoặc rất bận, ứng dụng giờ sẽ báo như vậy thay vì không tải được hoặc yêu cầu bạn thiết lập lại. Cloud nào bị chậm đồng hồ sau khi ngủ sẽ tự chỉnh lại.",
+ "whatsNew.teamNews.title": "Có gì mới cho nhóm của bạn",
+ "whatsNew.teamNews.body": "Trò chuyện nhóm hiển thị các chuỗi dưới dạng bảng tin, với chuỗi đang mở ở bên cạnh. Bất kỳ ai trong cuộc trò chuyện đều có thể đóng một chuỗi đã xong, và một trả lời mới sẽ mở lại nó.",
"whatsNew.team.start": "Tạo nhóm",
"cloudHowTo.title": "Thêm Cloud từ đây",
"cloudHowTo.body": "Nhấp vào menu này, sau đó chọn Thêm Cloud. Đây cũng là nơi bạn chuyển đổi giữa máy tính này và Cloud.",
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index e088e1bc81..247885ec63 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -488,6 +488,10 @@
"whatsNew.team.memory": "機器人共用的團隊記憶",
"whatsNew.team.handoff": "機器人在整個團隊中互相交接工作",
"whatsNew.team.accessUse": "為每個機器人選擇誰可以使用",
+ "whatsNew.cloudNews.title": "MausBot Cloud 有什麼新變化",
+ "whatsNew.cloudNews.body": "當你的 Cloud 正在更新或非常忙碌時,應用程式現在會直接說明,而不是載入失敗或要求你重新設定。睡眠後時鐘變慢的 Cloud 會自行校正。",
+ "whatsNew.teamNews.title": "你的團隊有什麼新變化",
+ "whatsNew.teamNews.body": "群組聊天以動態牆顯示其討論串,開啟的討論串顯示在旁邊。聊天中的任何人都可以關閉已完成的討論串,新的回覆會重新開啟它。",
"whatsNew.team.start": "建立團隊",
"cloudHowTo.title": "從這裡新增 Cloud",
"cloudHowTo.body": "按一下這個選單,然後選擇「Add a Cloud」。你也可以在這裡切換這台電腦和 Cloud。",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index daa9c8c700..dacfd46e13 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -474,6 +474,10 @@
"whatsNew.team.memory": "机器人共享的团队记忆",
"whatsNew.team.handoff": "机器人之间在整个团队中互相交接工作",
"whatsNew.team.accessUse": "为每个机器人选择谁可以使用",
+ "whatsNew.cloudNews.title": "MausBot Cloud 有什么新变化",
+ "whatsNew.cloudNews.body": "当你的 Cloud 正在更新或非常繁忙时,应用现在会直接说明,而不是加载失败或要求你重新设置。睡眠后时钟变慢的 Cloud 会自行校正。",
+ "whatsNew.teamNews.title": "你的团队有什么新变化",
+ "whatsNew.teamNews.body": "群聊以动态流显示其话题,打开的话题显示在旁边。聊天中的任何人都可以关闭已完成的话题,新的回复会重新打开它。",
"whatsNew.team.start": "创建团队",
"cloudHowTo.title": "从这里添加 Cloud",
"cloudHowTo.body": "点击这个菜单,然后选择「Add a Cloud」。你也可以在这里切换这台电脑和 Cloud。",
diff --git a/src/together-preview.tsx b/src/together-preview.tsx
index 493cd82fdd..a6eeb65e97 100644
--- a/src/together-preview.tsx
+++ b/src/together-preview.tsx
@@ -1,16 +1,24 @@
// Dev-only gallery of "This computer and My Cloud together" on by default, served at /together-preview.html; not in the
// packaged app. It mounts the real rail, sidebar and notice over fake bridges, with no server behind them.
// ?view=before|after|notice|notice-cloud-home|notice-off|rail-before|rail-after|rail-cloud-home&mode=simple|advanced&skin=midnight|daylight&lang=pt-br
+// What's new, with the notice as its last slide: ?view=whats-new|whats-new-commands|whats-new-off|whats-new-cloud-home
+// &slide=1..6 (the slide on screen) &who=team (a plan and a team: the Cloud's and the team's news) |own (a plan of one's
+// own: Start a Team) |none (no plan: the selling Cloud and Team slides) |admin (a Team Cloud's Owner or Admin on its page:
+// Invite your team) &together=0 (main does not call the notice due)
// The one list: ?page=cloud (My Cloud's own page), ?home=cloud (the person's home is My Cloud),
// ?other=asleep|waking|offline|signin (the other place lists no rows and says why), and ?arranged=1 (the person dragged
// Scout under Git Tasks and Atlas into Finance).
import { StrictMode, useEffect } from "react";
import { createRoot } from "react-dom/client";
+import type { CloudAccountState } from "../electron/cloud-account.mjs";
+import type { CloudOffer } from "../electron/cloud-home.mjs";
import type { RailState } from "../electron/cloud-rail.mjs";
import type { BotHome, PlaceBotRow, PlacesTogetherState } from "../electron/places-together.mjs";
import { PlacesRail } from "@/components/PlacesRail";
import { Sidebar } from "@/components/Sidebar";
import { TogetherNotice } from "@/components/TogetherNotice";
+import { WhatsNewPopup } from "@/components/whats-new/WhatsNewPopup";
+import { whatsNewAudience, whatsNewCarousel, whatsNewView } from "@/lib/whats-new";
import { loadLocale } from "@/lib/i18n";
import { setAdvancedMode } from "@/lib/interface-mode";
import { applySkinChoice, SKIN_IDS, type SkinId } from "@/lib/skins";
@@ -49,10 +57,12 @@ const rowOf = (home: BotHome, bot: Bot): PlaceBotRow => ({ home, id: bot.id, thr
preview: (bot.messages[0] as { text: string }).text, chat: bot.tasks?.[0]?.title, ...(bot.section ? { section: bot.section } : {}), ...(bot.unread ? { unread: true as const } : {}), ...(bot.chiefOfStaff ? { chief: true as const } : {}) });
const otherHome: BotHome = page === "cloud" ? "computer" : "cloud";
const otherRows: PlaceBotRow[] = otherState ? [] : [chief, ...(page === "cloud" ? computerBots : cloudBots)].map((bot) => rowOf(otherHome, bot));
+const whatsNew = view.startsWith("whats-new");
const joined = !["before", "rail-before"].includes(view) && view !== "notice-off";
const together: PlacesTogetherState = joined
? { v: 1, available: true, on: true, here: page, home: homePlace, arranged: params.get("arranged") ? [{ key: "cloud:scout", section: "", after: "computer:git" }, { key: "cloud:atlas", section: "Finance", after: "computer:ledger" }] : [],
- other: { home: otherHome, state: otherState ?? "ready", bots: otherRows, ...(page === "cloud" ? { sections: ["Finance"] } : {}), newBot: true }, ...(view.startsWith("notice") ? { notice: true, commands: false, ...(view === "notice-cloud-home" ? { profileHome: true as const } : {}) } : {}) }
+ other: { home: otherHome, state: otherState ?? "ready", bots: otherRows, ...(page === "cloud" ? { sections: ["Finance"] } : {}), newBot: true }, ...(view.startsWith("notice") || whatsNew
+ ? { notice: true, commands: view === "whats-new-commands", ...(view.endsWith("cloud-home") ? { profileHome: true as const } : {}) } : {}) }
: { v: 1, available: true, on: false, here: page, other: null, ...(view === "notice-off" ? { notice: true, commands: false } : {}) };
const cloudHome = view === "rail-cloud-home" || homePlace === "cloud";
@@ -75,7 +85,40 @@ Object.assign(window, { ogb: {
rail: { expand: async () => {}, onSkin: () => () => {} },
} });
+const OFFER: CloudOffer = { recommended: "pro", refundDays: 14, plans: [
+ { tier: "starter", label: "Starter", amount: 1500 }, { tier: "pro", label: "Pro", amount: 4900 }, { tier: "max", label: "Max", amount: 9900 },
+ { tier: "team", label: "Team", amount: 4000, trialDays: 1 },
+] };
+const who = params.get("who") ?? "team";
+const ACCOUNT: CloudAccountState = { status: "connected", account: { id: "a", email: "[email protected]" }, ...(who === "none"
+ ? { entitlement: { plan: "free", status: "inactive", expiresAt: null, version: 1 } }
+ : { entitlement: { plan: "pro", tier: "pro", status: "active", expiresAt: AT + 30 * 86_400_000, version: 2 },
+ ...(who === "team" ? { teams: [{ id: "t1", name: "Design Studio", role: "member" as const, machine: null }] } : {}) }) };
+const admin = who === "admin", audience = whatsNewAudience(ACCOUNT);
+const carousel = whatsNew ? whatsNewCarousel({ plans: admin ? "none" : whatsNewView(ACCOUNT, OFFER), teamSold: true,
+ cloud: admin || audience === "own" || audience === "team", apps: { place: admin ? "cloud" : "computer", install: !admin },
+ together: !admin && audience !== "none" && params.get("together") !== "0",
+ team: admin ? { kind: "invite", url: "https://cloud.openmausbot.com/team/t1/people?invite=1" } : who === "team" ? { kind: "got-it" } : { kind: "start", inApp: who === "own", url: "" } }) : null;
+const noop = () => {};
+
+/** The slide asked for, as the person gets there: its dot; and the list switch turned off for whats-new-off. */
+function useWalk() {
+ useEffect(() => {
+ if (!whatsNew) return;
+ let steps = Math.max(0, Number(params.get("slide") ?? 1) - 1), off = view === "whats-new-off";
+ const timer = setInterval(() => {
+ if (!document.querySelector("[data-whats-new]")) return;
+ if (off) { document.querySelector<HTMLElement>("[data-whats-new-slide]:not([inert]) [data-together-notice-list]")?.click(); off = false; return; }
+ if (steps-- > 0) { document.querySelector<HTMLElement>("[data-whats-new] button[aria-current]")?.nextElementSibling?.dispatchEvent(new MouseEvent("click", { bubbles: true })); return; }
+ clearInterval(timer);
+ setTimeout(() => { document.documentElement.dataset.walked = "1"; }, 600);
+ }, 150);
+ return () => clearInterval(timer);
+ }, []);
+}
+
function Gallery() {
+ useWalk();
const state: AppState = { ...initialState, bots, sections: page === "cloud" ? [] : ["Finance"], selectedId: page === "cloud" ? "atlas" : "ledger", connected: true, config: { ...initialState.config, profile: { name: "Sam", email: "", aboutMe: "" } } as AppState["config"] };
const value = { state, dispatch: () => {}, flushBotPatches: async () => null, refreshInstances: async () => {}, refreshModels: async () => {} };
useEffect(() => {
@@ -95,6 +138,7 @@ function Gallery() {
<div className="flex h-full w-[280px] shrink-0 max-sm:w-full"><Sidebar open onClose={() => {}} /></div>
<div className="min-w-0 flex-1 bg-canvas max-sm:hidden" />
{view.startsWith("notice") && <TogetherNotice onClose={() => {}} />}
+ {carousel && typeof carousel === "object" && <WhatsNewPopup view={carousel} report={noop} onBuy={noop} onOpenApps={noop} onDone={noop} />}
</div>
</StoreContext.Provider>
);