Skip to content

Show the moving and unavailable sentences calmly after a press, too - #2148

Merged
davidmckayv merged 1 commit into
mainfrom
fix/muted-action-errors
Nov 24, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
fix/muted-action-errors

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

While OpenBot moves an organization, or its database is briefly out of reach, the server answers with "OpenBot is moving this organization. Try again in a moment." or "This organization is unavailable right now. Try again in a moment.". Nothing failed, so the app should show these sentences as calm, muted text. #2111 did this for every page that shows a load error.

Buttons were still showing these sentences in red. A failed press saved only the error's words and drew them in red later. By the time anything was drawn, nothing showed the sentence was a hold. This affected exporting the audit log, adding someone to a team, connecting a browser, opening the Bot's browser, and creating a Bot, among about 80 other places.

What changed:

  • A failed press now saves the error itself, not just its words. It is drawn through the same rule as page errors, so a hold shows muted and a real failure keeps its own words and red. The shared helper gains failureOf, failureInstead and failureToastType for this.
  • Error toasts (signing out, switching organization, picking a model) show a hold as information, not as an error.
  • The test that keeps pages on the shared rule now also catches these:
    • an error's words saved with a state setter or handed on through report or onError
    • an error's words passed as an error prop
    • an error's words shown as an error toast
    • any .message shown directly in a page, not only ones named error

Tests:

  • New real-browser test, in Chromium and WebKit, at desktop and phone width, light and dark. Reads succeed and writes are refused with the unavailable sentence. Adding someone to a team and creating a Bot from the card a Bot proposes each show the sentence once, and not in red. A create refused for a real reason is still red.
  • This test failed before the fix (red in all 8 Chromium runs) and passes after it (24 of 24).

A failed press saved only the error's words and drew them red later, so the
server's "moving" and "unavailable" sentences were shown as failures when
exporting the audit log, adding someone to a team, connecting a browser,
opening the Bot's browser, creating a Bot, and in about 80 other places.

A press now keeps the error itself and draws it through the shared rule
(failureSaid), so a hold is muted and a real failure stays red. Error toasts
show a hold as information. The guard test now also catches an error's words
saved in state, handed to an error prop, or shown as an error toast.
@davidmckayv
davidmckayv merged commit 333611e into main Nov 24, 2026
35 checks passed
@davidmckayv
davidmckayv deleted the fix/muted-action-errors branch November 24, 2026 20:10
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