Skip to content

GUI: finish the one-button-system consolidation #252

Closed

Description

@CameronBrooks11

Part of #246. The "one system" goal mostly holds, but a few atoms were re-implemented by hand — the exact drift the consolidation pass existed to prevent.

Findings (verified)

  • [MED] Three implementations of the square × close button. styles/dialogs.css:58 (.dialog-close, even re-declares the global :focus-visible byte-for-byte) and Toasts.svelte (.toast__close) vs the correct .icon-btn already used in FileStreamingSection/LayerList. Collapse both onto .icon-btn; add an .icon-btn--lg modifier if the dialog close needs a larger hit target.
  • [MED] Three divergent uppercase "section eyebrow" treatments. InspectorSection.section__title (xs / 0.04em), StreamLog.log__title (xs / 0.04em / muted color), dialogs.css:196-203 diagnostics h3 (base / 0.05em). Extract one .section-eyebrow utility (or --eyebrow-size/--eyebrow-tracking tokens) — pick one size (xs) and one tracking.
  • [LOW] Same eyebrow role in two colors in the Machine workspace. StreamLog.svelte:69 (muted) vs InspectorSection (--color-text) — pick one.
  • [LOW] .link-button duplicates .btn--secondary. dialogs.css:154 — replace with class="btn btn--secondary btn--block" plus a layout-only modifier if needed.
  • [LOW] Dropdown menu-item style copied in two places. LayerList.svelte:166 and the menubar dropdown — extract a shared .menu-item.
  • [MED · ia-flow] Right-rail empty state bypasses the shared EmptyState primitive. shell/PrepareWorkspace.svelte:50 — replace the bespoke .placeholder paragraph with <EmptyState title="No layer selected" hint="Select a layer to edit its properties." />.
  • [LOW] StreamLog header uses a bespoke section header instead of the InspectorSection header language (StreamLog.svelte:19) — reuse with an action snippet, or document the deviation.

Acceptance

  • Close buttons, eyebrows, menu items, link buttons, and the right-rail empty state all route through the shared primitives/utilities — no bespoke duplicates left for these atoms.
  • Full gate (lint:css, check:svelte, test) + visual QA of dialogs, toasts, the Add-Layer/menubar menus, and the inspector empty state.
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