Skip to content
This repository was archived by the owner on Sep 23, 2026. It is now read-only.

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

Merged
ElbertePlinio merged 2 commits into
mainfrom
feat/47-settings-actions
Jul 23, 2026
Merged

ElbertePlinio merged 2 commits into
mainfrom
feat/47-settings-actions

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Summary

  • root cause: the Settings scroller's .fade-up entrance animation retains a transform (fill-mode: both), making .content a permanent CSS containing block for position: fixed descendants — the old in-Settings save bar clipped against the scroller at compact sizes
  • fix: dirty-state save/discard bar hoisted to a root-level fixed overlay in App.svelte (same pattern as the nav-away confirm dialog); Settings keeps save/discard ownership via callbacks
  • new pure settingsSaveDisplayState(dirty) is the single source of truth (header save hidden+overlay shown when dirty, header visible+disabled when clean, never both) — the port seam for PickScribe Prototype a permission-gated Grok usage extractor #45
  • compact (≤700px, the existing breakpoint): labeled Save pill; Discard stays reachable via the nav-away guard (reviewer-verified for every exit path)
  • Playwright regression at the issue's exact repro sizes (937×747, 1344×951), proven to fail against the pre-fix code

Closes #47. Follow-up filed: #64 (pre-existing discard-during-save race, surfaced in review, not introduced here).

Validation

  • check (220 files), lint, 74 vitest tests, coverage ratchet, build, browser-preview smoke incl. the new regression — all green; reviewer independently reproduced the suite
  • real KDE Wayland visual pass happens in the release-candidate phase on Elberte-PC (not claimed here)

Local review: standard risk class — one independent UI-correctness reviewer; verdict clean (two P3s: dead label fixed in 532b0a5, discard race deferred as #64). KISS keep.

The dirty-state save/discard bar rendered inside the scrolling Settings
surface, whose .fade-up 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 disappeared at compact window sizes.

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, so PickScribe #45 has a single tested seam to port. Extend the
browser-preview smoke with a headless-Chromium regression at the
issue's exact repro sizes (937x747, 1344x951) asserting the overlay
stays within viewport bounds.

No feature flag: self-contained UX correction shipping in the next
release, as scoped by the issue.
@ElbertePlinio
ElbertePlinio merged commit d353f30 into main Jul 23, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep unsaved settings actions visible at compact sizes

1 participant