Repository navigation
feat: save edits in ordinary keys, edit the bar live and validate configuration - #10
Merged
Merged
Conversation
added 18 commits
October 15, 2026 16:08
…onfiguration error
|
🎉 This PR is included in version 0.2.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.
Follow-up to a code review of StableBar. Each change is its own Conventional Commit.
Fixes #4
Fixes #5
Configuration and saving
widgetOverrides; removing one setsenabled: false.customizationandremovedWidgetsare gone and are converted once when StableBar starts.widgets.clock: style.fontsize: Unknown property.Decoding errors previously showed only Foundation's generic "isn't in the correct format".stablebar.schema.jsongives editors completion and validation. A test keeps its property names in sync with the decoders, and the starter config references it.Editor
Widgets and appearance
"type": "battery","system","network"and"audio"work without defining a provider.heightfit their content (Size popups to their content instead of requiring a height #4).Runtime
aerospaceis found on thatPATHinstead of/opt/homebrew/binonly, and AeroSpace mode changes emit anaerospaceModeevent.Removed
cpu.sh,battery.shandvolume.shscripts and$STABLEBAR_SCRIPTS; the native widgets replace them.Layoutconformance.Breaking for existing configurations
This stays on 0.x, so no commit uses
!. What changes:$STABLEBAR_SCRIPTSand the bundled scripts are gone.Merging
Use a merge commit or a rebase merge so semantic-release sees each commit; the next release would be 0.2.0. A squash merge would keep only this title.
Notes
bar.displayScalewill conflict with this in a few lines ofConfiguration.swiftandAeroSpace.swift. Once merged,displayScaleneeds an entry instablebar.schema.json; the schema test reports it.Resources/widgets/, which this PR removes; that line is updated.Testing
swift test: 96 tests pass, and every commit builds with its tests.customization; the diff was limited to the converted keys.Resources/config.jsonand every file inexamples/against the schema with ajv.