forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/components/layout/route-error.tsxClear filter

2026-09-18

fix: 🎨 colored text reaches WCAG AA contrast - measured in light mode on the #F7F7F7 page: brand as text 2.5:1, warning 2.0:1, success 3.1:1, destructive 4.2:1 (AA needs 4.5:1) - new text tokens primary/success/warning/info/destructive-text: darker in light mode, equal to the fills in dark mode; fills stay as they are - light primary text is --brand-ink, or for a custom palette color the darkest-needed step of its hue (accentTextLightness, tested across hues) - every text-{primary,success,warning,info,destructive} utility moves to its -text token (253 uses); opacity variants stay decorative - token doc records the ruleBurak Boduroğlu · 9f9eebf
fix: 🎨 colored text reaches WCAG AA contrast
- measured in light mode on the #F7F7F7 page: brand as text 2.5:1,
  warning 2.0:1, success 3.1:1, destructive 4.2:1 (AA needs 4.5:1)
- new text tokens primary/success/warning/info/destructive-text: darker in
  light mode, equal to the fills in dark mode; fills stay as they are
- light primary text is --brand-ink, or for a custom palette color the
  darkest-needed step of its hue (accentTextLightness, tested across hues)
- every text-{primary,success,warning,info,destructive} utility moves to
  its -text token (253 uses); opacity variants stay decorative
- token doc records the rule
fix: 🧯 a failing page no longer blanks the whole app - reproduced: a rejected getClasses on /management/classes threw through resource.latest to the app-wide ErrorBoundary, replacing shell and nav with a full-screen 500 - the router gets a defaultErrorComponent, so solid-router wraps each route in a CatchBoundary: the error card renders in the page slot, the shell stays, and Try again remounts the page (its resources refetch) - bilingual without t(), since the root route can also render it - tests: a throwing route keeps the shell and recovers on retry; the app router is wired to the componentBurak Boduroğlu · e0d37b1
fix: 🧯 a failing page no longer blanks the whole app
- reproduced: a rejected getClasses on /management/classes threw through
  resource.latest to the app-wide ErrorBoundary, replacing shell and nav
  with a full-screen 500
- the router gets a defaultErrorComponent, so solid-router wraps each route
  in a CatchBoundary: the error card renders in the page slot, the shell
  stays, and Try again remounts the page (its resources refetch)
- bilingual without t(), since the root route can also render it
- tests: a throwing route keeps the shell and recovers on retry; the app
  router is wired to the component