Skip to content

Show an organization move or outage calmly on every page, with no empty state in its place - #2151

Merged
davidmckayv merged 1 commit into
mainfrom
fix/outage-pages
Nov 24, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
fix/outage-pages

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

While OpenBot moves an organization between databases, or its database is briefly down, the server answers with a short sentence ("OpenBot is moving this organization. Try again in a moment." or "This organization is unavailable right now. Try again in a moment."). Nothing has failed, so the app shows it as calm muted text. A real-browser test of database sharding found pages that still got it wrong. This fixes them, and the same two mistakes everywhere else they turned up.

What a person sees now, while their organization is held:

  • Admin, Computers: the sentence sits in a muted notice, not a red box. "Folders on this computer" no longer says "No Bots yet" or "The desktop app is offline", which it only said because it couldn't read either.
  • Settings, Setup: says the server's sentence calmly instead of a red "Couldn't check your setup."
  • Admin, Playground: says the sentence under "Saved here" instead of "Nothing saved yet". A refused save is drawn in a muted band, not a red one.
  • Skills: says it once, not three times.
  • Admin, Automatic learning: says it at the same size as every other page.
  • Admin, Approvals: no "No organization rules" beside it.
  • A routine that is saved but whose schedule or first run is then held now says "It's saved... but it didn't start. OpenBot is moving this organization..." calmly, not in red. A hold before anything is saved no longer locks the form as though the routine might have been saved, so Create can be pressed again once it is back.

The same two patterns, found by sweeping every page:

  • An empty state shown when the read failed: Settings, Approvals ("No rules yet", and the switch drawn off); a Bot's Approvals ("No rules for this Bot"); a Bot's Setup, Bots it can ask ("No other Bots yet"); a Bot's Apps (switches drawn off); Admin, Skills and Apps tool pages, Bots ("No Bots yet"); Admin, UI components, one component ("No Bots yet", "no data functions"); Admin, Models dialog ("No matches"); the OpenDots Computer pane and OpenFuse header and screens ("No Bots yet").
  • A failure drawn without the shared rule, or the same sentence said several times: a Bot's chat ("Couldn't load earlier messages" band), a conversation, Connections, Reconnect, a conversation's voice chats, the command menu search, a goal's schedules, an app's actions, a Bot's Activity row, Home's Explore Bots, Admin, Routines, Settings, Notifications, Needs you, Slack and GitHub account rows, and the OpenDots sidebar.

How: a shared FailureNotice box and an isHeld check join failureSaid in lib/load-failure.tsx, so a page that draws a failure in a box gets the muted look for a hold. A failure thrown because of a hold (its cause) is treated as the hold too. Empty states now show only once their read has answered.

Tests:

  • app/tests/organization-unavailable-admin-pages.test.tsx (real Chromium and WebKit, 1440 and 390 wide, light and dark, API routed to the 503): opens Admin Computers, Playground, Automatic learning, Approvals and Routines, Settings Setup, Approvals and Notifications, and Skills with the organization unavailable. Each must say the sentence, never in red or in a red box, at the page's text size, once where one sentence is enough, with no empty state and none of the misleading lines. A second test checks a real failure on Setup and Computers is still red. Against main it fails on all six reported pages; with this change it passes. Added to the CI browser job.
  • app/tests/routine-plan-held.test.tsx: the routine cases above, through the real client against a server answering 503 with Retry-After. Fails on main, passes here.

…ty state in its place

While OpenBot moves an organization or its database is briefly down, the server says so in a
sentence that pages draw as calm muted text. A real-browser test of database sharding found pages
that still drew it in a red box (Admin Computers), in their own red sentence (Settings Setup), not
at all (Admin Playground), three times (Skills), larger than elsewhere (Automatic learning), or
beside an empty state the failed read made up ("No Bots yet", "Nothing saved yet", "No
organization rules"). A routine saved but then held folded the sentence into a red "it's saved,
but..." line.

Every failure box now goes through a shared FailureNotice, holds are told apart with isHeld, a
failure caused by a hold is drawn calmly too, and empty states show only after their read has
answered. A sweep fixed the same patterns on the other pages where they turned up.
@davidmckayv
davidmckayv merged commit 07e3bc2 into main Nov 24, 2026
35 checks passed
@davidmckayv
davidmckayv deleted the fix/outage-pages branch November 24, 2026 20:59
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