Repository navigation
Show an organization move or outage calmly on every page, with no empty state in its place - #2151
Merged
Merged
Conversation
…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
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 24, 2026 20:34
This was referenced Nov 24, 2026
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.
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:
The same two patterns, found by sweeping every page:
How: a shared
FailureNoticebox and anisHeldcheck joinfailureSaidinlib/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 (itscause) 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.