Skip to content

3.1.0: land the reviewed localization, Settings and cleanup PRs - #184

Merged
momenbasel merged 30 commits into
mainfrom
integration/3.1.0
Oct 8, 2026
Merged

momenbasel merged 30 commits into
mainfrom
integration/3.1.0

Conversation

@momenbasel

Copy link
Copy Markdown
Owner

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.

hadzicni and others added 30 commits September 13, 2026 20:39
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
Copilot AI balanced review requested due to automatic review settings October 8, 2026 02:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

4 participants