Repository navigation
Conversation
…and Boat offer Plan billing (#2), the Boat offer (#3) and the #42 sync left tests and docs rows that still expect the removed checkout, upgrade, trial, organization and Boat surfaces. Drop the cases that only test removed features, rewrite the rest to the fork's behaviour, delete the unused cloud-add-web module that #42 brought back, and add it to the plan-billing guard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Tests and analytics docs that still expected surfaces this fork removed on purpose now match the fork. No product code changes, except deleting one module nothing imports.
src/lib/cloud-add-web.ts(and its two test files) is deleted and added toREMOVEDinsrc/lib/plan-billing-removed.test.ts. That guard asks for new purchase surfaces to be added there.docs/analytics.mdand its mirrorapps/docs/content/docs/security/analytics.mdx.Why
These 9 files fail in the
mainvitest shards: seven since the first CI run (915596c, 2026-11-14),App.cloud-add-webandAnnouncementsPagesince the #42 sync was merged (34e4f26, 2026-11-21). The fork removed these features on purpose. The tests and docs rows were never updated:src/lib/cloud-add-web.ts(upstream Try Cloud outside the desktop opens the Cloud website's checkout milind-soni/OpenMausBot#6554, 2aadcf9). It opens the Cloud website's checkout (/pro/buy). Nothing outside its own tests imports it (rg -n "cloud-add-web" src server electron scripts shared --glob '!*.test.*'finds nothing).Per file:
RoutineScheduleNote.test.tsschedulePlacetonext: nullon this computernext: nullfor every plan × ready × offersAllowedBotApiCard.dom.test.tsCloudUsageMeterand the card's Upgradebot-api-upgradeabsent; mock of the deleted../CloudUsageMeterdroppedBotLimitPopup.test.tsusageBridgetoundefined, so the popup always links to the Plan pagearia-modal, focus on "Open the Plan page"; tasks case: buttonsOpen the Plan page, Not now, Close; the unusedwindow.ogb.cloudPlanfixture is goneCloudRoomCard.dom.test.tsCloudRoomCardtonull(room-card-previewis inREMOVED)AnnouncementsPage.test.tsboat-credit-2026-11App.cloud-add-web.test.ts,src/lib/cloud-add-web{,.test}.tssrc/lib/cloud-add-web.tsadded toREMOVEDscripts/testing/analytics-docs.test.ts(docs only)CloudAddDialog,AddCloudFloware inREMOVED)cloud_dialog_shown,cloud_dialog_view,cloud_signin,cloud_add_another, andcloud_checkout_opened(its only sender wascloud-add-web.ts)PlacesRail.test.tsPlaceAddSheetoffers no Cloud or organization; with only a server it opens the server form directlydata-place-add-choice="server"click; the local-workspace case expects["local", "server"]CloudAccountSettings.test.tscloudPlanViewanswers onlysigned-out/removed; paid, free, purchase, trial and unverified views are billing (src/lib/cloud-plan.ts:13)cloudPlanLabeldirectly, still with theconstructor/toStringrows; "setting up…" drops only the paid view's placeholder card; "a Team plan…" drops the two steps that need the paid view's placeholderThe Cloud machine card (ready, stopped, payment problem, setup, connect) is still covered by the
it.eachover machine states and the connect cases inCloudAccountSettings.test.ts. None of those were changed.How it was verified
macOS, Node v24.22.1 (same major as CI). The same command was run on
main8c67e9d and on this branch:main)PlacesRail.test.tsCloudAccountSettings.test.tsBotLimitPopup.test.tsCloudRoomCard.dom.test.tsRoutineScheduleNote.test.tsApp.cloud-add-web.test.tsBotApiCard.dom.test.tsAnnouncementsPage.test.tsanalytics-docs.test.tsplan-billing-removed.test.tsREMOVEDrow)Test Files 9 failed (9),Tests 45 failed | 103 passed (148)Test Files 1 failed | 8 passed (9),Tests 4 failed | 142 passed (146)pnpm typecheckexits 0.oxlint --deny-warnings src scripts/testingexits 0. The pre-push hook reportedpre-push: 10 changed file(s) checked in 0.1 s.Failures left after this PR
CloudAccountSettings.test.tsstill fails 4 cases. This PR does not change them on purpose:cloudPlanLabelasPLAN_LABEL[tier] ?? "Cloud"and lost upstream'sObject.hasOwncheck, socloudPlanLabel("constructor")returnsObject(expected [Function Object] to be 'Cloud'). fix(cloud-plan): a tier named like an Object prototype key reads Cloud again #87 (fix/cloud-plan-label-own-keys) fixes the code. This PR keeps theconstructor/toStringrows.cloud-planstub answerssigned-outfor signed-in andreauth-requiredaccounts too (src/lib/cloud-plan.ts:14-17, enforced byplan-billing-removed.test.ts:49-56). So Settings → Account shows "Sign in to MausBot · Sign in" next to "person@example.test · Signed in · Refresh". That is a code change for a separate PR:expected … to contain 'no longer signed in to MausBot Cloud'expected … to contain 'Max plan'expected … to contain 'Loading Cloud account'Not covered
pnpm testwas not run locally. The other shard failures onmainhave separate causes.add-cloud/open-cloudbranches andopenCloudinRoutineScheduleNote.tsxUpgradeButton,settledand the "going through" path inBotLimitPopup.tsxboaticon entry inAnnouncementsPage.tsx:24openCloudAdddispatches with no Add a Cloud dialog to openPlaceAddSheet.tsx, which still describes organization and Cloud choicescloudAddbridge (start,organization,sheet, …) is unchanged.Checklist
pnpm typecheckandpnpm testpass locally: typecheck passes; only the 10 files above were run, and 4 known cases still fail.dist-server/edits