Skip to content

fix: name the profile that sets belowMenuBar in setup's profile notice - #473

Merged
M4n0x merged 1 commit into
mainfrom
fix/setup-notice-below-menu-bar-profile
Nov 8, 2026
Merged

M4n0x merged 1 commit into
mainfrom
fix/setup-notice-below-menu-bar-profile

Conversation

@M4n0x

@M4n0x M4n0x commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

Problem

Setup's last step names the active profiles that control a setting setup saves. For Placement it looked only at bar.offset. An active profile that sets only bar.belowMenuBar (added in #468) kept the notice hidden, so a placement chosen in setup changed nothing and setup didn't say why. CodeRabbit raised this in an outside-diff comment on #468.

Fixes #471.

Changes

  • Placement counts bar.offset and bar.belowMenuBar. Each profile behind them is named once, with its own Edit … profile… button. When one profile sets the offset and another sets belowMenuBar, both are named.
  • ProfileControlledSetting.all(in:origins:) in SetupPreferences.swift now builds the notice's rows, so tests can call it. SetupTourView uses it, and its rows are keyed by setting and profile instead of by title alone.

No configuration, schema or docs change: the notice is setup's own text.

Testing

  • New test: setupNamesEachProfileThatControlsPlacement, with a profile that sets only belowMenuBar, one that sets both keys, and two profiles that set one key each. With Placement looking only at bar.offset, the first and third cases fail.
  • Run with it: the setup tests setupWritesRootSettingsThatActiveProfilesCanStillOverride, setupKeepsAnActiveProfilesDisabledWidgetOverride, setupShowsWhereTheBarSits, setupShowsAnEarlierBelowMenuBarOffsetAsBelowTheMenuBar and setupOnTheTopEdgeTurnsOffBelowTheMenuBar pass.
  • Not run locally: the whole suite. CI runs it.

No scene draws setup, so the images are offscreen renders of setup's last step from a temporary test (not committed), made from main and from this branch. The configuration is the starter with one profile, desk, that sets only "bar": {"belowMenuBar": true}, and setup has Top edge chosen.

Before After
Before: setup's last step shows no profile notice After: the notice names the desk profile behind Placement

Merging

One commit, so a squash or a merge commit both work.

Claude Opus 5.5 via Claude Code

Setup's last step named a profile behind Placement only when it set
bar.offset. A profile that set only bar.belowMenuBar kept the notice
hidden, so a placement chosen in setup changed nothing and setup didn't
say why. Placement now counts both keys and lists each profile behind
them once, with its own Edit button.

Fixes #471
@coderabbitai

coderabbitai Bot commented Nov 8, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds a collection of settings controlled by active profiles and updates the setup profile notice to display those settings. Placement detection checks both bar.offset and bar.belowMenuBar. A test covers placement origins and unique setting IDs.

Changes: Profile-Controlled Setup Settings

Layer / File(s) Summary
Collect profile-controlled settings
Sources/StableBar/SetupPreferences.swift, Tests/StableBarTests/WidgetTests.swift
ProfileControlledSetting.all(in:origins:) collects profile-controlled settings, including placement settings from bar.offset and bar.belowMenuBar. A test checks placement origins and unique setting IDs.
Render profile-controlled settings
Sources/StableBar/SetupTour.swift
profileNotice displays each collected setting’s title and source. It shows an edit button only when showProfile and the setting’s profile origin are available.

Possibly related PRs

  • Seb-GRAF/StableBar#468: Adds bar.belowMenuBar, which this change checks when identifying profile-controlled placement.

Severity of issue fixed: Low

Merge Risk: Minimal · up to f8ec7

The setup notice identifies profiles controlling placement through either setting. No merge-blocking issue was found; normal checks remain appropriate.

Pre-merge checks: Passed 3

Check name Status Explanation
Description check Passed The description follows the repository template closely: it has Problem (with the linked issue "Fixes #471"), Changes, Testing, and Merging sections, and it ends with the agent line "Claude Opus 5.5 v…
Linked Issues check Passed Directly linked issue #471 requires that setup's last-step notice name each active profile that controls Placement through bar.offset or bar.belowMenuBar, with its own Edit profile button, including w…
Out of Scope Changes check Passed The changes are limited to the setup profile notice. SetupPreferences.swift adds ProfileControlledSetting, which builds the notice rows and checks both placement keys. SetupTour.swift switches profile…
Full details: Description check

Explanation

