Skip to content

refactor(gui): finish the one-button-system consolidation - #258

Merged
CameronBrooks11 merged 1 commit into
mainfrom
feat/252-consolidation
Jun 27, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
feat/252-consolidation

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Closes #252. Part of epic #246 (post-redesign audit follow-ups). Final slice.

Problem

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

Fix

  • Close glyphs → shared .icon-btn (.dialog-close and .toast__close removed); new .icon-btn--lg for the larger dialog ×.
  • Section eyebrow → one .section-eyebrow utility (typography.css) for InspectorSection, StreamLog, and diagnostics titles — one size/tracking/color, replacing three hand-rolled treatments.
  • Menu rows → shared .menu-item (buttons.css) for the menubar dropdown and the Add-Layer picker (flex base supports text-only and icon+text).
  • Link buttons → .btn .btn--secondary .btn--block + new layout-only .btn--start.
  • Right-rail empty state → shared EmptyState primitive (was a bespoke .placeholder).
  • Tokenize the leftover magic values the re-audit flagged: header heights → --input-height-sm; ConnectionSection label margin 2px → --spacing-xs.
  • Drive-by: finish the CLI→Backend rename in DiagnosticsDialog ("CLI Status" → "Backend Status", "Refresh CLI Status" → "Refresh Backend Status").

Net −63 lines.

Verification

  • lint:css, lint:css:vars, check:svelte (0 errors), tsc, 316/316 tests ✓
  • Live Chrome QA: Diagnostics + About dialogs (unified × close, eyebrows, link buttons), Help dropdown + Add-Layer picker (shared menu-item), right-rail "No layer selected" EmptyState — all render correctly. Screenshots captured.

The redesign mostly held to "one system" but a few atoms were re-implemented by
hand — the drift the consolidation pass existed to prevent.

- Close glyphs: collapse the bespoke .dialog-close and .toast__close onto the
  shared .icon-btn, adding an .icon-btn--lg modifier for the larger dialog ×.
- Section eyebrow: extract one .section-eyebrow utility (typography.css) and use
  it for InspectorSection, StreamLog, and the diagnostics section titles — one
  size, one tracking, one color, replacing three hand-rolled treatments.
- Menu rows: extract a shared .menu-item (buttons.css) for the menubar dropdown
  and the Add-Layer picker (flex base supports both text-only and icon+text).
- Link buttons: replace .link-button with .btn .btn--secondary .btn--block plus
  a new layout-only .btn--start (left-align) modifier.
- Right-rail empty state now uses the shared EmptyState primitive (was a bespoke
  .placeholder paragraph), matching the viewport/log empty-state language.
- Tokenize the leftover magic values flagged by the re-audit: InspectorSection
  and StreamLog header heights -> --input-height-sm; ConnectionSection field
  label margin 2px -> --spacing-xs.
- Drive-by: finish the CLI->Backend rename in DiagnosticsDialog ("CLI Status" ->
  "Backend Status", "Refresh CLI Status" -> "Refresh Backend Status").

Part of #246. Closes #252.
@CameronBrooks11
CameronBrooks11 merged commit f10ba85 into main Jun 27, 2026
18 checks passed
@CameronBrooks11
CameronBrooks11 deleted the feat/252-consolidation branch June 27, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GUI: finish the one-button-system consolidation

1 participant