Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
What's new popup: the new MausBot Cloud and Team's shared bots, once per person, each button tagged for the Cloud's funnel (#4000)
Milind Sonib1e76afb6be5
diff --git a/apps/docs/content/docs/security/analytics.mdx b/apps/docs/content/docs/security/analytics.mdxindex 595fd416be..e3cbcae746 100644--- a/apps/docs/content/docs/security/analytics.mdx+++ b/apps/docs/content/docs/security/analytics.mdx@@ -18,14 +18,8 @@ sent.`server` for a page a server serves (MausBot Cloud, a self-hosted server, or the app in a browser).- PostHog adds its standard device facts to every event: operating system, browser and its version, device type,screen and window size, language and time zone. Like any server, PostHog sees the IP address a request comes from.-- Events are tied to a random id that PostHog keeps in the page's storage. The first-run screen asks for a name only and- ties no email to your events. If you are signed in to MausBot Cloud in- the desktop app and choose the Cloud Pro popup's main button or Compare plans, your events on this computer's page are- tied to your Cloud account's email from then on (`cloud_pro_popup`); My Cloud's Manage plan, and Continue on this- computer on a server's page, are counted on that page as `continue` and finish on this computer's page, which counts- what they open there. A server's page, My Cloud's included, is never told that email. While the desktop app has- kept no analytics choice of its own yet, such a click on its page served on a port other than its first ties nothing,- because an opt-out made before may be kept in the first port's storage. Nothing else identifies you.+- Events are tied to a random id that PostHog keeps in the page's storage. Nothing ties them to you: the app never sends+ your email or your name with them.## Turning it off@@ -45,8 +39,7 @@ on there lasts until that page reloads. In a browser, switch it off on each serv- API keys, tokens or passwords, or anything derived from them: no length, prefix, hash or last characters.- Names of bots, rooms, teams, people, routines, files, devices, models, presets or accounts.-- Emails, except your Cloud account's email once a click on the Cloud Pro popup's main button or Compare plans is- counted on this computer's page while you are signed in to MausBot Cloud.+- Emails.- URLs, hosts and addresses. PostHog's own `$current_url`, `$host`, `$pathname`, `$referrer`, `$referring_domain`,campaign parameters (`utm_*`, `gclid` and the like) and their `$initial_*` and `$session_entry_*` copies are removedbefore an event leaves the app.@@ -137,7 +130,6 @@ use their own Boat key, and how many bots run on cloud computers, without sendin| `app_first_open` | The first time this app page starts with analytics on | `platform`: `desktop`, `browser` || `app_opened` | Each time this app page starts with analytics on | `platform`: `desktop`, `browser` || `app_active` | Once a day you use the app: when this app page starts, comes into view or is focused, or when a check every ten minutes finds a new day while the page is in view and focused. At most once per day by your computer's date for each app page, and never while the page is hidden | `platform`: `desktop`, `browser`; `mode`: `simple`, `advanced`, the look this app page is in when it counts the day |-| `$identify` | PostHog's own event, sent before a `cloud_pro_popup` `upgrade`, `manage` or `see_plans` counted on this computer's page for someone signed in to MausBot Cloud (not while the app has kept no analytics choice of its own and serves that page on a port other than its first), to tie your events to that email. When your events were already tied to an email, PostHog sends its `$set` event with the new one instead | `$set`: `email`, your Cloud account's email; `$anon_distinct_id`: the random id your events had before || `onboarding_step` | A first-run screen is shown | `step`: `meet`, `chief`; `replay`: true/false || `onboarding_completed` | The first run ends in the chat | `reason`: `completed`; `at`: the screen it ended on; `replay`: true/false || `setup_import_applied` | You bring in the skills and MCP servers found from other AI tools on this computer, in Settings → Import | `skills`, `tools`: how many were added. Never their names or where they came from |@@ -157,9 +149,9 @@ 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` |-| `cloud_pro_popup` | The Cloud Pro popup (once on each desktop after an update, on whichever page its window shows) is shown, counted at most once a day on that desktop until it is closed, or you choose one of its buttons. On this computer's page, signed in to MausBot Cloud, `upgrade`, `manage` or `see_plans` first ties your events to your Cloud account's email (`$identify`); `shown`, `continue`, `not_now`, `close` and anything counted on a server's page never do. A server's page counts its main button there as `continue`: Manage plan on My Cloud's page, or Continue on this computer on a page that is not told your plan (a saved server's other than My Cloud's, or My Cloud's while it reads no plan). It switches the window to this computer, whose page counts what it opens there, with `via` naming the page clicked: `manage` for Manage plan; for Continue on this computer, from the plan this computer knows, `upgrade` with no plan, and `manage` with one or when its sign-in or plan is not known in time | `action`: `shown`, `upgrade` (Start free trial, Upgrade to Cloud Pro, or Continue on this computer with no plan), `manage` (Manage plan, or Continue on this computer with a plan), `see_plans` (Compare plans), `continue` (the main button on a server's page), `not_now`, `close` (the X, Escape or a click outside); `plan`: `none`, `trial`, `starter`, `personal`, `pro`, `max`, `other` (a plan newer than the app), `unknown` (the sign-in ended or is not known yet, or a page that is not told the plan); `signed_in`: true/false, signed in to MausBot Cloud in the app (false on a page that is not told); `page`: where it was counted: `local` (this computer's page), `my_cloud`, `server` (another saved server's); `via`: on this computer's page, the page whose click it finishes: `my_cloud`, `server` |+| `whats_new` | The What's new popup (once per person after an update, on this computer's page): a slide comes on screen, counted once per slide each time the popup is up, 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), `not_now`, `close` (the X, Escape or a click outside); `slide`: the slide it happened on: `pro` (the new MausBot Cloud), `team` (Team); `audience`: `no_plan` (both slides), `own_plan` (a Cloud plan of one's own: the Team slide only); `signed_in`: true/false, signed in to MausBot Cloud in the app; `campaign`: the popup's campaign, `whats-new-2026-11` || `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`, `update_popup` (the Cloud Pro popup), `app_onboarding` (Try Cloud under MausBot's first messages); `view`: the dialog's first screen |+| `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` || `cloud_signin` | Signing in to MausBot Cloud inside the Add a Cloud dialog takes a step | `step`: `code_sent` (a sign-in code was emailed), `signed_in`, `browser` (Continue in browser); `source`: as for `cloud_dialog_shown` || `cloud_checkout_opened` | A Cloud checkout opens in the browser | `plan`: Cloud plan; `trial`: true/false; `source`: as for `cloud_dialog_shown` |diff --git a/docs/analytics.md b/docs/analytics.mdindex 8e496d7924..86cd1c71ab 100644--- a/docs/analytics.md+++ b/docs/analytics.md@@ -14,14 +14,8 @@ sent.`server` for a page a server serves (MausBot Cloud, a self-hosted server, or the app in a browser).- PostHog adds its standard device facts to every event: operating system, browser and its version, device type,screen and window size, language and time zone. Like any server, PostHog sees the IP address a request comes from.-- Events are tied to a random id that PostHog keeps in the page's storage. The first-run screen asks for a name only and- ties no email to your events. If you are signed in to MausBot Cloud in- the desktop app and choose the Cloud Pro popup's main button or Compare plans, your events on this computer's page are- tied to your Cloud account's email from then on (`cloud_pro_popup`); My Cloud's Manage plan, and Continue on this- computer on a server's page, are counted on that page as `continue` and finish on this computer's page, which counts- what they open there. A server's page, My Cloud's included, is never told that email. While the desktop app has- kept no analytics choice of its own yet, such a click on its page served on a port other than its first ties nothing,- because an opt-out made before may be kept in the first port's storage. Nothing else identifies you.+- Events are tied to a random id that PostHog keeps in the page's storage. Nothing ties them to you: the app never sends+ your email or your name with them.## Turning it off@@ -41,8 +35,7 @@ on there lasts until that page reloads. In a browser, switch it off on each serv- API keys, tokens or passwords, or anything derived from them: no length, prefix, hash or last characters.- Names of bots, rooms, teams, people, routines, files, devices, models, presets or accounts.-- Emails, except your Cloud account's email once a click on the Cloud Pro popup's main button or Compare plans is- counted on this computer's page while you are signed in to MausBot Cloud.+- Emails.- URLs, hosts and addresses. PostHog's own `$current_url`, `$host`, `$pathname`, `$referrer`, `$referring_domain`,campaign parameters (`utm_*`, `gclid` and the like) and their `$initial_*` and `$session_entry_*` copies are removedbefore an event leaves the app.@@ -133,7 +126,6 @@ use their own Boat key, and how many bots run on cloud computers, without sendin| `app_first_open` | The first time this app page starts with analytics on | `platform`: `desktop`, `browser` || `app_opened` | Each time this app page starts with analytics on | `platform`: `desktop`, `browser` || `app_active` | Once a day you use the app: when this app page starts, comes into view or is focused, or when a check every ten minutes finds a new day while the page is in view and focused. At most once per day by your computer's date for each app page, and never while the page is hidden | `platform`: `desktop`, `browser`; `mode`: `simple`, `advanced`, the look this app page is in when it counts the day |-| `$identify` | PostHog's own event, sent before a `cloud_pro_popup` `upgrade`, `manage` or `see_plans` counted on this computer's page for someone signed in to MausBot Cloud (not while the app has kept no analytics choice of its own and serves that page on a port other than its first), to tie your events to that email. When your events were already tied to an email, PostHog sends its `$set` event with the new one instead | `$set`: `email`, your Cloud account's email; `$anon_distinct_id`: the random id your events had before || `onboarding_step` | A first-run screen is shown | `step`: `meet`, `chief`; `replay`: true/false || `onboarding_completed` | The first run ends in the chat | `reason`: `completed`; `at`: the screen it ended on; `replay`: true/false || `setup_import_applied` | You bring in the skills and MCP servers found from other AI tools on this computer, in Settings → Import | `skills`, `tools`: how many were added. Never their names or where they came from |@@ -153,9 +145,9 @@ 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` |-| `cloud_pro_popup` | The Cloud Pro popup (once on each desktop after an update, on whichever page its window shows) is shown, counted at most once a day on that desktop until it is closed, or you choose one of its buttons. On this computer's page, signed in to MausBot Cloud, `upgrade`, `manage` or `see_plans` first ties your events to your Cloud account's email (`$identify`); `shown`, `continue`, `not_now`, `close` and anything counted on a server's page never do. A server's page counts its main button there as `continue`: Manage plan on My Cloud's page, or Continue on this computer on a page that is not told your plan (a saved server's other than My Cloud's, or My Cloud's while it reads no plan). It switches the window to this computer, whose page counts what it opens there, with `via` naming the page clicked: `manage` for Manage plan; for Continue on this computer, from the plan this computer knows, `upgrade` with no plan, and `manage` with one or when its sign-in or plan is not known in time | `action`: `shown`, `upgrade` (Start free trial, Upgrade to Cloud Pro, or Continue on this computer with no plan), `manage` (Manage plan, or Continue on this computer with a plan), `see_plans` (Compare plans), `continue` (the main button on a server's page), `not_now`, `close` (the X, Escape or a click outside); `plan`: `none`, `trial`, `starter`, `personal`, `pro`, `max`, `other` (a plan newer than the app), `unknown` (the sign-in ended or is not known yet, or a page that is not told the plan); `signed_in`: true/false, signed in to MausBot Cloud in the app (false on a page that is not told); `page`: where it was counted: `local` (this computer's page), `my_cloud`, `server` (another saved server's); `via`: on this computer's page, the page whose click it finishes: `my_cloud`, `server` |+| `whats_new` | The What's new popup (once per person after an update, on this computer's page): a slide comes on screen, counted once per slide each time the popup is up, 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), `not_now`, `close` (the X, Escape or a click outside); `slide`: the slide it happened on: `pro` (the new MausBot Cloud), `team` (Team); `audience`: `no_plan` (both slides), `own_plan` (a Cloud plan of one's own: the Team slide only); `signed_in`: true/false, signed in to MausBot Cloud in the app; `campaign`: the popup's campaign, `whats-new-2026-11` || `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`, `update_popup` (the Cloud Pro popup), `app_onboarding` (Try Cloud under MausBot's first messages); `view`: the dialog's first screen |+| `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` || `cloud_signin` | Signing in to MausBot Cloud inside the Add a Cloud dialog takes a step | `step`: `code_sent` (a sign-in code was emailed), `signed_in`, `browser` (Continue in browser); `source`: as for `cloud_dialog_shown` || `cloud_checkout_opened` | A Cloud checkout opens in the browser | `plan`: Cloud plan; `trial`: true/false; `source`: as for `cloud_dialog_shown` |diff --git a/docs/cloud-pro.md b/docs/cloud-pro.mdindex 5e17548444..dca2578f68 100644--- a/docs/cloud-pro.md+++ b/docs/cloud-pro.md@@ -1824,103 +1824,56 @@ fake bridge: `?view=settings|cloud&plan=trial|paid|team&cancelled=1&admin=old&sk#### One card at a time: the notice queue-`components/AppNotices.tsx` is the one place for the Cloud Pro popup and the-cards at the bottom left (`lib/notices.ts`), asked in order, one on screen at a-time, and none after one closes until another launch:--1. **The Cloud Pro popup** (`CloudProPopup`, id `cloud-pro-update-2026-10`):- one centered dialog, once per installed desktop app whatever its plan (a- new install once its onboarding is done), on whichever page its window- shows: this computer's, My Cloud's or another saved server's. A server's- page shows it only once that server runs this version (My Cloud once the- Cloud is updated), so a window that only ever shows a server on an older- version does not get it. It does not wait for This computer's first-run- welcome there: a window that opens on My Cloud or a saved server may- never load This computer's page, and an install from before the welcome- kept a record has no record of finishing it, so waiting would leave those- desktops without the popup. Showing it never switches the window. Main keeps whether this desktop has seen it- (`electron/desktop-prefs.mjs`, a small file in the app's data folder,- written to a temporary file and renamed over the old one, so a failed- write keeps the last record), and every page and every port the app's own- page is served on agree. This computer's workspace record counts as seen- on every page, before its page has loaded on this build (main reads- `config.json` in its data folder): a close kept there earlier, or the- welcome's MausBot Cloud step, which also keeps the- card after the update away; a close kept only in this computer's page's- storage counts once that page has loaded, and is handed to main. The- welcome leaves its MausBot Cloud step out once main says this desktop has- seen the popup. Never in a window connected to another- computer as its remote client, which has no Cloud sign-in, Add a Cloud- dialog or Settings → MausBot Cloud to send anyone to, nor on a branded- build, which sells no Cloud. It waits while main, the plan or the Admin's- offer is loading; while another dialog (modal or not, the tour's- spotlight included), My Cloud's setup checklist or the card saying the- Cloud is set up, or a call is open; and, when the Cloud can't be reached,- for a later launch. Nothing in it opens a checkout or the browser:- - **On this computer's page**, with no plan, **Start free trial** (while- the Admin offers one) or **Upgrade to Cloud Pro** opens the Add a Cloud- dialog (source `update_popup`), and so does **Compare plans** (the dialog- lists every plan); on any plan (a trial, Starter, Personal, Pro, Max or- one that needs attention) **Manage plan** opens Settings → MausBot Cloud, and- there is no Compare plans. Personal → Pro is not self-serve yet, so- Personal gets Manage plan rather than an Upgrade that would end at- "write to us". Its numbers are the Admin's.- - **On My Cloud's page**, from the plan main tells that page- (`cloud-plan:state`, asked once main has restored the Cloud sign-in), a- plan, payment trouble or an ended sign-in gets **Manage plan**. It- switches the window to This computer, whose page opens at Settings →- MausBot Cloud (where an ended sign-in can sign in again). A plan still- being checked waits for a later launch; with none read, it is as on- another server.- - **On another saved server's page**, which is told nothing about the- plan, it shows no plan, price or Compare plans: **Continue on this- computer** switches the window to This computer, whose page finishes- the click from the plan it knows itself, without showing the popup a- second time. Someone who can buy (signed out, or signed in with no- plan) gets the Add a Cloud dialog (source `update_popup`), which loads- the Admin's offer itself; a plan, payment trouble, a payment being- linked or an ended sign-in gets Settings → MausBot Cloud. A sign-in- still restoring or connecting, or a plan This computer cannot check- right now, is waited on for ten seconds at most, then it is Settings →- MausBot Cloud, which says where it stands.-- Main makes either switch only for a popup this desktop has not seen, and- only when the page asks right after- a click or a key press on it (the preload checks- `navigator.userActivation`). It loads This computer's page on the click- (`?desktop-settings=cloud-settings` for Manage plan, `cloud-add` for- Continue on this computer, with `source=update_popup` and the page clicked,- `via=my_cloud` or `server`) and records the popup as seen once that page- has loaded. The preload and main refuse anything else: `cloud-pro`- (Continue on this computer) from My Cloud's or another saved server's- page, and `manage` (Manage plan) only from My Cloud's own page, as main- verifies it. This computer's page opens it at once, whatever else is- going on there (a bot at work, an update), and shows no card in the- corner for the rest of that page load. So another server's page can- bring the window to This computer and have that page do what its own- popup's main button would, but it cannot choose what opens there; like any- page of the window, it can close the popup for this desktop. While main- switches, the main button is held; a switch main cannot make (This- computer's server is not ready, another switch is under way, or the- switch fails) keeps the popup up with a line saying so and the button to- try again, and leaves the popup for a later launch, as does a page that- does not load.-- Any button, its X, Escape or a click outside end it for good; until then- it comes back on a later launch. It takes focus at its title, keeps Tab- inside, takes Escape only while focus is in it, and gives focus back when- it closes unless focus has moved on. `cloud_pro_popup`- ([docs/analytics.md](analytics.md)) counts it as shown at most once a day- on a desktop, however often it comes back, and names the page each event- is counted on. Only `upgrade`, `manage` and `see_plans` by someone signed- in to MausBot Cloud first tie their analytics to their Cloud account's- email, and only on this computer's page, where the app knows the email;- My Cloud's Manage plan and a server page's Continue on this computer are- counted on that page as `continue`, and what they open on this- computer's page is counted there with the page they came from. While the- app has kept no analytics choice of its own yet and serves its page on a- port other than its first, such a click is counted without the email,- because an opt-out made before may be kept in the first port's storage.+`components/AppNotices.tsx` is the one place for the What's new popup and the+cards at the bottom left. `lib/notices.ts` keeps them in one ordered list,+`NOTICES`, and the queue asks it in that order. **One notice a launch:** the+first one due shows, and it takes the launch (`launchNotice`, kept for the+window's session, so a reload is the same launch). After it, only the+product-updates question may follow in that launch; every other notice waits for+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-11`):+ one centered popup with slides, **Next** and **Back**, its dots and the arrow+ keys, once per person: a close is kept in the workspace record, 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 new campaign id shows it+ once more. Only on this computer's page of the installed app (never My+ Cloud's or a saved server's page, a remote client's window, a branded build+ or a desktop signed in with an organization), never during setup (the welcome,+ the tour), a call, another dialog, busy work or an update being offered,+ never in the launch whose welcome finished or before a new install's first+ reply, and after MausBot's first-launch card. `lib/whats-new.ts` decides the+ slides from the account the app already holds (its plan, its trial, its+ teams and its Clouds list):+ - **No Cloud plan** (signed out, or signed in with none): **Meet the new+ MausBot Cloud**, the Cloud website's Home pictured in the skin's light or+ dark, then **Team**.+ - **A Cloud plan of one's own**, in no team: the Team slide only.+ - **In a team** (any role, a Team or Business plan, or a team's Cloud in the+ Clouds list), a payment being linked or needing attention, a checkout or+ another Cloud being bought, or a sign-in that can't be checked: nothing+ (the last ones on a later launch).++ A 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). Every+ button carries the slide's tag on the Cloud's funnel (`app_whats_new_pro`,+ `app_whats_new_team`): **Get Pro** opens the Add a Cloud dialog with+ `source: app_whats_new_pro`, which its checkout sends; **See the new Cloud**+ opens `https://cloud.openmausbot.com/cloud?src=app_whats_new_pro` (the plans,+ for someone without one); **Start a Team** opens+ `https://cloud.openmausbot.com/pro/buy?plan=team&src=app_whats_new_team`, the+ website's Get Team with this slide's tag (the staging Admin's site for an app+ on staging), and for someone with a plan of their own, whom that page would+ only tell to write in, the Add a Cloud dialog with `source:+ app_whats_new_team`, which lists the Team plan. A browser that won't open+ keeps the popup up and says so. Every+ button, Not now, its X, Escape (while focus is inside) and a click outside+ end it for good; until then it comes back on a later launch. It takes focus+ at the slide's title, keeps Tab inside, and gives focus back when it closes+ unless focus has moved on. `whats_new` ([docs/analytics.md](analytics.md))+ counts each slide seen and each step.2. **The card after the update** (`CloudTrialIntro`, id `cloud-trial-intro-v1`):MausBot Cloud's free trial for someone signed out or with no plan whohas used the app before this launch, only while the Admin offers a trial@@ -1962,12 +1915,8 @@ again** (one step, the plan unaffected) instead of offering a plan. A `401` orother refusal, is a failed check like a dropped connection: it never ends thesign-in. Nobody signed in with a paid plan, in payment trouble, with a paymentbeing linked, or whose state is unknown is offered a plan anywhere in the app.-The Cloud Pro popup gives a plan, payment trouble and a payment being linked-**Manage plan**; of the states it cannot verify, it waits while the sign-in is-still restoring or connecting, waits for a later launch while the check is-`unavailable`, and gives Manage plan to an ended sign-in (`reauth-required`)-and to one the app could not read and removed (`restore-removed`): Settings →-MausBot Cloud asks both to sign in again.+What's new offers no plan to any of them; it waits while the sign-in is still+restoring or connecting.In the Server menu, **My Cloud** goes through the same connection as**Open My Cloud** (no pairing code to type); when it cannot, the app@@ -2076,7 +2025,7 @@ only.## Add a CloudThe one way to buy MausBot Cloud in the app, the same for every way in:-the Cloud Pro popup, the card after the update, **Show me how**, **Add a+What's new, the card after the update, **Show me how**, **Add aCloud…** in the server menu (the sidebar's and the menu bar's Server menu),Settings (the Cloud card in General, and MausBot Cloud), and the routinescreen's note.@@ -2175,8 +2124,9 @@ screen's note.again, `429` says to use the open checkout or wait, anything else saysnothing was charged; `404`/`405`/`501` is an Admin before the route.`source` is one of `app_card`, `app_howto`, `app_menu`, `app_settings`,- `app_routines`, `update_popup` (main refuses any other, and any plan the- offer doesn't sell).+ `app_routines`, `app_pages`, `app_whats_new_pro`, `app_whats_new_team`,+ `app_onboarding` (main refuses any other, and any plan the offer doesn't+ sell).- **Interest** `POST /api/cloud/desktop/interest` `{kind: "another_cloud"}` → `{ok: true}`.- Every signed-in request carries this app's version in `x-openmausbot-version`.diff --git a/docs/verification/evidence/whats-new/cloud-desktop-dark.jpg b/docs/verification/evidence/whats-new/cloud-desktop-dark.jpgnew file mode 100644index 0000000000..2db80f9263Binary files /dev/null and b/docs/verification/evidence/whats-new/cloud-desktop-dark.jpg differdiff --git a/docs/verification/evidence/whats-new/cloud-desktop-light.jpg b/docs/verification/evidence/whats-new/cloud-desktop-light.jpgnew file mode 100644index 0000000000..312b3845a9Binary files /dev/null and b/docs/verification/evidence/whats-new/cloud-desktop-light.jpg differdiff --git a/docs/verification/evidence/whats-new/cloud-german-light.jpg b/docs/verification/evidence/whats-new/cloud-german-light.jpgnew file mode 100644index 0000000000..a1bfdda9b8Binary files /dev/null and b/docs/verification/evidence/whats-new/cloud-german-light.jpg differdiff --git a/docs/verification/evidence/whats-new/cloud-phone-dark.jpg b/docs/verification/evidence/whats-new/cloud-phone-dark.jpgnew file mode 100644index 0000000000..20687f10beBinary files /dev/null and b/docs/verification/evidence/whats-new/cloud-phone-dark.jpg differdiff --git a/docs/verification/evidence/whats-new/cloud-phone-light.jpg b/docs/verification/evidence/whats-new/cloud-phone-light.jpgnew file mode 100644index 0000000000..81be104881Binary files /dev/null and b/docs/verification/evidence/whats-new/cloud-phone-light.jpg differdiff --git a/docs/verification/evidence/whats-new/team-desktop-dark.jpg b/docs/verification/evidence/whats-new/team-desktop-dark.jpgnew file mode 100644index 0000000000..4acb881a25Binary files /dev/null and b/docs/verification/evidence/whats-new/team-desktop-dark.jpg differdiff --git a/docs/verification/evidence/whats-new/team-desktop-light.jpg b/docs/verification/evidence/whats-new/team-desktop-light.jpgnew file mode 100644index 0000000000..6166c144eaBinary files /dev/null and b/docs/verification/evidence/whats-new/team-desktop-light.jpg differdiff --git a/docs/verification/evidence/whats-new/team-german-dark.jpg b/docs/verification/evidence/whats-new/team-german-dark.jpgnew file mode 100644index 0000000000..07cd494a25Binary files /dev/null and b/docs/verification/evidence/whats-new/team-german-dark.jpg differdiff --git a/docs/verification/evidence/whats-new/team-only-own-plan-light.jpg b/docs/verification/evidence/whats-new/team-only-own-plan-light.jpgnew file mode 100644index 0000000000..7b277ca7c7Binary files /dev/null and b/docs/verification/evidence/whats-new/team-only-own-plan-light.jpg differdiff --git a/docs/verification/evidence/whats-new/team-phone-dark.jpg b/docs/verification/evidence/whats-new/team-phone-dark.jpgnew file mode 100644index 0000000000..a299104e61Binary files /dev/null and b/docs/verification/evidence/whats-new/team-phone-dark.jpg differdiff --git a/docs/verification/evidence/whats-new/team-phone-light.jpg b/docs/verification/evidence/whats-new/team-phone-light.jpgnew file mode 100644index 0000000000..bd392433d8Binary files /dev/null and b/docs/verification/evidence/whats-new/team-phone-light.jpg differdiff --git a/electron/cloud-account-clouds.node-test.mjs b/electron/cloud-account-clouds.node-test.mjsindex 8f9692c10a..45f8f13b91 100644--- a/electron/cloud-account-clouds.node-test.mjs+++ b/electron/cloud-account-clouds.node-test.mjs@@ -109,6 +109,7 @@ test("buying another Cloud: the plan, the name and the swatch go to the Admin, iawait assert.rejects(f.client.addCloud({ tier: "pro", name: "" }), /Invalid Cloud/);await assert.rejects(f.client.addCloud({ tier: "pro", name: "Client B", color: "url(x)" }), /Invalid Cloud/);await assert.rejects(f.client.addCloud({ tier: "pro", interval: "week", name: "Client B" }), /Invalid Cloud/);+ await assert.rejects(f.client.addCloud({ tier: "pro", name: "Client B", source: "https://evil.example.test" }), /Invalid Cloud/, "a source is one of the app's own");f.add = () => [200, { cloudId: "c-b", checkoutUrl: "https://evil.example.test/pay" }];assert.deepEqual(await f.client.addCloud({ tier: "pro", name: "Client B", color: "rose" }), { outcome: "failed" }, "only Dodo's own checkout ever opens");assert.deepEqual(f.browsers, []);@@ -121,6 +122,9 @@ test("buying another Cloud: the plan, the name and the swatch go to the Admin, iassert.equal(JSON.stringify(opened.state).includes(CHECKOUT), false, "the checkout page stays in main");assert.equal(f.client.addLink(), CHECKOUT);assert.equal(f.delay, 3_000);+ f.add = () => [409, { error: "checkout_conflict", addBlocked: "cap" }];+ await f.client.addCloud({ tier: "pro", name: "Client C", source: "app_whats_new_team" });+ assert.deepEqual(f.requests.at(-1).body, { tier: "pro", interval: "month", name: "Client C", source: "app_whats_new_team" }, "where the person started, for the Admin's funnel");f.session = { ...f.session, clouds: [PRIMARY, entry({ id: "c-b", name: "Client B", status: "checkout", origin: null })] };f.timer(); await new Promise(resolve => setTimeout(resolve, 50));assert.equal(f.delay, 3_000, "still waiting for the payment");diff --git a/electron/cloud-account.d.mts b/electron/cloud-account.d.mtsindex f933168b8f..ce0f583411 100644--- a/electron/cloud-account.d.mts+++ b/electron/cloud-account.d.mts@@ -288,7 +288,8 @@ export interface CloudAccountClient {/** `origin` is a Cloud the person owns (My Cloud or another of theirs), by the verified session only. */isOwnCloud(origin: string | null | undefined): boolean;/** Buys another Cloud (POST /api/cloud/desktop/clouds): its checkout opens in the browser. */- addCloud(input: { tier: string; interval?: "month" | "year"; name: string; color?: import("./cloud-list.mjs").CloudSwatch | null }): Promise<CloudAddResult>;+ /** `source`: where the checkout started (CHECKOUT_SOURCES), for the Admin's funnel. */+ addCloud(input: { tier: string; interval?: "month" | "year"; name: string; color?: import("./cloud-list.mjs").CloudSwatch | null; source?: string | null }): Promise<CloudAddResult>;/** A new organization on the Team plan this account pays for (POST /api/cloud/desktop/organizations): no checkout. */addOrganization(input: { name: string; color?: import("./cloud-list.mjs").CloudSwatch | null }): Promise<OrganizationAddResult>;/** A Cloud's colour on the Admin (PATCH /api/cloud/desktop/clouds/:id), for its owner or its team's Super admin and Admins. */diff --git a/electron/cloud-account.mjs b/electron/cloud-account.mjsindex ea85ec39a6..ec627e2364 100644--- a/electron/cloud-account.mjs+++ b/electron/cloud-account.mjs@@ -30,7 +30,7 @@ const CHECKING_AFTER = 2;const MAX_ENROLL_SECONDS = 1800;const OFFER_MS = 10 * 60_000, OFFER_RETRY_MS = 30_000;const CHECKOUT_WATCH_MS = 30 * 60_000, CHECKOUT_KEPT_MS = 24 * 3600_000;-export const CHECKOUT_SOURCES = Object.freeze(["app_card", "app_howto", "app_menu", "app_settings", "app_routines", "app_pages", "update_popup", "app_onboarding"]);+export const CHECKOUT_SOURCES = Object.freeze(["app_card", "app_howto", "app_menu", "app_settings", "app_routines", "app_pages", "app_whats_new_pro", "app_whats_new_team", "app_onboarding"]);export const UPGRADE_SOURCES = Object.freeze(["app_usage", "app_settings", "app_room"]);const UPGRADE_TIERS = Object.freeze(["starter", "personal", "pro", "max"]);const UPGRADE_REFUSALS = Object.freeze(["payment_failed", "not_subscribed", "already_on_plan", "plan_change_unavailable", "confirmation_required", "price_changed", "rate_limited"]);@@ -683,9 +683,10 @@ export function createCloudAccountClient({ store, openBrowser, platform, deviceN* Admin's checkout opens in the browser and its page is kept here for Reopen and Copy link, as the first Cloud's is;* the session is then read every few seconds until the Cloud is paid for. `unsupported`: this Admin sells one Cloud* per account; `blocked` with the Admin's reason. */- async addCloud({ tier, interval = "month", name, color = null } = {}) {+ async addCloud({ tier, interval = "month", name, color = null, source = null } = {}) {const cleanName = cleanCloudListName(name);- if (typeof tier !== "string" || !TIER.test(tier) || !ADD_INTERVALS.includes(interval) || !cleanName || !(color === null || CLOUD_SWATCHES.includes(color))) {+ if (typeof tier !== "string" || !TIER.test(tier) || !ADD_INTERVALS.includes(interval) || !cleanName || !(color === null || CLOUD_SWATCHES.includes(color))+ || !(source === null || CHECKOUT_SOURCES.includes(source))) {throw new Error("Invalid Cloud to add.");}const signedIn = grant;@@ -693,7 +694,7 @@ export function createCloudAccountClient({ store, openBrowser, platform, deviceNif (!value.clouds) return { outcome: "unsupported" };if (value.addCloud?.canAdd === false) return { outcome: "blocked", blocked: value.addCloud.blocked };let result;- try { result = await request("clouds", { method: "POST", body: { tier, interval, name: cleanName, ...(color ? { color } : {}) }, token: signedIn.token }); } catch (error) {+ try { result = await request("clouds", { method: "POST", body: { tier, interval, name: cleanName, ...(color ? { color } : {}), ...(source ? { source } : {}) }, token: signedIn.token }); } catch (error) {if (signInEnded(error)) { await refresh().catch(() => {}); return { outcome: "failed" }; }// The Admin's own reason wins, whatever the status (409 cap or open checkout, 429 rate, 503 sign-ups closed).const blocked = !error?.opaque && ADD_BLOCKS.includes(error?.blocked) ? error.blocked : null;diff --git a/electron/cloud-account.node-test.mjs b/electron/cloud-account.node-test.mjsindex 28340a2dea..632a656acb 100644--- a/electron/cloud-account.node-test.mjs+++ b/electron/cloud-account.node-test.mjs@@ -270,7 +270,7 @@ test("Dodo's own checkout page is the only checkout address ever opened", () =>assert.equal(checkoutDestination(url), null, String(url));}assert.equal(checkoutDestination("https://test.checkout.dodopayments.com/session/cks_123", { fixture: true }), "https://test.checkout.dodopayments.com/session/cks_123");- assert.deepEqual([...CHECKOUT_SOURCES], ["app_card", "app_howto", "app_menu", "app_settings", "app_routines", "app_pages", "update_popup", "app_onboarding"]);+ assert.deepEqual([...CHECKOUT_SOURCES], ["app_card", "app_howto", "app_menu", "app_settings", "app_routines", "app_pages", "app_whats_new_pro", "app_whats_new_team", "app_onboarding"]);});test("signed in, a checkout is the Admin's for this account, opened in the browser only when it is Dodo's; then the session is asked every 3 seconds for 30 minutes", async t => {diff --git a/electron/cloud-rail.mjs b/electron/cloud-rail.mjsindex b276f7f8d8..e33e25a7d1 100644--- a/electron/cloud-rail.mjs+++ b/electron/cloud-rail.mjs@@ -8,6 +8,7 @@// rail stands beside it. A circle names a saved place by its id; main opens or removes only an id it listed itself, and// the Cloud it acts on is main's own word for that circle (`cloudId`, which the page never sees).import environments from "./environments.cjs";+import { CHECKOUT_SOURCES } from "./cloud-account.mjs";import { cleanCloudListName, CLOUD_SWATCHES, cloudSetupProgress, cloudState, olderRelease, otherOwnClouds, ownCloud, signedInServers, stepProgress, swatchColor } from "./cloud-list.mjs";import { machineSetup } from "./cloud-home.mjs";import { listedLook, placeLook, railPaint, SIGNED_IN } from "./place-look.mjs";@@ -183,13 +184,13 @@ export function installCloudRail({ ipcMain, guard, trusted, lists = trusted, besreturn pasted ? add.run(choice, pasted) : add.run(choice);});handle("cloud-add:state", () => view());- handle("cloud-add:start", async (_event, tier, name, color) => {+ handle("cloud-add:start", async (_event, tier, name, color, source) => {const client = account();if (!client) throw new Error("Sign in to MausBot Cloud first.");const plans = (await client.offer().catch(() => null))?.plans ?? [];const cleanName = cleanCloudListName(plain(name)), swatch = CLOUD_SWATCHES.includes(color) ? color : null;if (!plans.some(plan => plan.tier === plain(tier)) || !cleanName) throw new Error("Choose a plan and a name to continue.");- const result = await client.addCloud({ tier: plain(tier), interval: "month", name: cleanName, color: swatch });+ const result = await client.addCloud({ tier: plain(tier), interval: "month", name: cleanName, color: swatch, ...(CHECKOUT_SOURCES.includes(source) ? { source } : {}) });return result.outcome === "blocked" ? { outcome: "blocked", blocked: result.blocked } : { outcome: result.outcome };});handle("cloud-add:organization", async (_event, name, color) => {diff --git a/electron/cloud-rail.node-test.mjs b/electron/cloud-rail.node-test.mjsindex ac60153fe4..a9f29516d1 100644--- a/electron/cloud-rail.node-test.mjs+++ b/electron/cloud-rail.node-test.mjs@@ -158,6 +158,10 @@ test("buying another Cloud from a page: the plan must be on sale, the name is chawait assert.rejects(r.call("cloud-add:start", "pro", " ", "rose"), /Choose a plan/);assert.deepEqual(await r.call("cloud-add:start", "pro", "Client B", "url(x)"), { outcome: "opened" });assert.deepEqual(r.w.added, [{ tier: "pro", interval: "month", name: "Client B", color: null }], "an unknown swatch is none");+ await r.call("cloud-add:start", "pro", "Client C", "rose", "app_whats_new_team");+ await r.call("cloud-add:start", "pro", "Client D", "rose", "https://evil.example.test");+ assert.deepEqual(r.w.added.slice(1), [{ tier: "pro", interval: "month", name: "Client C", color: "rose", source: "app_whats_new_team" },+ { tier: "pro", interval: "month", name: "Client D", color: "rose" }], "the app's own source goes with it; anything else is left out");assert.equal(await r.call("cloud-add:copy-link"), true);assert.deepEqual(r.sent, ["https://test.checkout.dodopayments.com/x"]);r.w.state = session({ adding: { cloudId: "c-a", name: "Client A", color: "green", tier: "pro", startedAt: 1, link: true } });@@ -344,6 +348,8 @@ test("a Cloud's page gets the rail and the add sheet's narrow bridges; a circle,await clicked.bridge.cloudAdd.organization({ toString: () => "Client C" }, null);assert.deepEqual(clicked.invoked, [["workspaces:open", "a"], ["workspaces:add", "link"], ["cloud-add:start", "pro", "Client B", null], ["workspaces:color", "rose"], ["workspaces:color", null],["cloud-add:organization", "Client C", null]]);+ await clicked.bridge.cloudAdd.start("team", "Studio", "blue", { toString: () => "app_whats_new_team" });+ assert.deepEqual(clicked.invoked.at(-1), ["cloud-add:start", "team", "Studio", "blue", "app_whats_new_team"], "a source travels as plain text");assert.equal(page.bridge.cloudAccount, undefined, "never the account bridge");const local = preload(LOCAL);await local.bridge.workspaces.open("a");diff --git a/electron/desktop-prefs.d.mts b/electron/desktop-prefs.d.mtsindex 8c2fdb6df7..4300780904 100644--- a/electron/desktop-prefs.d.mts+++ b/electron/desktop-prefs.d.mts@@ -2,7 +2,7 @@ export { DESKTOP_PORTS } from "./desktop-ports.mjs";export declare const DESKTOP_NOTICES: readonly string[];export interface DesktopNoticesState {/** Notices this desktop has shown and someone closed, on whichever page of its window; This computer's own workspace- * record counts too (an earlier close of the popup, or the welcome's Cloud beat). */+ * record counts too (an earlier close of the What's new popup). */seen: string[];/** This desktop sells MausBot Cloud: the installed app, not a branded build, not connected to another computer. */cloud: boolean;@@ -11,8 +11,6 @@ export interface DesktopNoticesState {export interface DesktopNoticesBridge {state(): Promise<DesktopNoticesState>;seen(id: string): Promise<void>;- /** True the first time today the notice counts as shown on this desktop. */- shown(id: string): Promise<boolean>;}/** The desktop's own switch, the same on every port its page is served from. */export interface DesktopAnalyticsBridge {@@ -32,7 +30,6 @@ export interface DesktopLanguageBridge {export interface DesktopPrefs {seen(): string[];markSeen(id: string): void;- shown(id: string): boolean;analytics(): boolean | null;setAnalytics(enabled: boolean): void;language(): string | null;@@ -58,7 +55,7 @@ export interface DesktopPrefs {}type Files = Pick<typeof import("node:fs"), "readFileSync" | "writeFileSync" | "renameSync" | "rmSync">;export declare function jsonFile(file: string, files?: Files): { read(): unknown; write(value: unknown): void };-export declare function createDesktopPrefs(options: { read(): unknown; write(value: unknown): void; now?: () => number }): DesktopPrefs;+export declare function createDesktopPrefs(options: { read(): unknown; write(value: unknown): void }): DesktopPrefs;export declare function registerDesktopPrefs(options: {/** Used instead of making a store from read/write. */prefs?: DesktopPrefs;diff --git a/electron/desktop-prefs.mjs b/electron/desktop-prefs.mjsindex 3546403942..239d643da1 100644--- a/electron/desktop-prefs.mjs+++ b/electron/desktop-prefs.mjs@@ -1,19 +1,17 @@-// What this desktop keeps whatever page its window shows, whichever port its own page is served on: the notices it-// has shown, its usage-analytics switch, the app's language, its answer to the product-updates email question and+// What this desktop keeps whatever page its window shows, whichever port its own page is served on: the notices someone+// closed, its usage-analytics switch, the app's language, its answer to the product-updates email question and// whether the person hid the window's rail of places.import { randomBytes } from "node:crypto";import fs from "node:fs";-import { localDay } from "./cloud-trial-notice.mjs";-import { ONBOARDING_CLOUD_HINT, onboardingHints } from "./onboarding-record.mjs";+import { onboardingHints } from "./onboarding-record.mjs";import { DEFAULT_TALK_KEY, isTalkKey } from "./talk-keys.mjs";import { createUpdatesConsent, parseUpdatesConsent, registerUpdatesConsent } from "./updates-consent.mjs";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(["cloud-pro-update-2026-10", "boat-credit-2026-11"]);-const CLOUD_PRO = DESKTOP_NOTICES[0];-const DAY = /^\d{4}-\d{2}-\d{2}$/;+export const DESKTOP_NOTICES = Object.freeze(["whats-new-2026-11", "boat-credit-2026-11"]);+const WHATS_NEW = DESKTOP_NOTICES[0];/** A locale code such as "de" or "pt-br", or "" for following the system. */const LANGUAGE = /^(?:[a-z]{2,3}(?:-[a-z0-9]{2,8}){0,2})?$/i;const isLanguage = value => typeof value === "string" && value.length <= 24 && LANGUAGE.test(value);@@ -44,15 +42,11 @@ const parseChat = value => value && typeof value === "object" && typeof value.bofunction parse(raw) {const record = raw && typeof raw === "object" && !Array.isArray(raw) ? raw : {};const seen = Array.isArray(record.seen) ? DESKTOP_NOTICES.filter(id => record.seen.includes(id)) : [];- const shown = Object.fromEntries(DESKTOP_NOTICES.flatMap(id => {- const day = record.shown && typeof record.shown === "object" ? record.shown[id] : undefined;- return typeof day === "string" && DAY.test(day) ? [[id, day]] : [];- }));const updatesConsent = parseUpdatesConsent(record.updatesConsent);const quickAsks = record.quickAsks && typeof record.quickAsks === "object" && !Array.isArray(record.quickAsks)? Object.fromEntries(Object.entries(record.quickAsks).flatMap(([server, chat]) => { const parsed = parseChat(chat); return parsed ? [[server, parsed]] : []; })): {};- return { seen, shown, ...(typeof record.analytics === "boolean" ? { analytics: record.analytics } : {}),+ return { seen, ...(typeof record.analytics === "boolean" ? { analytics: record.analytics } : {}),...(isLanguage(record.language) ? { language: record.language } : {}),...(typeof record.installId === "string" && INSTALL_ID.test(record.installId) ? { installId: record.installId } : {}),...(updatesConsent ? { updatesConsent } : {}),@@ -63,7 +57,7 @@ function parse(raw) {}/** A record that cannot be written is still kept for this launch. */-export function createDesktopPrefs({ read, write, now = Date.now }) {+export function createDesktopPrefs({ read, write }) {let record = null;const current = () => {if (record) return record;@@ -78,13 +72,6 @@ export function createDesktopPrefs({ read, write, now = Date.now }) {const saved = current();if (DESKTOP_NOTICES.includes(id) && !saved.seen.includes(id)) save({ ...saved, seen: [...saved.seen, id] });},- /** True the first time a notice not yet seen counts as shown on a calendar day. */- shown(id) {- const saved = current(), day = localDay(now());- if (!DESKTOP_NOTICES.includes(id) || saved.seen.includes(id) || saved.shown[id] === day) return false;- save({ ...saved, shown: { ...saved.shown, [id]: day } });- return true;- },/** null until a choice is saved. */analytics: () => current().analytics ?? null,setAnalytics(enabled) { save({ ...current(), analytics: enabled === true }); },@@ -145,24 +132,23 @@ export function createDesktopPrefs({ read, write, now = Date.now }) {*/export function registerDesktopPrefs({ prefs: given, ipcMain, read, write, page, cloudOffered, cloudAccount, localConfig = () => null, languageChanged = () => {}, now = Date.now, systemName = accountFullName }) {let prefs = given ?? null;- const store = () => prefs ??= createDesktopPrefs({ read, write, now });+ const store = () => prefs ??= createDesktopPrefs({ read, write });const from = (channel, pages, handler) => (event, ...args) => {const asking = page(event);if (!pages.includes(asking)) throw new Error(`${channel} is only available in this app's window`);return handler(asking, ...args);};- // This computer's workspace record counts on every page, before This computer's page has loaded: an earlier close, or the welcome's Cloud beat.+ // This computer's workspace record counts on every page, before This computer's page has loaded.const state = async () => {const cloud = await cloudOffered();let hints = [];try { hints = onboardingHints(localConfig()); } catch {}- const seen = store().seen(), closed = hints.includes(CLOUD_PRO) || hints.includes(ONBOARDING_CLOUD_HINT);- return { seen: closed && !seen.includes(CLOUD_PRO) ? [...seen, CLOUD_PRO] : seen, cloud };+ const seen = store().seen(), closed = hints.includes(WHATS_NEW);+ return { seen: closed && !seen.includes(WHATS_NEW) ? [...seen, WHATS_NEW] : seen, cloud };};const ANY = ["local", "cloud", "server"];ipcMain.handle("desktop-notices:state", from("desktop-notices:state", ANY, state));ipcMain.handle("desktop-notices:seen", from("desktop-notices:seen", ANY, (_, id) => store().markSeen(id)));- ipcMain.handle("desktop-notices:shown", from("desktop-notices:shown", ANY, (_, id) => store().shown(id)));// A first run's default name for the profile: this computer's own page only, never a server's.ipcMain.handle("desktop-profile:system-name", from("desktop-profile:system-name", ["local"], () => systemName()));// Security: a server's page learns only that this desktop turned analytics off, never that it is on.diff --git a/electron/desktop-prefs.node-test.mjs b/electron/desktop-prefs.node-test.mjsindex 9603874b9e..222f8d7910 100644--- a/electron/desktop-prefs.node-test.mjs+++ b/electron/desktop-prefs.node-test.mjs@@ -6,22 +6,21 @@ import path from "node:path";import test from "node:test";import vm from "node:vm";import { createDesktopPrefs, DESKTOP_NOTICES, DESKTOP_PORTS, jsonFile, registerDesktopPrefs } from "./desktop-prefs.mjs";-import { localDay } from "./cloud-trial-notice.mjs";import { ONBOARDING_CLOUD_HINT, onboardingHints, WELCOME_VERSION } from "./onboarding-record.mjs";const require = createRequire(import.meta.url);const environments = require("./environments.cjs");const localOrigin = require("./local-origin.cjs");-const POPUP = "cloud-pro-update-2026-10", BOAT = "boat-credit-2026-11";-const HOUR = 3600_000, NOON = new Date(2026, 9, 16, 12).getTime();+const POPUP = "whats-new-2026-11", BOAT = "boat-credit-2026-11";+const NOON = new Date(2026, 9, 16, 12).getTime();const LOCAL = "http://127.0.0.1:18799", CLOUD = "https://omb-u-1.fly.dev", VPS = "https://bots.example.test";-test("the popup and Boat's credit offer are the notices a page can record; seen and analytics survive a restart; a broken record never stops the app", () => {+test("What's new and Boat's credit offer 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]);let saved = null;const writes = [];- const prefs = createDesktopPrefs({ read: () => saved, write: value => { writes.push(value); saved = structuredClone(value); }, now: () => NOON });+ const prefs = createDesktopPrefs({ read: () => saved, write: value => { writes.push(value); saved = structuredClone(value); } });assert.deepEqual(prefs.seen(), []); assert.equal(prefs.analytics(), null);for (const id of ["other-notice", "__proto__", "", 42]) prefs.markSeen(id);assert.equal(writes.length, 0, "nothing a page names outside the list is written");@@ -30,21 +29,20 @@ test("the popup and Boat's credit offer are the notices a page can record; seenprefs.markSeen(BOAT);assert.deepEqual(prefs.seen(), [POPUP, BOAT]); assert.equal(writes.length, 2);prefs.setAnalytics(false);- const restarted = createDesktopPrefs({ read: () => saved, write: value => { saved = value; }, now: () => NOON });+ const restarted = createDesktopPrefs({ read: () => saved, write: value => { saved = value; } });assert.deepEqual(restarted.seen(), [POPUP, BOAT]); assert.equal(restarted.analytics(), false);restarted.setAnalytics("yes"); assert.equal(restarted.analytics(), false, "only true turns it on");restarted.setAnalytics(true); assert.equal(restarted.analytics(), true);- const broken = createDesktopPrefs({ read: () => { throw new Error("unreadable"); }, write: () => { throw new Error("read-only disk"); }, now: () => NOON });+ const broken = createDesktopPrefs({ read: () => { throw new Error("unreadable"); }, write: () => { throw new Error("read-only disk"); } });assert.deepEqual(broken.seen(), []);broken.markSeen(POPUP); broken.setAnalytics(false);assert.deepEqual(broken.seen(), [POPUP], "kept for this launch when the file cannot be written");assert.equal(broken.analytics(), false);for (const record of ["nonsense", [POPUP], { seen: "all", shown: [], analytics: "off" }, { seen: [POPUP, "<b>"], shown: { [POPUP]: "today" } }]) {- const prefs = createDesktopPrefs({ read: () => record, write: () => {}, now: () => NOON });+ const prefs = createDesktopPrefs({ read: () => record, write: () => {} });assert.equal(prefs.analytics(), null, JSON.stringify(record));assert.ok(prefs.seen().every(id => id === POPUP), JSON.stringify(record));- if (!prefs.seen().length) assert.equal(prefs.shown(POPUP), true, JSON.stringify(record));}});@@ -53,12 +51,12 @@ test("a write that fails leaves the last whole record on disk, analytics opt-outtry {const file = path.join(dir, "desktop-prefs.json");createDesktopPrefs(jsonFile(file)).setAnalytics(false);- assert.deepEqual(JSON.parse(readFileSync(file, "utf8")), { seen: [], shown: {}, analytics: false });+ assert.deepEqual(JSON.parse(readFileSync(file, "utf8")), { seen: [], analytics: false });// As a full disk or a file-size limit does: the file is opened and emptied, then the write fails.const full = { ...fs, writeFileSync: target => { fs.writeFileSync(target, ""); throw Object.assign(new Error("file too large"), { code: "EFBIG" }); } };- const launch = createDesktopPrefs({ ...jsonFile(file, full), now: () => NOON });- assert.equal(launch.shown(POPUP), true, "kept for this launch");+ const launch = createDesktopPrefs({ ...jsonFile(file, full) });launch.markSeen(POPUP);+ assert.deepEqual(launch.seen(), [POPUP], "kept for this launch");assert.throws(() => jsonFile(file, full).write({ seen: [] }), /file too large/);assert.deepEqual(readdirSync(dir), ["desktop-prefs.json"], "no temporary file is left behind");const next = createDesktopPrefs(jsonFile(file));@@ -71,20 +69,6 @@ test("a write that fails leaves the last whole record on disk, analytics opt-out} finally { rmSync(dir, { recursive: true, force: true }); }});-test("shown counts once a day on this desktop, whichever page asks, until the popup is seen", () => {- let now = NOON, saved = null;- const prefs = createDesktopPrefs({ read: () => saved, write: value => { saved = structuredClone(value); }, now: () => now });- assert.equal(prefs.shown(POPUP), true);- assert.equal(prefs.shown(POPUP), false, "a reload the same day");- assert.equal(createDesktopPrefs({ read: () => saved, write: () => {}, now: () => now }).shown(POPUP), false, "another page, another launch, the same day");- assert.equal(saved.shown[POPUP], localDay(NOON));- now += 24 * HOUR;- assert.equal(prefs.shown(POPUP), true, "the next day, still not seen");- prefs.markSeen(POPUP); now += 24 * HOUR;- assert.equal(prefs.shown(POPUP), false);- assert.equal(prefs.shown("other-notice"), false);-});-const WELCOMED = { onboarding: { completedAt: "2026-10-01T09:00:00.000Z", version: WELCOME_VERSION, hintsSeen: [] } };function desktopMain({ offered = true, page = event => event.page, config = () => WELCOMED, record = null } = {}) {const handlers = new Map(), listeners = new Map(), calls = [], told = [];@@ -105,10 +89,8 @@ function desktopMain({ offered = true, page = event => event.page, config = () =test("every page of this desktop's window reads and records the same notices; nothing else is answered", async () => {const main = desktopMain();- assert.deepEqual(main.channels, ["desktop-notices:state", "desktop-notices:seen", "desktop-notices:shown", "desktop-profile:system-name", "desktop-analytics:set", "desktop-language:set"]);+ assert.deepEqual(main.channels, ["desktop-notices:state", "desktop-notices:seen", "desktop-profile:system-name", "desktop-analytics:set", "desktop-language:set"]);for (const page of ["local", "cloud", "server"]) assert.deepEqual(await main.ask("desktop-notices:state", page), { seen: [], cloud: true });- assert.equal(await main.ask("desktop-notices:shown", "server", POPUP), true);- assert.equal(await main.ask("desktop-notices:shown", "local", POPUP), false, "once a day for the desktop, not per page");await main.ask("desktop-notices:seen", "server", POPUP);assert.deepEqual(await main.ask("desktop-notices:state", "local"), { seen: [POPUP], cloud: true });for (const channel of main.channels) assert.throws(() => main.ask(channel, null, POPUP), /only available in this app's window/, channel);@@ -121,18 +103,18 @@ test("a first run's default name for the profile goes to this computer's own pagfor (const page of ["cloud", "server"]) assert.throws(() => main.ask("desktop-profile:system-name", page), /only available in this app's window/, page);});-test("This computer's own record counts on every page before its page loads on this build: an earlier close or the welcome's Cloud beat", async () => {+test("This computer's own record counts on every page before its page loads on this build: an earlier close; the welcome's Cloud beat does not", async () => {assert.equal(ONBOARDING_CLOUD_HINT, "onboarding-cloud-v1");const record = (onboarding) => () => ({ composio: { apiKey: "" }, onboarding });- for (const hint of [POPUP, ONBOARDING_CLOUD_HINT]) {+ for (const [hint, seen] of [[POPUP, [POPUP]], [ONBOARDING_CLOUD_HINT, []]]) {const main = desktopMain({ config: record({ completedAt: "2026-10-01", version: 1, hintsSeen: ["tour-finished", hint] }) });- for (const page of ["local", "cloud", "server"]) assert.deepEqual(await main.ask("desktop-notices:state", page), { seen: [POPUP], cloud: true }, `${hint} ${page}`);+ for (const page of ["local", "cloud", "server"]) assert.deepEqual(await main.ask("desktop-notices:state", page), { seen, cloud: true }, `${hint} ${page}`);assert.equal(main.saved(), null, "read, never written into this desktop's record");}assert.deepEqual(onboardingHints({ onboarding: { completedAt: "x", version: 2, hintsSeen: ["a", 1, null, "b"] } }), ["a", "b"]);});-test("every desktop gets the popup on whichever page its window opens, whatever This computer's welcome record says or lacks", async () => {+test("every desktop has What's new still to show, whatever This computer's welcome record says or lacks", async () => {// An install from before the welcome kept a record, a welcome never finished, no config.json, or one main cannot read.const records = [() => ({ onboarding: { completedAt: "", version: 0, hintsSeen: [] } }), () => ({ composio: {} }), () => null, () => "nonsense",() => { throw new Error("ENOENT"); }, () => { throw new SyntaxError("Unexpected token"); }, () => ({ onboarding: { hintsSeen: POPUP } }), () => ({ onboarding: { hintsSeen: [{ id: POPUP }] } })];@@ -218,9 +200,9 @@ test("the preload gives every page of the window the notices and the switch's stassert.equal(page.bridge.desktopAnalytics.enabled(), false, "turned off on this desktop");assert.deepEqual(asked(), ["desktop-analytics:read"]);assert.equal(page.bridge.desktopAnalytics.set, undefined, "a server's page cannot change the desktop's switch");- await page.bridge.desktopNotices.state(); await page.bridge.desktopNotices.seen({ toString: () => POPUP }); await page.bridge.desktopNotices.shown(POPUP);- assert.deepEqual(page.invoked, [["desktop-notices:state"], ["desktop-notices:seen", POPUP], ["desktop-notices:shown", POPUP]]);- assert.deepEqual(Object.keys(page.bridge.desktopNotices), ["state", "seen", "shown"], "no page moves the window to this computer");+ await page.bridge.desktopNotices.state(); await page.bridge.desktopNotices.seen({ toString: () => POPUP });+ assert.deepEqual(page.invoked, [["desktop-notices:state"], ["desktop-notices:seen", POPUP]]);+ assert.deepEqual(Object.keys(page.bridge.desktopNotices), ["state", "seen"], "no page moves the window to this computer");}const local = preload(LOCAL, { activation: true, saved: false });assert.equal(typeof local.bridge.desktopNotices.state, "function");diff --git a/electron/preload.cjs b/electron/preload.cjsindex 838798438d..355e8a8708 100644--- a/electron/preload.cjs+++ b/electron/preload.cjs@@ -182,8 +182,9 @@ const bridge = {// out; the account, the token and the checkout page stay in main. Only from the person's click where it opens anything.cloudAdd: {state: () => ipcRenderer.invoke("cloud-add:state"),- start: (tier, name, color) => isLocalPage || navigator.userActivation?.isActive === true- ? ipcRenderer.invoke("cloud-add:start", String(tier), String(name), color === null ? null : String(color)) : Promise.reject(new Error("Choose Continue to checkout.")),+ start: (tier, name, color, source) => isLocalPage || navigator.userActivation?.isActive === true+ ? ipcRenderer.invoke("cloud-add:start", String(tier), String(name), color === null ? null : String(color), ...(source == null ? [] : [String(source)]))+ : Promise.reject(new Error("Choose Continue to checkout.")),reopen: () => isLocalPage || navigator.userActivation?.isActive === true? ipcRenderer.invoke("cloud-add:reopen") : Promise.reject(new Error("Choose Reopen checkout.")),copyLink: () => isLocalPage || navigator.userActivation?.isActive === true@@ -571,7 +572,6 @@ const bridge = {desktopNotices: {state: () => ipcRenderer.invoke("desktop-notices:state"),seen: id => ipcRenderer.invoke("desktop-notices:seen", String(id)),- shown: id => ipcRenderer.invoke("desktop-notices:shown", String(id)),},desktopAnalytics: {enabled: () => {diff --git a/scripts/testing/analytics-docs.test.ts b/scripts/testing/analytics-docs.test.tsindex dbae4a9465..08389e6ff5 100644--- a/scripts/testing/analytics-docs.test.ts+++ b/scripts/testing/analytics-docs.test.ts@@ -35,7 +35,7 @@ describe("docs/analytics.md", () => {expect(events).toEqual(expect.arrayContaining(["app_opened", "app_snapshot", "api_key_saved", "message_sent", "onboarding_cloud"]));const rows = eventRows(read("docs/analytics.md"));expect(rows.filter((event) => !event.startsWith("$")).sort(), "Give each event its own row in docs/analytics.md").toEqual(events);- expect(rows.filter((event) => event.startsWith("$")), "PostHog's own events the app causes").toEqual(["$identify"]);+ expect(rows.filter((event) => event.startsWith("$")), "PostHog's own events the app causes").toEqual([]);});it("is the page the docs site shows", () => {diff --git a/scripts/testing/one-workspace-fixture.ts b/scripts/testing/one-workspace-fixture.tsindex 93380d1766..bca33b3e19 100644--- a/scripts/testing/one-workspace-fixture.ts+++ b/scripts/testing/one-workspace-fixture.ts@@ -389,7 +389,7 @@ export async function launchHomeWorld(fx: CloudSendFixture, { chrome, ports, ver"workspaces:menu": () => null,"workspaces:line": () => homePlaces.line(),"desktop-notices:state": () => ({ seen: [...NOTICES], cloud: false }),- "desktop-notices:seen": () => null, "desktop-notices:shown": () => false,+ "desktop-notices:seen": () => null,"cloud-plan:state": () => ({ status: "paid", tier: "pro", home: true }),"cloud-send:notice": () => ({ ready: false, bots: [], updatedBots: [], skills: 0, logins: 0, onePassword: false, settings: 0, signature: "", dismissed: false, running: false, last: null, whole: null }),"update:get-state": () => ({ status: "idle" }),diff --git a/src/assets/whats-new/cloud-home-dark.webp b/src/assets/whats-new/cloud-home-dark.webpnew file mode 100644index 0000000000..cf5445299cBinary files /dev/null and b/src/assets/whats-new/cloud-home-dark.webp differdiff --git a/src/assets/whats-new/cloud-home-light.webp b/src/assets/whats-new/cloud-home-light.webpnew file mode 100644index 0000000000..8b73f74901Binary files /dev/null and b/src/assets/whats-new/cloud-home-light.webp differdiff --git a/src/cloud-buy-preview.tsx b/src/cloud-buy-preview.tsxindex 1d05e19438..2cbcac71e0 100644--- a/src/cloud-buy-preview.tsx+++ b/src/cloud-buy-preview.tsx@@ -1,6 +1,6 @@-// Dev-only gallery of the Cloud buying sheet and the Cloud Pro popup, served at /cloud-buy-preview.html; not in the packaged app.+// Dev-only gallery of the Cloud buying sheet and the What's new popup, served at /cloud-buy-preview.html; not in the packaged app.// ?state=choose|choose-plain|sign-in-email|sign-in-code|sign-in-wrong|sign-in-sso|sign-in-done|sign-in-browser|pay|pay-late|setup|setup-slow|ready|has-cloud-// |team-setup|team-ready|unreachable|pro-popup|pro-popup-plain|pro-popup-plan|pro-popup-reauth+// |team-setup|team-ready|unreachable|whats-new|whats-new-plan// &skin=midnight&staging=1&reduced=1&plan=starter&lang=de// ¤t=pro (a subscriber's own plan says Your plan; current=personal shows a Personal subscriber's own card)import { StrictMode } from "react";@@ -9,11 +9,12 @@ import { Cloud, FolderOpen, MessageSquare, Repeat } from "lucide-react";import type { CloudAccountState } from "../electron/cloud-account.mjs";import type { CloudOffer } from "../electron/cloud-home.mjs";import { CloudAddPanel, CloudAddSheet, type CloudAddActions, type CloudAddUi } from "@/components/CloudAddDialog";-import { CloudProPopup, cloudProPopupView } from "@/components/CloudProPopup";+import { WhatsNewPopup } from "@/components/whats-new/WhatsNewPopup";import { ChooseScreen } from "@/components/cloud-buy/ChooseScreen";import type { CloudAddView } from "@/lib/cloud-plan";import { setLocale } from "@/lib/i18n";import { SKIN_IDS, type SkinId } from "@/lib/skins";+import { whatsNewView } from "@/lib/whats-new";import "./styles.css";const NOW = Date.now(), DAY = 86_400_000;@@ -48,11 +49,10 @@ const VIEWS: Record<string, CloudAddView> = {unreachable: { kind: "unreachable" },};const FREE: CloudAccountState = { status: "connected", account: { id: "a", email: "[email protected]" }, entitlement: { plan: "free", status: "inactive", expiresAt: null, version: 1 } };+const TEAM = { tier: "team", label: "Team", amount: 16900, trialDays: 3, allowances: allowances(4, 4, 100, 4, 300, 180_000, 14) };const POPUPS: Record<string, { account: CloudAccountState; offer: CloudOffer }> = {- "pro-popup": { account: { status: "signed-out" }, offer: OFFER },- "pro-popup-plain": { account: FREE, offer: PLAIN },- "pro-popup-plan": { account: { ...FREE, entitlement: { plan: "pro", tier: "pro", status: "active", expiresAt: NOW + 30 * DAY, version: 2 } }, offer: OFFER },- "pro-popup-reauth": { account: { status: "reauth-required", message: "expired", lastPlan: { tier: "pro", active: true } }, offer: OFFER },+ "whats-new": { account: FREE, offer: { ...PLAIN, plans: [...PLAIN.plans, TEAM] } },+ "whats-new-plan": { account: { ...FREE, entitlement: { plan: "pro", tier: "pro", status: "active", expiresAt: NOW + 30 * DAY, version: 2 } }, offer: { ...PLAIN, plans: [...PLAIN.plans, TEAM] } },};const noop = () => {};const actions = new Proxy({}, { get: () => noop }) as CloudAddActions;@@ -80,11 +80,11 @@ function Preview() {if (params.get("reduced") === "1") document.documentElement.dataset.reducedMotion = "true";setLocale(params.get("lang") ?? "en");const state = params.get("state") ?? "choose";- const asked = POPUPS[state], popup = asked ? cloudProPopupView(asked.account, asked.offer) : null;+ const asked = POPUPS[state], popup = asked ? whatsNewView(asked.account, asked.offer) : null;if (popup && typeof popup === "object") {return <div className="relative h-screen overflow-hidden"><MockApp />- <CloudProPopup view={popup} onPrimary={noop} onSeePlans={noop} onNotNow={noop} onClose={noop} />+ <WhatsNewPopup view={popup} report={noop} onBuy={noop} onDone={noop} /></div>;}const view = VIEWS[state] ?? VIEWS.choose!;diff --git a/src/components/AppNotices.test.ts b/src/components/AppNotices.test.tsindex f6cd0c04cc..d66a90235a 100644--- a/src/components/AppNotices.test.ts+++ b/src/components/AppNotices.test.ts@@ -10,7 +10,6 @@ import { withTourFinished } from "@/lib/guided-tour";import { setLocale } from "@/lib/i18n";import { EMPTY_ONBOARDING, LOCAL_VIEWER, markWelcomeFinished, MET_CHIEF_HINT, type WelcomeViewer } from "@/lib/onboarding";import { launchDialogShown, markLaunchDialog } from "@/lib/launch-dialogs";-import { setPendingIntent } from "@/lib/cloud-intent";import { createDesktopPrefs, registerDesktopPrefs } from "../../electron/desktop-prefs.mjs";import { createUpdatesConsent, registerUpdatesConsent } from "../../electron/updates-consent.mjs";@@ -24,18 +23,19 @@ vi.mock("react", async original => ({ ...await original<typeof import("react")>(}));vi.mock("@/state/store", () => ({ useStore: () => ({ state: f.state, dispatch: f.dispatch }), api: vi.fn().mockResolvedValue({}),CLOUD_LINK_SETTINGS: { type: "toggleAppSettings", open: true, section: "cloudAccount", cloudLink: true } }));-vi.mock("@/lib/analytics", () => ({ emailGateDone: () => false, track: vi.fn(), identifyEmail: vi.fn(), analyticsChoiceKnown: () => true }));+vi.mock("@/lib/analytics", () => ({ emailGateDone: () => false, track: vi.fn() }));vi.mock("@/lib/updater", () => ({ useUpdaterState: () => f.updater }));vi.mock("./cloud-buy/NightCard", () => ({ NightCard: ({ children }: { children: unknown }) => children }));+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("@/components/EngineLibrary", () => ({ engineReady: (instance: { snapshot: { state: string; authenticated?: boolean } }) =>instance.snapshot.state === "available" && instance.snapshot.authenticated !== false }));import { AppNotices } from "./AppNotices";-import { BOAT_OFFER_NOTICE, CLOUD_PRO_UPDATE_NOTICE, PRODUCT_HUNT_NOTICE, PRODUCT_HUNT_UNTIL, PRODUCT_HUNT_URL, CLOUD_INTRO, localDay, STAR_NOTICE } from "@/lib/notices";+import { BOAT_OFFER_NOTICE, CLOUD_INTRO, launchNotice, localDay, PRODUCT_HUNT_NOTICE, PRODUCT_HUNT_UNTIL, PRODUCT_HUNT_URL, STAR_NOTICE, WHATS_NEW_NOTICE } from "@/lib/notices";import { BOAT_OFFER, boatClaimMailto } from "@/lib/boat-offer";-import { identifyEmail, track } from "@/lib/analytics";+import { track } from "@/lib/analytics";import { ADVANCED_MODE_KEY, setAdvancedMode } from "@/lib/interface-mode";import { SIMPLE_MODE_PROMPT_KEY } from "@/lib/simple-mode-prompt";import { api } from "@/state/store";@@ -112,6 +112,8 @@ const flush = async () => { for (let i = 0; i < 10; i++) await Promise.resolve()const render = () => { f.index = 0; f.effects = []; return renderToStaticMarkup(createElement(AppNotices, { viewer, now: () => now })); };async function settle(rounds = 4) { for (let i = 0; i < rounds; i++) { render(); f.effects.forEach(effect => effect()); await flush(); } return render(); }const launch = () => { f.values = []; return settle(); };+/** The app opened again: a new window session, so nothing this launch showed holds the next one back. */+const relaunch = () => { session.clear(); return launch(); };type Node = ReactElement<Record<string, any>>;const nodes = (value: ReactNode): Node[] => {if (!isValidElement(value)) return [];@@ -128,7 +130,7 @@ const press = (label: string) => {const FIRST_REPLY = [{ tasks: [{ threadId: "first", usage: { turns: 1 } }] }];let session: Map<string, string>;const returning = () => { f.state.bots = [{ tasks: [{ threadId: "t", createdAt: 1, usage: { turns: 2 } }] }]; };-const launchCardsSeen = () => { desk.saved = { seen: [CLOUD_PRO_UPDATE_NOTICE] }; storage.set(PRODUCT_HUNT_NOTICE, "1"); storage.set(SIMPLE_MODE_PROMPT_KEY, "1"); storage.set(BOAT_OFFER_NOTICE, "1"); };+const launchCardsSeen = () => { desk.saved = { seen: [WHATS_NEW_NOTICE] }; storage.set(PRODUCT_HUNT_NOTICE, "1"); storage.set(SIMPLE_MODE_PROMPT_KEY, "1"); storage.set(BOAT_OFFER_NOTICE, "1"); };const hints = () => f.state.config.onboarding.hintsSeen as string[];beforeEach(() => {@@ -188,9 +190,9 @@ describe("the card after the update", () => {let html = await launch();expect(html).not.toContain(INTRO); expect(html).toContain(STAR);expect(storage.get(`${CLOUD_INTRO}:days`)).toBeUndefined();- offer = null; expect(await launch()).not.toContain(INTRO);+ offer = null; expect(await relaunch()).not.toContain(INTRO);offer = { ...TRIAL_OFFER, refundDays: undefined, creditUsd: undefined };- html = await launch();+ html = await relaunch();expect(html).toContain(INTRO); expect(html).toContain("Voice and cloud desktops by Boat included");expect(html).not.toContain("money-back"); expect(html).not.toContain("Claude credit");});@@ -251,13 +253,13 @@ describe("the card after the update", () => {it("shows on at most three days, or one for someone who closed the earlier Pro card", async () => {returning();- for (let day = 0; day < 3; day++) { now = NOW + day * DAY; expect(await launch(), `day ${day}`).toContain(INTRO); }+ for (let day = 0; day < 3; day++) { now = NOW + day * DAY; expect(await relaunch(), `day ${day}`).toContain(INTRO); }now = NOW + 3 * DAY;- const after = await launch();+ const after = await relaunch();expect(after).not.toContain(INTRO); expect(after).toContain(STAR);storage.clear(); launchCardsSeen(); f.state.config.onboarding.hintsSeen = [...withTourFinished(undefined), "pro-introduction-dismissed-v3"];- now = NOW + 10 * DAY; expect(await launch()).toContain(INTRO);- now = NOW + 11 * DAY; expect(await launch()).not.toContain(INTRO);+ now = NOW + 10 * DAY; expect(await relaunch()).toContain(INTRO);+ now = NOW + 11 * DAY; expect(await relaunch()).not.toContain(INTRO);});it("never after the welcome's Cloud step, which was this desktop's Cloud offer however it was answered", async () => {@@ -355,9 +357,9 @@ describe("This computer's Cloud sign-in card and the star", () => {press("Sign in again"); await flush();expect(bridges.cloud.signInAgain).toHaveBeenCalledOnce();account = { ...free }; offer = { ...PLAIN_OFFER };- expect(await launch()).toContain(STAR);+ expect(await relaunch()).toContain(STAR);press("Not now");- expect(storage.get(STAR_NOTICE)).toBe("1"); expect(await launch()).toBe("");+ expect(storage.get(STAR_NOTICE)).toBe("1"); expect(await relaunch()).toBe("");});});@@ -524,7 +526,7 @@ describe("Boat's credit offer", () => {it("Not now, the X and Escape end it for good too", async () => {for (const end of [() => press("Not now"), () => press("Dismiss for good"), escape]) {- fresh(); desk = desktopMachine(); desk.saved = { seen: [CLOUD_PRO_UPDATE_NOTICE] }; f.state.config.onboarding.hintsSeen = withTourFinished(undefined);+ fresh(); desk = desktopMachine(); desk.saved = { seen: [WHATS_NEW_NOTICE] }; f.state.config.onboarding.hintsSeen = withTourFinished(undefined);expect(await launch()).toContain(html(TITLE));end(); await flush();await endedForGood();@@ -538,7 +540,7 @@ describe("Boat's credit offer", () => {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(await launch()).not.toContain(html(TITLE));- desk = desktopMachine(); desk.saved = { seen: [CLOUD_PRO_UPDATE_NOTICE] };+ desk = desktopMachine(); desk.saved = { seen: [WHATS_NEW_NOTICE] };expect(await launch()).toContain(html(TITLE));});@@ -576,415 +578,254 @@ describe("Boat's credit offer", () => {line({ phase: "copy", chats: { done: 1, total: 5 } });expect(await launch(), "while the bots move").not.toContain(html(TITLE));line(undefined);- expect(await launch()).toContain(html(TITLE));+ expect(await relaunch()).toContain(html(TITLE));press("Not now"); await flush();- expect(await launch()).toContain(STAR);+ expect(await relaunch()).toContain(STAR);});});-describe("the Cloud Pro popup after the update", () => {- const POPUP = "MausBot Cloud Pro";- const ID = CLOUD_PRO_UPDATE_NOTICE;+describe("What's new after the update", () => {+ const PRO = "Meet the new MausBot Cloud", TEAM = "Shared bots for your whole team";+ const ID = WHATS_NEW_NOTICE;+ const BOAT = "$50 of Boat credit for you";let modal: boolean;- const popupEvents = (action: string) => vi.mocked(track).mock.calls.filter(([event, props]) => event === "cloud_pro_popup" && (props as { action?: string }).action === action);- const event = (action: string, plan: string, signedIn: boolean, page: string) => ["cloud_pro_popup", { action, plan, signed_in: signedIn, page }];- const lastOrder = (calls: { mock: { invocationCallOrder: number[] } }) => calls.mock.invocationCallOrder.at(-1)!;+ 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 SETTINGS = { type: "toggleAppSettings", open: true, section: "cloudAccount" };- const fresh = () => { desk = desktopMachine(); storage.delete(ID); f.state.config.onboarding.hintsSeen = withTourFinished(undefined); f.state.routines = []; };- const TITLE = { id: "cloud-pro-popup-title" }, DIALOG = { contains: (node: unknown) => node === TITLE };- const keydown = (key: string, shiftKey = false) => {+ const on = (html: string) => /data-whats-new="(pro|team)"/.exec(html)?.[1] ?? null;+ const fresh = () => { desk = desktopMachine(); storage.delete(ID); f.state.config.onboarding.hintsSeen = withTourFinished(undefined); };+ const keptForGood = async () => {+ expect(render()).toBe("");+ expect(storage.get(ID)).toBe("1"); expect(hints()).toContain(ID); expect(seenOnDesktop()).toContain(ID);+ expect(on(await relaunch())).toBeNull();+ };+ const TITLE = { id: "whats-new-pro-title" }, DIALOG = { contains: (node: unknown) => node === TITLE };+ const keydown = (key: string) => {const handler = vi.mocked(window.addEventListener).mock.calls.filter(([type]) => type === "keydown").at(-1)![1] as (event: unknown) => void;- const event = { key, shiftKey, preventDefault: vi.fn(), stopPropagation: vi.fn() };+ const event = { key, shiftKey: false, preventDefault: vi.fn(), stopPropagation: vi.fn() };handler(event);return event;};const tierPlan = (tier: string, extra: Partial<CloudAccountState> = {}) =>paid({ entitlement: { plan: "pro", tier, status: "active", expiresAt: NOW + 30 * DAY, version: 2 }, ...extra });- const onMyCloud = (plan: CloudPlanSnapshot) => {- snapshot = plan; 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);- };- const onSavedServer = (options?: { click?: boolean }) => { viewer = { hosted: true, canSave: true }; showWindow(VPS, options); };- const onThisComputer = () => { viewer = LOCAL_VIEWER; delete f.state.config.cloudHome; f.state.config.onboarding.hintsSeen = withTourFinished(undefined); showWindow(LOCAL_ORIGIN); };+ const teamOffer: CloudOffer = { ...PLAIN_OFFER, plans: [...PLAIN_OFFER.plans, { tier: "team", label: "Team", amount: 16900, trialDays: 3 }] };beforeEach(() => {- fresh(); modal = false;+ fresh(); modal = false; offer = teamOffer;vi.stubGlobal("document", { activeElement: TITLE, body: null, getElementById: () => null,- querySelector: (selector: string) => selector === "[data-cloud-pro-popup]" ? DIALOG : null,+ querySelector: (selector: string) => selector === "[data-whats-new]" ? DIALOG : null,querySelectorAll: () => modal ? [{ closest: () => null, checkVisibility: () => true }] : [] });});- it("every install gets it once, before every other card, as a modal dialog with the Admin's offer; Start free trial opens Add a Cloud from it", async () => {- returning(); storage.delete(PRODUCT_HUNT_NOTICE);+ 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 () => {+ returning(); storage.delete(STAR_NOTICE);const html = await launch();- const words = [POPUP, "Free for 7 days", "MausBot Cloud runs your bots for you in the cloud, always on.", "Routines run on time, day and night",- "Reach your bots from your phone, even with this computer off", "$5 of Claude credit to start", "Then from $15/month + tax. Cancel any time.",- "14-day money-back on every plan.", "Start free trial", "Compare plans", "OpenMausBot on this computer stays free and open source.", "Not now"];- for (const text of words) expect(html).toContain(text);- for (let i = 1; i < words.length; i++) expect(html.indexOf(words[i - 1]!), words[i]).toBeLessThan(html.indexOf(words[i]!));- for (const part of ['role="dialog"', 'aria-modal="true"', 'aria-labelledby="cloud-pro-popup-title"', 'aria-describedby="cloud-pro-popup-body"']) expect(html).toContain(part);- for (const other of ["live on Product Hunt", INTRO, STAR]) expect(html).not.toContain(other);- expect(popupEvents("shown")).toEqual([event("shown", "none", false, "local")]);- expect(await settle()).toContain(POPUP);- expect(popupEvents("shown")).toHaveLength(1);+ expect(on(html)).toBe("pro");+ for (const text of [PRO, TEAM, "Pro · $49/month + tax · 14-day money-back", "Free for 3 days, then $169/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 other of [STAR, INTRO]) expect(html).not.toContain(other);+ expect(steps()).toEqual([step("seen", "pro")]);+ expect(await settle()).toContain(PRO);+ expect(steps(), "seen once while it is up").toHaveLength(1);expect(seenOnDesktop()).toEqual([]);+ expect(launchNotice(), "it takes the launch").toBe(ID);- press("Start free trial");- expect(f.dispatch).toHaveBeenCalledWith({ type: "openCloudAdd", source: "update_popup" });- expect(popupEvents("upgrade")).toEqual([event("upgrade", "none", false, "local")]);- expect(identifyEmail).not.toHaveBeenCalled();- await flush(); expect(seenOnDesktop()).toEqual([ID]);- expect(render()).toBe("");- const next = await launch();- expect(next).not.toContain(POPUP); expect(next).toContain("live on Product Hunt");+ press("Get Pro"); await flush();+ expect(f.dispatch).toHaveBeenCalledWith({ type: "openCloudAdd", source: "app_whats_new_pro" });+ expect(steps().at(-1)).toEqual(step("get_pro", "pro"));+ await keptForGood();});- it("a new install gets it once onboarding is done and a bot has answered, never in the middle of it", async () => {- f.state.config.onboarding = { ...EMPTY_ONBOARDING };- expect(await launch()).toBe("");- f.state.config.onboarding = { ...EMPTY_ONBOARDING, completedAt: "2026-10-16", version: 1, hintsSeen: [] };- f.state.welcomeOpen = true;- expect(await launch()).toBe("");- f.state.welcomeOpen = false; f.state.tourOpen = true;- expect(await launch(), "the app tour, started from Settings").toBe("");- f.state.tourOpen = false; f.state.bots = [{ tasks: [{ threadId: "first" }] }];- expect(await launch(), "the first chat, before its first reply").not.toContain(POPUP);- // The welcome is the whole onboarding: an app tour never taken does not hold the popup back.- f.state.bots = structuredClone(FIRST_REPLY);- const html = await launch();- expect(html).toContain(POPUP); expect(html).not.toContain(INTRO);- expect(popupEvents("shown")).toHaveLength(1);- });-- it("holds the cards after it until the bots have loaded, so an existing user never sees a card flash before it", async () => {- returning(); f.state.hydrated = undefined;- expect(await launch(), "bots not loaded yet").toBe("");- f.state.hydrated = true;- expect(await launch()).toContain(POPUP);+ it("Next shows the Team slide, Back the new Cloud again, each step counted", async () => {+ account = free;+ await launch();+ 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)]);+ expect(f.dispatch).not.toHaveBeenCalled(); expect(seenOnDesktop()).toEqual([]);});- it("goes after MausBot's first-launch card: never in the launch that card opened, then in the next one", async () => {- f.viewerEmail = null;- f.state.bots = [{ ...structuredClone(FIRST_REPLY[0]), id: "maus", defaultBot: {} }];- expect(await launch(), "MausBot's card is due: the popup waits for it").not.toContain(POPUP);- markLaunchDialog("mausbot"); f.state.bots[0].welcomed = true;- expect(await launch(), "the card opened and was answered in this launch").not.toContain(POPUP);- session.clear();- expect(await launch(), "the next launch").toContain(POPUP);+ 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();+ 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");+ 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: the Team slide alone", 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(html).not.toContain(PRO); expect(html).not.toContain("Next"); expect(html).not.toContain("Get Pro");+ expect(steps()).toEqual([step("seen", "team", "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" });+ expect(window.ogb?.openExternal).not.toHaveBeenCalled();+ await keptForGood();});- it("claims the launch when it opens, so MausBot's card waits for a later one", async () => {- returning();- expect(await launch()).toContain(POPUP);- expect(launchDialogShown()).toBe("notices");+ it("nothing for anyone in a team, owner or member, nor while a payment is linked or needs attention or a checkout is open; the cards after it show", async () => {+ returning(); storage.delete(STAR_NOTICE);+ const team = { id: "t1", name: "Design Studio", role: "member" as const, machine: null };+ const cases: CloudAccountState[] = [paid({ teams: [team] }), { ...free, teams: [{ ...team, role: "owner" }] }, tierPlan("team"), tierPlan("business"),+ { ...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 state of cases) {+ account = state;+ const html = await relaunch();+ expect(on(html), JSON.stringify(state)).toBeNull();+ }+ expect(steps()).toEqual([]); expect(seenOnDesktop()).toEqual([]);});- it("waits for a later launch when the welcome finished in this one, though a bot has answered", async () => {- markWelcomeFinished();- const html = await launch();- expect(html).not.toContain(POPUP);- session.clear();- expect(await launch(), "the next launch").toContain(POPUP);+ it("a slide the Admin doesn't sell is left out; neither sold, or the Cloud unreachable, waits for a later launch and lets the other cards show", async () => {+ returning(); storage.delete(STAR_NOTICE);+ offer = PLAIN_OFFER;+ const proOnly = await relaunch();+ expect(on(proOnly)).toBe("pro"); expect(proOnly).not.toContain(TEAM); expect(proOnly).not.toContain(">Next<");+ account = paid();+ const nothing = await relaunch();+ expect(on(nothing)).toBeNull(); expect(nothing).toContain(STAR);+ account = signedOut; offer = null;+ const offline = await relaunch();+ expect(on(offline)).toBeNull(); expect(offline).toContain(STAR);+ account = { status: "unavailable" }; offer = teamOffer;+ expect(on(await relaunch())).toBeNull();+ expect(seenOnDesktop()).toEqual([]);+ account = signedOut; storage.delete(STAR_NOTICE); f.state.config.onboarding.hintsSeen = withTourFinished(undefined);+ expect(on(await relaunch()), "back online, a later launch").toBe("pro");});- it("is counted as shown once a day on this desktop, not on every reload, until it is closed", async () => {- expect(await launch()).toContain(POPUP);- for (let i = 0; i < 3; i++) expect(await launch()).toContain(POPUP);- expect(popupEvents("shown")).toHaveLength(1);- now = NOW + DAY;- expect(await launch()).toContain(POPUP);- expect(popupEvents("shown")).toHaveLength(2);+ 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);press("Not now"); await flush();- now = NOW + 2 * DAY;- expect(await launch()).not.toContain(POPUP);- expect(popupEvents("shown")).toHaveLength(2);+ expect(render(), "nothing else after it in this launch").toBe("");+ expect(await launch(), "a reload is the same launch").toBe("");+ const next = await relaunch();+ expect(on(next)).toBeNull(); expect(next).toContain(BOAT);+ expect(launchNotice()).toBe(BOAT_OFFER_NOTICE);+ expect(steps().map(props => props.action)).toEqual(["seen", "not_now"]);});- it("someone signed in with no plan: each click is tied to their Cloud account's email before it is counted, and only once across reloads", async () => {- account = free; offer = { ...PLAIN_OFFER };- const html = await launch();- expect(html).toContain("Upgrade to Cloud Pro"); expect(html).toContain("MausBot Cloud plans from $15/month + tax.");- for (const gone of ["Free for", "Start free trial", "Claude credit"]) expect(html).not.toContain(gone);- expect(popupEvents("shown")).toEqual([event("shown", "none", true, "local")]);- expect(identifyEmail).not.toHaveBeenCalled();-- press("Compare plans"); await flush();- // Compare plans stays in the app: the Add a Cloud dialog lists every plan.- expect(f.dispatch).toHaveBeenCalledWith({ type: "openCloudAdd", source: "update_popup" });- expect(window.ogb?.openExternal).not.toHaveBeenCalled();- expect(identifyEmail).toHaveBeenCalledWith("[email protected]");- expect(popupEvents("see_plans")).toEqual([event("see_plans", "none", true, "local")]);- expect(lastOrder(vi.mocked(identifyEmail))).toBeLessThan(lastOrder(vi.mocked(track)));- expect(render()).toBe("");- storage.clear(); storage.set(PRODUCT_HUNT_NOTICE, "1"); storage.set(SIMPLE_MODE_PROMPT_KEY, "1");- expect(await launch(), "the desktop keeps it, not the page's storage").not.toContain(POPUP);-- vi.clearAllMocks(); fresh(); await launch();- press("Upgrade to Cloud Pro");- expect(f.dispatch).toHaveBeenCalledWith({ type: "openCloudAdd", source: "update_popup" });- expect(identifyEmail).toHaveBeenCalledWith("[email protected]");- expect(popupEvents("upgrade")).toEqual([event("upgrade", "none", true, "local")]);- expect(lastOrder(vi.mocked(identifyEmail))).toBeLessThan(lastOrder(vi.mocked(track)));- });-- it("a trial or any plan gets Manage plan in Settings → MausBot Cloud, in the app; no Compare plans, never a checkout or the browser", async () => {- const cases = [- { state: paid({ trial: trial("active") }), plan: "trial", line: "Pro free trial · verified by MausBot Cloud" },- { state: paid(), plan: "pro", line: "Pro active · verified by MausBot Cloud" },- { state: tierPlan("max"), plan: "max", line: "Max active · verified by MausBot Cloud" },- { state: tierPlan("personal"), plan: "personal", line: "Personal active · verified by MausBot Cloud" },- ];- for (const { state, plan, line } of cases) {- vi.clearAllMocks(); fresh(); account = state; showWindow(LOCAL_ORIGIN);- const html = await launch();- expect(html, plan).toContain(POPUP); expect(html, plan).toContain("Manage plan"); expect(html, plan).toContain(line);- for (const gone of ["Start free trial", "Free for", "/month", "Compare plans", "Upgrade to Cloud Pro"]) expect(html, plan).not.toContain(gone);- expect(popupEvents("shown"), plan).toEqual([event("shown", plan, true, "local")]);- press("Manage plan"); await flush();- expect(f.dispatch, plan).toHaveBeenCalledWith({ type: "toggleAppSettings", open: true, section: "cloudAccount" });- expect(bridges.cloud.openDashboard, plan).not.toHaveBeenCalled(); expect(window.ogb?.openExternal, plan).not.toHaveBeenCalled();- expect(bridges.plan.manage, plan).not.toHaveBeenCalled();- expect(f.dispatch, plan).not.toHaveBeenCalledWith(expect.objectContaining({ type: "openCloudAdd" }));- expect(identifyEmail, plan).toHaveBeenCalledWith("[email protected]");- expect(popupEvents("manage"), plan).toEqual([event("manage", plan, true, "local")]);- expect(seenOnDesktop(), plan).toEqual([ID]); expect(render(), plan).toBe("");- expect(bridges.cloud.offer, plan).not.toHaveBeenCalled();- }+ it("a new install sees it once onboarding is done and a bot has answered, in a later launch than the welcome's, after MausBot's card", async () => {+ f.state.config.onboarding = { ...EMPTY_ONBOARDING };+ expect(on(await launch()), "onboarding not done").toBeNull();+ f.state.config.onboarding = { ...EMPTY_ONBOARDING, completedAt: "2026-10-16", version: 1, hintsSeen: [] };+ f.state.welcomeOpen = true;+ expect(on(await launch()), "the welcome").toBeNull();+ f.state.welcomeOpen = false; f.state.tourOpen = true;+ expect(on(await launch()), "the tour").toBeNull();+ f.state.tourOpen = false; f.state.bots = [{ tasks: [{ threadId: "first" }] }];+ expect(on(await launch()), "the first chat, before its first reply").toBeNull();+ f.state.bots = structuredClone(FIRST_REPLY); markWelcomeFinished();+ expect(on(await launch()), "the launch the welcome finished in").toBeNull();+ session.clear(); markLaunchDialog("mausbot");+ expect(on(await launch()), "the launch MausBot's first card took").toBeNull();+ expect(on(await relaunch())).toBe("pro");});- it("a desktop signed in with an organization gets it too", async () => {- account = paid();- (window.ogb as Record<string, unknown>).organization = { state: async () => ({ status: "connected", organization: { id: "o", name: "Acme" } }), onState: () => () => {} };- const html = await launch();- expect(html).toContain(POPUP); expect(html).toContain("Manage plan");- expect(popupEvents("shown")).toEqual([event("shown", "pro", true, "local")]);+ it("claims the launch for the popups, so MausBot's card waits for a later one", async () => {+ await launch();+ expect(launchDialogShown()).toBe("notices");});- it("a desktop whose window opens on My Cloud gets it there once; Manage plan opens Settings → MausBot Cloud on that page", async () => {- account = paid();- onMyCloud({ status: "paid", tier: "pro" });- const html = await launch();- expect(html).toContain(POPUP); expect(html).toContain("Manage plan"); expect(html).toContain("Pro active · verified by MausBot Cloud");- for (const gone of ["Compare plans", "Upgrade to Cloud Pro", "Start free trial", "/month", "Continue on this computer"]) expect(html).not.toContain(gone);- expect(popupEvents("shown")).toEqual([event("shown", "pro", true, "my_cloud")]);- expect(bridges.cloud.state).not.toHaveBeenCalled();- press("Manage plan"); await flush();- expect(f.dispatch).toHaveBeenCalledWith(SETTINGS); expect(f.dispatch).toHaveBeenCalledTimes(1);- expect(seenOnDesktop()).toEqual([ID]);- expect(popupEvents("manage")).toEqual([event("manage", "pro", true, "my_cloud")]);- expect(bridges.plan.manage, "never the plan page in the browser").not.toHaveBeenCalled();- expect(identifyEmail, "My Cloud's page is not told the email").not.toHaveBeenCalled();- expect(render()).toBe("");- expect(await launch(), "and not again on My Cloud").not.toContain(POPUP);- onThisComputer();- expect(await launch(), "nor on this computer's page").not.toContain(POPUP);- expect(popupEvents("shown"), "counted once").toHaveLength(1);- });-- it("on My Cloud: a trial, a lapsed plan and an ended sign-in get Manage plan in that page's Settings; no plan read, or one being checked, never offers one", async () => {- const cases: Array<[CloudPlanSnapshot, string, boolean, string]> = [- [{ status: "paid", tier: "pro", trial: trial("active") }, "trial", true, "Pro free trial · verified by MausBot Cloud"],- [{ status: "paid", tier: "max" }, "max", true, "Max active · verified by MausBot Cloud"],- [{ status: "attention", tier: "pro" }, "none", true, "Pro · not active right now"],- [{ status: "signin", tier: "pro" }, "unknown", false, "Sign in again to use the Cloud on this computer. Your plan is not affected."],+ it("never during a bot's turn, a room's work, another dialog, a call, Settings, adding a Cloud or an update; it waits and comes back", async () => {+ returning();+ const waits: Array<() => void> = [+ () => { f.state.bots = [{ busy: true, tasks: [{ threadId: "t", createdAt: 1, usage: { turns: 2 } }] }]; }, () => { f.state.groups = [{ working: true }]; },+ () => { modal = true; }, () => { f.state.liveCall = { status: "live" }; }, () => { f.state.appSettingsOpen = true; },+ () => { f.state.cloudAdd = { source: "app_menu" }; }, () => { f.updater = { status: "downloaded" }; },+ () => { account = { status: "signed-out", message: "restoring" }; }, () => { account = { status: "connecting" }; },+ () => { bridges.cloud.offer.mockImplementation(() => new Promise(() => {})); },+ () => { desk.handlers.set("desktop-notices:state", () => new Promise(() => {})); },];- for (const [plan, name, signedIn, line] of cases) {- vi.clearAllMocks(); fresh(); onMyCloud(plan);- const html = await launch();- expect(html, name).toContain("Manage plan"); expect(html, name).toContain(line); expect(html, name).not.toContain("Compare plans");- expect(popupEvents("shown"), name).toEqual([event("shown", name, signedIn, "my_cloud")]);- press("Manage plan"); await flush();- expect(f.dispatch, name).toHaveBeenCalledWith(SETTINGS); expect(bridges.plan.manage, name).not.toHaveBeenCalled();- expect(popupEvents("manage"), name).toEqual([event("manage", name, signedIn, "my_cloud")]);- }- for (const plan of [{ status: "checking", tier: "pro" } as CloudPlanSnapshot, { status: "none" } as CloudPlanSnapshot, new Error("only available in this app's window")]) {- vi.clearAllMocks(); fresh(); onMyCloud(plan instanceof Error ? { status: "none" } : plan); if (plan instanceof Error) snapshot = plan; returning();- const html = await launch();- expect(html).not.toContain(POPUP);- expect(seenOnDesktop()).toEqual([]);+ for (const wait of waits) {+ const saved = structuredClone(f.state); wait();+ expect(await relaunch(), wait.toString()).toBe("");+ 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");+ 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");});- it("waits for main to restore the Cloud sign-in before it reads the plan on My Cloud's page", async () => {- let answer!: () => void;- const restored = new Promise<void>(resolve => { answer = resolve; });- desk.offered = true;- const state = desk.handlers.get("desktop-notices:state")!;- desk.handlers.set("desktop-notices:state", async (...args) => { await restored; return state(...args); });- onMyCloud({ status: "paid", tier: "pro" });- expect(await launch()).toBe("");- expect(bridges.plan.state).not.toHaveBeenCalled();- answer(); await flush();- expect(await settle()).toContain("Manage plan");- expect(bridges.plan.state).toHaveBeenCalled();- });-- it("never on a saved server's page, which is told no plan", async () => {- account = free; offer = { ...PLAIN_OFFER };- onSavedServer();- expect(await launch()).not.toContain(POPUP);- expect(bridges.plan.state).not.toHaveBeenCalled(); expect(bridges.cloud.state).not.toHaveBeenCalled();- expect(popupEvents("shown")).toEqual([]); expect(seenOnDesktop()).toEqual([]);- });-- it("on My Cloud it waits for the setup checklist, and shows once that checklist is done, though nobody pressed Hide", async () => {- account = paid({ trial: trial("active") });- onMyCloud({ status: "paid", tier: "pro", trial: trial("active") });- const onboarding = f.state.config.onboarding;- onboarding.hintsSeen = [...withTourFinished(undefined), "cloud-intent-asked", "cloud-intent-given"]; onboarding.firstTurnAt = "2026-10-10T08:00:00.000Z";- expect(await launch(), "its first job has no routine yet").toBe("");- const routine = { id: "r1", botId: "b1", createdAt: NOW - DAY, name: "Morning brief", nextRunAt: NOW + DAY };- f.state.routines = [routine];- expect(await launch(), "its first job made a routine").toContain(POPUP);- expect(popupEvents("shown")).toHaveLength(1);-- vi.clearAllMocks(); fresh(); onMyCloud({ status: "paid", tier: "pro", trial: trial("active") }); f.state.routines = [routine];- f.state.config.onboarding.hintsSeen = [...withTourFinished(undefined), "cloud-intent-asked"]; delete f.state.config.onboarding.firstTurnAt;- expect(await launch(), "nothing worked yet").toBe("");- setPendingIntent("Send me a morning brief");- try { expect(await launch(), "a job just given, its routine made").toContain(POPUP); } finally { setPendingIntent(null); }- });-- it("never shows one account's offer for another while the new one loads", async () => {- offer = TRIAL_OFFER;- expect(await launch()).toContain("Start free trial");- account = free; let answer!: (next: CloudOffer) => void;- bridges.cloud.offer.mockImplementation(() => new Promise<CloudOffer>(resolve => { answer = resolve; }));- expect(await settle(), "the signed-out trial is not shown for the signed-in account").not.toContain("Free for 7 days");- answer({ ...PLAIN_OFFER }); await flush();- const html = await settle();- expect(html).toContain("Upgrade to Cloud Pro"); expect(html).not.toContain("Free for 7 days");- });-- it("Not now, the X, Escape and a click outside end it for good and never say who it was", async () => {- account = free; offer = { ...PLAIN_OFFER };+ 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(await launch(), how).toContain(POPUP);+ expect(on(await relaunch()), how).toBe("pro");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(render(), "a press inside the dialog").toContain(POPUP);+ expect(on(render()), "a press inside the dialog").toBe("pro");backdrop.props.onMouseDown({ target: backdrop, currentTarget: backdrop });} else press(how);- await flush(); expect(seenOnDesktop(), how).toEqual([ID]);- expect(render(), how).toBe("");- expect(await launch(), how).not.toContain(POPUP);+ await flush();+ await keptForGood();}- expect(popupEvents("not_now")).toEqual([event("not_now", "none", true, "local")]);- expect(popupEvents("close")).toHaveLength(3);- expect(identifyEmail).not.toHaveBeenCalled();+ expect(steps().filter(props => props.action !== "seen").map(props => props.action)).toEqual(["not_now", "close", "close", "close"]);});- it("an Escape meant for something else leaves it up", async () => {- expect(await launch()).toContain(POPUP);- (document as { activeElement: unknown }).activeElement = { id: "spotlight-button" };- const escape = keydown("Escape");- expect(escape.preventDefault).not.toHaveBeenCalled(); expect(escape.stopPropagation).not.toHaveBeenCalled();- expect(render()).toContain(POPUP); expect(popupEvents("close")).toEqual([]);- await flush(); expect(seenOnDesktop()).toEqual([]);- });-- it("an earlier close kept by this computer's page or its workspace still counts, and the desktop learns it", async () => {- for (const keep of [() => storage.set(ID, "1"), () => { f.state.config.onboarding.hintsSeen = [...withTourFinished(undefined), ID]; }]) {+ it("closed on another port or in another browser on this workspace, it stays closed; the desktop learns an earlier close", async () => {+ for (const keep of [() => storage.set(ID, "1"), () => { f.state.config.onboarding.hintsSeen = [...withTourFinished(undefined), ID]; }, () => { desk.saved = { seen: [ID] }; }]) {fresh(); keep();- expect(await launch()).not.toContain(POPUP);+ expect(on(await relaunch())).toBeNull();await flush(); expect(seenOnDesktop()).toEqual([ID]);- onMyCloud({ status: "paid", tier: "pro" });- expect(await launch()).not.toContain(POPUP);- onThisComputer();}- expect(popupEvents("shown")).toEqual([]);+ expect(steps()).toEqual([]);});- it("This computer's workspace counts on My Cloud's page before This computer's page has loaded on this build: an earlier close or the welcome's Cloud step", async () => {- for (const hint of [ID, "onboarding-cloud-v1"]) {- fresh(); account = paid(); desk.config = { onboarding: { completedAt: "2026-09-01", version: 1, hintsSeen: ["tour-finished", hint] } };- onMyCloud({ status: "paid", tier: "pro" });- expect(await launch(), `${hint} on My Cloud`).not.toContain(POPUP);- }- expect(popupEvents("shown")).toEqual([]);+ 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");});- it("a desktop whose first-run onboarding already offered Cloud counts it as seen, here and on My Cloud", async () => {- f.state.config.onboarding.hintsSeen = [...withTourFinished(undefined), "onboarding-cloud-v1"];- expect(await launch()).not.toContain(POPUP);- await flush(); expect(seenOnDesktop()).toEqual([ID]);- onMyCloud({ status: "paid", tier: "pro" });- expect(await launch()).not.toContain(POPUP);- expect(popupEvents("shown")).toEqual([]);- });-- it("a window that opens on My Cloud gets it whatever This computer's welcome record says or lacks", async () => {- // An install from before the welcome kept a record, a welcome never finished, or no config.json main can read.- for (const config of [{ onboarding: { completedAt: "", version: 0, hintsSeen: [] } }, {}, null]) {- fresh(); account = paid(); desk.config = config;- onMyCloud({ status: "paid", tier: "pro" });- expect(await launch(), `${JSON.stringify(config)} on My Cloud`).toContain(POPUP);- press("Manage plan");- await flush();- expect(seenOnDesktop(), JSON.stringify(config)).toEqual([ID]);+ it("a new campaign id shows it once more to someone who closed an earlier one", async () => {+ for (const earlier of ["cloud-pro-update-2026-10", "whats-new-2026-10"]) {+ fresh(); storage.set(earlier, "1"); desk.saved = { seen: [earlier] }; f.state.config.onboarding.hintsSeen = [...withTourFinished(undefined), earlier];+ expect(on(await relaunch()), earlier).toBe("pro");}});- it("never in a remote client's window, on a branded build, or on a desktop that sells no Cloud", async () => {+ it("never in a remote client's window, on My Cloud's or a saved server's page, on a branded build, a desktop an organization runs, or one that sells no Cloud", async () => {(window.ogb as Record<string, any>).remoteClient.active = true;- expect(await launch()).not.toContain(POPUP);+ expect(on(await relaunch())).toBeNull();showWindow(LOCAL_ORIGIN); f.brand = "file";- expect(await launch()).not.toContain(POPUP);+ expect(on(await relaunch())).toBeNull();f.brand = "default"; desk.offered = false;- expect(await launch()).not.toContain(POPUP);- onMyCloud({ status: "paid", tier: "pro" });- expect(await launch()).not.toContain(POPUP);- onSavedServer();- expect(await launch()).not.toContain(POPUP);- expect(popupEvents("shown")).toEqual([]);- expect(seenOnDesktop()).toEqual([]);- });-- it("waits, and holds back the cards after it, while the plan or the offer loads, a dialog or a call is open, or the app is busy or updating", async () => {- returning(); storage.set(CLOUD_INTRO, "1");- const waits: Array<() => void> = [- () => { account = { status: "signed-out", message: "restoring" }; }, () => { account = { status: "connecting" }; },- () => { bridges.cloud.offer.mockImplementation(() => new Promise(() => {})); },- () => { desk.handlers.set("desktop-notices:state", () => new Promise(() => {})); },- () => { modal = true; }, () => { f.state.liveCall = { status: "live" }; },- () => { f.state.appSettingsOpen = true; }, () => { f.state.cloudAdd = { source: "app_menu" }; }, () => { f.updater = { status: "downloaded" }; },- () => { f.state.bots = [{ busy: true, tasks: [{ threadId: "t", createdAt: 1, usage: { turns: 2 } }] }]; },- ];- for (const wait of waits) {- const saved = structuredClone(f.state); wait();- expect(await launch(), wait.toString()).toBe("");- f.state = saved; f.updater = null; account = signedOut; modal = false; bridges.cloud.offer.mockImplementation(async () => offer); desk = desktopMachine();- }- expect(popupEvents("shown")).toEqual([]);- expect(seenOnDesktop()).toEqual([]);- f.state.liveCall = { status: "ended" };- expect(await launch()).toContain(POPUP);- modal = true;- expect(render(), "a dialog that opens over it hides it").not.toContain(POPUP);- modal = false;- expect(await settle(), "and it comes back when that dialog closes").toContain(POPUP);- expect(popupEvents("shown")).toHaveLength(1);- });-- it("offline, it waits for a later launch and lets the other cards show meanwhile", async () => {- returning(); account = { status: "unavailable" };- const offline = await launch();- expect(offline).not.toContain(POPUP); expect(offline).toContain(STAR);- account = signedOut; offer = null;- const unreachable = await launch();- expect(unreachable).not.toContain(POPUP); expect(unreachable).toContain(STAR);- expect(seenOnDesktop()).toEqual([]);- offer = TRIAL_OFFER;- expect(await launch()).toContain(POPUP);+ expect(on(await relaunch())).toBeNull();+ desk.offered = true;+ (window.ogb as Record<string, unknown>).organization = { state: async () => ({ status: "connected", organization: { id: "o", name: "Acme" } }), onState: () => () => {} };+ expect(on(await relaunch())).toBeNull();+ 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(on(await relaunch())).toBeNull();+ viewer = { hosted: true, canSave: true }; showWindow(VPS);+ expect(on(await relaunch())).toBeNull();+ expect(steps()).toEqual([]); expect(seenOnDesktop()).toEqual([]);});});describe("the product-updates question after the update", () => {- const QUESTION = "Get MausBot updates?", POPUP = "MausBot Cloud Pro";+ const QUESTION = "Get MausBot updates?", POPUP = "Meet the new MausBot Cloud";const RECEIPT = "R".repeat(43);let saved: unknown;let accountAnswer: { status: string; textVersion: string } | null;@@ -1006,13 +847,14 @@ describe("the product-updates question after the update", () => {wireConsent();});- it("comes after the Cloud Pro popup, never with it, and right after it closes; No thanks is kept and it is never asked again", async () => {- desk.saved = null; storage.delete(CLOUD_PRO_UPDATE_NOTICE);+ it("comes after What's new, never with it, and right after it closes; No thanks is kept and it is never asked again", async () => {+ desk.saved = null; storage.delete(WHATS_NEW_NOTICE);const first = await launch();expect(first).toContain(POPUP); expect(first).not.toContain(QUESTION);press("Not now"); await flush();- const next = render();- expect(next).toContain(QUESTION); expect(next).not.toContain(POPUP);+ expect(render(), "right after it closes").toContain(QUESTION);+ const next = await launch();+ expect(next, "and after a reload in the same launch").toContain(QUESTION); expect(next).not.toContain(POPUP);for (const text of ["about new features and tips, about twice a month. You can unsubscribe any time.", "Your email", "Yes, send me updates", "No thanks"])expect(next).toContain(text);for (const part of ['role="dialog"', 'aria-modal="true"', 'aria-labelledby="updates-consent-title"', 'type="email"', 'value=""']) expect(next).toContain(part);@@ -1026,8 +868,8 @@ describe("the product-updates question after the update", () => {expect(await launch(), "a restart reads it from the desktop's file").not.toContain(QUESTION);});- it("waits for a new install's first reply and for a launch after the one whose welcome finished, then keeps its place after the Cloud Pro popup", async () => {- desk.saved = null; storage.delete(CLOUD_PRO_UPDATE_NOTICE);+ it("waits for a new install's first reply and for a launch after the one whose welcome finished, then keeps its place after What's new", async () => {+ desk.saved = null; storage.delete(WHATS_NEW_NOTICE);f.state.bots = [];markWelcomeFinished();const first = await launch();@@ -1110,7 +952,7 @@ describe("no Use my Mac popup", () => {});describe("the Simple mode popup after the update", () => {- const TITLE = "Try the new Simple mode", ON = "You're on Simple mode", POPUP = "MausBot Cloud Pro";+ const TITLE = "Try the new Simple mode", ON = "You're on Simple mode", POPUP = "Meet the new MausBot Cloud";let modal: boolean;const prompts = () => vi.mocked(track).mock.calls.filter(([event]) => event === "simple_mode_prompt").map(([, props]) => props);@@ -1187,8 +1029,8 @@ describe("the Simple mode popup after the update", () => {expect(storage.has(SIMPLE_MODE_PROMPT_KEY)).toBe(false);});- it("is one popup at a time: it comes before the Cloud Pro popup, which waits for a later launch", async () => {- desk.saved = null; storage.delete(CLOUD_PRO_UPDATE_NOTICE);+ it("is one popup at a time: it comes before What's new, which waits for a later launch", async () => {+ desk.saved = null; storage.delete(WHATS_NEW_NOTICE);const first = await launch();expect(first).toContain(TITLE); expect(first).not.toContain(POPUP);press("Done"); await flush();diff --git a/src/components/AppNotices.tsx b/src/components/AppNotices.tsxindex 81d2b8d3ca..76530c5d47 100644--- a/src/components/AppNotices.tsx+++ b/src/components/AppNotices.tsx@@ -11,9 +11,10 @@ import { buyOfferAllowed, cloudNoticeKind, cloudPlanView, cloudTrialNotice, clouimport { jobRoutine, useCloudIntent } from "@/lib/cloud-intent";import { CLOUD_INTENT_GIVEN, cloudSetupStage } from "@/lib/cloud-setup";import { cornerPopupWaits, firstReplyPending } from "@/lib/corner-popup";-import { BOAT_OFFER_NOTICE, CLOUD_INTRO, CLOUD_NOTICE, CLOUD_PRO_UPDATE_NOTICE, CLOUD_TRIAL_NOTICE, dismissNotice, introShown, introStage, nextNotice, noticeSeen, PRODUCT_HUNT_NOTICE, PRODUCT_HUNT_UNTIL, PRODUCT_HUNT_URL, SIMPLE_MODE_NOTICE, STAR_NOTICE, TWO_PLACES_NOTICE, UPDATES_CONSENT_NOTICE, usedBefore } from "@/lib/notices";+import { BOAT_OFFER_NOTICE, CLOUD_INTRO, CLOUD_NOTICE, CLOUD_TRIAL_NOTICE, dismissNotice, introShown, introStage, launchNotice, markLaunchNotice, nextNotice, noticeSeen, PRODUCT_HUNT_NOTICE, PRODUCT_HUNT_UNTIL, PRODUCT_HUNT_URL, SIMPLE_MODE_NOTICE, STAR_NOTICE, TWO_PLACES_NOTICE, UPDATES_CONSENT_NOTICE, usedBefore, WHATS_NEW_NOTICE } from "@/lib/notices";import { useTwoPlaces } from "@/lib/two-places";import { useSimpleModePromptSeen } from "@/lib/simple-mode-prompt";+import { reportWhatsNew, WHATS_NEW_SOURCES, whatsNewAudience, 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";@@ -21,17 +22,17 @@ import { t } from "@/lib/i18n";import { BoatOfferCard, reportBoatOffer, type BoatOfferAction } from "./BoatOffer";import { engineReady } from "./EngineLibrary";import { CLOUD_NOTICE_CARD, cloudNoticeStep, CloudNoticeCard } from "./CloudNotice";-import { CLOUD_PRO_POPUP_SOURCE, CloudProPopup, cloudProCloudPageView, cloudProPopupView, reportCloudProPopup, useDesktopNotices, useOtherDialogOpen,- type CloudProPopupAction } from "./CloudProPopup";import { CloudTrialIntroCard } from "./CloudTrialIntro";import { useMoveQuiet } from "./CloudSendStrip";import { CloudTrialNoticeCard, useCloudPlanSnapshot } from "./CloudTrialNotice";import { LinkButton, NoticeCard, NoticeToast, NotNowButton } from "./NoticeCard";+import { useDesktopNotices, useOtherDialogOpen } from "./notice-dialogs";import { localDesktopPage } from "./onboarding/WelcomeGate";import { UpdatesConsentDialog, updatesConsentBridge, useUpdatesConsent } from "./UpdatesConsent";import { useMausBotWelcomeDue } from "./MausBotWelcome";import { reportSimpleModePrompt, SimpleModePrompt } from "./SimpleModePrompt";import { TwoPlacesCard } from "./TwoPlacesCard";+import { WhatsNewPopup } from "./whats-new/WhatsNewPopup";function StarCard({ onDismiss }: { onDismiss: () => void }) {return <NoticeCard titleId="github-star-title" notice="github-star" icon={Star} title={t("star.title")} onDismiss={onDismiss}>@@ -54,7 +55,6 @@ function ProductHuntCard({ onDone }: { onDone: (action: "upvote" | "not_now" | "}const trialKey = (trial: { state: string; endsAt: number }) => `${trial.state}:${trial.endsAt}`;-const CLOUD_SETTINGS = { type: "toggleAppSettings", open: true, section: "cloudAccount" } as const;export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { quiet?: boolean; viewer?: WelcomeViewer | null; now?: () => number }) {const { state, dispatch } = useStore();@@ -76,7 +76,6 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { qconst [toast, setToast] = useState<string | null>(null);const [failed, setFailed] = useState(false);const [busy, setBusy] = useState(false);- const [popupShown, setPopupShown] = useState(false);const [simpleShown, setSimpleShown] = useState(false);const [boatShown, setBoatShown] = useState(false);const consentHere = (local || viewer?.cloudHome === true) && brandStatus().source !== "file";@@ -110,12 +109,15 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { qconst introAllowed = Boolean(bridge) && brandStatus().source !== "file" && organization !== true && !onboardingCloudOffered(record);const stage = introStage(record, now());const trialDue = cloudTrialNotice(plan);- const popupHere = Boolean(desktop) && (local ? Boolean(bridge) : viewer?.cloudHome === true) && brandStatus().source !== "file";- const seenHere = local && (noticeSeen(record, CLOUD_PRO_UPDATE_NOTICE) || onboardingCloudOffered(record));- const popupPending = popupHere && !seenHere && (!desktopState- || (desktopState.cloud && !desktopState.seen.includes(CLOUD_PRO_UPDATE_NOTICE)));+ // What's new: This computer's page of a desktop that sells MausBot Cloud, once per person; never on a branded build or a+ // desktop an organization runs.+ const whatsNewHere = Boolean(bridge && desktop) && brandStatus().source !== "file";+ const whatsNewSeen = noticeSeen(record, WHATS_NEW_NOTICE);+ const whatsNewDue = !whatsNewHere || whatsNewSeen || organization === true ? false : !desktopState || organization === null ? null+ : desktopState.cloud && !desktopState.seen.includes(WHATS_NEW_NOTICE);+ const whatsNewFor = whatsNewDue === false ? null : whatsNewAudience(account);const wantOffer = Boolean(bridge?.offer) && ((introAllowed && view !== null && buyOfferAllowed(view) && stage !== "done")- || (popupPending && view !== null && buyOfferAllowed(view)));+ || whatsNewFor === "none" || whatsNewFor === "own");const offerKey = wantOffer ? `${view?.kind}:${JSON.stringify(account?.offer ?? null)}` : null;useEffect(() => {if (!offerKey || !bridge?.offer) return;@@ -125,14 +127,11 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { qreturn () => { active = false; };}, [offerKey, bridge]);useEffect(() => {- if (seenHere && desktopState && !desktopState.seen.includes(CLOUD_PRO_UPDATE_NOTICE)) void desktop?.seen(CLOUD_PRO_UPDATE_NOTICE).catch(() => {});- }, [seenHere, desktopState]);- const page = local ? "local" : "my_cloud";- const popupState = !popupPending ? null : !desktopState || !viewer ? "loading"- : bridge ? cloudProPopupView(account, !bridge.offer ? null : offerFor === offerKey ? offer : undefined)- : planBridge ? cloudProCloudPageView(plan) : "loading";- const popupView = typeof popupState === "object" ? popupState : null;- const popupBlocked = useOtherDialogOpen(popupPending) || Boolean(state.liveCall && state.liveCall.status !== "ended");+ if (whatsNewSeen && desktopState && !desktopState.seen.includes(WHATS_NEW_NOTICE)) void desktop?.seen(WHATS_NEW_NOTICE).catch(() => {});+ }, [whatsNewSeen, desktopState]);+ const whatsNewState = whatsNewDue === false ? "none" : whatsNewView(account, !bridge?.offer ? null : offerFor === offerKey ? offer : undefined);+ const whatsNew = typeof whatsNewState === "object" ? whatsNewState : null;+ const whatsNewBlocked = useOtherDialogOpen(whatsNewDue !== false) || Boolean(state.liveCall && state.liveCall.status !== "ended");const consentDue = consent.state?.available === true && consent.state.due && !consentDone;const consentBlocked = useOtherDialogOpen(consentDue) || Boolean(state.liveCall && state.liveCall.status !== "ended");const consentFact = !consentHere || consentDone ? false : consent.state === undefined ? null : consentDue ? (consentBlocked ? null : true) : false;@@ -158,7 +157,7 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { qreturn introOpen || stage === "due" ? true : null;};const cards = Boolean(bridge || planBridge);- // Promotions never land on a new install's first chat: they wait for its first reply, and the full-screen Cloud Pro popup+ // Promotions never land on a new install's first chat: they wait for its first reply, and the full-screen What's new popup// also for a launch after the one whose welcome just finished. Account and billing notices keep their own rules.// Unknown (null) until the bots have loaded, so nothing lower in the queue flashes up before them.const firstChat = firstReplyPending(state);@@ -169,11 +168,11 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { qconst mausBotFirst = mausBot.due;const consentNow = consentWaits === true || consentFact === false ? false : consentWaits === null || mausBotFirst ? null : consentFact;// After a closed popup only the product-updates question may follow in this launch; nothing else does.- const notice = waits ? null : closed ? (consentNow === true ? UPDATES_CONSENT_NOTICE : null) : cards || popupHere || consentHere || simpleDue || boatHere || twoFact !== false ? nextNotice({- // As the Cloud Pro popup: never in the launch whose welcome just finished, nor over MausBot's first-launch card.+ const notice = waits ? null : closed ? (consentNow === true ? UPDATES_CONSENT_NOTICE : null) : cards || whatsNewHere || consentHere || simpleDue || boatHere || twoFact !== false ? nextNotice({+ // As the What's new popup: never in the launch whose welcome just finished, nor over MausBot's first-launch card.[SIMPLE_MODE_NOTICE]: !simpleDue || afterWelcome === true ? false : afterWelcome === null || mausBotFirst || simpleBlocked ? null : true,- [CLOUD_PRO_UPDATE_NOTICE]: !popupPending || moving || afterWelcome === true ? false- : afterWelcome === null || mausBotFirst || popupState === "loading" || moving === null || (popupView !== null && popupBlocked) ? null : popupView !== null,+ [WHATS_NEW_NOTICE]: whatsNewDue === false || whatsNewState === "none" || moving || afterWelcome === true ? false+ : whatsNewDue === null || whatsNewState === "loading" || !viewer || afterWelcome === null || mausBotFirst || moving === null || whatsNewBlocked ? null : true,[UPDATES_CONSENT_NOTICE]: consentNow,[TWO_PLACES_NOTICE]: twoFact,[PRODUCT_HUNT_NOTICE]: !cards || moving || firstChat === true || brandStatus().source === "file" || now() >= PRODUCT_HUNT_UNTIL ? false@@ -186,13 +185,14 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { q: organization === null || moving === null || afterWelcome === null || mausBotFirst || (desktop && !desktopState) ? null : !organization,[STAR_NOTICE]: !bridge || moving || brandStatus().source === "file" || !usedBefore(state.bots) ? false : moving === null ? null : true,}, id => id === CLOUD_INTRO ? stage === "done" && !introOpen- : id === STAR_NOTICE || id === PRODUCT_HUNT_NOTICE || id === BOAT_OFFER_NOTICE ? noticeSeen(record, id) : false) : null;+ : id === STAR_NOTICE || id === PRODUCT_HUNT_NOTICE || id === BOAT_OFFER_NOTICE ? noticeSeen(record, id) : false, launchNotice()) : null;const shownKey = notice === CLOUD_TRIAL_NOTICE ? key : notice;useEffect(() => {- if (!shownKey) return;+ if (!shownKey || !notice) return;+ markLaunchNotice(notice);// The popups and the question own this launch: MausBot's first-launch card waits for a later one.- if (shownKey === SIMPLE_MODE_NOTICE || shownKey === CLOUD_PRO_UPDATE_NOTICE || shownKey === UPDATES_CONSENT_NOTICE) markLaunchDialog("notices");+ if (shownKey === SIMPLE_MODE_NOTICE || shownKey === WHATS_NEW_NOTICE || shownKey === UPDATES_CONSENT_NOTICE) markLaunchDialog("notices");if (shownKey === CLOUD_INTRO) {setIntroOpen(true);track("cloud_card_shown", { variant: view?.kind === "signed-out" ? "signed_out" : "free" });@@ -204,9 +204,6 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { q} else if (shownKey === SIMPLE_MODE_NOTICE && !simpleShown) {setSimpleShown(true);reportSimpleModePrompt("shown");- } else if (shownKey === CLOUD_PRO_UPDATE_NOTICE && !popupShown && popupView) {- setPopupShown(true);- void desktop?.shown(CLOUD_PRO_UPDATE_NOTICE).then(first => { if (first) reportCloudProPopup("shown", popupView, page); }, () => {});} else if (shownKey === BOAT_OFFER_NOTICE && !boatShown) {setBoatShown(true);reportBoatOffer("shown", "card");@@ -224,16 +221,10 @@ export function AppNotices({ quiet = false, viewer = null, now = Date.now }: { qif (notice === SIMPLE_MODE_NOTICE) return <SimpleModePrompt onClose={close} />;- if (notice === CLOUD_PRO_UPDATE_NOTICE && popupView && desktop) {- const report = (action: CloudProPopupAction) => reportCloudProPopup(action, popupView, page);- const end = () => { void desktop.seen(CLOUD_PRO_UPDATE_NOTICE).catch(() => {}); close(); };- const plans = (action: CloudProPopupAction) => { report(action); end(); dispatch({ type: "openCloudAdd", source: CLOUD_PRO_POPUP_SOURCE }); };- const primary = popupView.primary.via === "add-cloud" ? () => plans("upgrade") : () => { report("manage"); end(); dispatch(CLOUD_SETTINGS); };- return <CloudProPopup view={popupView}- onPrimary={primary}- onSeePlans={() => plans("see_plans")}- onNotNow={() => { report("not_now"); end(); }}- onClose={() => { report("close"); end(); }} />;+ if (notice === WHATS_NEW_NOTICE && whatsNew && desktop) {+ const report = (action: WhatsNewAction, slide: WhatsNewSlide) => reportWhatsNew(action, slide, whatsNew);+ const done = () => { close(); save(WHATS_NEW_NOTICE); void desktop.seen(WHATS_NEW_NOTICE).catch(() => {}); };+ return <WhatsNewPopup view={whatsNew} report={report} onDone={done} onBuy={slide => dispatch({ type: "openCloudAdd", source: WHATS_NEW_SOURCES[slide] })} />;}if (notice === UPDATES_CONSENT_NOTICE && consent.state) {diff --git a/src/components/CloudAddDialog.test.ts b/src/components/CloudAddDialog.test.tsindex ce34d67a79..3a52965ffd 100644--- a/src/components/CloudAddDialog.test.ts+++ b/src/components/CloudAddDialog.test.ts@@ -17,6 +17,7 @@ vi.mock("react", async original => ({ ...await original<typeof import("react")>(vi.mock("@/state/store", () => ({ useStore: () => ({ state: f.state, dispatch: f.dispatch }) }));vi.mock("@/lib/analytics", () => ({ track: vi.fn() }));vi.mock("./cloud-buy/NightCard", () => ({ NightCard: ({ children }: { children: ReactNode }) => createElement("div", { "data-night-card": "" }, children) }));+vi.mock("./cloud-buy/AddCloudFlow", () => ({ AddCloudFlow: ({ source }: { source?: string }) => createElement("div", { "data-add-cloud-flow": source ?? "" }) }));import { CloudAddDialog, CloudAddPanel, CloudAddSheet, type CloudAddActions, type CloudAddUi } from "./CloudAddDialog";import { ChooseScreen } from "./cloud-buy/ChooseScreen";import { cloudAddView, type CloudAddView } from "@/lib/cloud-plan";@@ -411,6 +412,16 @@ describe("the sheet", () => {expect([compare().props["aria-expanded"], hidden()]).toEqual([false, [true, true, true]]);});+ it("someone with a Cloud buys another in the same sheet, which sends where they started with its checkout", async () => {+ f.state = { ...f.state, cloudAdd: { source: "app_whats_new_team" } };+ account = { ...free, entitlement: { plan: "pro", tier: "pro", status: "active", expiresAt: NOW + 86_400_000, version: 2 },+ machine: { status: "ready", origin: "https://omb-c1.fly.dev" } as CloudAccountState["machine"],+ clouds: [{ id: "c1", name: "My Cloud", color: null, role: "owner", tier: "pro", runsOn: "cloud", status: "ready", origin: "https://omb-c1.fly.dev", teamId: null, primary: true, managed: true }] };+ vi.stubGlobal("window", { ogb: { cloudAccount: bridge, cloudAdd: { state: vi.fn(), start: vi.fn() } }, addEventListener: vi.fn(), removeEventListener: vi.fn() });+ await settle();+ expect(render()).toContain('data-add-cloud-flow="app_whats_new_team"');+ });+it("the Admin's word that new accounts are closed reaches the code step", async () => {bridge.signInStart.mockResolvedValueOnce({ outcome: "sent", email: EMAIL, expiresAt: NOW + 600_000, resendAt: NOW + 30_000, signupOpen: false });await settle(); await buy("pro");diff --git a/src/components/CloudAddDialog.tsx b/src/components/CloudAddDialog.tsxindex 2ba8f0f001..6134d74935 100644--- a/src/components/CloudAddDialog.tsx+++ b/src/components/CloudAddDialog.tsx@@ -268,7 +268,7 @@ export function CloudAddDialog({ now = Date.now }: { now?: () => number }) {if (view.kind === "has-cloud" && account?.status === "connected" && account.clouds && window.ogb?.cloudAdd&& (account.addCloud?.canAdd !== false || (account.adding && !account.adding.done))) {return <CloudAddSheet kind={extraWide ? "offer" : "has-cloud"} staging={account.staging === true} onClose={close}>- <AddCloudFlow onClose={close} onFirstCloud={() => {}} onWide={setExtraWide} />+ <AddCloudFlow onClose={close} onFirstCloud={() => {}} onWide={setExtraWide} source={request.source} /></CloudAddSheet>;}diff --git a/src/components/CloudProPopup.test.ts b/src/components/CloudProPopup.test.tsdeleted file mode 100644index 18b4554254..0000000000--- a/src/components/CloudProPopup.test.ts+++ /dev/null@@ -1,381 +0,0 @@-// @vitest-environment happy-dom-import { readFileSync } from "node:fs";-import { join } from "node:path";-import vm from "node:vm";-import { createElement } from "react";-import { flushSync } from "react-dom";-import { createRoot, type Root } from "react-dom/client";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import type { CloudAccountState, CloudPlanSnapshot } from "../../electron/cloud-account.mjs";-import type { CloudOffer } from "../../electron/cloud-home.mjs";-import { registerDesktopPrefs } from "../../electron/desktop-prefs.mjs";-import { setLocale } from "@/lib/i18n";--vi.mock("@/components/EngineLibrary", () => ({ engineReady: () => true }));-const ph = vi.hoisted(() => {- const ph = {- loads: 0,- calls: [] as unknown[][],- module: () => {- ph.loads += 1;- return { default: {- init: () => {}, has_opted_out_capturing: () => false, opt_in_capturing: () => {}, opt_out_capturing: () => {},- register: () => {}, unregister: () => {},- capture: (event: string, props?: unknown) => void ph.calls.push(["capture", event, props]),- identify: (id: string, props?: unknown) => void ph.calls.push(["identify", id, props]),- } };- },- };- return ph;-});-vi.mock("posthog-js", () => ph.module());-import { CloudProPopup, cloudProCloudPageView, cloudProPopupView, otherDialogOpen, useOtherDialogOpen, type CloudProPopupView } from "./CloudProPopup";-import { Spotlight } from "./onboarding/Spotlight";--const DAY = 86_400_000, NOW = Date.UTC(2026, 9, 16);-const plans = [- { tier: "starter", label: "Starter", amount: 1500, trialDays: 7 },- { tier: "pro", label: "Pro", amount: 4900, trialDays: 7 },- { tier: "max", label: "Max", amount: 9900, trialDays: 7 },-];-const TRIAL_OFFER: CloudOffer = { plans, recommended: "pro", creditUsd: 5, refundDays: 14 };-const PLAIN_OFFER: CloudOffer = { plans: plans.map(({ trialDays: _days, ...plan }) => plan), recommended: "pro" };-const free: CloudAccountState = { status: "connected", account: { id: "a", email: "[email protected]" }, entitlement: { plan: "free", status: "inactive", expiresAt: null, version: 1 } };-const onPlan = (tier: string | undefined, extra: Partial<CloudAccountState> = {}): CloudAccountState =>- ({ ...free, entitlement: { plan: "pro", ...(tier ? { tier } : {}), status: "active", expiresAt: NOW + 30 * DAY, version: 2 }, ...extra });-const running = { state: "active" as const, tier: "pro", endsAt: NOW + DAY, amount: 4900, chargeAt: NOW + DAY, holdUntil: null, deleteAt: null, keep: "none" as const };--beforeEach(() => setLocale("en"));--const PRELOAD = readFileSync(join(process.cwd(), "electron", "preload.cjs"), "utf8").replace(/\r\n/g, "\n");-type Ogb = NonNullable<Window["ogb"]>;-const MY_CLOUD = "https://omb-u-1.fly.dev";-const port = (number: number) => `http://127.0.0.1:${number}`;-type Desktop = (origin: string) => Ogb;-// One desktop: main's real record, and the real preload for a page of its window: this computer's, on whichever port-// the app got that launch, or My Cloud's.-function oneDesktop(): Desktop {- const handlers = new Map<string, (event: unknown, ...args: unknown[]) => unknown>();- const listeners = new Map<string, (event: { origin: string; returnValue?: unknown }) => void>();- let saved: unknown = null;- registerDesktopPrefs({- ipcMain: { handle: (channel, handler) => void handlers.set(channel, handler), on: (channel, listener) => void listeners.set(channel, listener) },- read: () => saved, write: value => { saved = JSON.parse(JSON.stringify(value)); },- page: event => (event as { origin: string }).origin === MY_CLOUD ? "cloud" : "local", cloudOffered: async () => true,- });- return origin => {- let ogb: Ogb | undefined;- vm.runInNewContext(PRELOAD, {- process: { platform: "darwin", argv: [`--omb-local-origin=${origin === MY_CLOUD ? port(8799) : origin}`, "--omb-company-desktop=1"] },- location: { origin }, navigator: {}, TextEncoder,- require: () => ({ webUtils: {}, contextBridge: { exposeInMainWorld: (_name: string, value: Ogb) => { ogb = value; } },- ipcRenderer: { on() {}, removeListener() {}, send() {},- sendSync: (channel: string) => { const event: { origin: string; returnValue?: unknown } = { origin }; listeners.get(channel)?.(event); return event.returnValue; },- invoke: async (channel: string, ...args: unknown[]) => handlers.get(channel)?.({ origin }, ...args) } }),- });- return ogb!;- };-}-const START = location.href;-const setURL = (url: string) => (window as unknown as { happyDOM: { setURL(url: string): void } }).happyDOM.setURL(url);--describe("what the popup offers, by plan", () => {- it("waits while the plan or the offer loads, and for a later launch when the Cloud can't be reached", () => {- for (const account of [null, { status: "signed-out", message: "restoring" }, { status: "connecting" }] as const) {- expect(cloudProPopupView(account as CloudAccountState | null, TRIAL_OFFER), JSON.stringify(account)).toBe("loading");- }- expect(cloudProPopupView({ status: "signed-out" }, undefined)).toBe("loading");- expect(cloudProPopupView({ status: "signed-out" }, null)).toBe("offline");- expect(cloudProPopupView({ status: "unavailable", lastPlan: { tier: "pro", active: true } }, TRIAL_OFFER)).toBe("offline");- });-- it("no plan: the in-app checkout, with the trial, prices, credit and money-back from the live offer", () => {- const signedOut = cloudProPopupView({ status: "signed-out" }, TRIAL_OFFER) as CloudProPopupView;- expect(signedOut).toMatchObject({ primary: { via: "add-cloud", label: "Start free trial" }, seePlans: true, plan: "none", signedIn: false, email: null,- badge: "Free for 7 days", price: "Then from $15/month + tax. Cancel any time.", moneyBack: "14-day money-back on every plan.", current: null });- expect(signedOut.points).toContain("$5 of Claude credit to start");- const costlier = { ...PLAIN_OFFER, plans: PLAIN_OFFER.plans.map(plan => ({ ...plan, amount: plan.amount + 1000 })) };- expect(cloudProPopupView(free, costlier)).toMatchObject({ primary: { via: "add-cloud", label: "Upgrade to Cloud Pro" },- plan: "none", signedIn: true, email: "[email protected]", badge: null, price: "MausBot Cloud plans from $25/month + tax.", moneyBack: null });- expect((cloudProPopupView(free, costlier) as CloudProPopupView).points).toContain("Voice and cloud desktops by Boat included");- });-- it("a plan: Manage plan in Settings → MausBot Cloud for every plan, no Compare plans, never a checkout, a price or the browser", () => {- const cases: Array<[CloudAccountState, string, string, string | null]> = [- [onPlan("personal"), "personal", "Manage plan", "Personal active · verified by MausBot Cloud"],- [onPlan("pro", { trial: running }), "trial", "Manage plan", "Pro free trial · verified by MausBot Cloud"],- [onPlan("pro"), "pro", "Manage plan", "Pro active · verified by MausBot Cloud"],- [onPlan(undefined), "pro", "Manage plan", "Pro active · verified by MausBot Cloud"],- [onPlan("max"), "max", "Manage plan", "Max active · verified by MausBot Cloud"],- [onPlan("ultra"), "other", "Manage plan", "Cloud active · verified by MausBot Cloud"],- [{ ...free, purchase: { state: "confirming" } }, "none", "Manage plan", "MausBot Cloud · payment received"],- [{ ...free, entitlement: { plan: "pro", tier: "pro", status: "inactive", expiresAt: null, version: 3 } }, "none", "Manage plan", "Pro · not active right now"],- [{ status: "reauth-required", message: "expired", lastPlan: { tier: "pro", active: true } }, "unknown", "Manage plan", "Sign in again to use the Cloud on this computer. Your plan is not affected."],- [{ status: "signed-out", message: "restore-removed" }, "none", "Manage plan", null],- ];- for (const [account, plan, label, current] of cases) {- const view = cloudProPopupView(account, TRIAL_OFFER) as CloudProPopupView;- expect(view, plan).toMatchObject({ primary: { via: "settings", label }, seePlans: false, plan, current, badge: null, price: null, moneyBack: null });- expect(view.signedIn, plan).toBe(account.status === "connected");- }- });-- it("My Cloud's page: a plan manages in that page's Settings, never the plan page in the browser; a plan being checked waits; no plan read offers none", () => {- const cases: Array<[CloudPlanSnapshot, string, boolean, string]> = [- [{ status: "paid", tier: "personal" }, "personal", true, "Personal active · verified by MausBot Cloud"],- [{ status: "paid", tier: "pro", trial: running }, "trial", true, "Pro free trial · verified by MausBot Cloud"],- [{ status: "paid" }, "pro", true, "Pro active · verified by MausBot Cloud"],- [{ status: "paid", tier: "ultra" }, "other", true, "Cloud active · verified by MausBot Cloud"],- [{ status: "attention", tier: "max" }, "none", true, "Max · not active right now"],- [{ status: "attention" }, "none", true, "MausBot Cloud · not active right now"],- [{ status: "signin", tier: "pro" }, "unknown", false, "Sign in again to use the Cloud on this computer. Your plan is not affected."],- ];- for (const [snapshot, plan, signedIn, current] of cases) {- expect(cloudProCloudPageView(snapshot), plan).toMatchObject({ primary: { via: "settings", label: "Manage plan" }, seePlans: false, plan, signedIn,- email: null, current, badge: null, price: null, moneyBack: null });- }- expect(cloudProCloudPageView(null)).toBe("loading");- expect(cloudProCloudPageView({ status: "checking", tier: "pro" })).toBe("offline");- expect(cloudProCloudPageView({ status: "none" })).toBe("offline");- });--});--describe("the popup as a dialog", () => {- let root: Root, container: HTMLElement, opener: HTMLButtonElement;- const view = cloudProPopupView({ status: "signed-out" }, TRIAL_OFFER) as CloudProPopupView;- const actions = { onPrimary: vi.fn(), onSeePlans: vi.fn(), onNotNow: vi.fn(), onClose: vi.fn() };- const show = (props: Partial<Parameters<typeof CloudProPopup>[0]> = {}) => flushSync(() => root.render(createElement(CloudProPopup, { view, ...actions, ...props })));- const press = (key: string, shiftKey = false) => {- const event = new KeyboardEvent("keydown", { key, shiftKey, bubbles: true, cancelable: true });- document.activeElement!.dispatchEvent(event);- return event;- };- const focused = () => (document.activeElement as HTMLElement).textContent || document.activeElement!.getAttribute("aria-label");- beforeEach(() => {- vi.clearAllMocks();- opener = document.body.appendChild(document.createElement("button"));- opener.textContent = "composer"; opener.focus();- container = document.body.appendChild(document.createElement("div"));- root = createRoot(container);- });- afterEach(() => { root.unmount(); document.body.replaceChildren(); });-- it("is a labelled modal dialog that takes focus at its title, keeps Tab inside and gives focus back when it goes", () => {- show();- const dialog = container.querySelector('[role="dialog"]')!;- expect(dialog.getAttribute("aria-modal")).toBe("true");- expect(document.getElementById(dialog.getAttribute("aria-labelledby")!)!.textContent).toBe("MausBot Cloud Pro");- expect(document.getElementById(dialog.getAttribute("aria-describedby")!)!.textContent).toContain("Then from $15/month + tax.");- expect(document.activeElement!.id).toBe("cloud-pro-popup-title");- const order: Array<string | null> = [];- for (let i = 0; i < 5; i++) { expect(press("Tab").defaultPrevented).toBe(true); order.push(focused()); }- expect(order).toEqual(["Start free trial", "Compare plans", "Not now", "Close", "Start free trial"]);- press("Tab", true); expect(focused()).toBe("Close");- flushSync(() => root.render(null));- expect(document.activeElement).toBe(opener);- });-- it("Escape, the X and a press outside close it; a press inside does not; each button does its own thing", () => {- show();- const escape = press("Escape");- expect(escape.defaultPrevented).toBe(true); expect(actions.onClose).toHaveBeenCalledTimes(1);- const backdrop = container.firstElementChild!, dialog = container.querySelector('[role="dialog"]')!;- dialog.dispatchEvent(new MouseEvent("mousedown", { bubbles: true }));- expect(actions.onClose).toHaveBeenCalledTimes(1);- backdrop.dispatchEvent(new MouseEvent("mousedown", { bubbles: true }));- expect(actions.onClose).toHaveBeenCalledTimes(2);- const button = (name: string) => [...container.querySelectorAll("button")].find(item => item.textContent === name || item.getAttribute("aria-label") === name)!;- button("Close").click(); expect(actions.onClose).toHaveBeenCalledTimes(3);- button("Start free trial").click(); expect(actions.onPrimary).toHaveBeenCalledOnce();- button("Compare plans").click(); expect(actions.onSeePlans).toHaveBeenCalledOnce();- button("Not now").click(); expect(actions.onNotNow).toHaveBeenCalledOnce();- // A payer has no plans to compare in the app yet: no Compare plans link.- show({ view: cloudProPopupView(onPlan("pro"), TRIAL_OFFER) as CloudProPopupView });- expect([...container.querySelectorAll("button")].map(item => item.textContent)).not.toContain("Compare plans");- });-- it("knows when another dialog is open, and notices it opening and closing", () => {- vi.useFakeTimers();- try {- const seen: boolean[] = [];- const Probe = () => { seen.push(useOtherDialogOpen(true)); return null; };- show();- expect(otherDialogOpen()).toBe(false);- flushSync(() => createRoot(document.body.appendChild(document.createElement("div"))).render(createElement(Probe)));- expect(seen.at(-1)).toBe(false);- const other = document.body.appendChild(document.createElement("div"));- other.setAttribute("aria-modal", "true");- expect(otherDialogOpen()).toBe(true);- flushSync(() => vi.advanceTimersByTime(1_000));- expect(seen.at(-1)).toBe(true);- other.remove();- flushSync(() => vi.advanceTimersByTime(1_000));- expect(seen.at(-1)).toBe(false);- } finally { vi.useRealTimers(); }- });-- it("any dialog on screen counts, modal or not, the tour's cards and the card that says a new Cloud is set up; one not shown or its own does not", () => {- show();- expect(otherDialogOpen()).toBe(false);- for (const [attribute, value] of [["role", "dialog"], ["role", "alertdialog"], ["aria-modal", "true"], ["data-tour-card", ""], ["data-cloud-setup-ready", ""]]) {- const other = document.body.appendChild(document.createElement("div"));- other.setAttribute(attribute!, value!);- expect(otherDialogOpen(), `${attribute}=${value}`).toBe(true);- other.style.display = "none";- expect(otherDialogOpen(), `not shown: ${attribute}=${value}`).toBe(false);- other.remove();- }- const inside = container.querySelector('[role="dialog"]')!.appendChild(document.createElement("div"));- inside.setAttribute("role", "alertdialog");- expect(otherDialogOpen(), "inside the popup").toBe(false);- });-- it("the first conversation's spotlight is a dialog it waits for, and an Escape meant for the spotlight reaches it", () => {- const spotRoot = createRoot(document.body.appendChild(document.createElement("div")));- const gotIt = vi.fn();- flushSync(() => spotRoot.render(createElement(Spotlight, { anchor: null, placement: "below", primary: { label: "Got it", onClick: gotIt }, onDone: gotIt, children: "Approve this step" })));- expect(document.querySelector('[role="dialog"]')!.getAttribute("aria-modal"), "the spotlight is not modal").toBeNull();- expect(otherDialogOpen()).toBe(true);- const spotButton = [...document.querySelectorAll("button")].find(button => button.textContent === "Got it")!;- show(); spotButton.focus();- const escape = new KeyboardEvent("keydown", { key: "Escape", bubbles: true, cancelable: true });- spotButton.dispatchEvent(escape);- expect(actions.onClose).not.toHaveBeenCalled(); expect(escape.defaultPrevented).toBe(false);- expect(gotIt).toHaveBeenCalledOnce();- expect(press("Tab").defaultPrevented, "nor does it pull Tab out of the spotlight").toBe(false);- expect(document.activeElement).toBe(spotButton);- spotRoot.unmount();- });-- it("the calendar's Quick create (a dialog with only a label) counts too", () => {- const quick = document.body.appendChild(document.createElement("div"));- quick.setAttribute("role", "dialog"); quick.setAttribute("aria-label", "Quick create");- quick.appendChild(document.createElement("input")).focus();- expect(otherDialogOpen()).toBe(true);- quick.remove();- expect(otherDialogOpen()).toBe(false);- });-- it("gives focus back only while it still has it, or nothing does", () => {- show();- const other = document.body.appendChild(document.createElement("input"));- other.focus();- flushSync(() => root.render(null));- expect(document.activeElement, "focus that moved on stays where it went").toBe(other);- show(); expect(document.activeElement!.id).toBe("cloud-pro-popup-title");- document.body.focus(); (document.activeElement as HTMLElement | null)?.blur();- flushSync(() => root.render(null));- expect(document.activeElement, "lost focus goes back to where it was").toBe(other);- });-});--describe("who clicked, through the app's analytics", () => {- async function fresh(enabled: boolean) {- const stored = new Map<string, string>(enabled ? [] : [["omb-analytics-opt-out", "1"]]);- vi.stubGlobal("localStorage", { getItem: (key: string) => stored.get(key) ?? null, setItem: (key: string, value: string) => void stored.set(key, value) });- vi.resetModules();- vi.doMock("posthog-js", () => ph.module());- ph.loads = 0; ph.calls = [];- const analytics = await import("@/lib/analytics");- await analytics.initAnalytics();- const { reportCloudProPopup } = await import("./CloudProPopup");- return reportCloudProPopup;- }- const sent = () => ph.calls.filter(([kind, event]) => kind === "identify" || event === "cloud_pro_popup" || event === "email_submitted");- const person = { plan: "none" as const, signedIn: true, email: "[email protected]" };- const identify = ["identify", "[email protected]", { email: "[email protected]" }];- // A page of the desktop's window at one origin: that origin's own storage, and the desktop's bridge.- async function pageOn(desktop: Desktop, origin: string, stored: Map<string, string>) {- setURL(`${origin}/`);- vi.stubGlobal("localStorage", { getItem: (key: string) => stored.get(key) ?? null, setItem: (key: string, value: string) => void stored.set(key, value) });- (window as { ogb?: Ogb }).ogb = desktop(origin);- vi.resetModules();- vi.doMock("posthog-js", () => ph.module());- ph.loads = 0; ph.calls = [];- const analytics = await import("@/lib/analytics");- await analytics.initAnalytics();- return { analytics, report: (await import("./CloudProPopup")).reportCloudProPopup };- }- afterEach(() => { vi.unstubAllGlobals(); delete (window as { ogb?: Ogb }).ogb; setURL(START); });-- it("a click by someone signed in is tied to their Cloud account's email first; showing, Not now and close never are", async () => {- const report = await fresh(true);- for (const action of ["upgrade", "manage", "see_plans"] as const) report(action, person, "local");- for (const action of ["shown", "not_now", "close"] as const) report(action, person, "local");- report("upgrade", { plan: "none", signedIn: false, email: null }, "local");- const event = (action: string, signedIn = true) => ["capture", "cloud_pro_popup", { action, plan: "none", signed_in: signedIn, page: "local" }];- expect(sent()).toEqual([identify, event("upgrade"), identify, event("manage"), identify, event("see_plans"),- event("shown"), event("not_now"), event("close"), event("upgrade", false)]);- });-- it("an opt-out made on port 8799 holds when the app gets 18799: a click there sends nothing, not even the email", async () => {- const desktop = oneDesktop();- const first = await pageOn(desktop, port(8799), new Map());- first.analytics.setAnalyticsEnabled(false);- const second = await pageOn(desktop, port(18799), new Map());- expect(second.analytics.analyticsEnabled()).toBe(false);- second.report("manage", person, "local");- expect(ph.loads).toBe(0); expect(ph.calls).toEqual([]);- });-- it("an opt-out kept in one port's storage before the desktop kept it moves there the first time that page runs", async () => {- const desktop = oneDesktop();- await pageOn(desktop, port(8799), new Map([["omb-analytics-opt-out", "1"]]));- expect(ph.loads).toBe(0);- const second = await pageOn(desktop, port(18799), new Map());- expect(second.analytics.analyticsEnabled()).toBe(false);- second.report("upgrade", person, "local");- expect(ph.calls).toEqual([]);- });-- it("the desktop's latest choice wins over an older one left in a port's storage", async () => {- const desktop = oneDesktop();- const first = await pageOn(desktop, port(8799), new Map([["omb-analytics-opt-out", "1"]]));- first.analytics.setAnalyticsEnabled(true);- const second = await pageOn(desktop, port(28799), new Map([["omb-analytics-opt-out", "1"]]));- expect(second.analytics.analyticsEnabled()).toBe(true);- second.report("manage", person, "local");- expect(sent()).toEqual([identify, ["capture", "cloud_pro_popup", { action: "manage", plan: "none", signed_in: true, page: "local" }]]);- });-- it("with no switch kept yet, a page on another port than the first counts a click without the email: the first port's storage may hold an older opt-out", async () => {- const desktop = oneDesktop();- const fallback = await pageOn(desktop, port(18799), new Map());- expect(fallback.analytics.analyticsEnabled(), "this port's storage holds no choice").toBe(true);- fallback.report("upgrade", person, "local");- const upgrade = ["capture", "cloud_pro_popup", { action: "upgrade", plan: "none", signed_in: true, page: "local" }];- expect(sent()).toEqual([upgrade]);- const first = await pageOn(desktop, port(8799), new Map());- first.report("upgrade", person, "local");- expect(sent(), "the first port's own storage holds no opt-out").toEqual([identify, upgrade]);- first.analytics.setAnalyticsEnabled(true);- const later = await pageOn(desktop, port(28799), new Map());- later.report("upgrade", person, "local");- expect(sent(), "once the desktop keeps a switch, every port knows").toEqual([identify, upgrade]);- });-- it("turned off in the desktop app, My Cloud's page in its window starts with it off: its popup sends nothing, and it cannot turn the desktop's switch on", async () => {- const desktop = oneDesktop();- const local = await pageOn(desktop, port(8799), new Map());- local.analytics.setAnalyticsEnabled(false);- const cloud = await pageOn(desktop, MY_CLOUD, new Map());- expect(cloud.analytics.analyticsEnabled()).toBe(false);- const view = cloudProCloudPageView({ status: "paid", tier: "pro" }) as CloudProPopupView;- cloud.report("shown", view, "my_cloud"); cloud.report("manage", view, "my_cloud");- expect(ph.loads).toBe(0); expect(ph.calls).toEqual([]);- expect(window.ogb?.desktopAnalytics?.set, "only This computer's page sets it").toBeUndefined();- await pageOn(desktop, port(18799), new Map()).then(page => page.analytics.setAnalyticsEnabled(true));- for (const [stored, enabled] of [[new Map(), true], [new Map([["omb-analytics-opt-out", "1"]]), false]] as const) {- const again = await pageOn(desktop, MY_CLOUD, stored);- expect(again.analytics.analyticsEnabled(), "turned back on in the desktop app, My Cloud's page follows its own switch").toBe(enabled);- }- });-- it("sends nothing at all with usage analytics off", async () => {- const report = await fresh(false);- for (const action of ["shown", "upgrade", "manage", "see_plans", "not_now", "close"] as const) report(action, person, "local");- expect(ph.loads).toBe(0);- expect(ph.calls).toEqual([]);- });-});diff --git a/src/components/CloudProPopup.tsx b/src/components/CloudProPopup.tsxdeleted file mode 100644index 8589fbc4e6..0000000000--- a/src/components/CloudProPopup.tsx+++ /dev/null@@ -1,193 +0,0 @@-import { useEffect, useState } from "react";-import { Check, X } from "lucide-react";-import type { CloudAccountState, CloudPlanSnapshot } from "../../electron/cloud-account.mjs";-import type { CloudOffer } from "../../electron/cloud-home.mjs";-import type { DesktopNoticesBridge, DesktopNoticesState } from "../../electron/desktop-prefs.mjs";-import { analyticsChoiceKnown, identifyEmail, track } from "@/lib/analytics";-import { cn } from "@/lib/cn";-import { buyOfferAllowed, cloudIntroView, cloudPlanLabel, cloudPlanLine, cloudPlanView, moneyBackLine, trialRunning, usd, type CloudPlanView, type CloudSource } from "@/lib/cloud-plan";-import { t } from "@/lib/i18n";-import { cloudPlanFromAccount, cloudPlanFromSnapshot, type CloudPlanFacts } from "@/lib/usage-snapshot";-import { NightCard } from "./cloud-buy/NightCard";-import { CLOSE, ON_NIGHT, PRIMARY, QUIET, SHEET, Tag, TAG_ON_NIGHT } from "./cloud-buy/parts";-import { NotNowButton } from "./NoticeCard";-import { UPDATES_CONSENT_POPUP } from "./UpdatesConsent";--export const CLOUD_PRO_POPUP_SOURCE = "update_popup" satisfies CloudSource;--export type CloudProPopupAction = "shown" | "upgrade" | "manage" | "see_plans" | "not_now" | "close";-/** Where an event is counted: This computer's page or My Cloud's own page. */-export type CloudProPopupPage = "local" | "my_cloud";--export interface CloudProPopupView {- /** Never a checkout, never the browser: the Add a Cloud dialog, or Settings → MausBot Cloud on the page it shows on. */- primary: { label: string; via: "add-cloud" | "settings" };- /** Compare plans, for someone who can buy: the dialog lists every plan. A payer has nothing to compare there yet. */- seePlans: boolean;- plan: CloudPlanFacts["plan"] | "trial";- signedIn: boolean;- email: string | null;- badge: string | null;- points: string[];- price: string | null;- moneyBack: string | null;- current: string | null;-}--type Who = Pick<CloudProPopupView, "plan" | "signedIn" | "email">;--export function cloudProPopupWho(account: CloudAccountState | null): Who {- const facts = cloudPlanFromAccount(account);- const signedIn = account?.status === "connected";- return { plan: facts.trial ? "trial" : facts.plan, signedIn, email: signedIn ? account?.account?.email ?? null : null };-}--const included = () => [t("cloudIntro.routines"), t("cloudIntro.phone"), t("cloudIntro.included")];-const manageView = (who: Who, current: string | null): CloudProPopupView =>- ({ ...who, primary: { via: "settings", label: t("cloudProPopup.manage") }, seePlans: false, badge: null, points: included(), price: null, moneyBack: null, current });--/** This computer's page. */-export function cloudProPopupView(account: CloudAccountState | null, offer: CloudOffer | null | undefined): CloudProPopupView | "loading" | "offline" {- const view = cloudPlanView(account);- if (view.kind === "unknown" || view.kind === "connecting") return "loading";- if (view.kind === "unverified") return "offline";- const who = cloudProPopupWho(account);- if (buyOfferAllowed(view)) {- if (offer === undefined) return "loading";- if (offer === null) return "offline";- const intro = cloudIntroView(offer);- return {- ...who,- primary: { via: "add-cloud", label: t(intro ? "cloudIntro.start" : "cloudProPopup.upgrade") },- seePlans: true,- badge: intro?.badge ?? null,- points: intro?.points ?? included(),- price: intro?.price ?? t("pro.fromPrice", { price: usd(Math.min(...offer.plans.map(plan => plan.amount)) / 100) }),- moneyBack: moneyBackLine(offer),- current: null,- };- }- // Every plan manages in the app. Personal → Pro is not self-serve yet, so no "Upgrade" that ends at "email us".- return manageView(who, view.kind === "reauth" ? t("pro.reauthShort") : cloudPlanLine(view));-}--function snapshotPlanView(snapshot: CloudPlanSnapshot): CloudPlanView | null {- const label = snapshot.tier === undefined ? null : cloudPlanLabel(snapshot.tier);- if (snapshot.status === "paid") return { kind: "paid", label: cloudPlanLabel(snapshot.tier), checking: false, ...(trialRunning(snapshot.trial) ? { trial: true as const } : {}) };- if (snapshot.status === "attention") return { kind: "attention", label };- if (snapshot.status === "signin") return { kind: "reauth", label, reason: "expired" };- return null;-}--/** My Cloud's own page, from the plan main tells that page: a plan manages in that page's Settings, one being checked- * waits, and with none read there is nothing to say. */-export function cloudProCloudPageView(snapshot: CloudPlanSnapshot | null): CloudProPopupView | "loading" | "offline" {- if (!snapshot) return "loading";- if (snapshot.status === "checking") return "offline";- const view = snapshotPlanView(snapshot);- if (!view) return "offline";- const facts = cloudPlanFromSnapshot(snapshot);- return manageView({ plan: facts.trial ? "trial" : facts.plan, signedIn: view.kind !== "reauth", email: null },- view.kind === "reauth" ? t("pro.reauthShort") : cloudPlanLine(view));-}--/** null until main answers; a page main refuses has nothing due. */-export function useDesktopNotices(desktop: DesktopNoticesBridge | undefined): DesktopNoticesState | null {- const [answer, setAnswer] = useState<DesktopNoticesState | null>(null);- useEffect(() => {- if (!desktop) return;- let active = true;- void desktop.state().then(next => { if (active) setAnswer(next); }, () => { if (active) setAnswer({ seen: [], cloud: false }); });- return () => { active = false; };- }, [desktop]);- return desktop ? answer : null;-}--const CLICKS: ReadonlySet<CloudProPopupAction> = new Set(["upgrade", "manage", "see_plans"]);--export function reportCloudProPopup(action: CloudProPopupAction, who: Who, page: CloudProPopupPage) {- if (who.email && CLICKS.has(action) && analyticsChoiceKnown()) identifyEmail(who.email);- track("cloud_pro_popup", { action, plan: who.plan, signed_in: who.signedIn, page });-}--const TITLE = "cloud-pro-popup-title";-const POPUP = "[data-cloud-pro-popup]";-const OTHER_DIALOGS = '[role="dialog"], [role="alertdialog"], [aria-modal="true"], [data-tour-card], [data-cloud-setup-ready]';--/** Any dialog on screen counts, modal or not, and the card that says a new Cloud is set up; never the queue's own popups. */-export function otherDialogOpen(): boolean {- return [...document.querySelectorAll<HTMLElement>(OTHER_DIALOGS)].some(element => !element.closest(`${POPUP}, ${UPDATES_CONSENT_POPUP}, [data-simple-mode-prompt]`) && element.checkVisibility());-}--export function useOtherDialogOpen(watch: boolean): boolean {- const [, setOpen] = useState(false);- useEffect(() => {- if (!watch) return;- const timer = setInterval(() => setOpen(otherDialogOpen()), 1_000);- return () => clearInterval(timer);- }, [watch]);- return watch && otherDialogOpen();-}--const focusLost = (focus: Element | null) => !focus || focus === document.body || !focus.isConnected;--export function CloudProPopup({ view, onPrimary, onSeePlans, onNotNow, onClose }: {- view: CloudProPopupView; onPrimary: () => void; onSeePlans: () => void; onNotNow: () => void; onClose: () => void;-}) {- useEffect(() => {- const opener = document.activeElement as HTMLElement | null, popup = document.querySelector(POPUP);- document.getElementById(TITLE)?.focus();- return () => {- const focus = document.activeElement;- if ((focusLost(focus) || popup?.contains(focus)) && opener?.isConnected && opener !== document.body) opener.focus();- };- }, []);- useEffect(() => {- const onKey = (event: KeyboardEvent) => {- const popup = document.querySelector(POPUP), focus = document.activeElement, inside = Boolean(focus && popup?.contains(focus));- if (event.key === "Escape") {- if (!inside) return;- event.preventDefault(); event.stopPropagation(); onClose();- return;- }- if (event.key !== "Tab" || !(inside || focusLost(focus))) return;- const controls = [...(popup?.querySelectorAll<HTMLElement>("button:not([disabled])") ?? [])];- if (!controls.length) return;- event.preventDefault();- const at = controls.indexOf(focus as HTMLElement), step = event.shiftKey ? -1 : 1;- controls[at === -1 ? (step > 0 ? 0 : controls.length - 1) : (at + step + controls.length) % controls.length]!.focus();- };- window.addEventListener("keydown", onKey, true);- return () => window.removeEventListener("keydown", onKey, true);- }, [onClose]);- return <div className="ui-scrim fixed inset-0 z-50 flex items-center justify-center p-6" onMouseDown={event => { if (event.target === event.currentTarget) onClose(); }}>- <div role="dialog" aria-modal="true" aria-labelledby={TITLE} aria-describedby="cloud-pro-popup-body" data-cloud-pro-popup={view.plan} tabIndex={-1}- className={cn(SHEET, "group/sheet animate-pop-in relative max-h-full w-full max-w-[440px] overflow-y-auto px-6 pb-4 pt-5 outline-none")}>- <div className="-mx-4 -mt-3">- <NightCard small>- <h2 id={TITLE} tabIndex={-1} className="text-[17px] font-medium leading-6 tracking-[-0.008em] outline-none!">{t("cloudProPopup.title")}</h2>- {view.badge && <Tag className={cn("mt-1.5 self-start", TAG_ON_NIGHT)}>{view.badge}</Tag>}- </NightCard>- </div>- <div id="cloud-pro-popup-body" className="mt-4 flex flex-col gap-4">- <p className="text-[14px] leading-5 text-ink-secondary [text-wrap:pretty]">{t("cloudIntro.body")}</p>- <ul className="flex flex-col gap-2 text-[14px] leading-5">- {view.points.map(point => <li key={point} className="flex items-start gap-2.5"><Check size={16} strokeWidth={1.5} className="mt-0.5 shrink-0 text-ink-tertiary" aria-hidden="true" />{point}</li>)}- </ul>- {view.current && <p className="text-[14px] font-medium leading-5">{view.current}</p>}- {(view.price || view.moneyBack) && <p className="flex flex-col text-[13px] leading-[18px] text-ink-secondary">- {view.price && <span>{view.price}</span>}{view.moneyBack && <span>{view.moneyBack}</span>}- </p>}- </div>- <div className="mt-5 flex flex-wrap items-center gap-2">- <button type="button" className={cn(PRIMARY, "ui-button-lg")} onClick={onPrimary}>{view.primary.label}</button>- {view.seePlans && <button type="button" className={cn(QUIET, "ui-button-lg")} onClick={onSeePlans}>{t("pro.seePlans")}</button>}- </div>- <div className="mt-4 flex items-center justify-between gap-3 border-t-[0.5px] border-ink/10 pt-2">- <p className="min-w-0 flex-1 text-[12px] leading-4 text-ink-tertiary">{t("pro.disclaimer")}</p>- <NotNowButton onClick={onNotNow} />- </div>- <button type="button" onClick={onClose} aria-label={t("cloudAdd.close")} className={cn(CLOSE, ON_NIGHT, "absolute end-4 top-4")}><X size={16} /></button>- </div>- </div>;-}diff --git a/src/components/cloud-buy/AddCloudFlow.test.ts b/src/components/cloud-buy/AddCloudFlow.test.tsindex 0c59a6a416..6663bf1cdd 100644--- a/src/components/cloud-buy/AddCloudFlow.test.ts+++ b/src/components/cloud-buy/AddCloudFlow.test.ts@@ -87,6 +87,13 @@ it("a plan, then its name and colour, then the Admin's checkout; the sheet thenexpect(bridge.copyLink).toHaveBeenCalledTimes(1);});+it("sends where the person started with the checkout, when the sheet was opened from somewhere that says", async () => {+ await mount({ source: "app_whats_new_team" });+ await click(host.querySelector("[data-plan-buy='pro']"));+ await click(buttonNamed("Continue to checkout"));+ expect(bridge.start.mock.calls).toEqual([["pro", "Cloud 2", "blue", "app_whats_new_team"]]);+});+it("another Cloud's checkout still open: the sheet follows that one, with its page to reopen, and sign-ups closed is said calmly", async () => {await mount();await click(host.querySelector("[data-plan-buy='pro']"));diff --git a/src/components/cloud-buy/AddCloudFlow.tsx b/src/components/cloud-buy/AddCloudFlow.tsxindex a5cb663ccf..53435ed218 100644--- a/src/components/cloud-buy/AddCloudFlow.tsx+++ b/src/components/cloud-buy/AddCloudFlow.tsx@@ -9,7 +9,7 @@ import type { AddCloudView } from "../../../electron/cloud-rail.mjs";import { track } from "@/lib/analytics";import { cn } from "@/lib/cn";import { addCloudScreen, addCloudStop, CLOUD_LIST_NAME_LIMIT, DEFAULT_SWATCH, swatchFill, type AddCloudScreen, type AddCloudStop } from "@/lib/cloud-extra";-import { offerPlanLabel, usd } from "@/lib/cloud-plan";+import { offerPlanLabel, usd, type CloudSource } from "@/lib/cloud-plan";import { t } from "@/lib/i18n";import { placeInitials } from "@/lib/places";import { SwatchRadios } from "../SwatchRadios";@@ -70,9 +70,10 @@ function Stop({ reason, home, busy, interest, onInterest, onClose }: {}/** `onFirstCloud`: there is no Cloud of the person's own yet, so this computer's own sheet buys the first (with its sign-in- * and trial). `onWide`: the plan cards want the wide sheet. `onBack`: back to +'s two choices. */-export function AddCloudFlow({ onClose, onFirstCloud, onWide = () => {}, onBack = null, now = Date.now }: {- onClose: () => void; onFirstCloud: () => void; onWide?: (wide: boolean) => void; onBack?: (() => void) | null; now?: () => number;+ * and trial). `onWide`: the plan cards want the wide sheet. `onBack`: back to +'s two choices. `source`: where the person+ * started, sent with the checkout. */+export function AddCloudFlow({ onClose, onFirstCloud, onWide = () => {}, onBack = null, now = Date.now, source }: {+ onClose: () => void; onFirstCloud: () => void; onWide?: (wide: boolean) => void; onBack?: (() => void) | null; now?: () => number; source?: CloudSource;}) {const bridge = window.ogb?.cloudAdd;const [view, setView] = useState<AddCloudView | null | undefined>(undefined);@@ -117,7 +118,8 @@ export function AddCloudFlow({ onClose, onFirstCloud, onWide = () => {}, onBack};const start = () => act(async () => {if (screen.kind !== "name" || !bridge) return;- const result = await bridge.start(screen.plan.tier, name.trim().replace(/\s+/g, " ") || suggested, color);+ const cloudName = name.trim().replace(/\s+/g, " ") || suggested;+ const result = await (source ? bridge.start(screen.plan.tier, cloudName, color, source) : bridge.start(screen.plan.tier, cloudName, color));if (result.outcome === "opened") { track("cloud_add_another", { step: "checkout_opened", plan: screen.plan.tier }); setTier(null); await read(); return; }// Another Cloud's checkout still open: main keeps its page, and the sheet follows that one (Reopen, Copy link).if (result.outcome === "blocked") { setStop(addCloudStop(result.blocked)); if (result.blocked === "checkout_open") await read(); }diff --git a/src/components/notice-dialogs.test.ts b/src/components/notice-dialogs.test.tsnew file mode 100644index 0000000000..a9c08087f3--- /dev/null+++ b/src/components/notice-dialogs.test.ts@@ -0,0 +1,91 @@+// @vitest-environment happy-dom+import { act, createElement } from "react";+import { createRoot, type Root } from "react-dom/client";+import { afterEach, beforeEach, expect, it, vi } from "vitest";+import { setLocale } from "@/lib/i18n";+import type { WhatsNewView } from "@/lib/whats-new";++vi.mock("@/components/Avatar", () => ({ MausAvatar: () => null }));+vi.mock("@/components/EngineLibrary", () => ({ engineReady: () => true }));+const { otherDialogOpen, useOtherDialogOpen } = await import("./notice-dialogs");+const { WhatsNewPopup } = await import("./whats-new/WhatsNewPopup");+const { Spotlight } = await import("./onboarding/Spotlight");++(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;+const VIEW: WhatsNewView = { slides: ["pro", "team"], audience: "none", signedIn: false, staging: false,+ plans: { pro: { name: "Pro", terms: "Pro · $49/month + tax" }, team: { name: "Team", terms: "Team · $169/month + tax" } } };+const done = vi.fn();+let roots: Root[];+const mount = async (element: ReturnType<typeof createElement>) => {+ const root = createRoot(document.body.appendChild(document.createElement("div")));+ roots.push(root);+ await act(async () => { root.render(element); });+};+const showPopup = () => mount(createElement(WhatsNewPopup, { view: VIEW, report: () => {}, onBuy: () => {}, onDone: done }));++beforeEach(() => { setLocale("en"); roots = []; done.mockClear(); });+afterEach(async () => { for (const root of roots) await act(async () => root.unmount()); document.body.replaceChildren(); vi.useRealTimers(); });++it("knows when another dialog is open, and notices it opening and closing", async () => {+ vi.useFakeTimers();+ const seen: boolean[] = [];+ const Probe = () => { seen.push(useOtherDialogOpen(true)); return null; };+ await showPopup();+ expect(otherDialogOpen(), "the popup itself is the queue's own").toBe(false);+ await mount(createElement(Probe));+ expect(seen.at(-1)).toBe(false);+ const other = document.body.appendChild(document.createElement("div"));+ other.setAttribute("aria-modal", "true");+ expect(otherDialogOpen()).toBe(true);+ await act(async () => { vi.advanceTimersByTime(1_000); });+ expect(seen.at(-1)).toBe(true);+ other.remove();+ await act(async () => { vi.advanceTimersByTime(1_000); });+ expect(seen.at(-1)).toBe(false);+});++it("any dialog on screen counts, modal or not, the tour's cards and the card that says a new Cloud is set up; one not shown or the queue's own does not", async () => {+ await showPopup();+ for (const [attribute, value] of [["role", "dialog"], ["role", "alertdialog"], ["aria-modal", "true"], ["data-tour-card", ""], ["data-cloud-setup-ready", ""]]) {+ const other = document.body.appendChild(document.createElement("div"));+ other.setAttribute(attribute!, value!);+ expect(otherDialogOpen(), `${attribute}=${value}`).toBe(true);+ other.style.display = "none";+ expect(otherDialogOpen(), `not shown: ${attribute}=${value}`).toBe(false);+ other.remove();+ }+ const inside = document.querySelector('[role="dialog"]')!.appendChild(document.createElement("div"));+ inside.setAttribute("role", "alertdialog");+ expect(otherDialogOpen(), "inside the popup").toBe(false);+ for (const own of ["data-simple-mode-prompt", "data-updates-consent-popup"]) {+ const popup = document.body.appendChild(document.createElement("div"));+ popup.setAttribute(own, ""); popup.setAttribute("role", "dialog");+ expect(otherDialogOpen(), own).toBe(false);+ popup.remove();+ }+});++it("the first conversation's spotlight is a dialog the popup waits for, and an Escape meant for the spotlight reaches it", async () => {+ const gotIt = vi.fn();+ await mount(createElement(Spotlight, { anchor: null, placement: "below", primary: { label: "Got it", onClick: gotIt }, onDone: gotIt, children: "Approve this step" }));+ expect(document.querySelector('[role="dialog"]')!.getAttribute("aria-modal"), "the spotlight is not modal").toBeNull();+ expect(otherDialogOpen()).toBe(true);+ const spotButton = [...document.querySelectorAll("button")].find(button => button.textContent === "Got it")!;+ await showPopup(); spotButton.focus();+ const escape = new KeyboardEvent("keydown", { key: "Escape", bubbles: true, cancelable: true });+ await act(async () => { spotButton.dispatchEvent(escape); });+ expect(done).not.toHaveBeenCalled(); expect(escape.defaultPrevented).toBe(false);+ expect(gotIt).toHaveBeenCalledOnce();+ const tab = new KeyboardEvent("keydown", { key: "Tab", bubbles: true, cancelable: true });+ await act(async () => { spotButton.dispatchEvent(tab); });+ expect(tab.defaultPrevented, "nor does it pull Tab out of the spotlight").toBe(false);+});++it("the calendar's Quick create (a dialog with only a label) counts too", () => {+ const quick = document.body.appendChild(document.createElement("div"));+ quick.setAttribute("role", "dialog"); quick.setAttribute("aria-label", "Quick create");+ quick.appendChild(document.createElement("input")).focus();+ expect(otherDialogOpen()).toBe(true);+ quick.remove();+ expect(otherDialogOpen()).toBe(false);+});diff --git a/src/components/notice-dialogs.ts b/src/components/notice-dialogs.tsnew file mode 100644index 0000000000..004596ba3b--- /dev/null+++ b/src/components/notice-dialogs.ts@@ -0,0 +1,35 @@+import { useEffect, useState } from "react";+import type { DesktopNoticesBridge, DesktopNoticesState } from "../../electron/desktop-prefs.mjs";+import { SIMPLE_MODE_PROMPT } from "./SimpleModePrompt";+import { UPDATES_CONSENT_POPUP } from "./UpdatesConsent";+import { WHATS_NEW_POPUP } from "./whats-new/WhatsNewPopup";++/** null until main answers; a page main refuses has nothing due. */+export function useDesktopNotices(desktop: DesktopNoticesBridge | undefined): DesktopNoticesState | null {+ const [answer, setAnswer] = useState<DesktopNoticesState | null>(null);+ useEffect(() => {+ if (!desktop) return;+ let active = true;+ void desktop.state().then(next => { if (active) setAnswer(next); }, () => { if (active) setAnswer({ seen: [], cloud: false }); });+ return () => { active = false; };+ }, [desktop]);+ return desktop ? answer : null;+}++const OTHER_DIALOGS = '[role="dialog"], [role="alertdialog"], [aria-modal="true"], [data-tour-card], [data-cloud-setup-ready]';+const QUEUE_POPUPS = [WHATS_NEW_POPUP, UPDATES_CONSENT_POPUP, SIMPLE_MODE_PROMPT].join(", ");++/** Any dialog on screen counts, modal or not, and the card that says a new Cloud is set up; never the queue's own popups. */+export function otherDialogOpen(): boolean {+ return [...document.querySelectorAll<HTMLElement>(OTHER_DIALOGS)].some(element => !element.closest(QUEUE_POPUPS) && element.checkVisibility());+}++export function useOtherDialogOpen(watch: boolean): boolean {+ const [, setOpen] = useState(false);+ useEffect(() => {+ if (!watch) return;+ const timer = setInterval(() => setOpen(otherDialogOpen()), 1_000);+ return () => clearInterval(timer);+ }, [watch]);+ return watch && otherDialogOpen();+}diff --git a/src/components/onboarding/WelcomeFlow.test.ts b/src/components/onboarding/WelcomeFlow.test.tsindex 399cd32d69..fc6db38c59 100644--- a/src/components/onboarding/WelcomeFlow.test.ts+++ b/src/components/onboarding/WelcomeFlow.test.ts@@ -6,7 +6,7 @@ import { createRoot, type Root } from "react-dom/client";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import { introStaged, stageIntro, useChiefStepOpen } from "@/lib/default-bot";import { setLocale } from "@/lib/i18n";-import { CLOUD_PRO_UPDATE_NOTICE } from "@/lib/notices";+import { WHATS_NEW_NOTICE } from "@/lib/notices";import { EMPTY_ONBOARDING, MET_CHIEF_HINT, WELCOME_VERSION } from "@/lib/onboarding";import { saveWelcomeDraft } from "@/lib/welcome-draft";import type { InstanceInfo } from "@/state/store";@@ -164,27 +164,10 @@ describe("the Chief step", () => {});});-describe("the Cloud Pro popup", () => {- const desktop = (extra: Record<string, unknown> = {}) => {+describe("What's new", () => {+ it("is left for a later launch by a first run on a desktop that sells the Cloud: everyone who installs sees it once", async () => {const seen = vi.fn(async () => {});- vi.stubGlobal("ogb", { remoteClient: { active: false }, cloudAccount: { offer: vi.fn() }, desktopNotices: { seen }, ...extra });- return seen;- };-- it("is settled by a first run on a desktop that could offer the Cloud, so it never follows on the next launch", async () => {- const seen = desktop();- await show();- await toChief();- await press("Create Chief of Staff");- await tick(CHIEF_FADE_MS);- await act(async () => {});- expect(seen).toHaveBeenCalledWith(CLOUD_PRO_UPDATE_NOTICE);- expect(saved()[0].onboarding.hintsSeen).toEqual([MET_CHIEF_HINT, CLOUD_PRO_UPDATE_NOTICE]);- expect(localStorage.getItem(CLOUD_PRO_UPDATE_NOTICE)).toBe("1");- });-- it("is left alone where the Cloud is never offered, and by a replay", async () => {- const seen = desktop({ cloudAccount: undefined });+ vi.stubGlobal("ogb", { remoteClient: { active: false }, cloudAccount: { offer: vi.fn() }, desktopNotices: { seen } });await show();await toChief();await press("Create Chief of Staff");@@ -192,6 +175,7 @@ describe("the Cloud Pro popup", () => {await act(async () => {});expect(seen).not.toHaveBeenCalled();expect(saved()[0].onboarding.hintsSeen).toEqual([MET_CHIEF_HINT]);+ expect(localStorage.getItem(WHATS_NEW_NOTICE)).toBeNull();});});diff --git a/src/components/onboarding/WelcomeFlow.tsx b/src/components/onboarding/WelcomeFlow.tsxindex ad74163be0..63667baf8e 100644--- a/src/components/onboarding/WelcomeFlow.tsx+++ b/src/components/onboarding/WelcomeFlow.tsx@@ -1,10 +1,8 @@import { useCallback, useEffect, useRef, useState, type KeyboardEvent as ReactKeyboardEvent } from "react";import { setEmailGateDone, track } from "@/lib/analytics";-import { brandStatus } from "@/lib/brand";import { cn } from "@/lib/cn";import { chiefStepFits, myDefaultBot, setChiefStepOpen, useViewerEmail } from "@/lib/default-bot";-import { CLOUD_PRO_UPDATE_NOTICE, dismissNotice } from "@/lib/notices";-import { beatsFor, cloudBeatPossible, completionPatch, firstRunPatch, markWelcomeFinished, resumeBeat, showWelcome, type BeatId } from "@/lib/onboarding";+import { beatsFor, completionPatch, firstRunPatch, markWelcomeFinished, resumeBeat, showWelcome, type BeatId } from "@/lib/onboarding";import { clearWelcomeDraft, readWelcomeDraft, saveWelcomeDraft } from "@/lib/welcome-draft";import { api, useStore } from "@/state/store";import { ChiefIntro } from "./ChiefIntro";@@ -14,12 +12,6 @@ import { localDesktopPage } from "./WelcomeGate";const LEAVE_MS = 100;const FADE_MS = 150;-/** A first run where the Cloud could have been offered settles the Cloud Pro popup with it. */-function settlesCloudPopup(hosted: boolean): boolean {- const remote = !localDesktopPage() || window.ogb?.remoteClient?.active === true;- return cloudBeatPossible({ bridge: Boolean(window.ogb?.cloudAccount?.offer), branded: brandStatus().source === "file", hosted, remote });-}-type Config = ReturnType<typeof useStore>["state"]["config"];/** A genuine first run on this computer's own page names the person after its account, where their profile has none@@ -102,13 +94,8 @@ export function WelcomeFlow({if (!replay && !embedded) markWelcomeFinished();if (keepsDraft) clearWelcomeDraft();onDone(botId);- const cloud = !replay && !embedded && settlesCloudPopup(hosted);- if (cloud) {- dismissNotice(record.current, CLOUD_PRO_UPDATE_NOTICE);- void window.ogb?.desktopNotices?.seen(CLOUD_PRO_UPDATE_NOTICE).catch(() => {});- }try {- const patch = replay ? completionPatch() : firstRunPatch(record.current, new Date(), cloud ? [CLOUD_PRO_UPDATE_NOTICE] : []);+ const patch = replay ? completionPatch() : firstRunPatch(record.current, new Date());const config = await api("/api/config", { method: "PUT", body: JSON.stringify(patch), signal: AbortSignal.timeout(10_000) });dispatch({ type: "configStatus", config });} catch {diff --git a/src/components/whats-new/TeamPicture.test.ts b/src/components/whats-new/TeamPicture.test.tsnew file mode 100644index 0000000000..b83f80b936--- /dev/null+++ b/src/components/whats-new/TeamPicture.test.ts@@ -0,0 +1,44 @@+// @vitest-environment happy-dom+import { act, createElement } from "react";+import { createRoot, type Root } from "react-dom/client";+import { afterEach, beforeEach, expect, it, vi } from "vitest";+import { setLocale } from "@/lib/i18n";++vi.mock("@/components/Avatar", () => ({+ MausAvatar: ({ color, animated, trackPointer }: { color: string; animated: boolean; trackPointer?: boolean }) =>+ createElement("i", { "data-maus": color, "data-animated": String(animated), "data-pointer": String(trackPointer) }),+}));+const { TeamPicture } = await import("./TeamPicture");++(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;+let host: HTMLDivElement, root: Root;+const render = async (active = true) => { await act(async () => { root.render(createElement(TeamPicture, { active })); }); };+const mascots = () => [...host.querySelectorAll<HTMLElement>("[data-maus]")];+const texts = () => [...host.querySelectorAll("text")].map(node => node.textContent);++beforeEach(() => { setLocale("en"); host = document.body.appendChild(document.createElement("div")); root = createRoot(host); });+afterEach(async () => { await act(async () => root.unmount()); host.remove(); delete document.documentElement.dataset.reducedMotion; });++it("is one labelled picture: four teammates, each with a Chief of Staff of their own, around the team's shared bots in two departments", async () => {+ await render();+ const picture = host.querySelector('svg[role="img"]')!;+ expect(picture.getAttribute("aria-label")).toBe("Ada, Ben, Cleo and Dara, each with their own Chief of Staff, share the team's Support and Sales bots on one Team Cloud.");+ expect(texts()).toEqual(["Support", "Sales", "A", "Ada", "B", "Ben", "C", "Cleo", "D", "Dara"]);+ expect(mascots().map(node => node.dataset.maus), "the departments' bots, then each person's Chief").toEqual(["cyan", "blue", "pink", "orange", "pink", "green", "yellow", "cyan"]);+ expect(host.querySelectorAll('path[d^="M0 5.5"]'), "a crown on each Chief").toHaveLength(4);+ expect(mascots().every(node => node.dataset.pointer === "false"), "no bot follows the pointer").toBe(true);+});++it("work moves to the shared bots only while it may: never under reduced motion, nor on a slide that isn't on screen", async () => {+ await render();+ expect(host.querySelectorAll("animateMotion")).toHaveLength(8);+ expect(mascots().every(node => node.dataset.animated === "true")).toBe(true);+ await render(false);+ expect(host.querySelectorAll("animateMotion")).toHaveLength(0);+ expect(mascots().every(node => node.dataset.animated === "false")).toBe(true);+ await render(true);+ document.documentElement.dataset.reducedMotion = "true";+ await act(async () => { await new Promise(resolve => setTimeout(resolve, 0)); });+ expect(host.querySelectorAll("animateMotion")).toHaveLength(0);+ expect(mascots().every(node => node.dataset.animated === "false")).toBe(true);+});diff --git a/src/components/whats-new/TeamPicture.tsx b/src/components/whats-new/TeamPicture.tsxnew file mode 100644index 0000000000..0a7f680ab9--- /dev/null+++ b/src/components/whats-new/TeamPicture.tsx@@ -0,0 +1,83 @@+// The Team slide's picture: a team's shared bots on its one Cloud, in two departments, and around them each person with+// their own Chief. Drawn with the skin's tokens; the work handed to the shared bots moves only while motion is allowed.+import { memo, useId, useRef } from "react";+import { MausAvatar } from "@/components/Avatar";+import { t } from "@/lib/i18n";+import type { MausColor, MausState } from "@/lib/mascot";+import { useLiveMotion } from "../cloud-buy/live-motion";++type Person = { name: string; color: MausColor; chief: MausColor; x: number; y: number; right: boolean; path: string };+const CHIP = { width: 126, height: 44 };+/** Made-up teammates, clear of the popup's close button at the top right; each path runs from the person's card into the+ * shared Cloud. */+const PEOPLE: readonly Person[] = [+ { name: "Ada", color: "purple", chief: "pink", x: 10, y: 50, right: false, path: "M136 72C160 72 170 92 192 106" },+ { name: "Ben", color: "teal", chief: "green", x: 10, y: 204, right: false, path: "M136 226C162 226 172 210 194 198" },+ { name: "Cleo", color: "coral", chief: "yellow", x: 384, y: 50, right: true, path: "M384 72C360 72 350 92 328 106" },+ { name: "Dara", color: "blue", chief: "cyan", x: 384, y: 204, right: true, path: "M384 226C358 226 348 210 326 198" },+];+type Bot = { color: MausColor; state: MausState; x: number; y: number; size: number };+/** The shared bots by department: each department's main bot, and a helper beside it. */+const DEPARTMENTS: readonly { label: "whatsNew.team.support" | "whatsNew.team.sales"; x: number; bots: readonly Bot[] }[] = [+ { label: "whatsNew.team.support", x: 224, bots: [{ color: "cyan", state: "idle", x: 236, y: 142, size: 24 }, { color: "blue", state: "working", x: 200, y: 130, size: 46 }] },+ { label: "whatsNew.team.sales", x: 298, bots: [{ color: "pink", state: "idle", x: 310, y: 142, size: 24 }, { color: "orange", state: "thinking", x: 274, y: 130, size: 46 }] },+];+const CROWN = "M0 5.5 1.2 0 4 3 6 0 8 3 10.8 0 12 5.5Z";+const ink = (percent: number) => `color-mix(in srgb, var(--color-ink) ${percent}%, transparent)`;+const tint = (color: MausColor, percent: number) => `color-mix(in srgb, var(--identity-${color}) ${percent}%, var(--color-card))`;++/** The Cloud: its pieces drawn once with a line around them and once filled over it, so only its outline shows. */+function CloudShape({ fill, line }: { fill: string; line: string }) {+ const parts = <><rect x="148" y="128" width="224" height="92" rx="46" /><circle cx="208" cy="126" r="48" /><circle cx="266" cy="108" r="60" /><circle cx="326" cy="130" r="42" /></>;+ return <>+ <g fill={line} stroke={line} strokeWidth="2">{parts}</g>+ <g fill={fill}>{parts}</g>+ </>;+}++function PersonCard({ person, moving }: { person: Person; moving: boolean }) {+ const { name, color, chief, x, y, right } = person;+ const avatar = right ? x + CHIP.width - 23 : x + 23, label = right ? x + CHIP.width - 42 : x + 42, chiefX = right ? x + 8 : x + CHIP.width - 34;+ return <g>+ <rect x={x} y={y} width={CHIP.width} height={CHIP.height} rx="14" fill="var(--color-card)" stroke={ink(10)} />+ <circle cx={avatar} cy={y + 22} r="14" fill={tint(color, 24)} />+ <text x={avatar} y={y + 26.5} textAnchor="middle" fontSize="13" fontWeight="600" fill={`var(--identity-${color})`}>{name[0]}</text>+ <text x={label} y={y + 26.5} textAnchor={right ? "end" : "start"} fontSize="13" fontWeight="600" fill="var(--color-ink)">{name}</text>+ <foreignObject x={chiefX} y={y + 12} width="26" height="26" overflow="visible">+ <MausAvatar color={chief} state="idle" size={26} animated={moving} trackPointer={false} />+ </foreignObject>+ <path transform={`translate(${chiefX + 7} ${y + 3})`} d={CROWN} fill="var(--color-warning)" />+ </g>;+}++export const TeamPicture = memo(function TeamPicture({ active }: { active: boolean }) {+ const root = useRef<HTMLDivElement>(null);+ const moving = useLiveMotion(root) && active;+ const id = useId(), glow = `${id}-glow`;+ return <div ref={root} className="absolute inset-0" data-team-picture="" data-moving={moving ? "" : undefined}>+ <svg role="img" aria-label={t("whatsNew.team.pictureAlt")} viewBox="0 0 520 260" preserveAspectRatio="xMidYMid meet" className="size-full">+ <defs>+ <radialGradient id={glow} cx="50%" cy="55%" r="50%">+ <stop offset="0" stopColor="var(--color-accent)" stopOpacity="0.16" />+ <stop offset="1" stopColor="var(--color-accent)" stopOpacity="0" />+ </radialGradient>+ </defs>+ <ellipse cx="260" cy="152" rx="190" ry="108" fill={`url(#${glow})`} />+ {PEOPLE.map(person => <g key={person.name}>+ <path id={`${id}-${person.name}`} d={person.path} fill="none" stroke={ink(22)} strokeWidth="1.5" strokeDasharray="3 5" strokeLinecap="round" />+ {moving && [0, 1].map(round => <circle key={round} r="3" fill={`var(--identity-${person.color})`} opacity="0">+ <animateMotion dur="3.6s" begin={`${round * 1.8 + PEOPLE.indexOf(person) * 0.45}s`} repeatCount="indefinite"><mpath href={`#${id}-${person.name}`} /></animateMotion>+ <animate attributeName="opacity" values="0;1;1;0" keyTimes="0;0.15;0.8;1" dur="3.6s" begin={`${round * 1.8 + PEOPLE.indexOf(person) * 0.45}s`} repeatCount="indefinite" />+ </circle>)}+ </g>)}+ <CloudShape fill={`color-mix(in srgb, var(--color-accent) 7%, var(--color-card))`} line={ink(12)} />+ {DEPARTMENTS.map(department => <g key={department.label}>+ {department.bots.map(bot => <foreignObject key={bot.color} x={bot.x} y={bot.y} width={bot.size} height={bot.size} overflow="visible">+ <MausAvatar color={bot.color} state={bot.state} size={bot.size} animated={moving} trackPointer={false} />+ </foreignObject>)}+ <text x={department.x} y="198" textAnchor="middle" fontSize="12" fontWeight="600" fill="var(--color-ink-secondary)">{t(department.label)}</text>+ </g>)}+ {PEOPLE.map(person => <PersonCard key={person.name} person={person} moving={moving} />)}+ </svg>+ </div>;+});diff --git a/src/components/whats-new/WhatsNewPopup.test.ts b/src/components/whats-new/WhatsNewPopup.test.tsnew file mode 100644index 0000000000..6ef392969e--- /dev/null+++ b/src/components/whats-new/WhatsNewPopup.test.ts@@ -0,0 +1,179 @@+// @vitest-environment happy-dom+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 type { WhatsNewAction, WhatsNewSlide, WhatsNewView } from "@/lib/whats-new";++vi.mock("@/components/Avatar", () => ({ MausAvatar: ({ color }: { color: string }) => createElement("i", { "data-maus": color }) }));+const { WhatsNewPopup } = await import("./WhatsNewPopup");++(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;+const BOTH: WhatsNewView = { slides: ["pro", "team"], audience: "none", signedIn: true, staging: false,+ plans: { pro: { name: "Pro", terms: "Pro · $49/month + tax · 14-day money-back" }, team: { name: "Team", terms: "Free for 3 days, then $169/month + tax" } } };+const TEAM_ONLY: WhatsNewView = { ...BOTH, slides: ["team"], audience: "own", plans: { team: BOTH.plans.team } };+const PRO = "Meet the new MausBot Cloud", TEAM = "Shared bots for your whole team";++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(), onDone: vi.fn() };+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;+const live = () => host.querySelector<HTMLElement>("[data-whats-new-slide]:not([inert])")!;+const button = (name: string) => [...host.querySelectorAll<HTMLButtonElement>("button")]+ .find(item => !item.closest("[inert]") && (item.textContent === name || item.getAttribute("aria-label") === name));+const click = async (name: string) => { const found = button(name); expect(found, name).toBeTruthy(); await act(async () => { found!.click(); }); };+const key = async (name: string, shiftKey = false) => {+ const event = new KeyboardEvent("keydown", { key: name, shiftKey, bubbles: true, cancelable: true });+ await act(async () => { (document.activeElement ?? document.body).dispatchEvent(event); });+ return event;+};+const focused = () => (document.activeElement as HTMLElement).textContent || document.activeElement!.getAttribute("aria-label");+const flush = async () => { for (let i = 0; i < 5; i++) await act(async () => { await Promise.resolve(); }); };++beforeEach(() => {+ setLocale("en"); vi.clearAllMocks(); steps = [];+ opener = document.body.appendChild(document.createElement("button")); opener.textContent = "composer"; opener.focus();+ host = document.body.appendChild(document.createElement("div")); root = createRoot(host);+ (window as { ogb?: unknown }).ogb = { openExternal: vi.fn(async () => true) };+});+afterEach(async () => {+ await act(async () => root.unmount());+ document.body.replaceChildren(); delete (window as { ogb?: unknown }).ogb;+ document.documentElement.style.removeProperty("--code-color-scheme");+});++describe("the What's new popup", () => {+ it("is a labelled modal dialog that opens at its first slide's title, keeps Tab inside and gives focus back when it goes", async () => {+ await show();+ expect(dialog().getAttribute("aria-modal")).toBe("true");+ expect(title()).toBe(PRO);+ expect(document.activeElement!.textContent).toBe(PRO);+ expect(live().getAttribute("aria-label")).toBe("Slide 1 of 2");+ const order: Array<string | null> = [];+ for (let i = 0; i < 8; i++) { expect((await key("Tab")).defaultPrevented).toBe(true); order.push(focused()); }+ expect(order, "the hidden slide's button is never reached").toEqual(["Get Pro", "See the new Cloud", "Not now", "Slide 1 of 2", "Slide 2 of 2", "Next", "Close", "Get Pro"]);+ await key("Tab", true); expect(focused()).toBe("Close");+ await act(async () => root.render(null));+ expect(document.activeElement).toBe(opener);+ });++ it("the first slide: the new Cloud's picture, its words and price, Get Pro and See the new Cloud", async () => {+ await show();+ const slide = live();+ expect(slide.textContent).toContain("Your bots keep working when this computer is off. The new Cloud website puts your Clouds, team, billing and usage in one place.");+ expect(slide.textContent).toContain("Pro · $49/month + tax · 14-day money-back");+ const picture = slide.querySelector("img")!;+ expect(picture.getAttribute("alt")).toBe("The new Cloud website's Home: each Cloud with its plan and status, this month's usage and the apps signed in.");+ expect(picture.getAttribute("src"), "dark skins get the dark picture").toMatch(/cloud-home-dark\.webp/);+ expect([...slide.querySelectorAll("button")].map(item => item.textContent)).toEqual(["Get Pro", "See the new Cloud"]);+ });++ it("a light skin gets the light picture", async () => {+ document.documentElement.style.setProperty("--code-color-scheme", "light");+ await show();+ expect(live().querySelector("img")!.getAttribute("src")).toMatch(/cloud-home-light\.webp/);+ });++ it("Next, Back, the dots and the arrow keys move between the slides; each slide is counted seen once, and each move from where it was", async () => {+ await show();+ expect(steps).toEqual([["seen", "pro"]]);+ await click("Next");+ expect(title()).toBe(TEAM); expect(document.activeElement!.textContent).toBe(TEAM);+ expect(live().getAttribute("aria-label")).toBe("Slide 2 of 2");+ expect(button("Next"), "no Next on the last slide").toBeUndefined();+ expect(button("Slide 2 of 2")!.getAttribute("aria-current")).toBe("true");+ await click("Back");+ expect(title()).toBe(PRO);+ expect(button("Back"), "no Back on the first slide").toBeUndefined();+ await click("Slide 2 of 2");+ expect(title()).toBe(TEAM);+ await key("ArrowLeft"); expect(title()).toBe(PRO);+ await key("ArrowLeft"); expect(title(), "nothing before the first").toBe(PRO);+ await key("ArrowRight"); expect(title()).toBe(TEAM);+ await key("ArrowRight"); expect(title(), "nothing after the last").toBe(TEAM);+ expect(steps).toEqual([["seen", "pro"], ["next", "pro"], ["seen", "team"], ["back", "team"], ["next", "pro"], ["back", "team"], ["next", "pro"]]);+ expect(props.onDone).not.toHaveBeenCalled();+ });++ it("the Team slide: shared bots first, each person's own Chief of Staff and inbox, what the team shares, its picture and Start a Team", async () => {+ await show(TEAM_ONLY);+ const slide = live();+ expect(title()).toBe(TEAM);+ expect(slide.textContent).toContain("Everyone chats with the same bots, like one Support bot and one Sales bot, and hands them work. Each person still has their own Chief of Staff and inbox.");+ for (const point of ["Connected apps, set up once for everyone", "Group chats with teammates and bots together", "Team memory the bots share",+ "Bots hand work to each other across the team", "Choose who can see, chat with or edit each bot"]) expect(slide.textContent).toContain(point);+ expect(slide.textContent).toContain("Free for 3 days, then $169/month + tax");+ expect(slide.querySelector('svg[role="img"]')!.getAttribute("aria-label")).toBe("Ada, Ben, Cleo and Dara, each with their own Chief of Staff, share the team's Support and Sales bots on one Team Cloud.");+ expect([...slide.querySelectorAll("button")].map(item => item.textContent)).toEqual(["Start a Team"]);+ expect(button("Next")).toBeUndefined(); expect(button("Back")).toBeUndefined(); expect(button("Slide 1 of 1"), "one slide has no dots").toBeUndefined();+ expect(steps).toEqual([["seen", "team"]]);+ });++ it("Get Pro opens the buy flow; See the new Cloud and Start a Team open the Cloud website with the slide's tag; each ends it", async () => {+ await show();+ await click("Get Pro");+ expect(props.onBuy).toHaveBeenCalledExactlyOnceWith("pro"); expect(props.onDone).toHaveBeenCalledOnce();+ expect(steps.at(-1)).toEqual(["get_pro", "pro"]);+ expect(window.ogb!.openExternal, "Get Pro stays in the app").not.toHaveBeenCalled();++ vi.clearAllMocks(); await show();+ await click("See the new Cloud"); await flush();+ expect(window.ogb!.openExternal).toHaveBeenCalledWith("https://cloud.openmausbot.com/cloud?src=app_whats_new_pro");+ expect(props.onDone).toHaveBeenCalledOnce(); expect(steps.at(-1)).toEqual(["see_cloud", "pro"]);++ vi.clearAllMocks(); await show(); await click("Next");+ 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");+ expect(props.onDone).toHaveBeenCalledOnce(); expect(steps.at(-1)).toEqual(["start_team", "team"]);+ expect(props.onBuy).not.toHaveBeenCalled();+ });++ it("someone with a plan of their own starts a Team in the app's own Add a Cloud, never the website's Get Team, which would only tell them to write in", async () => {+ await show(TEAM_ONLY);+ await click("Start a Team"); await flush();+ expect(props.onBuy).toHaveBeenCalledExactlyOnceWith("team"); expect(props.onDone).toHaveBeenCalledOnce();+ expect(window.ogb!.openExternal).not.toHaveBeenCalled();+ expect(steps.at(-1)).toEqual(["start_team", "team"]);+ });++ it("an app on the staging Admin opens the staging Cloud website", async () => {+ await show({ ...BOTH, staging: true }); await click("Next");+ await click("Start a Team"); await flush();+ expect(window.ogb!.openExternal).toHaveBeenCalledWith("https://omb-cloud-staging.fly.dev/pro/buy?plan=team&src=app_whats_new_team");+ });++ it("a browser that won't open keeps it up and says so", async () => {+ vi.mocked(window.ogb!.openExternal!).mockRejectedValueOnce(new Error("no browser"));+ await show();+ await click("See the new Cloud"); await flush();+ expect(props.onDone).not.toHaveBeenCalled();+ expect(live().textContent).toContain("Could not open your browser. Please try again.");+ });++ it("Not now, the X, Escape and a click outside end it, each counted on the slide it was on; a click inside does not", async () => {+ await show();+ await click("Next");+ await click("Not now");+ expect(steps.at(-1)).toEqual(["not_now", "team"]);+ for (const how of ["Close", "Escape", "outside", "inside"] as const) {+ vi.clearAllMocks(); steps = []; await act(async () => root.render(null)); await show();+ if (how === "Escape") expect((await key("Escape")).defaultPrevented).toBe(true);+ else if (how === "outside") await act(async () => { host.firstElementChild!.dispatchEvent(new MouseEvent("mousedown", { bubbles: true })); });+ else if (how === "inside") await act(async () => { dialog().dispatchEvent(new MouseEvent("mousedown", { bubbles: true })); });+ else await click(how);+ if (how === "inside") { expect(props.onDone, how).not.toHaveBeenCalled(); continue; }+ expect(props.onDone, how).toHaveBeenCalledOnce(); expect(steps.at(-1), how).toEqual(["close", "pro"]);+ }+ });++ it("an Escape or an arrow key meant for something else leaves it alone", async () => {+ await show();+ const other = document.body.appendChild(document.createElement("input"));+ other.focus();+ expect((await key("Escape")).defaultPrevented).toBe(false);+ await key("ArrowRight");+ expect(title()).toBe(PRO); expect(props.onDone).not.toHaveBeenCalled();+ });+});diff --git a/src/components/whats-new/WhatsNewPopup.tsx b/src/components/whats-new/WhatsNewPopup.tsxnew file mode 100644index 0000000000..7ceccfd396--- /dev/null+++ b/src/components/whats-new/WhatsNewPopup.tsx@@ -0,0 +1,144 @@+import { useEffect, useState, type ReactNode } from "react";+import { ArrowLeft, ArrowRight, Check, X } from "lucide-react";+import cloudHomeDark from "@/assets/whats-new/cloud-home-dark.webp";+import cloudHomeLight from "@/assets/whats-new/cloud-home-light.webp";+import { cn } from "@/lib/cn";+import { useColorScheme } from "@/lib/color-scheme";+import { t } from "@/lib/i18n";+import { newCloudUrl, startTeamUrl, type WhatsNewAction, type WhatsNewSlide, type WhatsNewView } from "@/lib/whats-new";+import type { LocaleKey } from "@/locales";+import { CLOSE, PRIMARY, QUIET, SHEET } from "../cloud-buy/parts";+import { LinkButton, NotNowButton } from "../NoticeCard";+import { TeamPicture } from "./TeamPicture";++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.body" },+};+const TEAM_POINTS: readonly LocaleKey[] = ["whatsNew.team.apps", "whatsNew.team.groupChats", "whatsNew.team.memory", "whatsNew.team.handoff", "whatsNew.team.access"];+const NAV = "ui-button ui-button-pill min-h-9 gap-1 px-3";++const focusLost = (focus: Element | null) => !focus || focus === document.body || !focus.isConnected;+const titleId = (slide: WhatsNewSlide) => `whats-new-${slide}-title`;+const controls = (popup: Element | null) => [...(popup?.querySelectorAll<HTMLElement>("button:not([disabled])") ?? [])].filter(button => !button.closest("[inert]"));++/** A slide's picture, at least half as tall as it is wide; the new Cloud's grows into the room the taller Team slide leaves,+ * showing more of the page, centered once all of it fits. */+function Picture({ slide, active }: { slide: WhatsNewSlide; active: boolean }) {+ const scheme = useColorScheme();+ return <div data-whats-new-picture={slide} className="relative aspect-[2/1] shrink-0 grow overflow-hidden bg-ink/[0.035] [@media(max-height:600px)]:hidden">+ {slide === "pro"+ ? <div className="absolute inset-0 flex flex-col items-center px-[4%] pt-3.5">+ <img src={scheme === "dark" ? cloudHomeDark : cloudHomeLight} alt={t("whatsNew.cloud.pictureAlt")} width={1120} height={762} decoding="async" draggable={false}+ className="my-auto w-full max-w-none select-none" />+ </div>+ : <TeamPicture active={active} />}+ </div>;+}++/**+ * 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.+ */+export function WhatsNewPopup({ view, report, onBuy, onDone }: {+ view: WhatsNewView; report: (action: WhatsNewAction, slide: WhatsNewSlide) => void; onBuy: (slide: WhatsNewSlide) => void; onDone: () => void;+}) {+ const [at, setAt] = useState(0);+ const slide = view.slides[at] ?? view.slides[0]!, count = view.slides.length;+ const [seen] = useState(() => new Set<WhatsNewSlide>());+ const end = (action: WhatsNewAction) => { report(action, slide); onDone(); };+ const go = (to: number) => {+ if (to === at || to < 0 || to >= count) return;+ report(to > at ? "next" : "back", slide);+ setAt(to);+ };+ useEffect(() => {+ const opener = document.activeElement as HTMLElement | null, mine = document.querySelector(WHATS_NEW_POPUP);+ return () => {+ const focus = document.activeElement;+ if ((focusLost(focus) || mine?.contains(focus)) && opener?.isConnected && opener !== document.body) opener.focus();+ };+ }, []);+ useEffect(() => {+ if (!seen.has(slide)) { seen.add(slide); report("seen", slide); }+ document.getElementById(titleId(slide))?.focus();+ }, [slide]);+ useEffect(() => {+ const onKey = (event: KeyboardEvent) => {+ const popup = document.querySelector(WHATS_NEW_POPUP), focus = document.activeElement, inside = Boolean(focus && popup?.contains(focus));+ if (!inside && !(event.key === "Tab" && focusLost(focus)) && !(event.key === "Escape" && focusLost(focus))) return;+ if (event.key === "Escape") { event.preventDefault(); event.stopPropagation(); end("close"); return; }+ if (event.key === "ArrowRight" || event.key === "ArrowLeft") {+ const forward = (event.key === "ArrowRight") !== (document.dir === "rtl");+ event.preventDefault(); go(at + (forward ? 1 : -1));+ return;+ }+ if (event.key !== "Tab") return;+ const list = controls(popup);+ if (!list.length) return;+ event.preventDefault();+ const index = list.indexOf(focus as HTMLElement), step = event.shiftKey ? -1 : 1;+ list[index === -1 ? (step > 0 ? 0 : list.length - 1) : (index + step + list.length) % list.length]!.focus();+ };+ window.addEventListener("keydown", onKey, true);+ return () => window.removeEventListener("keydown", onKey, true);+ });++ const buy = (of: WhatsNewSlide) => { report(of === "pro" ? "get_pro" : "start_team", of); onBuy(of); onDone(); };+ const actions = (of: WhatsNewSlide): ReactNode => 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")} />+ </>+ : view.audience === "own"+ ? <button type="button" className={cn(PRIMARY, "ui-button-lg")} onClick={() => buy("team")}>{t("whatsNew.team.start")}</button>+ : <LinkButton url={startTeamUrl(view.staging)} label={t("whatsNew.team.start")} className={cn(PRIMARY, "ui-button-lg gap-1.5")} onOpened={() => end("start_team")} />;++ return <div className="ui-scrim fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6" onMouseDown={event => { if (event.target === event.currentTarget) end("close"); }}>+ <div role="dialog" aria-modal="true" aria-labelledby={titleId(slide)} data-whats-new={slide} tabIndex={-1}+ 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;+ 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 === "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>+ {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")} />+ {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}+ onClick={() => go(index)} className="grid size-6 place-items-center rounded-full focus-visible:outline-2 focus-visible:outline-focus">+ <span aria-hidden="true" className={cn("block h-1.5 rounded-full transition-all duration-300 motion-reduce:transition-none", index === at ? "w-4 bg-ink" : "w-1.5 bg-ink/25")} />+ </button>)}+ </div>+ <div className="flex items-center gap-1.5">+ {at > 0 && <button type="button" className={NAV} onClick={() => go(at - 1)}><ArrowLeft size={14} aria-hidden="true" className="rtl:-scale-x-100" />{t("whatsNew.back")}</button>}+ {at < count - 1 && <button type="button" className={NAV} onClick={() => go(at + 1)}>{t("whatsNew.next")}<ArrowRight size={14} aria-hidden="true" className="rtl:-scale-x-100" /></button>}+ </div>+ </>}+ </div>+ <button type="button" onClick={() => end("close")} aria-label={t("cloudAdd.close")}+ className={cn(CLOSE, "absolute end-3 top-3 z-10 bg-app/80 backdrop-blur-sm")}><X size={16} /></button>+ </div>+ </div>;+}diff --git a/src/lib/analytics.test.ts b/src/lib/analytics.test.tsindex 468057f610..f06e39c938 100644--- a/src/lib/analytics.test.ts+++ b/src/lib/analytics.test.ts@@ -160,7 +160,6 @@ describe("initAnalytics while opted out", () => {expect(fresh.analyticsEnabled()).toBe(false);await fresh.initAnalytics();fresh.track("onboarding_step");- fresh.identifyEmail("[email protected]");expect(ph.loads).toBe(0);expect(ph.calls).toEqual([]);@@ -253,17 +252,10 @@ describe("loading the client", () => {const fresh = await freshAnalytics();const loading = fresh.initAnalytics();fresh.track("onboarding_step", { step: "hello" });- fresh.identifyEmail("[email protected]");fresh.track("onboarding_done");await loading;- expect(ph.calls).toEqual([- ...OPENED,- "capture onboarding_step",- "identify [email protected]",- // No email_submitted: nothing asks for an email on the first-run screen any more.- "capture onboarding_done",- ]);+ expect(ph.calls).toEqual([...OPENED, "capture onboarding_step", "capture onboarding_done"]);});it("drops calls made before initAnalytics, as before", async () => {@@ -273,10 +265,9 @@ describe("loading the client", () => {expect(ph.calls).toEqual(OPENED);});- it("never initialises, and drops the queued email, when switched off mid-load", async () => {+ it("never initialises, and drops the queued events, when switched off mid-load", async () => {const fresh = await freshAnalytics();const loading = fresh.initAnalytics();- fresh.identifyEmail("[email protected]");fresh.track("onboarding_step");fresh.setAnalyticsEnabled(false);await loading;@@ -308,7 +299,6 @@ describe("loading the client", () => {await fresh.initAnalytics();fresh.setAnalyticsEnabled(false);fresh.track("after_off");- fresh.identifyEmail("[email protected]");expect(ph.calls).toEqual([...OPENED, "opt_out_capturing"]);});@@ -332,7 +322,7 @@ describe("loading the client", () => {ph.initThrows = true;const fresh = await freshAnalytics();const loading = fresh.initAnalytics();- fresh.identifyEmail("[email protected]");+ fresh.track("while_starting");await expect(loading).resolves.toBeUndefined();fresh.track("after_failure");expect(ph.calls).toEqual([]);diff --git a/src/lib/analytics.ts b/src/lib/analytics.tsindex d323348f68..e2db6356fd 100644--- a/src/lib/analytics.ts+++ b/src/lib/analytics.ts@@ -1,7 +1,6 @@// The phc_ token is a write-only public key, safe to ship in the client.// posthog-js loads on demand: a static import would put ~240 kB into the startup bundle.import type { CaptureResult, PostHog } from "posthog-js";-import { DESKTOP_PORTS } from "../../electron/desktop-ports.mjs";import { appVersion } from "@/lib/app-links";import { readAdvancedMode } from "@/lib/interface-mode";@@ -12,13 +11,6 @@ const OPT_OUT_KEY = "omb-analytics-opt-out";// The desktop app's own page is served on whichever of its ports was free, and each port has its own storage.const desktopSwitch = () => globalThis.window?.ogb?.desktopAnalytics;-/** False on the desktop app's own page while the app keeps no switch and the page is not on its first port, whose- * storage may hold an opt-out saved before the app kept the switch. */-export function analyticsChoiceKnown(): boolean {- const desktop = desktopSwitch();- return !desktop?.set || desktop.enabled() !== null || globalThis.location?.port === String(DESKTOP_PORTS[0]);-}-let client: PostHog | undefined;let loading: Promise<void> | undefined;let pending: Array<(ph: PostHog) => void> = [];@@ -209,14 +201,6 @@ export function track(event: string, props?: Record<string, unknown>) {whenReady((ph) => ph.capture(event, props));}-// Sends a personal identifier, so it is gated on analyticsEnabled(), not on opt_out_capturing() alone. Only a counted-// Cloud Pro popup click by someone signed in to MausBot Cloud calls it; the first-run screen asks for no email.-export function identifyEmail(email: string) {- whenReady((ph) => {- ph.identify(email, { email });- });-}-const GATE_KEY = "omb-email-gate";export function emailGateDone(): boolean {return Boolean(localStorage.getItem(GATE_KEY));diff --git a/src/lib/analytics.wire.test.ts b/src/lib/analytics.wire.test.tsindex e95c2d3f79..4469cbd240 100644--- a/src/lib/analytics.wire.test.ts+++ b/src/lib/analytics.wire.test.ts@@ -105,7 +105,6 @@ it("sends events without any stored or current address, polls nothing, and sendsconst analytics = await import("./analytics");await analytics.initAnalytics();analytics.track("app_snapshot", { bots: 3 });- analytics.identifyEmail("[email protected]");await minutes(11);const urls = sent.map(({ url }) => new URL(url));@@ -114,7 +113,6 @@ it("sends events without any stored or current address, polls nothing, and sendsconst bodies = await Promise.all(sent.map(({ body }) => bodyText(body)));expect(bodies.join("\n")).toContain("app_snapshot");expect(bodies.join("\n")).toContain("app_active");- expect(bodies.join("\n")).toContain("$identify");expect(SECRETS.filter((secret) => bodies.some((body) => body.includes(secret)))).toEqual([]);const stored = JSON.parse(localStorage.getItem(STORED) ?? "{}") as Record<string, unknown>;for (const key of ["$initial_person_info", "$initial_referrer_info", "$initial_campaign_params"]) expect(stored).not.toHaveProperty(key);diff --git a/src/lib/cloud-plan.ts b/src/lib/cloud-plan.tsindex 53163b6ca5..f1752df261 100644--- a/src/lib/cloud-plan.ts+++ b/src/lib/cloud-plan.ts@@ -140,7 +140,7 @@ export function cloudNoticeKind(view: CloudPlanView, account: CloudAccountState}-export const CLOUD_SOURCES = ["app_card", "app_howto", "app_menu", "app_settings", "app_routines", "app_pages", "update_popup", "app_onboarding"] as const;+export const CLOUD_SOURCES = ["app_card", "app_howto", "app_menu", "app_settings", "app_routines", "app_pages", "app_whats_new_pro", "app_whats_new_team", "app_onboarding"] as const;export type CloudSource = (typeof CLOUD_SOURCES)[number];export function offerPlanLabel(plan: CloudOfferPlan): string {diff --git a/src/lib/notices.test.ts b/src/lib/notices.test.tsindex a7af73ca9e..df5b806b97 100644--- a/src/lib/notices.test.ts+++ b/src/lib/notices.test.ts@@ -2,40 +2,41 @@ 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 { BOAT_OFFER_NOTICE, CLOUD_INTRO, CLOUD_NOTICE, CLOUD_PRO_UPDATE_NOTICE, CLOUD_TRIAL_NOTICE, dismissNotice, introShown, introStage, localDay, nextNotice, noticeSeen, NOTICES,- OLD_PRO_DISMISSALS, PRODUCT_HUNT_NOTICE, SIMPLE_MODE_NOTICE, STAR_NOTICE, TWO_PLACES_NOTICE, UPDATES_CONSENT_NOTICE, usedBefore, type NoticeFacts } from "./notices";+import { BOAT_OFFER_NOTICE, CLOUD_INTRO, CLOUD_NOTICE, CLOUD_TRIAL_NOTICE, dismissNotice, introShown, introStage, launchNotice, localDay, markLaunchNotice, nextNotice, noticeSeen,+ NOTICES, OLD_PRO_DISMISSALS, PRODUCT_HUNT_NOTICE, SIMPLE_MODE_NOTICE, STAR_NOTICE, TWO_PLACES_NOTICE, UPDATES_CONSENT_NOTICE, usedBefore, WHATS_NEW_NOTICE, type NoticeFacts } from "./notices";-let storage: Map<string, string>;+let storage: Map<string, string>, session: Map<string, string>;beforeEach(() => {- storage = new Map();+ storage = new Map(); session = new Map();vi.stubGlobal("localStorage", { getItem: (key: string) => storage.get(key) ?? null, setItem: (key: string, value: string) => storage.set(key, value) });+ vi.stubGlobal("sessionStorage", { getItem: (key: string) => session.get(key) ?? null, setItem: (key: string, value: string) => session.set(key, value) });});afterEach(() => vi.unstubAllGlobals());const record = (hintsSeen: string[] = []): OnboardingStatus => ({ ...EMPTY_ONBOARDING, completedAt: "2026-09-01", version: 1, hintsSeen });const facts = (intro: boolean | null, trial: boolean | null, cloud: boolean | null, star: boolean | null, launch: boolean | null = false, popup: boolean | null = false,consent: boolean | null = false, simple: boolean | null = false, boat: boolean | null = false, two: boolean | null = false): NoticeFacts =>- ({ [SIMPLE_MODE_NOTICE]: simple, [CLOUD_PRO_UPDATE_NOTICE]: popup, [UPDATES_CONSENT_NOTICE]: consent, [TWO_PLACES_NOTICE]: two, [PRODUCT_HUNT_NOTICE]: launch, [CLOUD_INTRO]: intro, [CLOUD_TRIAL_NOTICE]: trial, [CLOUD_NOTICE]: cloud,+ ({ [SIMPLE_MODE_NOTICE]: simple, [WHATS_NEW_NOTICE]: popup, [UPDATES_CONSENT_NOTICE]: consent, [TWO_PLACES_NOTICE]: two, [PRODUCT_HUNT_NOTICE]: launch, [CLOUD_INTRO]: intro, [CLOUD_TRIAL_NOTICE]: trial, [CLOUD_NOTICE]: cloud,[BOAT_OFFER_NOTICE]: boat, [STAR_NOTICE]: star });const none = () => false;const DAY = 86_400_000, NOON = new Date(2026, 9, 9, 12).getTime();-it("is one queue: the Simple mode popup first, then the Cloud Pro popup, the product-updates question, the launch card, the card after the update, the trial's notice, the My Cloud card, Boat's credit offer, the star", () => {+it("is one queue: the Simple mode popup first, then What's new, the product-updates question, the launch card, the card after the update, the trial's notice, the My Cloud card, Boat's credit offer, the star", () => {expect(nextNotice(facts(true, true, true, true, true, true, true, true), none)).toBe(SIMPLE_MODE_NOTICE);expect(nextNotice(facts(true, true, true, true, true, true, true, null), none), "nothing shows while the Simple mode popup waits").toBeNull();- expect(nextNotice(facts(true, true, true, true, true, true, true, true), id => id === SIMPLE_MODE_NOTICE)).toBe(CLOUD_PRO_UPDATE_NOTICE);- expect(NOTICES).toEqual([SIMPLE_MODE_NOTICE, CLOUD_PRO_UPDATE_NOTICE, UPDATES_CONSENT_NOTICE, TWO_PLACES_NOTICE, PRODUCT_HUNT_NOTICE, CLOUD_INTRO, CLOUD_TRIAL_NOTICE, CLOUD_NOTICE, BOAT_OFFER_NOTICE, STAR_NOTICE]);+ expect(nextNotice(facts(true, true, true, true, true, true, true, true), id => id === SIMPLE_MODE_NOTICE)).toBe(WHATS_NEW_NOTICE);+ expect(NOTICES).toEqual([SIMPLE_MODE_NOTICE, WHATS_NEW_NOTICE, UPDATES_CONSENT_NOTICE, TWO_PLACES_NOTICE, PRODUCT_HUNT_NOTICE, CLOUD_INTRO, CLOUD_TRIAL_NOTICE, CLOUD_NOTICE, BOAT_OFFER_NOTICE, STAR_NOTICE]);expect(nextNotice(facts(true, true, true, true, true, false, false, false, false, true), none), "bots in two places come before any promotion").toBe(TWO_PLACES_NOTICE);expect(nextNotice(facts(true, true, true, true, true, false, true, false, false, true), none), "after the product-updates question").toBe(UPDATES_CONSENT_NOTICE);expect(nextNotice(facts(true, true, true, true, true, false, false, false, false, null), none), "nothing lower shows while main hasn't answered").toBeNull();- expect(nextNotice(facts(true, true, true, true, true, true, true), none)).toBe(CLOUD_PRO_UPDATE_NOTICE);- expect(nextNotice(facts(true, true, true, true, true, true, true), id => id === CLOUD_PRO_UPDATE_NOTICE)).toBe(UPDATES_CONSENT_NOTICE);+ expect(nextNotice(facts(true, true, true, true, true, true, true), none)).toBe(WHATS_NEW_NOTICE);+ 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(CLOUD_PRO_UPDATE_NOTICE).toBe("cloud-pro-update-2026-10");- expect(nextNotice(facts(true, true, true, true, true, true), none)).toBe(CLOUD_PRO_UPDATE_NOTICE);+ expect(WHATS_NEW_NOTICE).toBe("whats-new-2026-11");+ 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 === CLOUD_PRO_UPDATE_NOTICE)).toBe(PRODUCT_HUNT_NOTICE);+ expect(nextNotice(facts(true, true, true, true, true, true), id => id === WHATS_NEW_NOTICE)).toBe(PRODUCT_HUNT_NOTICE);expect(nextNotice(facts(true, true, true, true, true), none)).toBe(PRODUCT_HUNT_NOTICE);expect(nextNotice(facts(true, true, true, true, null), none)).toBeNull();expect(nextNotice(facts(true, true, true, true, true), id => id === PRODUCT_HUNT_NOTICE)).toBe(CLOUD_INTRO);@@ -55,8 +56,34 @@ it("is one queue: the Simple mode popup first, then the Cloud Pro popup, the proexpect(nextNotice(facts(false, false, false, false), none)).toBeNull();});-it("Boat's credit offer is one the desktop keeps for its every page, as the Cloud Pro popup is", () => {- expect(DESKTOP_NOTICES).toEqual([CLOUD_PRO_UPDATE_NOTICE, BOAT_OFFER_NOTICE]);+it("Boat's credit offer is one the desktop keeps for its every page, as What's new is", () => {+ expect(DESKTOP_NOTICES).toEqual([WHATS_NEW_NOTICE, BOAT_OFFER_NOTICE]);+});++it("one notice a launch: What's new goes first and Boat's credit offer waits for a later launch; only the product-updates question may follow", () => {+ const both = facts(false, false, false, true, false, true, false, false, true);+ expect(nextNotice(both, none)).toBe(WHATS_NEW_NOTICE);+ expect(NOTICES.indexOf(WHATS_NEW_NOTICE), "What's new comes before the Boat card").toBeLessThan(NOTICES.indexOf(BOAT_OFFER_NOTICE));+ expect(nextNotice(both, id => id === WHATS_NEW_NOTICE, WHATS_NEW_NOTICE), "What's new closed: nothing else this launch").toBeNull();+ expect(nextNotice(facts(false, false, false, true, false, true, true, false, true), id => id === WHATS_NEW_NOTICE, WHATS_NEW_NOTICE), "but the question may follow")+ .toBe(UPDATES_CONSENT_NOTICE);+ expect(nextNotice(both, none, WHATS_NEW_NOTICE), "a reload while it is up shows it again").toBe(WHATS_NEW_NOTICE);+ expect(nextNotice(both, id => id === WHATS_NEW_NOTICE), "the next launch").toBe(BOAT_OFFER_NOTICE);+ expect(nextNotice(facts(false, null, false, true, false, false, false, false, true), none, BOAT_OFFER_NOTICE), "a notice this launch didn't take never holds it back")+ .toBe(BOAT_OFFER_NOTICE);+ expect(nextNotice(facts(false, true, false, true), none, BOAT_OFFER_NOTICE), "a trial's notice waits for the next launch too").toBeNull();+});++it("a launch keeps the notice it showed first for the window's session; storage that throws keeps it for the page", () => {+ expect(launchNotice()).toBeNull();+ markLaunchNotice(WHATS_NEW_NOTICE); markLaunchNotice(BOAT_OFFER_NOTICE);+ expect(launchNotice()).toBe(WHATS_NEW_NOTICE);+ expect(session.get("omb.launch.notice")).toBe(WHATS_NEW_NOTICE);+ session.set("omb.launch.notice", "something-else");+ expect(launchNotice(), "only a notice of the list").toBeNull();+ vi.stubGlobal("sessionStorage", { getItem: () => { throw new Error("blocked"); }, setItem: () => { throw new Error("blocked"); } });+ markLaunchNotice(STAR_NOTICE);+ expect(launchNotice()).toBe(STAR_NOTICE);});it("waits while an earlier notice's answer is unknown, so a later one never shows first", () => {diff --git a/src/lib/notices.ts b/src/lib/notices.tsindex 2b11ba776c..6e2e4a54ca 100644--- a/src/lib/notices.ts+++ b/src/lib/notices.ts@@ -1,6 +1,7 @@import { hintSeen, hintSeenPatch, type OnboardingStatus } from "@/lib/onboarding";-export const CLOUD_PRO_UPDATE_NOTICE = "cloud-pro-update-2026-10";+/** The What's new popup's campaign: each person sees it once. A new id shows it once more. */+export const 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). */export const SIMPLE_MODE_NOTICE = "simple-mode-prompt";@@ -15,21 +16,62 @@ export const PRODUCT_HUNT_URL = "https://www.producthunt.com/products/mausbot";export const PRODUCT_HUNT_UNTIL = Date.UTC(2026, 10, 1);export const BOAT_OFFER_NOTICE = "boat-credit-2026-11";-export type NoticeId = typeof SIMPLE_MODE_NOTICE | typeof CLOUD_PRO_UPDATE_NOTICE | typeof UPDATES_CONSENT_NOTICE | typeof TWO_PLACES_NOTICE | typeof PRODUCT_HUNT_NOTICE | typeof CLOUD_INTRO | typeof CLOUD_TRIAL_NOTICE | typeof CLOUD_NOTICE | typeof BOAT_OFFER_NOTICE | typeof STAR_NOTICE;+/**+ * Every notice, in the order a launch asks them: one launch shows one notice, the first one due, and only the product-updates+ * question may follow it there. The rest wait for later launches, in this order.+ */+export const NOTICES = [+ SIMPLE_MODE_NOTICE,+ WHATS_NEW_NOTICE,+ UPDATES_CONSENT_NOTICE,+ TWO_PLACES_NOTICE,+ PRODUCT_HUNT_NOTICE,+ CLOUD_INTRO,+ CLOUD_TRIAL_NOTICE,+ CLOUD_NOTICE,+ BOAT_OFFER_NOTICE,+ STAR_NOTICE,+] as const;-export const NOTICES: readonly NoticeId[] = [SIMPLE_MODE_NOTICE, CLOUD_PRO_UPDATE_NOTICE, UPDATES_CONSENT_NOTICE, TWO_PLACES_NOTICE, PRODUCT_HUNT_NOTICE, CLOUD_INTRO, CLOUD_TRIAL_NOTICE, CLOUD_NOTICE, BOAT_OFFER_NOTICE, STAR_NOTICE];+export type NoticeId = (typeof NOTICES)[number];export type NoticeFacts = Record<NoticeId, boolean | null>;-export function nextNotice(facts: NoticeFacts, seen: (id: NoticeId) => boolean): NoticeId | null {+/** `launch`: the notice this launch already showed (launchNotice), the only one besides the product-updates question that+ * may show again in it. */+export function nextNotice(facts: NoticeFacts, seen: (id: NoticeId) => boolean, launch: NoticeId | null = null): NoticeId | null {for (const id of NOTICES) {- if (seen(id)) continue;+ if (seen(id) || (launch !== null && id !== launch && id !== UPDATES_CONSENT_NOTICE)) continue;if (facts[id] === null) return null;if (facts[id]) return id;}return null;}+const LAUNCH_KEY = "omb.launch.notice";+// Where browser storage is blocked, this page's memory stands in for it, so a claim still holds for the page.+let launchMemory: NoticeId | null = null;+const isNotice = (id: unknown): id is NoticeId => (NOTICES as readonly unknown[]).includes(id);++/** The first notice this launch showed, kept for the window's session, so a reload is the same launch. */+export function launchNotice(): NoticeId | null {+ try {+ const id = sessionStorage.getItem(LAUNCH_KEY);+ if (isNotice(id)) return id;+ } catch {}+ return launchMemory;+}++/** The first claim of a launch holds; a later one changes nothing. */+export function markLaunchNotice(id: NoticeId): void {+ if (launchNotice()) return;+ try {+ sessionStorage.setItem(LAUNCH_KEY, id);+ } catch {+ launchMemory = id;+ }+}+const stored = (id: string): string | null => { try { return localStorage.getItem(id); } catch { return null; } };const store = (id: string, value: string) => { try { localStorage.setItem(id, value); } catch {} };diff --git a/src/lib/onboarding.ts b/src/lib/onboarding.tsindex 262adeb69f..69dfc9888f 100644--- a/src/lib/onboarding.ts+++ b/src/lib/onboarding.ts@@ -65,21 +65,13 @@ export function completionPatch(now: Date = new Date()): { onboarding: { complet* corner notices until a reply, no spotlights). */export const MET_CHIEF_HINT = "met-chief-v1";-/** The first run's record: done, marked as the one that met the Chief (MET_CHIEF_HINT), plus any `seen` it settles. */+/** The first run's record: done, and marked as the one that met the Chief (MET_CHIEF_HINT). */export function firstRunPatch(record: OnboardingStatus | undefined,now: Date = new Date(),- seen: readonly string[] = [],): { onboarding: { completedAt: string; version: number; hintsSeen?: string[] } } {const have = record?.hintsSeen ?? [];- const added = [MET_CHIEF_HINT, ...seen].filter((id, index, all) => !have.includes(id) && all.indexOf(id) === index);- return { onboarding: { ...completionPatch(now).onboarding, ...(added.length ? { hintsSeen: [...have, ...added] } : {}) } };-}--/** Where a first run could offer MausBot Cloud: this computer's own page with the Cloud bridge, not a branded build,- * a hosted or a remote viewer. A first run there settles the Cloud Pro popup, so it never follows on the next launch. */-export function cloudBeatPossible(input: { bridge: boolean; branded: boolean; hosted: boolean; remote: boolean }): boolean {- return input.bridge && !input.branded && !input.hosted && !input.remote;+ return { onboarding: { ...completionPatch(now).onboarding, ...(have.includes(MET_CHIEF_HINT) ? {} : { hintsSeen: [...have, MET_CHIEF_HINT] }) } };}export function hintSeen(record: OnboardingStatus | undefined, id: string): boolean {diff --git a/src/lib/whats-new.test.ts b/src/lib/whats-new.test.tsnew file mode 100644index 0000000000..d14a53906f--- /dev/null+++ b/src/lib/whats-new.test.ts@@ -0,0 +1,116 @@+import { beforeEach, describe, expect, it, vi } from "vitest";+import type { CloudAccountState } from "../../electron/cloud-account.mjs";+import type { CloudOffer } from "../../electron/cloud-home.mjs";+import type { CloudListEntry } from "../../electron/cloud-list.mjs";++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, 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: [+ { tier: "starter", label: "Starter", amount: 1500 }, { tier: "pro", label: "Pro", amount: 4900 }, { tier: "max", label: "Max", amount: 9900 },+ { tier: "team", label: "Team", amount: 16900, trialDays: 3 },+] };+const free: CloudAccountState = { status: "connected", account: { id: "a", email: "[email protected]" }, entitlement: { plan: "free", status: "inactive", expiresAt: null, version: 1 } };+const onPlan = (tier: string, extra: Partial<CloudAccountState> = {}): CloudAccountState =>+ ({ ...free, entitlement: { plan: "pro", tier, status: "active", expiresAt: NOW + 30 * DAY, version: 2 }, ...extra });+const listed = (patch: Partial<CloudListEntry>): CloudListEntry => ({ id: "c1", name: "My Cloud", color: null, role: "owner", tier: "pro", runsOn: "cloud", status: "ready",+ origin: "https://omb-c1.fly.dev", teamId: null, primary: true, managed: true, ...patch });+const team = { id: "t1", name: "Design Studio", role: "member" as const, machine: null };+const running = { state: "active" as const, tier: "pro", endsAt: NOW + DAY, amount: 4900, chargeAt: NOW + DAY, holdUntil: null, deleteAt: null, keep: "none" as const };++beforeEach(() => { setLocale("en"); vi.mocked(track).mockClear(); });++describe("who sees which slides", () => {+ it("no Cloud plan: the new Cloud, then Team; signed out or signed in with none, an ended Cloud of their own included", () => {+ for (const account of [{ status: "signed-out" } as CloudAccountState, free, { ...free, clouds: [listed({ status: "ended" })] },+ { ...free, clouds: [listed({ runsOn: "server", managed: false, tier: null })] }, { ...free, trial: { ...running, state: "ended" as const } }]) {+ expect(whatsNewAudience(account), JSON.stringify(account)).toBe("none");+ expect(whatsNewSlides(whatsNewAudience(account))).toEqual(["pro", "team"]);+ }+ });++ it("a Cloud plan of their own, in no team: the Team slide only, a trial on a personal plan included", () => {+ for (const account of [onPlan("starter"), onPlan("personal"), onPlan("pro"), onPlan("max"), onPlan("pro", { trial: running }), onPlan("pro", { clouds: [listed({})] })]) {+ expect(whatsNewAudience(account), JSON.stringify(account.entitlement)).toBe("own");+ expect(whatsNewSlides("own")).toEqual(["team"]);+ }+ });++ it("anyone in a team, owner or member, sees nothing: a team listed, a Team or Business plan, or a team's Cloud in the list", () => {+ const cases: CloudAccountState[] = [+ { ...free, teams: [team] }, { ...free, teams: [{ ...team, role: "owner" }] }, onPlan("pro", { teams: [team] }),+ onPlan("team"), onPlan("business"), { ...onPlan("team"), entitlement: { plan: "pro", tier: "team", status: "inactive", expiresAt: null, version: 3 } },+ { ...free, clouds: [listed({ teamId: "t1", tier: "team", role: "member", primary: false })] },+ onPlan("team", { trial: { ...running, tier: "team" } }),+ ];+ for (const account of cases) {+ expect(whatsNewAudience(account), JSON.stringify(account)).toBe("team");+ expect(whatsNewSlides(whatsNewAudience(account))).toEqual([]);+ }+ });++ it("nothing while a payment is linked or needs attention, a checkout or another Cloud is being bought, or the plan can't be checked", () => {+ const cases: CloudAccountState[] = [+ { ...free, purchase: { state: "confirming" } }, { ...free, entitlement: { plan: "pro", tier: "pro", status: "inactive", expiresAt: null, version: 3 } },+ { ...free, checkout: { plan: "pro", startedAt: NOW } }, { ...free, clouds: [listed({ status: "checkout" })] },+ { ...free, clouds: [listed({ status: "payment_problem" })] },+ { status: "unavailable", lastPlan: { tier: "pro", active: true } }, { status: "reauth-required", message: "expired", lastPlan: { tier: "pro", active: true } },+ { status: "reauth-required", message: "access-ended" }, { status: "signed-out", message: "restore-removed" },+ ];+ for (const account of cases) expect(whatsNewAudience(account), JSON.stringify(account)).toBe("other");+ expect(whatsNewSlides("other")).toEqual([]);+ });++ it("waits while the sign-in is restored or connects", () => {+ for (const account of [null, { status: "signed-out", message: "restoring" }, { status: "connecting" }] as const) {+ expect(whatsNewAudience(account as CloudAccountState | null)).toBeNull();+ expect(whatsNewView(account as CloudAccountState | null, OFFER)).toBe("loading");+ }+ expect(whatsNewSlides(null)).toEqual([]);+ });+});++describe("the slides' plans, from the Admin's offer", () => {+ it("names each plan with its price in the offer's numbers: Pro's money-back, Team's free trial", () => {+ expect(whatsNewView({ status: "signed-out" }, OFFER)).toEqual({ slides: ["pro", "team"], audience: "none", signedIn: false, staging: false,+ plans: { pro: { name: "Pro", terms: "Pro · $49/month + tax · 14-day money-back" }, team: { name: "Team", terms: "Free for 3 days, then $169/month + tax" } } });+ const priced: CloudOffer = { ...OFFER, refundDays: undefined, plans: OFFER.plans.map(plan => ({ ...plan, amount: plan.amount + 1000, trialDays: undefined })) };+ expect(whatsNewView(onPlan("pro", { staging: true }), priced)).toEqual({ slides: ["team"], audience: "own", signedIn: true, staging: true,+ plans: { team: { name: "Team", terms: "Team · $179/month + tax" } } });+ });++ it("leaves out a slide whose plan isn't sold, and shows nothing when neither is; waits for the offer, and offline waits for a later launch", () => {+ const noTeam = { ...OFFER, plans: OFFER.plans.filter(plan => plan.tier !== "team") };+ expect((whatsNewView(free, noTeam) as WhatsNewView).slides).toEqual(["pro"]);+ expect((whatsNewView(free, { ...OFFER, plans: OFFER.plans.filter(plan => plan.tier !== "pro") }) as WhatsNewView).slides).toEqual(["team"]);+ expect(whatsNewView(onPlan("pro"), noTeam)).toBe("none");+ expect(whatsNewView(free, undefined)).toBe("loading");+ expect(whatsNewView(free, null)).toBe("none");+ expect(whatsNewView(onPlan("team"), OFFER)).toBe("none");+ expect(whatsNewView(onPlan("team"), undefined), "nothing to wait for in a team").toBe("none");+ });+});++describe("the funnel", () => {+ it("each slide's links carry its own source tag, to the Cloud website or the staging Admin's", () => {+ expect(WHATS_NEW_SOURCES).toEqual({ pro: "app_whats_new_pro", team: "app_whats_new_team" });+ expect(newCloudUrl()).toBe("https://cloud.openmausbot.com/cloud?src=app_whats_new_pro");+ expect(startTeamUrl()).toBe("https://cloud.openmausbot.com/pro/buy?plan=team&src=app_whats_new_team");+ expect(newCloudUrl(true)).toBe("https://omb-cloud-staging.fly.dev/cloud?src=app_whats_new_pro");+ expect(startTeamUrl(true)).toBe("https://omb-cloud-staging.fly.dev/pro/buy?plan=team&src=app_whats_new_team");+ for (const tag of Object.values(WHATS_NEW_SOURCES)) expect(tag, "the Admin's tag form").toMatch(/^[a-z0-9_]{1,32}$/);+ });++ it("counts each step with its slide, who it was for and the campaign; never an email, a name or an address", () => {+ reportWhatsNew("seen", "pro", { audience: "none", signedIn: false });+ reportWhatsNew("start_team", "team", { audience: "own", signedIn: true });+ 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 }],+ ]);+ });+});diff --git a/src/lib/whats-new.ts b/src/lib/whats-new.tsnew file mode 100644index 0000000000..f6392229a0--- /dev/null+++ b/src/lib/whats-new.ts@@ -0,0 +1,76 @@+import type { CloudAccountState } from "../../electron/cloud-account.mjs";+import type { CloudOffer } from "../../electron/cloud-home.mjs";+import { CLOUD_TEAM_TIERS } from "../../electron/cloud-team-plan.mjs";+import { track } from "@/lib/analytics";+import { cloudPlanView, moneyBackShort, offerPlanLabel, trialRunning, usd } from "@/lib/cloud-plan";+import { t } from "@/lib/i18n";+import { WHATS_NEW_NOTICE } from "@/lib/notices";++export type WhatsNewSlide = "pro" | "team";+/** 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";++/** Each slide's tag on the Cloud's funnel: `src` on its links, and `source` on the checkout the app opens from it. */+export const WHATS_NEW_SOURCES = { pro: "app_whats_new_pro", team: "app_whats_new_team" } as const satisfies Record<WhatsNewSlide, string>;+const CLOUD_SITE = "https://cloud.openmausbot.com", STAGING_SITE = "https://omb-cloud-staging.fly.dev";++/** The Cloud website's Home, which shows the plans to someone without one; `src` on /cloud opens that page. */+export const newCloudUrl = (staging = false) => `${staging ? STAGING_SITE : CLOUD_SITE}/cloud?src=${WHATS_NEW_SOURCES.pro}`;+/** The Team plan's checkout, as the website's Get Team opens it: its free trial while the Admin offers one. */+export const startTeamUrl = (staging = false) => `${staging ? STAGING_SITE : CLOUD_SITE}/pro/buy?plan=team&src=${WHATS_NEW_SOURCES.team}`;++const listedCloud = (account: CloudAccountState, team: boolean) =>+ (account.clouds ?? []).some(cloud => cloud.managed !== false && cloud.status !== "ended" && (cloud.teamId !== null) === team);++export function whatsNewAudience(account: CloudAccountState | null): WhatsNewAudience | null {+ const view = cloudPlanView(account);+ if (view.kind === "unknown" || view.kind === "connecting") return null;+ if (view.kind === "signed-out") return "none";+ if (account?.status !== "connected") return "other";+ if (account.teams?.length || CLOUD_TEAM_TIERS.includes(account.entitlement?.tier ?? "") || listedCloud(account, true)) return "team";+ if (view.kind === "paid") return "own";+ if (view.kind !== "free" || account.checkout || account.adding || trialRunning(account.trial) || listedCloud(account, false)) return "other";+ return "none";+}++/** No plan: the new Cloud, then Team. A plan of one's own: Team. Anyone in a team, or not known: nothing. */+export function whatsNewSlides(audience: WhatsNewAudience | null): WhatsNewSlide[] {+ return audience === "none" ? ["pro", "team"] : audience === "own" ? ["team"] : [];+}++export interface WhatsNewView {+ slides: WhatsNewSlide[];+ audience: "none" | "own";+ signedIn: boolean;+ staging: boolean;+ /** Each slide's plan in the Admin's words: its name, and its price line. */+ plans: Partial<Record<WhatsNewSlide, { name: string; terms: string }>>;+}++/** "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" {+ const audience = whatsNewAudience(account);+ if (audience === null) return "loading";+ if (audience !== "none" && audience !== "own") return "none";+ if (offer === undefined) return "loading";+ const wanted = whatsNewSlides(audience);+ const plans: WhatsNewView["plans"] = {};+ for (const slide of wanted) {+ const plan = offer?.plans.find(entry => entry.tier === slide);+ if (!plan) continue;+ const name = offerPlanLabel(plan), price = usd(plan.amount / 100);+ plans[slide] = { name, terms: slide === "team" && plan.trialDays ? t("cloudBuy.card.trial", { days: plan.trialDays, price })+ : [t("cloudBuy.pay.planPaid", { plan: name, price }), offer ? moneyBackShort(offer) : null].filter(Boolean).join(" · ") };+ }+ const slides = wanted.filter(slide => plans[slide]);+ if (!slides.length) return "none";+ return { slides, audience, signedIn: account?.status === "connected", staging: account?.staging === true, plans };+}++export type WhatsNewAction = "seen" | "next" | "back" | "get_pro" | "see_cloud" | "start_team" | "not_now" | "close";++export function reportWhatsNew(action: WhatsNewAction, slide: WhatsNewSlide, view: Pick<WhatsNewView, "audience" | "signedIn">) {+ track("whats_new", { action, slide, audience: view.audience === "own" ? "own_plan" : "no_plan", signed_in: view.signedIn, campaign: WHATS_NEW_NOTICE });+}diff --git a/src/locales/de.json b/src/locales/de.jsonindex 23c8fbd854..88d9eda6d1 100644--- a/src/locales/de.json+++ b/src/locales/de.json@@ -212,9 +212,25 @@"cloudIntro.start": "Kostenlos testen","cloudIntro.howTo": "Zeig mir, wie","cloudIntro.later": "Du kannst jederzeit über das Menü oben in der Seitenleiste eine Cloud hinzufügen.",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "Auf Cloud Pro upgraden",- "cloudProPopup.manage": "Tarif verwalten",+ "whatsNew.eyebrow": "Was ist neu",+ "whatsNew.slideOf": "Folie {n} von {count}",+ "whatsNew.next": "Weiter",+ "whatsNew.back": "Zurück",+ "whatsNew.cloud.title": "Lerne die neue MausBot Cloud kennen",+ "whatsNew.cloud.body": "Deine Bots arbeiten weiter, auch wenn dieser Computer aus ist. Die neue Cloud-Website zeigt deine Clouds, dein Team, die Abrechnung und die Nutzung an einem Ort.",+ "whatsNew.cloud.see": "Neue Cloud ansehen",+ "whatsNew.cloud.pictureAlt": "Die Startseite der neuen Cloud-Website: jede Cloud mit Tarif und Status, die Nutzung in diesem Monat und die angemeldeten Apps.",+ "whatsNew.team.title": "Gemeinsame Bots für dein ganzes Team",+ "whatsNew.team.body": "Alle chatten mit denselben Bots, etwa einem Support-Bot und einem Vertriebs-Bot, und geben ihnen Aufgaben. Jede Person hat weiterhin ihren eigenen Stabschef und Posteingang.",+ "whatsNew.team.apps": "Verbundene Apps, einmal für alle eingerichtet",+ "whatsNew.team.groupChats": "Gruppenchats mit Teammitgliedern und Bots",+ "whatsNew.team.memory": "Ein Teamgedächtnis, das die Bots teilen",+ "whatsNew.team.handoff": "Bots geben einander im ganzen Team Arbeit weiter",+ "whatsNew.team.access": "Wähle, wer jeden Bot ansehen, mit ihm chatten oder ihn bearbeiten darf",+ "whatsNew.team.start": "Team starten",+ "whatsNew.team.support": "Support",+ "whatsNew.team.sales": "Vertrieb",+ "whatsNew.team.pictureAlt": "Ada, Ben, Cleo und Dara, jeweils mit eigenem Stabschef, teilen sich die Support- und Vertriebs-Bots des Teams in einer Team Cloud.","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.","cloudHowTo.skip": "Überspringen",diff --git a/src/locales/en.json b/src/locales/en.jsonindex e11c9309e9..c7096ba145 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -312,9 +312,25 @@"cloudIntro.start": "Start free trial","cloudIntro.howTo": "Show me how","cloudIntro.later": "You can add a Cloud any time from the menu at the top of the sidebar.",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "Upgrade to Cloud Pro",- "cloudProPopup.manage": "Manage plan",+ "whatsNew.eyebrow": "What's new",+ "whatsNew.slideOf": "Slide {n} of {count}",+ "whatsNew.next": "Next",+ "whatsNew.back": "Back",+ "whatsNew.cloud.title": "Meet the new MausBot Cloud",+ "whatsNew.cloud.body": "Your bots keep working when this computer is off. The new Cloud website puts your Clouds, team, billing and usage in one place.",+ "whatsNew.cloud.see": "See the new Cloud",+ "whatsNew.cloud.pictureAlt": "The new Cloud website's Home: each Cloud with its plan and status, this month's usage and the apps signed in.",+ "whatsNew.team.title": "Shared bots for your whole team",+ "whatsNew.team.body": "Everyone chats with the same bots, like one Support bot and one Sales bot, and hands them work. Each person still has their own Chief of Staff and inbox.",+ "whatsNew.team.apps": "Connected apps, set up once for everyone",+ "whatsNew.team.groupChats": "Group chats with teammates and bots together",+ "whatsNew.team.memory": "Team memory the bots share",+ "whatsNew.team.handoff": "Bots hand work to each other across the team",+ "whatsNew.team.access": "Choose who can see, chat with or edit each bot",+ "whatsNew.team.start": "Start a Team",+ "whatsNew.team.support": "Support",+ "whatsNew.team.sales": "Sales",+ "whatsNew.team.pictureAlt": "Ada, Ben, Cleo and Dara, each with their own Chief of Staff, share the team's Support and Sales bots on one Team Cloud.","cloudHowTo.title": "Add a Cloud from here","cloudHowTo.body": "Click this menu, then choose Add a Cloud. It's also where you switch between this computer and the Cloud.","cloudHowTo.skip": "Skip",diff --git a/src/locales/es.json b/src/locales/es.jsonindex aeb3d885b4..b7c463b9a3 100644--- a/src/locales/es.json+++ b/src/locales/es.json@@ -257,9 +257,25 @@"cloudIntro.start": "Empezar la prueba gratis","cloudIntro.howTo": "Muéstrame cómo","cloudIntro.later": "Puedes añadir una Cloud cuando quieras desde el menú de la parte superior de la barra lateral.",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "Pasar a Cloud Pro",- "cloudProPopup.manage": "Gestionar plan",+ "whatsNew.eyebrow": "Novedades",+ "whatsNew.slideOf": "Diapositiva {n} de {count}",+ "whatsNew.next": "Siguiente",+ "whatsNew.back": "Atrás",+ "whatsNew.cloud.title": "Conoce la nueva MausBot Cloud",+ "whatsNew.cloud.body": "Tus bots siguen trabajando con este equipo apagado. El nuevo sitio web de la Cloud reúne en un solo lugar tus Clouds, las personas de tu equipo, la facturación y el uso.",+ "whatsNew.cloud.see": "Ver la nueva Cloud",+ "whatsNew.cloud.pictureAlt": "La página de inicio del nuevo sitio web de la Cloud: cada Cloud con su plan y su estado, el uso de este mes y las apps con sesión iniciada.",+ "whatsNew.team.title": "Bots compartidos para todo tu equipo",+ "whatsNew.team.body": "Todos chatean con los mismos bots, como un bot de Soporte y uno de Ventas, y les pasan trabajo. Cada persona sigue teniendo su propio Jefe de gabinete y su bandeja de entrada.",+ "whatsNew.team.apps": "Apps conectadas, configuradas una vez para todos",+ "whatsNew.team.groupChats": "Chats de grupo con compañeros y bots juntos",+ "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.access": "Elige quién puede ver cada bot, chatear con él o editarlo",+ "whatsNew.team.start": "Crear un equipo",+ "whatsNew.team.support": "Soporte",+ "whatsNew.team.sales": "Ventas",+ "whatsNew.team.pictureAlt": "Ada, Ben, Cleo y Dara, cada uno con su propio Jefe de gabinete, comparten los bots de Soporte y Ventas del equipo en una Team Cloud.","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.","cloudHowTo.skip": "Omitir",diff --git a/src/locales/everyday-words.test.ts b/src/locales/everyday-words.test.tsindex 056d36a09c..91ec13ec71 100644--- a/src/locales/everyday-words.test.ts+++ b/src/locales/everyday-words.test.ts@@ -20,7 +20,7 @@ const EVERYDAY_PREFIXES: Record<string, readonly string[]> = {"computer.screen.", "vm.cloud.", "browser.",],"MausBot Cloud: buying it, setting it up, moving to it and sharing with it": [- "cloudBuy.", "cloudIntro.", "cloudTrial.", "cloudCancel.", "cloudSetup.", "cloudIntent.", "cloudNotice.", "cloudHowTo.", "cloudProPopup.",+ "cloudBuy.", "cloudIntro.", "cloudTrial.", "cloudCancel.", "cloudSetup.", "cloudIntent.", "cloudNotice.", "cloudHowTo.", "whatsNew.","cloudCredit.", "cloudPower.", "cloudSignIn.", "cloudAdd.", "cloudHome.", "cloudPhone.", "cloudAccount.", "pro.", "lending.","files.", "usageMeter.", "roomCard.",],diff --git a/src/locales/fr.json b/src/locales/fr.jsonindex ef94708c71..87e818a348 100644--- a/src/locales/fr.json+++ b/src/locales/fr.json@@ -207,9 +207,25 @@"cloudIntro.start": "Commencer l'essai gratuit","cloudIntro.howTo": "Montrez-moi","cloudIntro.later": "Vous pouvez ajouter un Cloud à tout moment depuis le menu en haut de la barre latérale.",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "Passer à Cloud Pro",- "cloudProPopup.manage": "Gérer le forfait",+ "whatsNew.eyebrow": "Nouveautés",+ "whatsNew.slideOf": "Diapositive {n} sur {count}",+ "whatsNew.next": "Suivant",+ "whatsNew.back": "Retour",+ "whatsNew.cloud.title": "Découvrez le nouveau MausBot Cloud",+ "whatsNew.cloud.body": "Vos bots continuent de travailler quand cet ordinateur est éteint. Le nouveau site du Cloud réunit vos Clouds, votre équipe, la facturation et l'utilisation au même endroit.",+ "whatsNew.cloud.see": "Voir le nouveau Cloud",+ "whatsNew.cloud.pictureAlt": "L'accueil du nouveau site du Cloud : chaque Cloud avec son forfait et son état, l'utilisation de ce mois-ci et les applications connectées.",+ "whatsNew.team.title": "Des bots partagés pour toute votre équipe",+ "whatsNew.team.body": "Tout le monde discute avec les mêmes bots, par exemple un bot Support et un bot Ventes, et leur confie du travail. Chaque personne garde son propre Chef de cabinet et sa boîte de réception.",+ "whatsNew.team.apps": "Applications connectées, configurées une fois pour tous",+ "whatsNew.team.groupChats": "Discussions de groupe entre coéquipiers et bots",+ "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.access": "Choisissez qui peut voir chaque bot, discuter avec lui ou le modifier",+ "whatsNew.team.start": "Créer une équipe",+ "whatsNew.team.support": "Support",+ "whatsNew.team.sales": "Ventes",+ "whatsNew.team.pictureAlt": "Ada, Ben, Cleo et Dara, chacun avec son propre Chef de cabinet, partagent les bots Support et Ventes de l'équipe sur un même Team Cloud.","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.","cloudHowTo.skip": "Passer",diff --git a/src/locales/hi.json b/src/locales/hi.jsonindex a12d223d34..5dc1b29ed6 100644--- a/src/locales/hi.json+++ b/src/locales/hi.json@@ -207,9 +207,25 @@"cloudIntro.start": "मुफ़्त ट्रायल शुरू करें","cloudIntro.howTo": "मुझे दिखाएँ कैसे","cloudIntro.later": "आप साइडबार में सबसे ऊपर वाले मेनू से कभी भी Cloud जोड़ सकते हैं।",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "Cloud Pro में अपग्रेड करें",- "cloudProPopup.manage": "प्लान प्रबंधित करें",+ "whatsNew.eyebrow": "नया क्या है",+ "whatsNew.slideOf": "{count} में से स्लाइड {n}",+ "whatsNew.next": "आगे",+ "whatsNew.back": "पीछे",+ "whatsNew.cloud.title": "नए MausBot Cloud से मिलिए",+ "whatsNew.cloud.body": "यह कंप्यूटर बंद होने पर भी आपके बॉट काम करते रहते हैं। नई Cloud वेबसाइट पर आपके Clouds, टीम, बिलिंग और उपयोग एक ही जगह मिलते हैं।",+ "whatsNew.cloud.see": "नया Cloud देखें",+ "whatsNew.cloud.pictureAlt": "नई Cloud वेबसाइट का होम: हर Cloud का प्लान और स्थिति, इस महीने का उपयोग और साइन इन किए गए ऐप।",+ "whatsNew.team.title": "आपकी पूरी टीम के लिए साझा बॉट",+ "whatsNew.team.body": "सभी एक ही बॉट से चैट करते हैं और उन्हें काम सौंपते हैं, जैसे एक सपोर्ट बॉट और एक सेल्स बॉट। हर व्यक्ति का अपना चीफ़ ऑफ़ स्टाफ़ और इनबॉक्स बना रहता है।",+ "whatsNew.team.apps": "जुड़े हुए ऐप, सबके लिए एक बार सेट अप",+ "whatsNew.team.groupChats": "टीम के साथियों और बॉट के साथ ग्रुप चैट",+ "whatsNew.team.memory": "टीम की मेमोरी, जिसे बॉट साझा करते हैं",+ "whatsNew.team.handoff": "बॉट पूरी टीम में एक-दूसरे को काम सौंपते हैं",+ "whatsNew.team.access": "चुनें कि हर बॉट को कौन देख सकता है, उससे चैट कर सकता है या उसे बदल सकता है",+ "whatsNew.team.start": "टीम शुरू करें",+ "whatsNew.team.support": "सपोर्ट",+ "whatsNew.team.sales": "सेल्स",+ "whatsNew.team.pictureAlt": "Ada, Ben, Cleo और Dara, हर किसी का अपना चीफ़ ऑफ़ स्टाफ़ है, और वे एक Team Cloud पर टीम के सपोर्ट और सेल्स बॉट साझा करते हैं।","cloudHowTo.title": "यहाँ से Cloud जोड़ें","cloudHowTo.body": "इस मेनू पर क्लिक करें, फिर \"Add a Cloud\" चुनें। यहीं से आप इस कंप्यूटर और Cloud के बीच भी बदलते हैं।","cloudHowTo.skip": "छोड़ें",diff --git a/src/locales/it.json b/src/locales/it.jsonindex 30600e6f00..9d8e028b8b 100644--- a/src/locales/it.json+++ b/src/locales/it.json@@ -262,8 +262,25 @@"cloudIntro.start": "Inizia la prova gratuita","cloudIntro.howTo": "Mostrami come","cloudIntro.later": "Puoi aggiungere un Cloud quando vuoi, dal menu in cima alla barra laterale.",- "cloudProPopup.upgrade": "Passa a Cloud Pro",- "cloudProPopup.manage": "Gestisci il piano",+ "whatsNew.eyebrow": "Novità",+ "whatsNew.slideOf": "Slide {n} di {count}",+ "whatsNew.next": "Avanti",+ "whatsNew.back": "Indietro",+ "whatsNew.cloud.title": "Scopri il nuovo MausBot Cloud",+ "whatsNew.cloud.body": "I tuoi bot continuano a lavorare anche con questo computer spento. Il nuovo sito del Cloud riunisce i tuoi Cloud, il team, la fatturazione e l'utilizzo in un unico posto.",+ "whatsNew.cloud.see": "Vedi il nuovo Cloud",+ "whatsNew.cloud.pictureAlt": "La home del nuovo sito del Cloud: ogni Cloud con il suo piano e il suo stato, l'utilizzo di questo mese e le app collegate.",+ "whatsNew.team.title": "Bot condivisi per tutto il team",+ "whatsNew.team.body": "Tutti chattano con gli stessi bot, come un bot Assistenza e un bot Vendite, e affidano loro il lavoro. Ognuno mantiene il proprio Capo di gabinetto e la propria posta in arrivo.",+ "whatsNew.team.apps": "App collegate, configurate una volta per tutti",+ "whatsNew.team.groupChats": "Chat di gruppo con colleghi e bot insieme",+ "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.access": "Scegli chi può vedere ogni bot, chattare con lui o modificarlo",+ "whatsNew.team.start": "Crea un team",+ "whatsNew.team.support": "Assistenza",+ "whatsNew.team.sales": "Vendite",+ "whatsNew.team.pictureAlt": "Ada, Ben, Cleo e Dara, ognuno con il proprio Capo di gabinetto, condividono i bot Assistenza e Vendite del team su un unico Team Cloud.","cloudHowTo.title": "Aggiungi un Cloud da qui","cloudHowTo.body": "Fai clic su questo menu, poi scegli Aggiungi un Cloud. È anche lì che passi da questo computer al Cloud.","cloudHowTo.skip": "Salta",diff --git a/src/locales/ja.json b/src/locales/ja.jsonindex a43e2caa2b..537c258f5e 100644--- a/src/locales/ja.json+++ b/src/locales/ja.json@@ -264,9 +264,25 @@"cloudIntro.start": "無料トライアルを始める","cloudIntro.howTo": "やり方を見る","cloudIntro.later": "Cloud はサイドバー上部のメニューからいつでも追加できます。",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "Cloud Pro にアップグレード",- "cloudProPopup.manage": "プランを管理",+ "whatsNew.eyebrow": "新機能",+ "whatsNew.slideOf": "スライド {n}/{count}",+ "whatsNew.next": "次へ",+ "whatsNew.back": "戻る",+ "whatsNew.cloud.title": "新しい MausBot Cloud のご紹介",+ "whatsNew.cloud.body": "このコンピューターの電源が切れていても、ボットは働き続けます。新しい Cloud サイトでは、Cloud、チーム、請求、使用量をひとつの場所で確認できます。",+ "whatsNew.cloud.see": "新しい Cloud を見る",+ "whatsNew.cloud.pictureAlt": "新しい Cloud サイトのホーム画面:各 Cloud のプランと状態、今月の使用量、サインイン中のアプリ。",+ "whatsNew.team.title": "チーム全員で使える共有ボット",+ "whatsNew.team.body": "全員が同じボット(たとえばサポートボットと営業ボット)とチャットし、仕事を任せられます。一人ひとりの専用のチーフ・オブ・スタッフと受信箱もそのままです。",+ "whatsNew.team.apps": "連携アプリは一度の設定で全員が使えます",+ "whatsNew.team.groupChats": "チームメンバーとボットが一緒に参加するグループチャット",+ "whatsNew.team.memory": "ボットが共有するチームのメモリー",+ "whatsNew.team.handoff": "ボット同士がチーム全体で仕事を引き継ぎます",+ "whatsNew.team.access": "ボットごとに、閲覧・チャット・編集できる人を選べます",+ "whatsNew.team.start": "Team を始める",+ "whatsNew.team.support": "サポート",+ "whatsNew.team.sales": "営業",+ "whatsNew.team.pictureAlt": "Ada、Ben、Cleo、Dara がそれぞれ自分のチーフ・オブ・スタッフを持ち、1 つの Team Cloud でチームのサポートボットと営業ボットを共有しています。","cloudHowTo.title": "ここから Cloud を追加できます","cloudHowTo.body": "このメニューをクリックして、「Add a Cloud」を選んでください。このコンピューターと Cloud の切り替えもここで行います。","cloudHowTo.skip": "スキップ",diff --git a/src/locales/ko.json b/src/locales/ko.jsonindex e9f84bdbdc..bbb49c2c1c 100644--- a/src/locales/ko.json+++ b/src/locales/ko.json@@ -307,9 +307,25 @@"cloudIntro.start": "무료 체험 시작","cloudIntro.howTo": "방법 보기","cloudIntro.later": "사이드바 맨 위 메뉴에서 언제든 클라우드를 추가할 수 있어요.",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "Cloud Pro로 업그레이드",- "cloudProPopup.manage": "요금제 관리",+ "whatsNew.eyebrow": "새로운 기능",+ "whatsNew.slideOf": "슬라이드 {n}/{count}",+ "whatsNew.next": "다음",+ "whatsNew.back": "뒤로",+ "whatsNew.cloud.title": "새로워진 MausBot Cloud를 만나 보세요",+ "whatsNew.cloud.body": "이 컴퓨터가 꺼져 있어도 봇은 계속 일해요. 새 Cloud 웹사이트에서 Cloud, 팀, 결제, 사용량을 한곳에서 볼 수 있어요.",+ "whatsNew.cloud.see": "새 Cloud 보기",+ "whatsNew.cloud.pictureAlt": "새 Cloud 웹사이트의 홈: 각 Cloud의 요금제와 상태, 이번 달 사용량, 로그인된 앱.",+ "whatsNew.team.title": "팀 전체가 함께 쓰는 봇",+ "whatsNew.team.body": "모두가 같은 봇과 채팅하고 일을 맡겨요. 예를 들면 고객 지원 봇 하나와 영업 봇 하나요. 각자 자신의 비서실장과 받은편지함은 그대로 있어요.",+ "whatsNew.team.apps": "연결된 앱은 한 번만 설정하면 모두가 써요",+ "whatsNew.team.groupChats": "팀원과 봇이 함께하는 그룹 채팅",+ "whatsNew.team.memory": "봇들이 함께 쓰는 팀 메모리",+ "whatsNew.team.handoff": "봇끼리 팀 전체에서 일을 넘겨줘요",+ "whatsNew.team.access": "봇마다 누가 보고, 대화하고, 편집할 수 있는지 정해요",+ "whatsNew.team.start": "팀 시작하기",+ "whatsNew.team.support": "고객 지원",+ "whatsNew.team.sales": "영업",+ "whatsNew.team.pictureAlt": "Ada, Ben, Cleo, Dara가 각자 자신의 비서실장을 두고 하나의 Team Cloud에서 팀의 고객 지원 봇과 영업 봇을 함께 써요.","cloudHowTo.title": "여기서 클라우드를 추가하세요","cloudHowTo.body": "이 메뉴를 누른 뒤 클라우드 추가를 고르세요. 이 컴퓨터와 클라우드를 오갈 때도 이 메뉴를 써요.","cloudHowTo.skip": "건너뛰기",diff --git a/src/locales/pl.json b/src/locales/pl.jsonindex b09b407bc3..34178146e3 100644--- a/src/locales/pl.json+++ b/src/locales/pl.json@@ -264,9 +264,25 @@"cloudIntro.start": "Rozpocznij bezpłatny okres próbny","cloudIntro.howTo": "Pokaż, jak to działa","cloudIntro.later": "Chmurę możesz dodać w dowolnym momencie z menu na górze panelu bocznego.",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "Przejdź na Cloud Pro",- "cloudProPopup.manage": "Zarządzaj planem",+ "whatsNew.eyebrow": "Co nowego",+ "whatsNew.slideOf": "Slajd {n} z {count}",+ "whatsNew.next": "Dalej",+ "whatsNew.back": "Wstecz",+ "whatsNew.cloud.title": "Poznaj nową MausBot Cloud",+ "whatsNew.cloud.body": "Twoje boty pracują dalej, gdy ten komputer jest wyłączony. Nowa strona Chmury zbiera twoje chmury, zespół, rozliczenia i zużycie w jednym miejscu.",+ "whatsNew.cloud.see": "Zobacz nową Chmurę",+ "whatsNew.cloud.pictureAlt": "Strona główna nowej witryny Chmury: każda chmura z planem i stanem, zużycie w tym miesiącu i zalogowane aplikacje.",+ "whatsNew.team.title": "Wspólne boty dla całego zespołu",+ "whatsNew.team.body": "Wszyscy rozmawiają z tymi samymi botami, na przykład jednym botem wsparcia i jednym botem sprzedaży, i zlecają im pracę. Każda osoba nadal ma własnego Szefa sztabu i własną skrzynkę.",+ "whatsNew.team.apps": "Połączone aplikacje, skonfigurowane raz dla wszystkich",+ "whatsNew.team.groupChats": "Czaty grupowe z członkami zespołu i botami razem",+ "whatsNew.team.memory": "Pamięć zespołu, którą dzielą boty",+ "whatsNew.team.handoff": "Boty przekazują sobie pracę w całym zespole",+ "whatsNew.team.access": "Wybierz, kto może wyświetlać każdego bota, rozmawiać z nim lub go edytować",+ "whatsNew.team.start": "Załóż zespół",+ "whatsNew.team.support": "Wsparcie",+ "whatsNew.team.sales": "Sprzedaż",+ "whatsNew.team.pictureAlt": "Ada, Ben, Cleo i Dara, każde z własnym Szefem sztabu, dzielą boty wsparcia i sprzedaży zespołu w jednej Team Cloud.","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ą.","cloudHowTo.skip": "Pomiń",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex 1a7415f498..6432bfef13 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -256,9 +256,25 @@"cloudIntro.start": "Começar teste grátis","cloudIntro.howTo": "Mostre como","cloudIntro.later": "Você pode adicionar um Cloud a qualquer momento pelo menu no topo da barra lateral.",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "Fazer upgrade para o Cloud Pro",- "cloudProPopup.manage": "Gerenciar plano",+ "whatsNew.eyebrow": "Novidades",+ "whatsNew.slideOf": "Slide {n} de {count}",+ "whatsNew.next": "Avançar",+ "whatsNew.back": "Voltar",+ "whatsNew.cloud.title": "Conheça o novo MausBot Cloud",+ "whatsNew.cloud.body": "Seus bots continuam trabalhando com este computador desligado. O novo site do Cloud reúne seus Clouds, sua equipe, o faturamento e o uso em um só lugar.",+ "whatsNew.cloud.see": "Ver o novo Cloud",+ "whatsNew.cloud.pictureAlt": "A página inicial do novo site do Cloud: cada Cloud com seu plano e status, o uso deste mês e os apps conectados.",+ "whatsNew.team.title": "Bots compartilhados para toda a sua equipe",+ "whatsNew.team.body": "Todos conversam com os mesmos bots, como um bot de Suporte e um de Vendas, e passam trabalho para eles. Cada pessoa continua com seu próprio Chefe de gabinete e sua caixa de entrada.",+ "whatsNew.team.apps": "Apps conectados, configurados uma vez para todos",+ "whatsNew.team.groupChats": "Chats em grupo com colegas e bots juntos",+ "whatsNew.team.memory": "Memória da equipe compartilhada pelos bots",+ "whatsNew.team.handoff": "Os bots passam trabalho uns para os outros em toda a equipe",+ "whatsNew.team.access": "Escolha quem pode ver cada bot, conversar com ele ou editá-lo",+ "whatsNew.team.start": "Criar uma equipe",+ "whatsNew.team.support": "Suporte",+ "whatsNew.team.sales": "Vendas",+ "whatsNew.team.pictureAlt": "Ada, Ben, Cleo e Dara, cada um com seu próprio Chefe de gabinete, compartilham os bots de Suporte e Vendas da equipe em um Team Cloud.","cloudHowTo.title": "Adicione um Cloud por aqui","cloudHowTo.body": "Clique neste menu e escolha \"Add a Cloud\". É também onde você alterna entre este computador e o Cloud.","cloudHowTo.skip": "Pular",diff --git a/src/locales/ru.json b/src/locales/ru.jsonindex d73eb85587..10fbeb7285 100644--- a/src/locales/ru.json+++ b/src/locales/ru.json@@ -264,9 +264,25 @@"cloudIntro.start": "Начать бесплатный пробный период","cloudIntro.howTo": "Показать, как","cloudIntro.later": "Вы можете добавить облако в любой момент из меню в верхней части боковой панели.",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "Перейти на Cloud Pro",- "cloudProPopup.manage": "Управлять тарифом",+ "whatsNew.eyebrow": "Что нового",+ "whatsNew.slideOf": "Слайд {n} из {count}",+ "whatsNew.next": "Далее",+ "whatsNew.back": "Назад",+ "whatsNew.cloud.title": "Знакомьтесь: новый MausBot Cloud",+ "whatsNew.cloud.body": "Ваши боты продолжают работать, даже когда этот компьютер выключен. Новый сайт Cloud собирает ваши облака, команду, оплату и использование в одном месте.",+ "whatsNew.cloud.see": "Посмотреть новый Cloud",+ "whatsNew.cloud.pictureAlt": "Главная страница нового сайта Cloud: каждое облако с тарифом и статусом, использование за этот месяц и приложения, в которые выполнен вход.",+ "whatsNew.team.title": "Общие боты для всей команды",+ "whatsNew.team.body": "Все общаются с одними и теми же ботами, например с ботом поддержки и ботом продаж, и передают им работу. У каждого по-прежнему свой начальник штаба и свои входящие.",+ "whatsNew.team.apps": "Подключённые приложения, настроенные один раз для всех",+ "whatsNew.team.groupChats": "Групповые чаты с коллегами и ботами вместе",+ "whatsNew.team.memory": "Общая командная память ботов",+ "whatsNew.team.handoff": "Боты передают друг другу работу по всей команде",+ "whatsNew.team.access": "Выбирайте, кто может просматривать каждого бота, общаться с ним или редактировать его",+ "whatsNew.team.start": "Создать команду",+ "whatsNew.team.support": "Поддержка",+ "whatsNew.team.sales": "Продажи",+ "whatsNew.team.pictureAlt": "Ada, Ben, Cleo и Dara, у каждого свой начальник штаба, вместе пользуются ботами поддержки и продаж команды в одном Team Cloud.","cloudHowTo.title": "Добавьте облако отсюда","cloudHowTo.body": "Нажмите это меню, затем выберите «Добавить облако». Здесь же вы переключаетесь между этим компьютером и облаком.","cloudHowTo.skip": "Пропустить",diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.jsonindex e49bcfac80..769d5ff0d0 100644--- a/src/locales/source-hashes.json+++ b/src/locales/source-hashes.json@@ -26,9 +26,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.title": "0d8d4162162751bf1bb4301384d196bf3797886e589f05326eb889090ced1bd9",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",@@ -2636,9 +2633,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.title": "0d8d4162162751bf1bb4301384d196bf3797886e589f05326eb889090ced1bd9",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",@@ -8053,9 +8047,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.title": "0d8d4162162751bf1bb4301384d196bf3797886e589f05326eb889090ced1bd9",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",@@ -10571,9 +10562,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.title": "0d8d4162162751bf1bb4301384d196bf3797886e589f05326eb889090ced1bd9",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",@@ -13148,9 +13136,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.title": "0d8d4162162751bf1bb4301384d196bf3797886e589f05326eb889090ced1bd9",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",@@ -19531,9 +19516,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.title": "0d8d4162162751bf1bb4301384d196bf3797886e589f05326eb889090ced1bd9",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",@@ -25629,9 +25611,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.title": "0d8d4162162751bf1bb4301384d196bf3797886e589f05326eb889090ced1bd9",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",@@ -29029,9 +29008,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.title": "0d8d4162162751bf1bb4301384d196bf3797886e589f05326eb889090ced1bd9",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",@@ -33348,9 +33324,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.title": "0d8d4162162751bf1bb4301384d196bf3797886e589f05326eb889090ced1bd9",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",@@ -36344,9 +36317,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.title": "0d8d4162162751bf1bb4301384d196bf3797886e589f05326eb889090ced1bd9",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",@@ -41303,9 +41273,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.title": "0d8d4162162751bf1bb4301384d196bf3797886e589f05326eb889090ced1bd9",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",@@ -46286,9 +46253,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.title": "0d8d4162162751bf1bb4301384d196bf3797886e589f05326eb889090ced1bd9",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",@@ -52574,9 +52538,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.title": "0d8d4162162751bf1bb4301384d196bf3797886e589f05326eb889090ced1bd9",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",@@ -58941,8 +58902,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",@@ -65176,9 +65135,6 @@"cloudIntro.start": "b1effd1ffed357a2f09239fcaefb22e64db46670b341b9699e7c7a938607d7d3","cloudIntro.howTo": "5a519f3587fca0e650cab39e7a2ba443423551c1a8b6e26b4b8d9174781adfbe","cloudIntro.later": "f84b5b5f166d6a9874c6f13e1126be7f99303e39a3d8548f0a205e3613a289e7",- "cloudProPopup.title": "0d8d4162162751bf1bb4301384d196bf3797886e589f05326eb889090ced1bd9",- "cloudProPopup.upgrade": "e062681f7d85efc72024f08d4c5116e5cc90dbd55831277db96063facf57fbdb",- "cloudProPopup.manage": "2d5ab37c33fcbccbda2ca6c873b9c402f21264562a239d181ee4e41a37ac81bd","cloudHowTo.title": "9ebc57087bafbcfb30d45df5e57369ad24afd902ac80760d4b109c923a385bae","cloudHowTo.body": "d1da01656556c6a32867e5c5be2bc0748e9e6a5b7a4d22a0c04c747e6a24a700","cloudHowTo.skip": "28d03596d24eeb4eab2d6fe21ca1cb95be7cb1fa6f92933db05e2cc4f4cdfa06",diff --git a/src/locales/tr.json b/src/locales/tr.jsonindex 610f041ca1..dced77fce0 100644--- a/src/locales/tr.json+++ b/src/locales/tr.json@@ -242,9 +242,25 @@"cloudIntro.start": "Ücretsiz denemeyi başlat","cloudIntro.howTo": "Nasıl yapılacağını göster","cloudIntro.later": "İstediğiniz zaman kenar çubuğunun üstündeki menüden bir Cloud ekleyebilirsiniz.",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "Cloud Pro'ya yükselt",- "cloudProPopup.manage": "Planı yönet",+ "whatsNew.eyebrow": "Yenilikler",+ "whatsNew.slideOf": "Slayt {n}/{count}",+ "whatsNew.next": "İleri",+ "whatsNew.back": "Geri",+ "whatsNew.cloud.title": "Yeni MausBot Cloud ile tanışın",+ "whatsNew.cloud.body": "Bu bilgisayar kapalıyken de botlarınız çalışmaya devam eder. Yeni Cloud web sitesi Cloud'larınızı, ekibinizi, faturalandırmayı ve kullanımı tek bir yerde toplar.",+ "whatsNew.cloud.see": "Yeni Cloud'u görün",+ "whatsNew.cloud.pictureAlt": "Yeni Cloud web sitesinin ana sayfası: her Cloud planı ve durumuyla, bu ayın kullanımı ve oturum açılmış uygulamalar.",+ "whatsNew.team.title": "Tüm ekibiniz için ortak botlar",+ "whatsNew.team.body": "Herkes aynı botlarla, örneğin bir Destek botu ve bir Satış botuyla sohbet eder ve onlara iş verir. Her kişinin yine kendi Kurmay Başkanı ve gelen kutusu olur.",+ "whatsNew.team.apps": "Bağlı uygulamalar, herkes için bir kez kurulur",+ "whatsNew.team.groupChats": "Ekip arkadaşları ve botlarla birlikte grup sohbetleri",+ "whatsNew.team.memory": "Botların paylaştığı ekip belleği",+ "whatsNew.team.handoff": "Botlar tüm ekipte birbirine iş devreder",+ "whatsNew.team.access": "Her botu kimin görüntüleyebileceğini, onunla sohbet edebileceğini veya düzenleyebileceğini seçin",+ "whatsNew.team.start": "Ekip oluştur",+ "whatsNew.team.support": "Destek",+ "whatsNew.team.sales": "Satış",+ "whatsNew.team.pictureAlt": "Ada, Ben, Cleo ve Dara, her biri kendi Kurmay Başkanıyla, tek bir Team Cloud'da ekibin Destek ve Satış botlarını paylaşıyor.","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.","cloudHowTo.skip": "Atla",diff --git a/src/locales/uk.json b/src/locales/uk.jsonindex 4b5210a24d..984d76c512 100644--- a/src/locales/uk.json+++ b/src/locales/uk.json@@ -207,9 +207,25 @@"cloudIntro.start": "Почати безкоштовний період","cloudIntro.howTo": "Покажіть як","cloudIntro.later": "Додати Cloud можна будь-коли з меню вгорі бічної панелі.",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "Перейти на Cloud Pro",- "cloudProPopup.manage": "Керувати планом",+ "whatsNew.eyebrow": "Що нового",+ "whatsNew.slideOf": "Слайд {n} з {count}",+ "whatsNew.next": "Далі",+ "whatsNew.back": "Назад",+ "whatsNew.cloud.title": "Знайомтеся з новим MausBot Cloud",+ "whatsNew.cloud.body": "Ваші боти працюють, навіть коли цей комп’ютер вимкнено. Новий сайт Cloud збирає ваші Clouds, команду, оплату та використання в одному місці.",+ "whatsNew.cloud.see": "Переглянути новий Cloud",+ "whatsNew.cloud.pictureAlt": "Головна сторінка нового сайту Cloud: кожен Cloud із планом і станом, використання за цей місяць і застосунки, у які виконано вхід.",+ "whatsNew.team.title": "Спільні боти для всієї команди",+ "whatsNew.team.body": "Усі спілкуються з тими самими ботами, наприклад одним ботом підтримки й одним ботом продажів, і доручають їм роботу. У кожного й далі свій керівник штабу та свої вхідні.",+ "whatsNew.team.apps": "Підключені застосунки, налаштовані один раз для всіх",+ "whatsNew.team.groupChats": "Групові чати з колегами та ботами разом",+ "whatsNew.team.memory": "Командна пам’ять, спільна для ботів",+ "whatsNew.team.handoff": "Боти передають одне одному роботу в усій команді",+ "whatsNew.team.access": "Обирайте, хто може переглядати кожного бота, спілкуватися з ним чи редагувати його",+ "whatsNew.team.start": "Створити команду",+ "whatsNew.team.support": "Підтримка",+ "whatsNew.team.sales": "Продажі",+ "whatsNew.team.pictureAlt": "Ada, Ben, Cleo і Dara, кожен зі своїм керівником штабу, разом користуються ботами підтримки й продажів команди в одному Team Cloud.","cloudHowTo.title": "Додайте Cloud звідси","cloudHowTo.body": "Клацніть це меню, а потім виберіть «Add a Cloud». Тут також можна перемикатися між цим комп’ютером і Cloud.","cloudHowTo.skip": "Пропустити",diff --git a/src/locales/vi.json b/src/locales/vi.jsonindex f8f7d8a423..3c61e0f703 100644--- a/src/locales/vi.json+++ b/src/locales/vi.json@@ -242,9 +242,25 @@"cloudIntro.start": "Bắt đầu dùng thử miễn phí","cloudIntro.howTo": "Hướng dẫn tôi","cloudIntro.later": "Bạn có thể thêm Cloud bất kỳ lúc nào từ menu ở đầu thanh bên.",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "Nâng cấp lên Cloud Pro",- "cloudProPopup.manage": "Quản lý gói",+ "whatsNew.eyebrow": "Có gì mới",+ "whatsNew.slideOf": "Trang {n}/{count}",+ "whatsNew.next": "Tiếp",+ "whatsNew.back": "Quay lại",+ "whatsNew.cloud.title": "Làm quen với MausBot Cloud mới",+ "whatsNew.cloud.body": "Các bot của bạn vẫn tiếp tục làm việc khi máy tính này đã tắt. Trang web Cloud mới gom các Cloud, nhóm, thanh toán và mức sử dụng của bạn về một chỗ.",+ "whatsNew.cloud.see": "Xem Cloud mới",+ "whatsNew.cloud.pictureAlt": "Trang chủ của trang web Cloud mới: từng Cloud kèm gói và trạng thái, mức sử dụng tháng này và các ứng dụng đã đăng nhập.",+ "whatsNew.team.title": "Bot dùng chung cho cả nhóm",+ "whatsNew.team.body": "Mọi người cùng trò chuyện với những bot giống nhau, như một bot Hỗ trợ và một bot Bán hàng, và giao việc cho chúng. Mỗi người vẫn có Chief of Staff và hộp thư riêng.",+ "whatsNew.team.apps": "Ứng dụng đã kết nối, thiết lập một lần cho mọi người",+ "whatsNew.team.groupChats": "Group chat cùng đồng đội và bot",+ "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.access": "Chọn ai có thể xem, trò chuyện hoặc chỉnh sửa từng bot",+ "whatsNew.team.start": "Tạo nhóm",+ "whatsNew.team.support": "Hỗ trợ",+ "whatsNew.team.sales": "Bán hàng",+ "whatsNew.team.pictureAlt": "Ada, Ben, Cleo và Dara, mỗi người có Chief of Staff riêng, dùng chung bot Hỗ trợ và Bán hàng của nhóm trên một Team Cloud.","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.","cloudHowTo.skip": "Bỏ qua",diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.jsonindex 0926473b76..0917359a20 100644--- a/src/locales/zh-tw.json+++ b/src/locales/zh-tw.json@@ -238,9 +238,25 @@"cloudIntro.start": "開始免費試用","cloudIntro.howTo": "教我怎麼做","cloudIntro.later": "你隨時可以從側邊欄頂端的選單新增 Cloud。",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "升級至 Cloud Pro",- "cloudProPopup.manage": "管理方案",+ "whatsNew.eyebrow": "新功能",+ "whatsNew.slideOf": "第 {n} 頁,共 {count} 頁",+ "whatsNew.next": "下一步",+ "whatsNew.back": "返回",+ "whatsNew.cloud.title": "全新的 MausBot Cloud",+ "whatsNew.cloud.body": "即使這台電腦關機,你的機器人也會繼續工作。全新的 Cloud 網站把你的各個 Cloud、團隊、帳單和用量集中在一處。",+ "whatsNew.cloud.see": "查看全新 Cloud",+ "whatsNew.cloud.pictureAlt": "全新 Cloud 網站的首頁:每個 Cloud 的方案和狀態、本月用量,以及已登入的應用程式。",+ "whatsNew.team.title": "整個團隊共用的機器人",+ "whatsNew.team.body": "大家和同一批機器人聊天並把工作交給它們,例如一個客服機器人和一個業務機器人。每個人依然擁有自己的幕僚長和收件匣。",+ "whatsNew.team.apps": "已連線的應用程式只需設定一次,所有人都能用",+ "whatsNew.team.groupChats": "隊友和機器人一起參與的聊天室",+ "whatsNew.team.memory": "機器人共用的團隊記憶",+ "whatsNew.team.handoff": "機器人在整個團隊中互相交接工作",+ "whatsNew.team.access": "為每個機器人選擇誰可以檢視、聊天或編輯",+ "whatsNew.team.start": "建立團隊",+ "whatsNew.team.support": "客服",+ "whatsNew.team.sales": "業務",+ "whatsNew.team.pictureAlt": "Ada、Ben、Cleo 和 Dara 各有自己的幕僚長,在同一個 Team Cloud 上共用團隊的客服機器人和業務機器人。","cloudHowTo.title": "從這裡新增 Cloud","cloudHowTo.body": "按一下這個選單,然後選擇「Add a Cloud」。你也可以在這裡切換這台電腦和 Cloud。","cloudHowTo.skip": "略過",diff --git a/src/locales/zh.json b/src/locales/zh.jsonindex 558b06b408..16cf7c79c7 100644--- a/src/locales/zh.json+++ b/src/locales/zh.json@@ -228,9 +228,25 @@"cloudIntro.start": "开始免费试用","cloudIntro.howTo": "教我怎么做","cloudIntro.later": "你随时可以从侧边栏顶部的菜单添加 Cloud。",- "cloudProPopup.title": "MausBot Cloud Pro",- "cloudProPopup.upgrade": "升级到 Cloud Pro",- "cloudProPopup.manage": "管理方案",+ "whatsNew.eyebrow": "新功能",+ "whatsNew.slideOf": "第 {n} 页,共 {count} 页",+ "whatsNew.next": "下一步",+ "whatsNew.back": "返回",+ "whatsNew.cloud.title": "全新的 MausBot Cloud",+ "whatsNew.cloud.body": "即使这台电脑关机,你的机器人也会继续工作。全新的 Cloud 网站把你的各个 Cloud、团队、账单和用量集中在一处。",+ "whatsNew.cloud.see": "查看全新 Cloud",+ "whatsNew.cloud.pictureAlt": "全新 Cloud 网站的主页:每个 Cloud 的方案和状态、本月用量,以及已登录的应用。",+ "whatsNew.team.title": "整个团队共享的机器人",+ "whatsNew.team.body": "大家与同一批机器人聊天并把工作交给它们,例如一个客服机器人和一个销售机器人。每个人依然拥有自己的总协调机器人和收件箱。",+ "whatsNew.team.apps": "已连接应用只需设置一次,所有人都能用",+ "whatsNew.team.groupChats": "队友和机器人一起参与的群组聊天",+ "whatsNew.team.memory": "机器人共享的团队记忆",+ "whatsNew.team.handoff": "机器人之间在整个团队中互相交接工作",+ "whatsNew.team.access": "为每个机器人选择谁可以查看、聊天或编辑",+ "whatsNew.team.start": "创建团队",+ "whatsNew.team.support": "客服",+ "whatsNew.team.sales": "销售",+ "whatsNew.team.pictureAlt": "Ada、Ben、Cleo 和 Dara 各有自己的总协调机器人,在同一个 Team Cloud 上共享团队的客服机器人和销售机器人。","cloudHowTo.title": "从这里添加 Cloud","cloudHowTo.body": "点击这个菜单,然后选择“Add a Cloud”。你也可以在这里切换这台电脑和 Cloud。","cloudHowTo.skip": "跳过",diff --git a/src/types/ogb.d.ts b/src/types/ogb.d.tsindex 5d979c99d2..16f351ad38 100644--- a/src/types/ogb.d.ts+++ b/src/types/ogb.d.ts@@ -189,7 +189,8 @@ const __APP_VERSION__: string;cloudAdd?: {state(): Promise<import("../../electron/cloud-rail.mjs").AddCloudView>;/** Opens that plan's checkout in the browser, for a Cloud of this name and swatch; only from the person's click. */- start(tier: string, name: string, color: import("../../electron/cloud-list.mjs").CloudSwatch | null): Promise<{ outcome: "opened" | "unsupported" | "failed" } | { outcome: "blocked"; blocked: import("../../electron/cloud-account.mjs").CloudAddBlock }>;+ /** `source`: where the checkout started, one of the app's checkout sources (main ignores any other). */+ start(tier: string, name: string, color: import("../../electron/cloud-list.mjs").CloudSwatch | null, source?: string): Promise<{ outcome: "opened" | "unsupported" | "failed" } | { outcome: "blocked"; blocked: import("../../electron/cloud-account.mjs").CloudAddBlock }>;reopen(): Promise<boolean>;copyLink(): Promise<boolean>;/** Opens the Cloud just bought, once it is ready. */