The description follows the repository template closely: it has Problem (with the linked issue "Fixes #471"), Changes, Testing, and Merging sections, and it ends with the agent line "Claude Opus 5.5 via Claude Code" that the template requires. The Problem section states what broke: an active profile that sets only bar.belowMenuBar kept the notice hidden. The Changes section explains both the Placement fix and the new ProfileControlledSetting.all(in:origins:) helper, and why each is needed. The Testing section names the new test, the existing setup tests that were run, and states that the full suite was not run locally. It also includes before/after screenshots and explains how they were made. The Merging section says a squash or merge commit both work, which answers the template's question. Every required section is present and substantively filled in, so the description is complete.

Full details: Linked Issues check

Explanation

Directly linked issue #471 requires that setup's last-step notice name each active profile that controls Placement through bar.offset or bar.belowMenuBar, with its own Edit profile button, including when different profiles set the two keys. At head, SetupPreferences.swift defines ProfileControlledSetting.all(in:origins:) with the Placement entry checking ["bar.offset", "bar.belowMenuBar"]. Each row's id combines the title and profile name, so one row per profile is possible. The AI summary states that the function keeps at most one setting per profile for each title. SetupTour.swift's profileNotice, per the summary, uses this function and offers the edit button when the profile origin is available. The new test setupNamesEachProfileThatControlsPlacement covers the belowMenuBar-only, both-keys, and two-profile cases. Limits: the diff tool returned no text, and the file reads were truncated before the rest of all(in:origins:), the profileNotice body, and the test file. The per-profile filtering and the edit-button wiring rest on the summary and the visible code. The suite was not run; the PR reports that CI runs it. The author's images are not independently verified.

Full details: Out of Scope Changes check

Explanation

The changes are limited to the setup profile notice. SetupPreferences.swift adds ProfileControlledSetting, which builds the notice rows and checks both placement keys. SetupTour.swift switches profileNotice to that function. WidgetTests.swift adds the test for #471. The PR states that moving row construction into all(in:origins:) lets tests call it. This is a supporting refactor for the same notice. The function also covers appearance, window and notification clearance, widget enablement, and clock formats. Those rows belong to the same notice and do not add new setup behavior. No configuration, schema, or documentation change is present in the PR description. Limits: the truncated reads did not show the full function body, so this verdict relies on the summary for those rows.

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
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ff1d0e9 and f8ec7cd.

Files selected for processing: 3

  • Sources/StableBar/SetupPreferences.swift
  • Sources/StableBar/SetupTour.swift
  • Tests/StableBarTests/WidgetTests.swift

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Before and after

main at ff1d0e9 → this pull request at f8ec7cd · 50 screens drawn in one CI job · 4 changed

Screen Change Where (image pixels)
scenes/settings-general-dark 3,353 pixels 619,2326 · 171×28
scenes/settings-general-light 3,240 pixels 620,2327 · 170×27
scenes/settings-general-spaces-dark 3,353 pixels 635,2248 · 171×28
scenes/settings-general-spaces-light 3,240 pixels 636,2249 · 170×27

scenes/settings-general-dark

Before After
Before After

Difference, changed pixels in red:

Difference

scenes/settings-general-light

Before After
Before After

Difference, changed pixels in red:

Difference

scenes/settings-general-spaces-dark

Before After
Before After

Difference, changed pixels in red:

Difference

scenes/settings-general-spaces-light

Before After
Before After

Difference, changed pixels in red:

Difference

46 unchanged screens

docs/essentials-clock-settings-dark, docs/essentials-clock-settings-light, docs/essentials-dark, docs/essentials-light, docs/essentials-settings-dark, docs/essentials-settings-light, docs/hero-dark, docs/hero-light, docs/popups-dark, docs/popups-light, docs/settings-dark, docs/settings-light, docs/themes-dark, docs/themes-light, scenes/app-menu-popup-dark, scenes/app-menu-popup-light, scenes/apple-menu-settings-dark, scenes/apple-menu-settings-light, scenes/crowded-edit-bar-dark, scenes/crowded-edit-bar-light, scenes/dock-badges-bar-dark, scenes/dock-badges-bar-light, scenes/essentials-clock-popup-dark, scenes/essentials-clock-popup-light, scenes/gruvbox-bar-dark, scenes/gruvbox-bar-light, scenes/horizontal-list-popup-dark, scenes/horizontal-list-popup-light, scenes/settings-bar-dark, scenes/settings-bar-light, scenes/settings-bar-placement-dark, scenes/settings-bar-placement-light, scenes/settings-theme-dark, scenes/settings-theme-light, scenes/settings-uninstall-dark, scenes/settings-uninstall-failed-dark, scenes/settings-uninstall-failed-light, scenes/settings-uninstall-light, scenes/slider-end-stop-popup-dark, scenes/slider-end-stop-popup-light, scenes/starter-bar-dark, scenes/starter-bar-light, scenes/starter-edit-bar-dark, scenes/starter-edit-bar-light, scenes/update-popup-dark, scenes/update-popup-light

