Repository navigation
fix: turn on Sound's details popup in setup, the starter and earlier bars - #912
Merged
Merged
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 8 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
|
🎉 This PR is included in version 0.19.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Problem
Sound added from Get Widgets has its details popup on, but the Sound widget that setup's presets, both starters and earlier releases write has it off, so its click does nothing. Fixes #911.
Changes
WidgetSet.soundgets"details": true, as.batteryhas. This covers every preset with Sound and the starter below the menu bar, which is built from it.Resources/config.jsonand its copy,SetupPreferences.bundledMenuBarStarter, get it too.migrateEarlierSoundDetailsruns at launch, for the main file and each screen's own bar. In a file saved before 0.19.0, it turns ondetailsfor eachaudiowidget that doesn't setdetails,onClick,open,menu,popuporpopupName. Those are the keys that take precedence over the details popup (WidgetView.swift). It uses the release pinned before the launch's migrations and the 0.19.0 cutoff, like fix: drop the earlier starter's bar sizes so each theme draws with its own #909. Turning the toggle off writes"details": false, so a beta user who turned it off keeps it off.widgets.mdsays earlier Sound widgets turn theirs on, andgetting-started.mdsays what setup's Sound shows in its popup.Testing
swift build --build-tests, then the setup, starter, preset, scene, schema, release and configuration-edit tests: 252 ran. The only failures are the fiveunchangedAppRejects…release cases, which fail the same way on plainmainon this Mac.soundWidgetsSavedBefore019TurnOnTheirDetails: a file pinned to 0.19.0 is left as it is. One saved by a beta turns on a plain Sound widget's details and keeps"details": false, a Sound widget withonClickand a Battery widget as they are.everyReleasedStarterConfigurationStillLoadsnow runs the migration on every released starter.--validateon the starter without its theme (a debug build has no bundled themes): valid, 5 widgets.scripts/check.sh --quickpasses. Merges cleanly with fix: drop the earlier starter's bar sizes so each theme draws with its own #909.scenes/sound-details-popup.jsonalready draws. I didn't launch the app.Merging
One commit, so any merge method works.
Claude Opus 5.5 via Claude Code