feat: auto-trim schedule, TrimNow preview, settings rewrite with segmented tabs - #20
Merged
ricardoleal merged 1 commit intoJun 13, 2026
Conversation
…ented tabs - Add AutoTrimService with daily timer (86400s) and 24h cooldown - Extract TrimUnit enum; replace months-only with days/weeks/months - Rewrite SettingsStore from @ObservationIgnored backing vars to stored + didSet - Rewrite SettingsView from TabView to 4-tab segmented picker (Trim, Auto Trim, Helper, General) - TrimNowSheet: add preview phase (configure → scan → preview → delete → done) - WindowSetup: hide main window on launch when showWindowOnLaunch = false - BackupViewModel: add prepareTrimNow() scanning + confirmedTrimNow() deletion split - TrimByAgeView: add unit picker, dynamic slider bounds - HelperClient: nonisolated isInstalled + uninstall() via osascript Signed-off-by: Ricardo Leal <ricardo.martins-leal@siemens.com>
This was referenced Jun 13, 2026
ricardoleal
deleted the
6-auto-trim-scheduled-background-deletion-of-old-backups
branch
June 13, 2026 17:12
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.
Description
Completes the auto-trim feature with daily schedule, adds a preview phase to TrimNow, rewrites Settings with a native macOS segmented tab layout, and fixes the window launch visibility bug.
autoTrimLastRuncutoffDate(byAdding:to:)anddisplayName(count:)@ObservationIgnored+computed to stored var+didSetfor proper@ObservabletrackingTabViewwith custom segmented picker (Trim/Auto Trim/Helper/General tabs), card-based layout, removed all section header Labels and Picker "Unit" labelsconfigure → scanning → preview → deleting → doneflow, user sees backup count before confirming deletionorderOut(nil)whenshowWindowOnLaunch = false(fix: SwiftUI creates window before AppDelegate fires)prepareTrimNow()/confirmedTrimNow()split for preview flow;trimThresholdValue/UnitreplacesageThresholdMonthsnonisolated isInstalled+uninstall()viaosascriptwith admin privilegesRelated Issue
#6
Type of Change
How Has This Been Tested?
Checklist
Screenshots (if applicable)