Skip to content

Migrate machine control / streaming to Svelte (last, highest risk) #219

Closed

Description

@CameronBrooks11

What

Migrate machine control (the streaming workspace) to Svelte — done last because it is the highest-risk area (async events, hardware state, cancellation, long-running sessions). Replace streamStore with a machine-session runes module; keep the Marlin event/polling wiring and the Rust serial path untouched.

Why

Streaming carries the most failure modes; migrating it against an already-stable Svelte shell minimizes blast radius.

Where

fiberpath_gui/src/components/StreamTab/ (7 files, 861 LoC), stores/streamStore.ts (149), hooks/stream/* (useStreamingActions 170, useConnectionActions 87, useManualCommandActions 68), hooks/useStreamEvents.ts, lib/marlin-api.ts (139, reused), lib/streamFeedback.ts (285, reused).

Scope

  • Connection (port / baud / connect-disconnect), manual controls, file streaming (start / pause / resume / cancel / stop, progress, current command), stream log (type styling + autoscroll), keyboard-shortcuts modal.
  • Replace streamStore with machine-session.svelte.ts; reuse marlin-api and streamFeedback; do not touch the Rust serial code.
  • Emergency Stop gets a distinct, fixed, destructive treatment — clearly separate from graceful cancel, with a deliberately chosen keybinding that resists accidental activation.

Acceptance criteria

  • These transitions are tested: connect/disconnect, failed connection, start/pause/resume, graceful cancel, emergency stop, device disappearance, reconnection, stale event from an old job, large logs, long-duration streaming.
  • E-stop is visually and behaviorally distinct from cancel.
  • streamStore replaced; stream workspace at parity with the React Stream tab.

Notes

Depends on #216. Touchpoint for #146 (connection-info panel), which ships independently. Reinforces the e-stop carve-out tracked separately as #196. Part of #214.

Activity

  1. added
    gui
    on Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions