Skip to content

site: style error cards on reactivescript.dev - #72

Open
simonzeiger wants to merge 1 commit into
solidjs:mainfrom
simonzeiger:feat/site-diagnostics
Open

simonzeiger wants to merge 1 commit into
solidjs:mainfrom
simonzeiger:feat/site-diagnostics

Conversation

@simonzeiger

@simonzeiger simonzeiger commented Nov 15, 2026 •

Copy link
Copy Markdown

Summary

Rebased onto main (picking up #71's updated UNHANDLED_FAILURE wording) and kept the exact one-line compiler output (file:line:col - error CODE: message (rule)) across all 5 <pre class="err"> cards on site/index.html — adding color styling only so longer diagnostics like GUESS_WHILE_LOADING and HELD_WRITE are easy to scan without diverging from what rxc, rx-tsc, and Vite currently print.

Changes (+11 / -8 in site/index.html, zero text changes):

  • Semantic color spans using only existing palette colors: muted file:line:col -, bold red error CODE, crisp --text body copy, blue — fix divider, green inline `code` spans, and dimmed unbroken (RULE) citations.
  • Subtle vertical spacing and divider between the 3 diagnostics in like.rx, line-height: 1.65, and overflow-wrap: break-word for mobile wrapping.

Before & After (site/index.html)

Before (main) After (feat/site-diagnostics)
Before — like.rx After — like.rx
Before — save.rx & tags.rx After — save.rx & tags.rx

Copy link
Copy Markdown
Member

Thanks for working on the error cards! Two things need to change before this can go in:

  1. The format isn't what the compiler prints. The cards show a rustc-style error[CODE] (rule): … --> file:line:col, with the source line, carets and a help: list. But rxc, rx-tsc and the Vite plugin print file:line:col - error CODE: message (rule). The site should show what people will actually see in their terminal. If you'd like the compiler itself to print this richer format, that would be a welcome proposal, but in a separate PR that changes the compiler's output.
  2. The page changed under it. Round 15 eval, catch only after await, guesses over writables, Solid main 99db9bc #71 just landed. catch is now allowed only after an await (CATCH_NOT_ON_AWAIT, R-f-4), so the "or catch it: … catch (e) => …" advice in the UNHANDLED_FAILURE cards is out of date. site/index.html on main was updated for that, and this branch now conflicts with it.

If you rebase onto main and keep the colour styling on the current one-line messages, that part is an easy yes.


Generated by Claude Code

@simonzeiger
simonzeiger force-pushed the feat/site-diagnostics branch from a2c45cf to 7ca2dad Compare November 23, 2026 02:40
@simonzeiger simonzeiger changed the title site: format error cards on reactivescript.dev site: style error cards on reactivescript.dev Nov 23, 2026
@simonzeiger

Copy link
Copy Markdown
Author

Rebased onto main (picking up #71's updated UNHANDLED_FAILURE wording) and switched the 5 error cards back to the exact one-line file:line:col - error CODE: message (rule) output with color styling only (location, error code, inline `code` spans, dimmed rule IDs, and subtle spacing between the 3 diagnostics in like.rx). Updated the Before & After screenshots in the PR description as well.

Happy to open the compiler-side formatter as a separate PR whenever you'd like to take a look at it!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants