Repository navigation
Description
Overview
Evolve the FiberPath GUI into a tasteful, clean, minimal interface — and put a proper backend-connected dev workflow under it so the redesign can actually be QA'd and iterated.
Two intertwined problems motivated this epic:
- No real dev loop. The browser dev build (
npm run dev→:5173) can't reach the backend: the FastAPI sidecar binds a random127.0.0.1port and reports it to the Rust shell, which the frontend reads viainvoke("api_base_url")— a Tauri call absent in a plain browser. So the dev preview shows "CLI Backend Unavailable", no toolpath previews, and the prebuiltrelease/fiberpath_guibinary runs a stale, different UI (not current source). There is no faithful, backed dev loop for current code. - The UI reads cramped-flat. A near-monochrome dark field where panels, inputs, and section headers sit within a few luminance steps and an 11–14px type band; two competing "primary" colors (teal Connect vs green Start Stream); weak figure/ground; inverted header/label hierarchy. A 7-dimension design audit (61 agents, adversarially verified against source) produced 51 confirmed findings (1 high, 20 medium, 30 low; 42 small-effort).
Design direction
FiberPath should feel like a precise instrument at rest: a dark, quiet workspace where the toolpath canvas is the one bright object you look at and everything else recedes into calm, legible chrome. Keep the bones (clean grid, sensible regions, a real token system); fix the three things that break the feel — figure/ground, hierarchy, and a single accent — with restraint. No new dependencies, no CSS framework, no rewrite: edit tokens.css values and route components through primitives that already exist.
Principles
- The canvas is the figure; chrome is the ground.
- One accent means "go" — teal
--color-primaryowns every primary action; green/red/amber are status-only. - Hierarchy by size, weight, contrast — not decoration.
- One primitive per role (one button system, one section header, one field anatomy).
- Calm comes from the top half of the spacing scale (promote structural padding; keep field rhythm tight).
- Every surface/boundary perceptible — both themes, AA, forced-colors.
Out of scope / guardrails
- No new deps, no Tailwind, no token-build tool. No new accent colors or gradients. Don't lighten the base background (widen the ramp, not the brightness). Don't over-space fields. Don't redesign the canvas/renderer, the 3-pane grid, or the drawer. Retire or alias dead tokens (
--color-accent, duplicate status hues) rather than leaving them half-wired.
What "done" means
A documented one-command backend-connected dev loop with real previews; no "CLI" terminology in user-facing strings or the health command/state; and the redesign landed in 3 phases (token/global → component → layout/IA), QA'd visually in both themes against the audit.
Sub-issues
- Establish a backend-connected dev workflow (fix dev preview / sidecar) #233 Establish a backend-connected dev workflow (fix dev preview / sidecar)
- Rename stale "CLI" terminology to Backend/API #234 Rename stale "CLI" terminology to Backend/API
- UI redesign Phase 1 — token & global CSS wins #235 Redesign Phase 1 — token & global CSS wins
- UI redesign Phase 2 — component consolidation onto primitives #236 Redesign Phase 2 — component consolidation onto primitives
- UI redesign Phase 3 — layout & information architecture #237 Redesign Phase 3 — layout & information architecture
References
- Full audit proposal (design direction, token diffs, component changes, a11y, phased roadmap) is embedded across the sub-issues below.
- Visual ground truth captured live from the running app (Prepare/Machine, both panes, menus, states).
Activity
CameronBrooks11 commentedon Jun 27, 2026
Full audit proposal (reference)
Source: 7-dimension design audit, 51 verified findings (1 high / 20 medium / 30 low; 42 small-effort), adversarially verified against source. Captured live from the running app. Sub-issues #233–#237 carry the actionable slices; this is the complete proposal for reference.
FiberPath UI Redesign Proposal — Calm, Clean, Minimal
A token-and-primitive evolution of the existing Svelte/CSS system. No new dependencies, no framework, no rewrite. Every change below reuses tokens already in
tokens.cssor adjusts their values; component work routes bespoke styles through primitives that already exist (.btn,InspectorSection,--shadow-lg).1. Design direction
FiberPath should feel like a precise instrument at rest: a dark, quiet workspace where the toolpath canvas is the one bright object you look at, and everything else recedes into calm, legible chrome. Today the app reads as cramped-flat — a near-monochrome grey field where panels, inputs, and section headers all sit within a few luminance steps and an 11–14px type band, so nothing tells the eye where to look. The redesign keeps the existing bones (clean grid, sensible regions, a real token system) and fixes the three things that actually break the feel: figure/ground (give the canvas a surface and widen the surface ramp), hierarchy (one anchor size, headers that outrank their fields, one section-header language), and a single accent (teal is the primary; green becomes status-only). The guiding instinct is restraint: fewer competing signals, more deliberate whitespace, one way to do each thing.
2. Design principles
--color-primaryowns every primary action. Green/red/amber are status only, never resting CTAs.3. Token changes
Concrete revised slices of
tokens.css. Values chosen to widen the surface ramp by a perceptible (~3:1 boundary) delta while staying dark and calm.3.1 Surfaces & elevation — stronger figure/ground
Rationale: addresses "panels barely separate from background" and "viewport reuses the root background." The viewport sets
background: var(--color-bg-canvas)instead of--color-bg, so it stops merging with the void. Rails stay on--color-bg; panels float on--color-bg-panel. Reserve--shadow-md/lgfor true popovers, not panels — tone now does the separating.3.2 Borders — meet WCAG 1.4.11 (3:1) for control/panel boundaries
3.3 One canonical primary; collapse status duplicates
Rationale: fixes two competing primaries (teal Connect vs green Start Stream), success
#32d2b6colliding with brand teal, and redundant status hues. Alias the deleted names (--color-success-green,*-light,*-red) to the canonical token for one release so component CSS can't render two "successes." Green now means exactly one thing: a running/streaming state, never a resting button.3.4 Refined muted text (already passes AA — keep, verify after surface shift)
3.5 Type scale — fewer, more meaningful steps + one anchor
3.6 Spacing — already a clean scale; the change is usage (see §4)
No token edits. Promote
--spacing-md → --spacing-lgfor panel/section-body padding, add--spacing-xlbetween major groups, and replace all hardcoded2pxwith--spacing-xs. Wire the unused--panel-header-height: 2.5remintoInspectorSection.3.7 Light theme — fix the AA failure and flat figure/ground
4. Component & layout changes
Grouped by area. Each references the finding it resolves.
Shell / menubar / status / tabs
--status-warningor a deliberate, consistently shown affordance — not the half-wired gold accent. Retire--color-accent(or give it one real recurring role). (Gold accent effectively unused.)Prepare 3-pane + viewport
background: var(--color-bg-canvas)so it reads as the figure; rails stay on--color-bg. (Viewport reuses root background.).vp__btnchrome with.btn .btn--primary, and wrap it in a real empty-state card: muted title ("Preview not generated yet") + one-line hint + the primary button, with--spacing-lggap, centered. (Tiny secondary button in a black void; two viewport empty states with inconsistent grammar.)opacity: 0.5) under an overlaid spinner instead of blanking to the void. (Refresh erases context.)Machine panes + buttons
.btn .btn--primary(teal). Green moves to the active "Streaming" status dot/progress only. (Two primaries.).action/.cmd/.send/.icon-btnthrough.btn: neutral →.btn--secondary; Connect/Start →.btn--primary; Send →.btn--secondary .btn--small. Add.btn--danger/.btn--warn/.btn--successonce inbuttons.css(for E-Stop, etc.) and delete the per-component.action*blocks duplicated across ConnectionSection and FileStreamingSection. (Components reinvent buttons;.actiondefined twice; heights/radii drift.)--font-size-sm(sans, not mono) so it reads as guidance, not a log line. (Tiny top-left afterthought.)Inspector / forms
InspectorSectionand delete.param-form__title, so left rail, right rail, and Machine all share one header bar. (Two header styles in one rail; same role rendered at 14px vs 11px.)--color-text(kept small + uppercase + tracked as an eyebrow); field labels →--color-text-label(the new stepped-down tone) at--font-size-sm. Result: section-title > label > value. (Labels brighter than their headers.).section__headera flat--color-bg-panel+ bottom hairline (eyebrow carries grouping), leaving--color-bg-panel-altexclusively for input wells. Wireheight: var(--panel-header-height). (Header and inputs share panel-alt; header height hardcoded/undersized.)--color-bg-panel-alt(#232327) inside--color-bg-panel(#18181b) with the new#3a3a40border = clearly a target. Pick the recessed metaphor and apply to all inputs (Machine selects included). (Inputs nearly invisible; three input surfaces coexist.).param-form__inputto symmetric--spacing-mdpadding; add.param-form__input--with-unit(toggled byNumberFieldonly whenunitis present) for the 3rem right pad. (48px dead gutter on unitless fields.)--font-size-sm/--line-height-relaxed; separate the "advanced" checkbox group with a hairline and--spacing-lgtop margin. (11px tight prose; checkbox breaks cadence.)--font-size-lgin--color-textto break the monotone band. (No typographic anchor.)Layer list + Add-Layer menu
position: absoluteunder the Add button,box-shadow: var(--shadow-lg),background: var(--color-bg-panel), single 1px border around the group (not per-row),z-index: var(--z-index-dropdown), close on outside-click/Escape (mirror Dialog). (Menu reads as content.)2px(.layers__add,.picker,.layers__list) with--spacing-xs..layers__add → .btn .btn--ghost .btn--small. (Off-scale density.)Dropdowns / popovers
--shadow-lg(good); apply the same elevation + a little internal padding rhythm to any popover that currently reads as a raw list. (Menus lack elevation/grouping.)Toasts / states
in:fly={{ x: 16, duration: 150 }} out:fade={{ duration: 150 }}andanimate:flipon the keyed list, using--transition-fast. (Toasts pop/vanish abruptly while the banner animates.)error()should passTOAST_DURATION_ERROR_MS; pause dismiss timer on hover/focus. (Defined-but-unused constant; 4s too short to read.)transition: var(--transition-colors)to the component-scoped hover targets that snap instantly (.vp__btn,.toast__close,.log__btn). (Partial motion adoption.)5. Accessibility fixes
--color-borderbump to#3a3a40brings input/panel boundaries to ~3:1; light theme border →#c3c9d4. (Border ~1.2:1.)--color-text-inverse: #08201ein light) — fixes white-on-teal 2.9:1. Verify Connect/Start/Send..icon-btnprimitive tobuttons.css(square--input-height-sm,inline-flex, centered, transparent base,--color-bg-hoveron hover, full focus ring) and apply to refresh, duplicate, delete, clear, dialog-close, and the layer-row handle; pad "+ Add Layer" to--input-height-sm. (Row/refresh controls under 24px.)outline: 2px solid transparent; outline-offset: 2pxalongside the box-shadow ring on input/select focus so HCM substitutes a system outline.tick()+ autofocus close button), trap Tab (cycle first↔last), restore focus on close, and addaria-labelledby→ the visible<h2>id.aria-hiddendots beside text labels (already good). Add a visually-hidden "unsaved changes" text node for the dirty marker; convert theⓘhelp glyph fromtitle-only to a focusable<button>with an accessible popover (or render help inline). (Title-only help is keyboard-inaccessible.)@media (prefers-reduced-motion: reduce)block intokens.csszeroing decorative transition/animation durations and swapping the infinite viewport spinner for an opacity pulse. (No guard anywhere.)6. Phased roadmap (minimal-first)
Phase 1 — Token + global CSS wins (highest leverage, lowest effort). Pure value/global edits, no component restructure.
--color-bg-canvas; raise--color-border/--color-border-soft(§3.1, §3.2). → fixes figure/ground, input visibility, non-text contrast.mdrung, add--color-text-label(§3.4–3.5).--color-text-inverse+ bg/border fixes (§3.7). → AA pass.prefers-reduced-motionblock; addtransition: var(--transition-colors)to the three snapping hover targets.--color-bg-canvas.Phase 2 — Component-level. Consolidate onto primitives.
.btn+ new.btn--danger/--warn/--success; promote Start Stream and "Generate preview" to.btn--primary(§4 Machine/viewport)..icon-btn; enlarge layer-row/refresh hit targets.--shadow-lgpopover with outside-click/Escape; on-scale spacing.--panel-header-height.Phase 3 — Layout / IA. Structural, larger blast radius.
InspectorSection(delete.param-form__title); single empty-state pattern for viewport + log.--font-size-lg).7. Out of scope / risks (to preserve restraint)
tokens.cssvalues and route components through existing primitives only.--color-accentand the duplicate status hues, or alias them — leaving them invites future drift.Grounding files referenced:
/home/cam/repos/fiberpath/fiberpath_gui/src/styles/tokens.css,buttons.css,forms.css,layout.css,typography.css, and the live-app ground truth at/tmp/claude-1000/-home-cam-repos-fiberpath/5673c7b8-15c9-41b3-af6d-f0bd26c51977/scratchpad/visual-ground-truth.md.CameronBrooks11 commentedon Jun 27, 2026
Status — 5 of 6 children merged
All redesign phases plus the dev-workflow + rename are on
main:The "precise instrument at rest" direction is realized: stronger figure/ground, a single teal accent, dominant section eyebrows with stepped-down labels, one consistent button/primitive system, an anchored tab row, and a calm dark palette. Remaining work is the #243 a11y/refactor follow-up.
CameronBrooks11 commentedon Jun 27, 2026
Epic complete — all 6 children merged
Shipped as 7 rebase-merged PRs (#239–#245), each with full CI green:
57e7553)3e1a703)dd43650)e061926)adec802)f4409b4)The "precise instrument at rest" direction is realized: stronger figure/ground (widened surface ramp + dedicated canvas surface + AA borders), a single teal accent (the competing green is gone), dominant section eyebrows with stepped-down labels, one unified
.btn/.icon-btnsystem, an elevated Add-Layer popover, an anchored tab row, dialog focus-trapping + accessible help, and a documented backend-connected dev workflow with accurate "Backend" terminology. Net code shrank across the consolidation phases. Closing the epic.