Skip to content

feat: add compact navigable diagnostics - #487

Merged
Dunqing merged 6 commits into
mainfrom
claude/bold-hamilton-89eeab
Nov 16, 2026
Merged

Dunqing merged 6 commits into
mainfrom
claude/bold-hamilton-89eeab

Conversation

@Dunqing

@Dunqing Dunqing commented Nov 16, 2026

Copy link
Copy Markdown
Member

Diagnostics currently take up a large part of the source pane with full terminal output. Show compact severity counts, messages, and clickable filename locations; keep the complete explanation in expandable, syntax-highlighted details and allow collapsing the panel.

Convert diagnostic UTF-8 byte offsets to UTF-16 at the editor boundary so markers and source selections remain accurate after Unicode characters. Preserve the compiler's full diagnostic text and use the shared light/dark highlighting palettes.

Depends on #486.

Validation: diagnostic offset regression tests, TypeScript, formatting, lint, and production build passed. Browser checks covered light/dark themes, mobile layout, source selection and focus, collapse/expansion, and exact code-frame text preservation. Existing lint/chunk-size warnings and Monaco service-registration errors remain outside this change.

Refresh the light and dark surfaces with logo-derived cyan accents and a
compact header. Add a collapsible configuration sidebar with mobile focus
management, inline lint rules, and Define options under Transformer.

Use compact checkboxes, smaller fields, and quieter secondary actions to
keep the configuration panel dense and readable.
Use shared Shiki grammars and palettes for Monaco, printed output, and AST
values. Keep separate registries for Monaco and HTML, flatten translucent
foregrounds, and emit both HTML palettes for reactive theme changes.

Preserve diagnostics, model changes, and hover cleanup while the editor
waits for highlighting. Fall back to the built-in editor theme if loading
fails.
Keep diagnostic counts and concise messages visible without taking half of
the source pane. Add collapsible details with shared syntax highlighting
and filename locations that select and focus the corresponding source.

Convert diagnostic byte offsets at the editor boundary so markers and
navigation remain accurate after Unicode characters.
@github-actions

Copy link
Copy Markdown
Contributor

@Dunqing
Dunqing marked this pull request as ready for review November 16, 2026 02:47
Base automatically changed from claude/playground-highlighting-split to main November 16, 2026 03:08
@Dunqing
Dunqing enabled auto-merge (squash) November 16, 2026 03:22
@github-actions

Copy link
Copy Markdown
Contributor

@Dunqing
Dunqing merged commit 3b24d05 into main Nov 16, 2026
4 checks passed
@Dunqing
Dunqing deleted the claude/bold-hamilton-89eeab branch November 16, 2026 03:27
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.

1 participant