feat(ide): daemon-served Serial Plotter page + fbuild plotter (#1076 Phase 2) - #1200
Conversation
…Phase 2) - New GET /plotter daemon route serving a self-contained embedded page (avr8js pattern): /api/devices/list port selector, /ws/serial-monitor attach handshake, Arduino-Serial-Plotter-style line parsing (whitespace/comma numbers, optional name:value labels), hand-rolled canvas chart with auto-scale/legend/pause/clear/raw tail, light+dark via prefers-color-scheme, zero external assets. - New `fbuild plotter [--port <port>]` opens the page via the existing open_in_browser helper and get_daemon_url (works outside Zed too). - `fbuild ide` emits a "fbuild: Serial Plotter" task running it. Part of #1076 (Phase 2, first panel). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 30 seconds Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (15)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
First Phase 2 panel of the corrected #1076 plan: a daemon-served Serial Plotter over the existing serial WebSocket, following the avr8js embedded-page precedent.
GET /plotterserves a single self-contained page (include_str!-embedded; no CDN/build step): port selector fromPOST /api/devices/list, WebSocket to/ws/serial-monitorwith theAttachhandshake, Arduino-Serial-Plotter-style parsing ofData{lines}batches (whitespace/comma-separated numbers, optionalname:valuelabels), hand-rolled canvas chart (auto-scaled axis, legend, pause/resume, clear, raw-line tail), light/dark viaprefers-color-scheme.fbuild plotter [--port <port>]resolves the daemon URL and opens the page in the default browser (reuses the existingopen_in_browserhelper) — chosen over encoding OS-specific open commands intasks.json, and it serves non-Zed users too.fbuild idenow generates a"fbuild: Serial Plotter"task that runsfbuild plotter.Validation (local)
soldr cargo test -p fbuild-cli→ 247 passed (+6);-p fbuild-daemon→ 209 passed (+1 route test); clippy-D warningsclean; fmt clean; fullbash testbefore merge.Part of #1076 (Phase 2). Remaining Phase 2 panels (build progress, library/board managers) need new daemon endpoints and stay on the meta.
🤖 Generated with Claude Code