Commit 6cc233b
fix(webapp): stop the Colors page pulling Prisma into the client bundle
The page imported TaskRunAttemptStatus from @trigger.dev/database as a value, to
derive the attempt-status list. That package wraps the Prisma client, so it can't
load in a browser: the server render resolved it fine, but the route module failed
client-side, which took the whole page's JavaScript with it.
Three symptoms, one cause. Clicking Colors in the storybook sidebar fell back to a
full document load instead of navigating. The measured ratios stayed blank,
because they're read in an effect that never ran. And the theme switcher in the
storybook layout was dead on that page, since a failed route module leaves the
tree unhydrated.
The enum's six members are written out under a type-only import instead, which is
erased at build time. Every other storybook page already imports this package as
types only.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 61b390a commit 6cc233b
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
504 | 515 | | |
505 | 516 | | |
506 | 517 | | |
| |||
0 commit comments