Skip to content

fix(settings): keep unsaved save actions visible at compact sizes - #58

Merged
ElbertePlinio merged 1 commit into
mainfrom
feat/45-settings-actions
Jul 23, 2026
Merged

ElbertePlinio merged 1 commit into
mainfrom
feat/45-settings-actions

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Summary

Port of the accepted pickgauge#47 behavior (pickforge/pickgauge#65) per this repo's #45:

  • PickScribe had the identical root cause: the .fade-up entrance animation (fill-mode: both, transform keyframe) makes the Settings scroller a permanent containing block for position: fixed, clipping the old in-Settings save bar at compact sizes
  • save/discard bar hoisted to a root-level fixed overlay in App.svelte (sibling of the existing nav-guard dialog); Settings keeps ownership via callbacks
  • pure settingsSaveDisplayState(dirty) single source of truth (header hidden+overlay when dirty, header visible+disabled when clean, never both) — truth table byte-identical to the reference
  • compact (≤700px): labeled Save pill, Discard reachable via the existing nav-guard (reviewer-traced across all exit paths incl. tray and close-to-hide)
  • PickScribe wording/tokens throughout; no pickgauge coupling

Closes #45. Follow-ups filed: #56 (browser-preview regression harness — PickScribe has none, coverage gap disclosed in UNRELEASED.md), #57 (pre-existing install.sh bash-3.2 smoke failure, unrelated).

Validation

  • check (227 files), 33 vitest tests, coverage ratchet, build — all green; reviewer independently reproduced
  • real KDE Wayland visual pass defers to the release-candidate phase on Elberte-PC

Local review: standard risk class — one independent UI-correctness/port-fidelity reviewer; verdict clean, zero findings. KISS keep.

The dirty-state save/discard bar rendered inside the scrolling Settings
surface (.content.fade-up in App.svelte), whose entrance animation gives
it a transform and therefore makes it a containing block for
position: fixed descendants. The bar was positioned and clipped
relative to that scroller instead of the app viewport, so it could
disappear at compact window sizes — the same hazard fixed upstream in
pickgauge#47.

Move the dirty-state actions to the app overlay layer (a sibling of
.app, like the existing nav-away dialog) so they stay fixed to the
viewport at every window size. The header Save button is now visible
and disabled while clean, and hidden (without shifting layout) while
dirty, so exactly one primary Save action is presented at a time. The
overlay shows the full unsaved-indicator/Discard/Save dock at wide
widths and a labeled Save pill at compact widths (existing 700px
breakpoint); discard stays reachable via the navigation-away guard.

Extract the clean/dirty visibility rule into a pure
settingsSaveDisplayState function shared by the header button and the
overlay, with a characterization test suite, matching the tested seam
pickgauge#47 introduced for this port.

No feature flag: self-contained UX correction shipping in the next
release, as scoped by the issue.
@ElbertePlinio
ElbertePlinio merged commit 93b9191 into main Jul 23, 2026
1 check passed
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.

Adopt responsive unsaved-settings actions

1 participant