Visual review: 4 changed screens approved.

@M4n0x M4n0x added the visual-ok A maintainer looked at the changed screens and approves them label Nov 8, 2026
@M4n0x
M4n0x merged commit 55aea3c into main Nov 8, 2026
16 checks passed
@M4n0x
M4n0x deleted the fix/setup-notice-below-menu-bar-profile branch November 8, 2026 09:21
stablebar-releases Bot pushed a commit that referenced this pull request Nov 10, 2026
## [0.12.0](v0.11.0...v0.12.0) (2026-11-10)

### Features

* ask for the permissions your bar needs before setup uses them ([#442](#442)) ([9494cc7](9494cc7)), closes [#441](#441)
* let a group's top corners curve outward into the top of the screen ([265eb90](265eb90))
* paint the notch black so screen shares and screenshots match the display ([c40dda3](c40dda3))
* set widget, popup and tooltip backgrounds separately ([7eaf5af](7eaf5af))
* show Rift workspaces in workspace widgets ([d0f6d4d](d0f6d4d))
* turn on Open at login when setup replaces the menu bar ([#507](#507)) ([d24abe1](d24abe1))

### Bug Fixes

* ask before Skip setup throws away the choices made so far ([#470](#470)) ([66f47ea](66f47ea)), closes [#454](#454)
* ask where the bar goes first, and for permissions after the choices ([#492](#492)) ([1f45416](1f45416)), closes [#450](#450)
* drop a window that left every workspace when clicking it fails ([ec45fcc](ec45fcc)), closes [#520](#520)
* drop stray focus rings and show popup focus in the theme's hover look ([61ea306](61ea306))
* fall back to macOS Spaces when no window manager is running ([#436](#436)) ([5cc4ef2](5cc4ef2)), closes [#435](#435) [#435](#435)
* give a bar below the menu bar what the menu bar doesn't show ([#469](#469)) ([1181904](1181904)), closes [#452](#452)
* hold Edit Bar in Place until setup is done ([7582976](7582976)), closes [#462](#462)
* keep a bar below the menu bar clear of it on every display ([#468](#468)) ([ff1d0e9](ff1d0e9)), closes [#451](#451)
* keep a cancelled hover from showing a tooltip or closing its popup late ([#483](#483)) ([93c44a1](93c44a1)), closes [#482](#482)
* keep a package library that outlives its bar from crashing the test run ([#481](#481)) ([5f4821d](5f4821d)), closes [#480](#480)
* keep a popup's focus when clicking inside it ([f5ecaec](f5ecaec))
* keep setup's buttons above a Dock at the bottom of the screen ([#445](#445)) ([2784139](2784139)), closes [#444](#444)
* keep setup's pointer below the bar when the menu bar shows ([#509](#509)) ([ef22935](ef22935))
* keep setup's steps, reminders and hints readable on short screens ([#476](#476)) ([940777d](940777d)), closes [#455](#455)
* keep the app menus on the menu bar's app while a background agent is in front ([#446](#446)) ([a900ef5](a900ef5)), closes [#443](#443)
* keep the app menus that fit beside the notch and put the rest behind » ([#477](#477)) ([8b09465](8b09465)), closes [#453](#453)
* keep the focus ring while editing the bar ([80195ff](80195ff))
* keep widgets beside the notch against it when More widgets shows its button ([d74b925](d74b925))
* leave Battery out of setup's presets on a Mac without a battery ([3db935d](3db935d)), closes [#456](#456)
* let Skip setup restore the menu bar when a change is still in flight ([#498](#498)) ([9fdf1ce](9fdf1ce)), closes [#497](#497)
* look up private macOS calls at runtime, so a missing one only turns its feature off ([#490](#490)) ([5f312fd](5f312fd))
* move a bar an earlier setup put below the menu bar under it ([#475](#475)) ([9cada9a](9cada9a)), closes [#468](#468) [#474](#474)
* name the profile that sets belowMenuBar in setup's profile notice ([#473](#473)) ([55aea3c](55aea3c)), closes [#471](#471)
* offer the Notch preset only when the bar replaces the menu bar ([#438](#438)) ([dc5a611](dc5a611)), closes [#437](#437)
* reject a negative group flare ([eae8615](eae8615))
* show workspace managers as segments in Settings again ([60e21a5](60e21a5))
* start a new bar with a clock in the Mac's date order and 12- or 24-hour time ([#501](#501)) ([ed119f7](ed119f7))
* stop reopening setup at every launch after Skip setup ([#472](#472)) ([a15e07a](a15e07a)), closes [#449](#449)
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.12.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released visual-ok A maintainer looked at the changed screens and approves them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup's profile notice misses a profile that sets bar.belowMenuBar

1 participant