Skip to content

Generate TS bindings with ts-rs, add light mode - #2

Merged
JuliDi merged 4 commits into
mainfrom
ts-bindings
Oct 10, 2026
Merged

JuliDi merged 4 commits into
mainfrom
ts-bindings

Conversation

@JuliDi

@JuliDi JuliDi commented Oct 10, 2026 •

Copy link
Copy Markdown
Member
  • WebSocket types in frontend/src/lib/bindings.ts are now generated from the Rust definitions (ts-rs). just gen-types regenerates, just check-types fails on stale output. CI job added. The hand-written WsCommand was already missing OtaUpload.
  • Light mode following prefers-color-scheme. All colors moved to CSS tokens in app.css; Plotly reads them at render time and redraws on theme change. Trace palette is theme-aware.
  • pnpm 11: allow esbuild install script (pnpm-workspace.yaml).
  • Format +page.svelte with prettier (separate commit, no logic changes).
Screenshot 2026-10-10 at 11-26-31

Replace hand-written types in ws.ts with bindings.ts generated by
ts-rs. Add just gen-types/check-types recipes and a CI job that fails
when the committed bindings are stale. The old WsCommand type was
already missing OtaUpload.
Move all colors into CSS tokens in app.css (dark default, light under
the media query). Plotly reads the tokens at render time and redraws on
theme change. Trace palette is theme-aware via --trace-N.
@JuliDi
JuliDi merged commit ba8dfbc into main Oct 10, 2026
1 check passed
@JuliDi
JuliDi deleted the ts-bindings branch October 10, 2026 10:02
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