Repository navigation
Backlog
Description
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-18anduseRemoteDataTableLogic.ts:98calldate.format(new Date(value)), which throwsRangeErrorfor 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
closelistener 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) ignorescloseDisabledand 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
closelistener can still be left by the user.
Found in the app platform audit of 2026-11-30.
Activity