Skip to content

fix(apps): contain app render errors and keep app dialogs closable #661

Backlog

Description

@RentnerKev

Problem

One bad cell takes down the whole page.

  • Table cells are plain strings up to 2,000 characters in the contract. For kind: 'time' columns, RemoteTableCell.tsx:14-18 and useRemoteDataTableLogic.ts:98 call date.format(new Date(value)), which throws RangeError for values like "Never". cellText (:50, used by search at :114, :188) throws too.
  • There is no error boundary around app views. The only one is the router's defaultErrorComponent (web/src/router.tsx:15), so the route content becomes the global error page.
  • ui-time, chart points and status strip items are already safe: their timestamps are validated ISO strings.

App dialogs can trap the user and carry no attribution.

  • The close button is disabled while the app sets no close listener or a form is pending (RemoteDialogElements.tsx:54, :69). This is intended, but the lock lasts until the app closes the dialog or the page reloads.
  • Remote dialogs and confirm dialogs show app-supplied titles without the app's name (RemoteDialogElements.tsx:46-82, RemoteActionElements.tsx:54-64), unlike toasts (appUiToast.ts:7) and bridge dialogs (AppUiProvider.tsx:176-183).
  • The opposite also exists: the fallback footer close button (AppDialogSurfaceModal.tsx:59) ignores closeDisabled and closes past unsaved or pending forms.

Proposal

  • Format invalid times as the raw text (or a dash) instead of throwing, in cells, search and sorting.
  • Wrap each app view (page, dialog, column cell) in an error boundary that retires only that frame and offers a retry.
  • Let the user always leave an app dialog: after a short pending period, or on Escape, offer "close anyway" with the unsaved-changes guard.
  • Make the fallback close button respect the same guard.

Decision (2026-12-01)

Keep the fully native look agreed in #626: app dialogs do not show the app's name. The error boundary and the always-closable dialog stay in scope.

Acceptance

  • Test: a time column with "Never" renders and the page stays usable.
  • Test: a render error in one app view leaves the host page and other apps working.
  • Test: a dialog without a close listener can still be left by the user.

Found in the app platform audit of 2026-11-30.

Activity

  1. added
    bug
    area: ui
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: uibug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions