You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: make setup's tiles, closing card and permission buttons work with the keyboard and VoiceOver - #554
Tiles (SetupTile) follow how buttons behave on the Mac:
one Tab stop each, even with macOS's Keyboard navigation off (unrestricted .focusable, macOS 14+). The inner button is .focusable(false), so there's no second stop when Keyboard navigation is on;
Space chooses the focused tile. Return stays with Continue, the default button, which macOS gives the key to first anyway. ← → still change themes and Esc still skips;
a mouse click doesn't leave a focus ring, and nothing has focus when a step or the window appears. Rings show only once you press Tab;
the ring follows the tiles' rounded corners (.contentShape(.focusEffect, …)), and a theme that gets focus scrolls into view, without animation when Reduce Motion is on.
VoiceOver:
each tile is one element with its name, the button trait and selected state;
preset tiles describe their widgets in words, for example "Notch. Notch theme. Widgets: Apple menu, App menus, Sound, Battery, Clock, Menu bar items.", matching what the tile draws for the bar's placement and for Macs without a battery;
the intro's wordmark reads "StableBar";
the progress dots say "Introduction" during the intro.
Permission buttons name their permission ("Allow Accessibility", "Open Automation Settings") in the shared helper. They also list the visible title as a Voice Control input label, so "Click Open Settings" works. The title-based helper stays, so feat: check the Switch to Desktop shortcuts in setup and Settings #551's "Open Keyboard Shortcuts…" row compiles unchanged.
The closing card shows focus rings again.
docs/getting-started.md describes the keyboard controls.
Testing
SetupAccessibilityTests:
every preset's label, with and without a battery, for both placements;
the "Introduction" label;
permission names;
in an offscreen window, the key-view loop moves tile 0 → tile 1, Space chooses the focused tile once, and Return goes through performKeyEquivalent to Continue.
A standalone probe (a copy of the tile with Continue, Previous and Skip shortcuts in an offscreen window) gave the same results with AppleKeyboardUIMode 1, 2 and 3:
no focus at first, after a step change, or after a click;
one Tab stop per tile;
Space fires once;
← → and Esc still work.
git merge-tree with #551 is clean, and the merged tree builds. 28 XCTest and 26 Swift Testing pass in the setup filter. scripts/check.sh --quick and commitlint pass.
No images: all six setup scenes render byte-identical to main, because offscreen drawing doesn't show focus rings. To check by hand:
Keyboard navigation off: Tab cycles the tiles with a rounded ring, Space chooses, Return continues, and a click leaves no ring.
Keyboard navigation on: one Tab stop per tile, and Space fires once.
VoiceOver: each tile reads its label, "button" and "selected", and VO-Space chooses it.
Merging
One commit on main, rebased after #549 (Reduce Motion) merged: SetupTile now combines #549's SetupMotion scaling and animations with this PR's focus, Space key and accessibility handling, and the closing card keeps #549's live Reduce Motion wiring without .focusEffectDisabled(). Any merge method works.
GPT-6.1-sol via Codex, reviewed by Claude Opus 5.5 via Claude Code
No actionable comments were generated in the recent review.
Walkthrough
Setup tiles support keyboard focus and Space activation. Accessibility labels identify preset widgets by placement, the introduction and numbered steps, and permission actions. Tests cover the labels and keyboard interactions.
SetupTile supports keyboard focus and Space activation. Theme scrolling centers focused choices and respects Reduce Motion when selection changes. SetupCardView no longer disables focus effects. Tests exercise tile focus, activation, and the default Continue action.
Preset labels include widget names that vary by placement. The intro wordmark and progress indicator have descriptive labels. Preset preview graphics are hidden from accessibility. The setup guide documents keyboard and VoiceOver behavior.
Permission actions provide titles and labels that identify the permission. Permission buttons use these values, and tests check the labels.
Possibly related issues
Seb-GRAF/StableBar#467: This change labels the introduction progress indicator, which addresses the issue’s identification of the first dot as the introduction; it does not address the issue’s other wording or visual requirements.
Possibly related PRs
Seb-GRAF/StableBar#492: This PR extends the setup tour with keyboard focus, activation, and accessibility labels.
Seb-GRAF/StableBar#442: Both PRs cover setup permission controls; this PR adds action titles and permission-specific accessibility labels.
Seb-GRAF/StableBar#468: This PR uses the placement distinction defined in #468 to select widget names for preset accessibility labels.
Severity of issue fixed: Medium
Merge Risk: Minimal · up to 577f1
The change adds keyboard focus, Space activation, and descriptive VoiceOver labels to the setup flow. No concrete merge-blocking defect was established. Manual keyboard and VoiceOver checks are still worth completing before release.
Pre-merge checks: 3
Check name
Status
Explanation
Description check
The description includes all required sections: Problem, Changes, Testing, and Merging. It explains the issue, implementation, validation results, manual checks, merge context, and the model and harne…
Linked Issues check
The changes address all coding requirements in #464. SetupTile adds keyboard focus and Space activation. The closing card restores focus rings. SetupPermission.Action supplies permission-specific …
Out of Scope Changes check
The changed source files implement the keyboard and VoiceOver requirements in #464. The added tests verify those behaviors. The documentation describes the resulting controls. No unrelated change is e…
Full details: Description check
Explanation
The description includes all required sections: Problem, Changes, Testing, and Merging. It explains the issue, implementation, validation results, manual checks, merge context, and the model and harness used.
Full details: Linked Issues check
Explanation
The changes address all coding requirements in #464. SetupTile adds keyboard focus and Space activation. The closing card restores focus rings. SetupPermission.Action supplies permission-specific labels and input labels. The intro wordmark and progress indicator receive labels. Preset.accessibilityLabel(widgetSets:placement:) describes visible widgets for both placements and battery states. SetupAccessibilityTests covers these labels and key behavior.
Full details: Out of Scope Changes check
Explanation
The changed source files implement the keyboard and VoiceOver requirements in #464. The added tests verify those behaviors. The documentation describes the resulting controls. No unrelated change is established by the pull request summary.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Additional comments: 1
Sources/StableBar/SetupTour.swift: 1
1134-1138: Trivial · Maintainability & Code Quality · Low value
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Run the Space key activation and the accessibility action through the same path as a click.
A click clears focus first. It sets clearingFocus = true and focused = false, and then calls action(). The Space handler and .accessibilityAction call action() directly. Two results follow:
Space leaves the focus ring on the tile. That is probably intended for keyboard use.
For theme tiles, choose triggers the selected change. That change calls scroll.scrollTo with animation. A focus change calls the same scroll. This can start two competing scroll animations.
Document the difference, or extract a shared activate() helper so the paths stay consistent.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
Make each tile one Tab stop without Keyboard navigation, using Space to choose.
Keep Return for the default button and clear mouse and initial tile focus.
Scroll focused themes into view, without animation when Reduce Motion is on.
Name permissions and preset widgets, distinguish the introduction, and restore
closing card focus rings. Keep title-based permission actions for shortcut checks
and include their visible titles for Voice Control.
Fixes#464
## [0.13.0](v0.12.0...v0.13.0) (2026-11-11)
### Features
* answer common questions and send feedback from a Help section ([#564](#564)) ([325083e](325083e))
* apply migrations to includes, packages and every screen setup's bar ([#539](#539)) ([6cc59f4](6cc59f4))
* check in setup that Workspaces can reach yabai or OmniWM ([#552](#552)) ([3a9ef7e](3a9ef7e)), closes [#463](#463)
* check the Switch to Desktop shortcuts in setup and Settings ([#551](#551)) ([92c11e1](92c11e1)), closes [#447](#447)
* follow Reduce Transparency and Increase Contrast ([#542](#542)) ([3ea111b](3ea111b))
* guide Accessibility access with a panel to drag StableBar into System Settings ([#559](#559)) ([29f000c](29f000c))
* pause scripts and providers while the displays sleep or the screen is locked ([#538](#538)) ([a09513d](a09513d))
* sign updates with an EdDSA key as well as the Developer ID ([#540](#540)) ([7e34d56](7e34d56))
* turn on Keep windows clear in setup when no window manager runs ([#553](#553)) ([a80b001](a80b001)), closes [#466](#466) [#439](#439)
### Bug Fixes
* follow Reduce Motion in setup's steps, theme row and tiles ([9c3f0c4](9c3f0c4)), closes [#465](#465)
* install packages when the configuration folder is a symbolic link ([#531](#531)) ([7e4f88b](7e4f88b)), closes [#530](#530)
* keep setup's later choices when the preset changes ([3318ae0](3318ae0)), closes [#461](#461)
* keep the website's Store review sheet inside its window ([9519645](9519645)), closes [#526](#526)
* leave windows alone until setup finishes ([#547](#547)) ([c9b75cf](c9b75cf)), closes [#466](#466)
* let a group wider than its tray scroll sideways while editing the bar in place ([#543](#543)) ([f6e6e25](f6e6e25))
* make setup's tiles, closing card and permission buttons work with the keyboard and VoiceOver ([#554](#554)) ([0944100](0944100)), closes [#464](#464)
* offer Keep notifications clear only on macOS 26 and later ([#550](#550)) ([5fd428a](5fd428a)), closes [#458](#458)
* offer the Notch preset only on Macs with a notch ([#548](#548)) ([3fef60f](3fef60f)), closes [#457](#457)
* open an app's own menu when Menu bar items can't draw its rows ([#541](#541)) ([24f16d7](24f16d7))
* shorten long errors in the bar's menus and open Status from them ([#536](#536)) ([5710a3e](5710a3e))
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
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
Setup was hard to use with the keyboard and VoiceOver:
Fixes #464
Changes
SetupTile) follow how buttons behave on the Mac:.focusable, macOS 14+). The inner button is.focusable(false), so there's no second stop when Keyboard navigation is on;.contentShape(.focusEffect, …)), and a theme that gets focus scrolls into view, without animation when Reduce Motion is on.docs/getting-started.mddescribes the keyboard controls.Testing
SetupAccessibilityTests:performKeyEquivalentto Continue.A standalone probe (a copy of the tile with Continue, Previous and Skip shortcuts in an offscreen window) gave the same results with
AppleKeyboardUIMode1, 2 and 3:git merge-treewith #551 is clean, and the merged tree builds. 28 XCTest and 26 Swift Testing pass in the setup filter.scripts/check.sh --quickand commitlint pass.No images: all six setup scenes render byte-identical to
main, because offscreen drawing doesn't show focus rings. To check by hand:Merging
One commit on
main, rebased after #549 (Reduce Motion) merged:SetupTilenow combines #549'sSetupMotionscaling and animations with this PR's focus, Space key and accessibility handling, and the closing card keeps #549's live Reduce Motion wiring without.focusEffectDisabled(). Any merge method works.GPT-6.1-sol via Codex, reviewed by Claude Opus 5.5 via Claude Code