Skip to content

FiberPath GUI: tasteful/minimal UI redesign + proper dev workflow #238

Closed
6 of 6 issues completed
Closed

Description

@CameronBrooks11

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:

  1. No real dev loop. The browser dev build (npm run dev → :5173) can't reach the backend: the FastAPI sidecar binds a random 127.0.0.1 port and reports it to the Rust shell, which the frontend reads via invoke("api_base_url") — a Tauri call absent in a plain browser. So the dev preview shows "CLI Backend Unavailable", no toolpath previews, and the prebuilt release/fiberpath_gui binary runs a stale, different UI (not current source). There is no faithful, backed dev loop for current code.
  2. 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

  1. The canvas is the figure; chrome is the ground.
  2. One accent means "go" — teal --color-primary owns every primary action; green/red/amber are status-only.
  3. Hierarchy by size, weight, contrast — not decoration.
  4. One primitive per role (one button system, one section header, one field anatomy).
  5. Calm comes from the top half of the spacing scale (promote structural padding; keep field rhythm tight).
  6. 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

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).

Sub-issues

Sub-issues

6 of 6 Issues completed
Loading 6 sub-issues

Activity

  1. added
    gui
    epic
    on Jun 27, 2026
  2. CameronBrooks11 commented on Jun 27, 2026

    @CameronBrooks11
    MemberAuthor

    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.css or 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

    1. The canvas is the figure; chrome is the ground. The viewport gets the lightest surface and the most space; rails recede.
    2. One accent means "go." Teal --color-primary owns every primary action. Green/red/amber are status only, never resting CTAs.
    3. Hierarchy by size, weight, and contrast — not decoration. Headers outrank labels; ALL-CAPS tracking is a subtle accent, never the only signal.
    4. One primitive per role. One button system, one section-header, one field anatomy, one input surface — across Prepare and Machine.
    5. Calm comes from the top half of the spacing scale. Promote structural padding/gaps up one step; keep field rhythm tight.
    6. Every surface and boundary must be perceptible — in both themes, at AA, and in forced-colors mode.

    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

    /* BEFORE */
    --color-bg:            #09090b;
    --color-bg-panel:      #141416;
    --color-bg-panel-alt:  #1d1d20;
    --color-bg-hover:      #222226;
    --color-bg-active:     #2a2a2e;
    
    /* AFTER */
    --color-bg:            #0a0a0c;  /* rails / recessed ground */
    --color-bg-panel:      #18181b;  /* panel plane (lifted ~+4) */
    --color-bg-panel-alt:  #232327;  /* input wells / chrome bars */
    --color-bg-hover:      #2b2b30;
    --color-bg-active:     #34343a;
    
    /* NEW: dedicated canvas surface — the figure */
    --color-bg-canvas:     #1c1c20;  /* viewport reads as the lit work surface */

    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/lg for true popovers, not panels — tone now does the separating.

    3.2 Borders — meet WCAG 1.4.11 (3:1) for control/panel boundaries

    /* BEFORE */
    --color-border:       #242428;                    /* ~1.2:1 on panel — invisible */
    --color-border-soft:  rgb(255, 255, 255, 0.04);
    
    /* AFTER */
    --color-border:       #3a3a40;                    /* ~3:1 on #18181b panel */
    --color-border-soft:  rgb(255, 255, 255, 0.09);   /* visible hairline for dividers */

    3.3 One canonical primary; collapse status duplicates

    /* Brand — unchanged, but now the ONLY primary action color */
    --color-primary:       #12a89a;
    --color-primary-hover: #0e8a7e;
    --color-primary-soft:  #75e3d8;
    
    /* AFTER: one token per status; retire the near-duplicates */
    --color-success: #22c55e;   /* was #32d2b6 (teal-adjacent) — now the green */
    --color-error:   #ef4444;   /* was #ff8a8a — collapse the three reds */
    --color-warning: #f97316;   /* collapse the three warnings; keep yellow only if "caution" is real */
    
    /* Keep --status-* as the ONLY names components reference: */
    --status-success: var(--color-success);
    --status-error:   var(--color-error);
    --status-warning: var(--color-warning);

    Rationale: fixes two competing primaries (teal Connect vs green Start Stream), success #32d2b6 colliding 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)

    /* --color-text-muted #8f929c on the NEW #18181b panel ≈ 5.6:1 — still AA. Keep. */
    --color-text:        #f7f8fa;
    --color-text-muted:  #8f929c;
    
    /* Field labels step DOWN from --color-text so headers outrank them: */
    --color-text-label:  #c4c7cf;  /* NEW: label tone between text and muted */

    3.5 Type scale — fewer, more meaningful steps + one anchor

    /* BEFORE: xs 11.2 / sm 12 / base 14 / md 15 / lg 16 / xl 20 / 2xl 24  (sub-2px noise) */
    
    /* AFTER: prune the redundant md rung; widen the gaps */
    --font-size-xs:   0.6875rem; /* 11px — single-line metadata only (units, indices, status) */
    --font-size-sm:   0.75rem;   /* 12px — labels, secondary */
    --font-size-base: 0.875rem;  /* 14px — body / inputs */
    --font-size-lg:   1rem;      /* 16px — pane/workspace anchor */
    --font-size-xl:   1.25rem;   /* 20px — dialog titles */
    --font-size-2xl:  1.5rem;    /* 24px — error boundary only */
    /* DROP --font-size-md (15px, used once). Map h4–6 onto --font-size-base. */

    3.6 Spacing — already a clean scale; the change is usage (see §4)

    No token edits. Promote --spacing-md → --spacing-lg for panel/section-body padding, add --spacing-xl between major groups, and replace all hardcoded 2px with --spacing-xs. Wire the unused --panel-header-height: 2.5rem into InspectorSection.

    3.7 Light theme — fix the AA failure and flat figure/ground

    [data-theme="light"] {
      --color-bg:           #eef0f4;  /* was #f9f9fb — deepen so white panels float */
      --color-bg-panel:     #ffffff;
      --color-bg-panel-alt: #f4f4f6;
      --color-bg-canvas:    #ffffff;
      --color-border:       #c3c9d4;  /* was #d4d8e1 — stronger boundary */
      --color-text-muted:   #5d6470;  /* ≈5.6:1, keep */
      /* CRITICAL: do NOT flip primary-button text to white (2.9:1 fail). */
      --color-text-inverse: #08201e;  /* dark text stays on teal fill in light theme */
    }

    4. Component & layout changes

    Grouped by area. Each references the finding it resolves.

    Shell / menubar / status / tabs

    • Differentiate the top-level tab row from the menubar. The menubar, workspace tabs, and banner currently stack as three near-identical grey bars. Make Prepare/Machine tabs visually outrank the File/Edit menu: larger label, a stronger active treatment (filled or higher-contrast label, not just a 2px underline). (Banner/menubar/tabs read as one stack.)
    • Status bar: lift onto the new border/contrast; the dirty marker should use --status-warning or 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

    • Give the viewport its own surface: background: var(--color-bg-canvas) so it reads as the figure; rails stay on --color-bg. (Viewport reuses root background.)
    • Promote "Generate preview" to the primary action. Replace the tertiary .vp__btn chrome 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-lg gap, centered. (Tiny secondary button in a black void; two viewport empty states with inconsistent grammar.)
    • Factor one empty-state pattern (title + optional hint + optional action) shared by no-layers, no-preview, and error (error-colored title + Retry). (Inconsistent empty states.)
    • Regeneration: when a preview image already exists, keep it dimmed (opacity: 0.5) under an overlaid spinner instead of blanking to the void. (Refresh erases context.)

    Machine panes + buttons

    • Start Stream → .btn .btn--primary (teal). Green moves to the active "Streaming" status dot/progress only. (Two primaries.)
    • Route all .action/.cmd/.send/.icon-btn through .btn: neutral → .btn--secondary; Connect/Start → .btn--primary; Send → .btn--secondary .btn--small. Add .btn--danger/.btn--warn/.btn--success once in buttons.css (for E-Stop, etc.) and delete the per-component .action* blocks duplicated across ConnectionSection and FileStreamingSection. (Components reinvent buttons; .action defined twice; heights/radii drift.)
    • Output Log empty state: center the existing one-sentence copy in the body at --font-size-sm (sans, not mono) so it reads as guidance, not a log line. (Tiny top-left afterthought.)

    Inspector / forms

    • Unify on ONE section-header language. Wrap the three Prepare config forms (Mandrel/Tow/Machine) in InspectorSection and 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.)
    • Fix the inverted hierarchy. Section titles → --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.)
    • Header bar surface ≠ input surface. Give .section__header a flat --color-bg-panel + bottom hairline (eyebrow carries grouping), leaving --color-bg-panel-alt exclusively for input wells. Wire height: var(--panel-header-height). (Header and inputs share panel-alt; header height hardcoded/undersized.)
    • Inputs: after the surface widen, keep inputs recessed — fill --color-bg-panel-alt (#232327) inside --color-bg-panel (#18181b) with the new #3a3a40 border = clearly a target. Pick the recessed metaphor and apply to all inputs (Machine selects included). (Inputs nearly invisible; three input surfaces coexist.)
    • Conditional unit gutter. Default .param-form__input to symmetric --spacing-md padding; add .param-form__input--with-unit (toggled by NumberField only when unit is present) for the 3rem right pad. (48px dead gutter on unitless fields.)
    • Help text: bump inspector help paragraphs to --font-size-sm / --line-height-relaxed; separate the "advanced" checkbox group with a hairline and --spacing-lg top margin. (11px tight prose; checkbox breaks cadence.)
    • Mono rule: mono for editable numeric values (tabular alignment is defensible) or code only — pick one and apply to number inputs + selects consistently. Recommend: mono = numeric data. (Mono mixed within one form.)
    • One workspace anchor: render the active pane/workspace identity at --font-size-lg in --color-text to break the monotone band. (No typographic anchor.)

    Layer list + Add-Layer menu

    • Make the picker a real popover: position: absolute under 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.)
    • On-scale spacing: replace every 2px (.layers__add, .picker, .layers__list) with --spacing-xs. .layers__add → .btn .btn--ghost .btn--small. (Off-scale density.)

    Dropdowns / popovers

    • View/menubar dropdowns already use --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

    • Animate toasts with in:fly={{ x: 16, duration: 150 }} out:fade={{ duration: 150 }} and animate:flip on the keyed list, using --transition-fast. (Toasts pop/vanish abruptly while the banner animates.)
    • Wire the 6s error duration: error() should pass TOAST_DURATION_ERROR_MS; pause dismiss timer on hover/focus. (Defined-but-unused constant; 4s too short to read.)
    • Apply 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

    • Non-text contrast (1.4.11): the --color-border bump to #3a3a40 brings input/panel boundaries to ~3:1; light theme border → #c3c9d4. (Border ~1.2:1.)
    • Light-theme AA (1.4.3): keep dark text on teal primary buttons (--color-text-inverse: #08201e in light) — fixes white-on-teal 2.9:1. Verify Connect/Start/Send.
    • Target size (2.5.8, 24×24): add a shared .icon-btn primitive to buttons.css (square --input-height-sm, inline-flex, centered, transparent base, --color-bg-hover on 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.)
    • Forced-colors focus (2.4.7 / 1.4.1): add outline: 2px solid transparent; outline-offset: 2px alongside the box-shadow ring on input/select focus so HCM substitutes a system outline.
    • Dialog focus management (2.4.3 / ARIA modal): move focus into the dialog on open (tick() + autofocus close button), trap Tab (cycle first↔last), restore focus on close, and add aria-labelledby → the visible <h2> id.
    • Status not by color alone: keep aria-hidden dots beside text labels (already good). Add a visually-hidden "unsaved changes" text node for the dirty marker; convert the ⓘ help glyph from title-only to a focusable <button> with an accessible popover (or render help inline). (Title-only help is keyboard-inaccessible.)
    • Reduced motion: one global @media (prefers-reduced-motion: reduce) block in tokens.css zeroing 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.

    • Widen surface ramp + add --color-bg-canvas; raise --color-border/--color-border-soft (§3.1, §3.2). → fixes figure/ground, input visibility, non-text contrast.
    • Collapse status duplicates; make green status-only; one canonical primary (§3.3). → kills competing primaries + muddy success.
    • Re-space type scale, drop md rung, add --color-text-label (§3.4–3.5).
    • Light-theme --color-text-inverse + bg/border fixes (§3.7). → AA pass.
    • Global prefers-reduced-motion block; add transition: var(--transition-colors) to the three snapping hover targets.
    • Point the viewport at --color-bg-canvas.

    Phase 2 — Component-level. Consolidate onto primitives.

    • Route Machine/layer buttons through .btn + new .btn--danger/--warn/--success; promote Start Stream and "Generate preview" to .btn--primary (§4 Machine/viewport).
    • Add shared .icon-btn; enlarge layer-row/refresh hit targets.
    • Add-Layer picker → real --shadow-lg popover with outside-click/Escape; on-scale spacing.
    • Section-header fix: titles dominant, labels stepped down, header surface ≠ input surface, wire --panel-header-height.
    • Conditional unit gutter; help-text size/leading; toast enter/exit + 6s error duration + pause-on-hover.
    • Dialog focus trap/restore; input forced-colors outline; help-glyph as focusable button.

    Phase 3 — Layout / IA. Structural, larger blast radius.

    • Unify Prepare config forms under InspectorSection (delete .param-form__title); single empty-state pattern for viewport + log.
    • One workspace/pane typographic anchor (--font-size-lg).
    • Differentiate the tab row from the menubar (segmented/stronger active state, or merge the two bars).
    • Regeneration keeps dimmed prior image.

    7. Out of scope / risks (to preserve restraint)

    • No new dependencies, no CSS framework, no Tailwind, no design-token build tool. Edit tokens.css values and route components through existing primitives only.
    • Do not introduce new accent colors or gradients. The palette stays dark and near-monochrome with teal as the single accent; resist "brightening" the UI.
    • Do not lighten the base background toward grey — the calm depends on a dark ground; widen the ramp, not the overall brightness.
    • Do not loosen every field. Promote structural padding/gaps only; keep the 16px intra-field rhythm. Over-spacing would trade cramped for sparse.
    • Don't keep dead tokens half-wired. Either retire --color-accent and the duplicate status hues, or alias them — leaving them invites future drift.
    • Don't redesign the canvas/renderer, the 3-pane grid, or the drawer behavior — they're structurally sound; this is an evolution, not a re-layout.
    • Risk: surface-ramp shift touches every panel at once. Land Phase 1 behind a quick visual pass in both themes; muted-text and border deltas were chosen to stay ≥AA on the new surfaces, but verify Connect/Start/Send and input borders after the change rather than asserting it.
    • Risk: aliasing-then-deleting status tokens. Keep deprecated aliases for one release so no component renders an undefined variable.

    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.

  3. CameronBrooks11 commented on Jun 27, 2026

    @CameronBrooks11
    MemberAuthor

    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.

  4. CameronBrooks11 commented on Jun 27, 2026

    @CameronBrooks11
    MemberAuthor

    Epic complete — all 6 children merged

    Shipped as 7 rebase-merged PRs (#239–#245), each with full CI green:

    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-btn system, 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.

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

    epicgui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions