Commit f138303
committed
Isolate Waterline panel failures behind error boundaries
Waterline's dashboard and run detail screens render every panel as a
sibling inside one big Vue root. A runtime error in any single panel —
a bad chart input, an unexpected response shape, a downstream renderer
throwing during reactivity — crashes the whole tree and leaves the
operator staring at a blank page. Phase 4 calls out this gap: one
broken panel should not take down the whole view.
Introduce a reusable `<error-boundary label="...">` component, register
it globally, and wrap each independently-rendered panel:
- Dashboard: Needs Attention, Fleet Trends, Fleet Overview, Workflow
Type Health, Overview, Operator Metrics
- Run detail: Run Summary and Run Details
When a child throws, `errorCaptured` marks the boundary faulted and
renders a compact fallback card with the panel label, a Retry button
that re-mounts the subtree, a "Show technical detail" toggle surfacing
the original message and Vue component-hint, and a `role="alert"`
announcement. The hook returns `false` so the error does not bubble up
and take out neighboring panels. A final `Vue.config.errorHandler`
catches anything that escapes the boundaries and logs it instead of
surfacing an empty page.
Built bundle refreshed.1 parent 7d8d999 commit f138303
6 files changed
Lines changed: 121 additions & 2 deletions
File tree
- public
- resources/js
- components
- screens
- flows
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| 569 | + | |
569 | 570 | | |
570 | 571 | | |
571 | 572 | | |
| |||
588 | 589 | | |
589 | 590 | | |
590 | 591 | | |
| 592 | + | |
591 | 593 | | |
592 | 594 | | |
593 | 595 | | |
| 596 | + | |
594 | 597 | | |
595 | 598 | | |
596 | 599 | | |
| |||
609 | 612 | | |
610 | 613 | | |
611 | 614 | | |
| 615 | + | |
612 | 616 | | |
| 617 | + | |
613 | 618 | | |
614 | 619 | | |
615 | 620 | | |
| |||
665 | 670 | | |
666 | 671 | | |
667 | 672 | | |
| 673 | + | |
668 | 674 | | |
669 | 675 | | |
| 676 | + | |
670 | 677 | | |
671 | 678 | | |
672 | 679 | | |
| |||
747 | 754 | | |
748 | 755 | | |
749 | 756 | | |
| 757 | + | |
750 | 758 | | |
| 759 | + | |
751 | 760 | | |
752 | 761 | | |
753 | 762 | | |
| |||
868 | 877 | | |
869 | 878 | | |
870 | 879 | | |
| 880 | + | |
871 | 881 | | |
| 882 | + | |
872 | 883 | | |
873 | 884 | | |
874 | 885 | | |
| |||
1169 | 1180 | | |
1170 | 1181 | | |
1171 | 1182 | | |
| 1183 | + | |
1172 | 1184 | | |
1173 | 1185 | | |
1174 | 1186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| 135 | + | |
134 | 136 | | |
| 137 | + | |
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
| |||
1615 | 1618 | | |
1616 | 1619 | | |
1617 | 1620 | | |
| 1621 | + | |
1618 | 1622 | | |
1619 | 1623 | | |
1620 | 1624 | | |
| |||
0 commit comments