Skip to content

feat: open widget settings from the bar on Content - #359

Merged
Seb-GRAF merged 1 commit into
mainfrom
feat/edit-widget-from-bar
Oct 28, 2026
Merged

Seb-GRAF merged 1 commit into
mainfrom
feat/edit-widget-from-bar

Conversation

@Seb-GRAF

Copy link
Copy Markdown
Collaborator

Problem

The normal bar's context menu offers only a general Settings action, and the widget inspector starts on Style or keeps the previously selected tab. Opening a widget should take you straight to its content.

Fixes #357. Fixes #358.

Changes

  • Add Edit Widget… to a configured widget's standard context menu, opening Settings → Bar with that widget selected. Reuse the existing bar menu so its other actions remain available. Custom actions.rightClick commands keep running; edit-mode menus and the generated More/Update buttons keep their existing behavior.
  • Start widget settings on Content, reset to it when selecting or reopening a widget and when reopening Settings, and commit pending field edits before switching. Searches for Style or Behavior still open their requested tab.
  • Update docs/settings.md. This changes UI navigation and menus; decoding, configuration layers, command-line edits, schema and examples need no changes.

Testing

  • swift test --filter 'ConfigurationEditorTests|WidgetSettingsTests|BarEditingTests': 54 tests pass. Extended the existing pending-edit regression test to cover opening another widget from Style and reopening the same widget from Behavior, both returning to Content while preserving the edits.
  • Offscreen Settings rendering from a scratch configuration, before and after. A temporary check also exercised the real view's search routing to Content, Style and Behavior; the capture/check fixture was removed afterward.
  • Release app built from an isolated copy of commit c441cd0 with ./scripts/build.sh, and codesign --verify --deep --strict passes. The running app and personal configuration were untouched.
  • git diff --check passes.
  • Not checked on screen: opening the native context menu, clicking Edit Widget, and a custom right-click command on the running bar. The screenshots show the inspector, not an open context menu.
Before After
Clock settings initially showing Style Clock settings opening on Content

Merging

One feature commit; squash or rebase preserves its changelog entry.

GPT-6-Astra via the Codex harness in T3 Code.

@Seb-GRAF
Seb-GRAF enabled auto-merge October 28, 2026 09:56
@Seb-GRAF
Seb-GRAF merged commit 5434c6e into main Oct 28, 2026
7 checks passed
@Seb-GRAF
Seb-GRAF deleted the feat/edit-widget-from-bar branch October 28, 2026 09:59
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.9.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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Open widget settings on Content by default Open a widget’s settings from its right-click menu

1 participant