Repository navigation
fix(settings): keep unsaved save actions visible at compact sizes - #58
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Port of the accepted pickgauge#47 behavior (pickforge/pickgauge#65) per this repo's #45:
.fade-upentrance animation (fill-mode: both, transform keyframe) makes the Settings scroller a permanent containing block forposition: fixed, clipping the old in-Settings save bar at compact sizessettingsSaveDisplayState(dirty)single source of truth (header hidden+overlay when dirty, header visible+disabled when clean, never both) — truth table byte-identical to the referenceCloses #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
Local review: standard risk class — one independent UI-correctness/port-fidelity reviewer; verdict clean, zero findings. KISS keep.