Repository navigation
3.1.0: land the reviewed localization, Settings and cleanup PRs - #184
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 <[email protected]>
…cross cleanup and maintenance tools Localize dynamic statuses, progress, dialogs, errors, permissions, and Time Machine snapshot workflows. Add locale fallbacks and validate format placeholders to prevent malformed translations.
# Conflicts: # PureMac/Services/ProtectionAudit.swift
# Conflicts: # PureMacTests/LocalizationFilesTests.swift
…and #167 German gets English fallbacks for the 406 keys the other locales received in #180, so the catalogs stay in parity, and its "Clear" now matches the clear-selection button that key is used for. The "1 files" and "3 file(s)" strings #180 introduced go back to proper singular and plural forms through "1 file", "1 folder", "%lld files" and "%lld folders" keys in every locale. zh-Hans takes the full-width punctuation, the "Older than" wording and Apple's term for purgeable space from #181 by @BruceQin520. The zh-Hans-only completeness test is removed: the repo convention is English fallbacks for new keys, and that test would fail on every future key until it is translated.
#170 replaced the Sparkle-based UpdateService with a GitHub release check and removed the last import, but the SwiftPM package and target dependency stayed, so a 2.7 MB Sparkle.framework with its XPC services and Autoupdate helper kept shipping inside PureMac.app with nothing referencing it. Sparkle was already inert on main: no SUFeedURL was ever configured.
AppStateTests.swift carried a second test class for the DerivedData support type. It now lives in XcodeBuildMCPDerivedDataSupportTests.swift, named after the type it covers, with the project file regenerated by xcodegen. Test bodies are unchanged.
…ocess notes In #173 by @BinaryBearsLLC every proc_pidinfo failure other than ESRCH counted as "unavailable", and on any non-root Mac roughly 230 root-owned processes fail with EPERM, so the orange "Some protected or changing processes could not be measured." note never went away and a reader could not tell a permission limit from churn. EPERM now feeds a neutral "System processes are not listed. Use Activity Monitor for those." line. Processes that started or stopped since the previous sample, together with reads that failed for any other reason, feed a separate note that only shows for the sample it describes and never on the first sample, which has no baseline. The old key is replaced in all twelve catalogs.
XcodeBuildMCP 2.7.1 renamed itself MobileBuildMCP and moved its state to ~/Library/Developer/MobileBuildMCP without migrating the old directory. The scanner now treats both roots as managed with the same workspace layout, legacy DerivedData rule and filesystem-lifecycle lock, and rows from the new root are prefixed "MobileBuildMCP:". The discovery, lock and Trash design is @omartio's; the three workspace tests now run against both roots, and the README names both tools and no longer implies that the lock detects a running build.
…ng is paused #173 by @BinaryBearsLLC cleared the consumer list, icons and names whenever sampling paused, so a Cmd-Tab away and back emptied the Apps and processes list and made the user wait two samples before CPU values came back. Pausing now only cancels the sampler. The previous sample stays visible under the "Live updates paused" notice, and resuming creates a new session-scoped sampler so the baseline resets and the first new interval cannot be fed from stale counters. The lifecycle test asserts the retained sample, that a cancelled sampler publishes nothing, and the fresh baseline on resume.
In #173 by @BinaryBearsLLC one member without an interval yet turned a whole group's CPU into unknown, so apps that spawn helpers every few seconds (browsers, Xcode) flickered between a value and a dash on every sample. A group now keeps the sum of its measured members and is marked partial for that sample. The row shows the value with a trailing plus and explains the mark on hover; a group with no measured member still reads as unknown. The grouping test covers the partial sum, the unknown case and the complete case.
The process rows from #173 by @BinaryBearsLLC interpolate the member count into "%lld processes", but only the "1 process" form was added to the catalogs, so the plural rendered from its key. All twelve locales get the key; German and Simplified Chinese get translations for both forms, the rest keep the English fallback the repo uses for new keys.
…ndow #169 by @BinaryBearsLLC renders the same SettingsView on the sidebar page and in the Settings scene, so the Cmd+, window titled "Settings" repeated "Settings" and the tagline as a 26 pt header right under its title bar. The standalone window now opens on the tab picker. The sidebar page keeps its header, and the version and build it carried stay reachable on the Updates tab.
Translation by @BinaryBearsLLC from #174 (commit 8c20a93), re-cut on top of #180, #167 and the other #174 commits. it.lproj/Localizable.strings follows the current en key set and file order: 829 values come from the #174 Italian catalog and 23 keys that did not exist there keep the English text as a fallback (the filter labels, memory and admin-removal messages added by #180). "German" is rendered as "Tedesco" and "App Updates" as the noun phrase "Aggiornamenti app" because the key is used as a navigation title and sidebar label. InfoPlist.strings and ServicesMenu.strings are taken unchanged. The "Italian" language name is added to all 12 existing locales, .italian to AppLanguage, the it bundle to the localization tests, and the README Settings paragraph mentions Italian. The second half of #174, a refactor that routed service and view-model strings through String(localized:) and added 432 keys to every locale, was not taken: #180 already landed the same change on this branch and the two rewrites of the same lines conflict.
The pre-2.5 shared DerivedData root has no per-workspace lock, so acquireLifecycleLock returned nil for it and every cleanup attempt ended with "lifecycle lock is unavailable" while the scan kept offering the row. Only workspace DerivedData now waits for the lock; the legacy root goes straight to the Trash. @omartio's lock handling for workspace roots is unchanged, and a test covers the legacy row end to end.
…omes ScanEngine and CleaningEngine now canonicalize a symlinked home, but ProviderPaths still built its issue #142 roots from the literal account home, so provider state such as Library/Caches/com.apple.bird under a symlinked home was scanned as a selected User Cache row and deleted. deniedRoots and isProviderOwned now take the engine home and spell every root under its literal, resolved and standardized forms; both engines pass their own home, and isExplicitSingleFileDeletable uses the same home as the allowlist. A linked-home test covers com.apple.bird and CloudStorage.
isSafeToDelete(item:resolvedPath:) already answers for managed DerivedData before delegating, so the early return inside isSafeToDelete(resolvedPath:) could never run. The XcodeBuildMCPStorage alias had no callers, and a Trash move without a resulting URL no longer records an empty path.
# Conflicts: # PureMac.xcodeproj/project.pbxproj
This was referenced Oct 8, 2026
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.
Integration branch for 3.1.0, merged with a merge commit so each contributor's commits keep their authorship.
Localization
Settings and Performance (series by @BinaryBearsLLC, cherry-picked with authorship)
Cleanup
Every strings catalog is at 857 keys in 13 locales with parity, no duplicates and matching specifiers. 140 tests passed before the Italian and series-fix commits; CI runs the full suite on this branch.