Repository navigation
Closed
Labels
guiPull requests that update GUI components
Description
Part of #246. Browser-preview mode is not modeled as its own first-class state — it leaks raw runtime errors and renders inconsistent status signals.
Findings
- [MED · runtime, live-QA] Raw
invokeTypeErrors leak in browser preview. Clicking Generate preview, or simply switching to the Machine tab (auto list-ports), fires Tauri calls that throw "Cannot read properties of undefined (reading 'invoke')" — surfaced via error toast + inline "Preview failed" state + the output log. The browser-preview banner already says compute/file/machine needtauri dev, so these actions should be disabled or short-circuited with a friendly "unavailable in browser preview" message instead of a raw TypeError. (Reproduced live atlocalhost:5173.) - [MED · ia-flow] Browser-preview status dot is red (error) while the banner treats preview as info.
src/state/backend-health.svelte.ts:32reusesstatus="unavailable"→ StatusBar mapsdata-status="unavailable"→--status-error→ red dot, contradicting the info-tone banner for the same expected state. - [LOW · ia-flow] App banner misfiled and half-named.
BackendHealthWarning.sveltelives undercomponents/machine/but is rendered at app scope (App.svelte:106) for all workspaces and covers both info + warning states — move toshell/and rename (e.g.BackendStatusBanner). - [LOW · ia-flow] Stale
cliTextidentifier inStatusBar.svelte:12after the CLI→Backend rename (user-facing strings are already correct) — rename tobackendText/statusText.
Acceptance
- In browser preview (
isTauri()false /isBrowserPreview), gate compute + serial actions: disable the buttons or short-circuit with a clear "unavailable in browser preview" message — no rawinvokeTypeError reaches toast/log/inline state. - Give browser-preview its own dot treatment (e.g.
data-status="preview"/ muted-blue) so the status bar matches the info banner. - Move + rename the banner component; rename
cliText. - Full gate + live QA at
localhost:5173(verify no error toasts on Machine-tab entry / Generate-preview).
Metadata
Metadata
Assignees
Labels
guiPull requests that update GUI components
Activity