Skip to content

Desktop: OpenBot Cloud first and picked on the first screen, and on in release builds - #1989

Merged
davidmckayv merged 7 commits into
mainfrom
desktop/cloud-default
Nov 21, 2026
Merged

davidmckayv merged 7 commits into
mainfrom
desktop/cloud-default

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

What

In a build with OpenBot Cloud on, "Set up OpenBot" now leads with Cloud:

  1. OpenBot Cloud is the first row and is picked when the window opens. It says what it is: "Use OpenBot here. Your Bots run in our cloud." Under the rows: "This app connects to OpenBot Cloud, where your Bots run. Your account, Bots and conversations are the same here and at my.open.bot.", then Sign in to OpenBot Cloud, and "You'll sign in or create an account in your browser, then come straight back here." Nothing to type.
  2. OpenBot for Business comes next: your own cloud or on-prem, and it books a call with the existing booker. The "Already have OpenBot at work? Connect to it." link stays under it and opens the address field. The calendar sits below the lists, past the bottom of the window, so a Book a demo button now sits under its first line, in view as soon as Business is picked; it takes the card to the calendar and moves the focus to its heading.
  3. OpenBot (Self-Contained) moves to a smaller row under them, drawn like OpenBot for Business's smaller rows when Cloud is off. It says what this computer needs before it is picked: "Needs a Mac or a 64-bit Windows PC with at least 4 CPU cores, 16 GB of memory and 40 GB of free disk space. Setup takes 1 to 10 minutes." Picked, it shows "What this computer needs" and Install as before, and the row stops repeating the needs.

Keyboard and screen-reader order follows the screen: Cloud, Business, Connect to it, Self-Contained, then Cloud's sign-in.

Somebody who already chose this computer is not moved to Cloud. A relaunch that finds OpenBot installed, Back from Install, a setup failure, and the choice asked for from Settings all open on Self-Contained.

Release builds have Cloud on

desktop/scripts/release-build.ts is the release build config. vite.config.ts applies it when desktop-version.ts release has written build-version.json, which every release and candidate installer does first, unsigned (desktop-build.yml, release channel) or signed (the macOS and Windows signing workflows on a tag). Internal and pull request builds leave Cloud off. A value in the build's environment wins, so VITE_OPENBOT_CLOUD_ENABLED=false still turns it off in a release build. Checked with real vite build runs: a release build compiles cloudEnabled() to "true", an internal build to unset, a release with =false to "false".

With the switch off, the first screen keeps its layout. Two lines change everywhere: OpenBot for Business says "Book a demo", the word its booker and calendar already use, where it said "Book a call", and connecting to a company's OpenBot says "This app connects to that OpenBot. You'll sign in to it in your browser, then come straight back here." where it said nothing is installed on this computer. This app is OpenBot on the person's computer either way.

CHANGELOG.md gets the line under Unreleased, OpenBot Desktop.

Tests

  • desktop/src/App.test.tsx, Cloud on: the screen opens on Cloud with its sign-in; the order of rows, link and controls; Self-Contained's smaller row and its needs; Business books a call; Connect to it opens the address. Self-Contained picked shows the needs and Install, and Install sets it up with nothing asked of Cloud. A relaunch that finds OpenBot on this computer opens on Self-Contained. The Cloud sign-in test now starts from Cloud already picked. Cloud off: the existing first-screen tests pass unchanged.
  • desktop/scripts/release-build.test.ts: release turns Cloud on, internal and development add nothing, the environment wins, and the channel is read as desktop-version.ts writes it.
  • desktop/src/setupLayout.browser.test.ts (real Chromium, 1000x760, light and dark): with Cloud on, two rows plus the smaller Self-Contained row with its needs inside it, and no card scrollbar with Cloud, Self-Contained or the address showing. With Business picked: Book a demo is in view, takes the card to the calendar's heading, and scrolled to its end the calendar is whole inside the card, with the page never scrolling. It waits for the window's font before measuring lines.
  • The layout tests now draw the vendored brand marks, as the app's Vite build does. They had stubbed them out, so the four clouds on OpenBot for Business showed as empty tiles in every screenshot; the app itself always drew them. The Cloud-on test checks each of the four marks loaded.
  • bun test in desktop/: 705 pass. Browser suite: 69 of 70 pass locally; the one failure is the Windows-scrollbar test on the AI step, which needs drawn scrollbars that headless Chromium on macOS doesn't draw, and is untouched here.
  • bun run typecheck in desktop/, biome format and lint: clean.

…n release builds

With OpenBot Cloud on, "Set up OpenBot" now leads with it. OpenBot Cloud is the
first row and is picked when the window opens, with Sign in to OpenBot Cloud
under the rows. OpenBot for Business follows, with its booker, and the link to
connect to a company's own OpenBot. OpenBot (Self-Contained) moves to a smaller
row under them that says what this computer needs and how long setup takes.
Picked, it shows the full needs and Install as before. The order on screen is
the order for the keyboard and a screen reader.

Somebody who already chose this computer is not sent to Cloud: a relaunch that
finds OpenBot installed, Back from Install, a setup failure and the choice
asked for from Settings all open on Self-Contained.

Release and candidate installers build with Cloud on. scripts/release-build.ts
is the release build config, applied by vite.config.ts when
desktop-version.ts has written a release build-version.json, as it does before
every release installer, signed or not. Internal and pull request builds leave
it off, and VITE_OPENBOT_CLOUD_ENABLED=false still turns it off in a release
build. With the switch off the first screen is unchanged.
OpenBot Cloud on Desktop is this app, connected to OpenBot Cloud where the
person's Bots run, not a sign-in link with nothing installed. Its row now
says "Use OpenBot here. Your Bots run in our cloud.", its detail says the app
connects to OpenBot Cloud with the same account, Bots and conversations as
my.open.bot, and the hand-off line says the browser opens to sign in or
create an account and comes straight back.

OpenBot for Business's calendar sits below its lists, past the bottom of the
window, so nothing showed how to book until the card was scrolled. A Book a
demo button under its first line now takes the card to the calendar and
moves the focus to its heading.

The layout test waits for the window's font before measuring lines, which a
fallback face could wrap, and checks the booker: in view, reached by Book a
demo, and whole inside the card scrolled to its end.
…lier address field

With OpenBot Cloud on, the first screen steers to OpenBot Cloud and OpenBot
for Business. OpenBot (Self-Contained) is no longer a row between them: it is
one line at the foot of the card, below the sign-in, the booker or the
address, "Want everything to run on this computer? Use OpenBot
(Self-Contained)." Opened, it shows what this computer needs and Install
there, with neither row picked. It is never picked to begin with, a relaunch
on a computer that runs OpenBot included; only a failed setup on this
computer opens on it, since the failure is its to show.

The address field reads "Your company's OpenBot address", says "Ask your IT
team or whoever set up OpenBot at your company for this address." under it,
and its way out is Back, to the choices as the screen opened, not "Use OpenBot
on this computer instead": every choice is this app on this computer.
@davidmckayv
davidmckayv force-pushed the desktop/cloud-default branch from 19c3160 to 84da6f7 Compare November 21, 2026 22:26
@davidmckayv
davidmckayv merged commit 9e214e2 into main Nov 21, 2026
36 checks passed
@davidmckayv
davidmckayv deleted the desktop/cloud-default branch November 21, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant