Skip to content

Link needs-configuration banners to plugin settings - #3287

Merged
ymichael merged 2 commits into
mainfrom
bb/banner-settings-link-isolated-thr_xf82yr5t53
Sep 8, 2026
Merged

ymichael merged 2 commits into
mainfrom
bb/banner-settings-link-isolated-thr_xf82yr5t53

Conversation

@ymichael

@ymichael ymichael commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The needs-configuration plugin banner knew whether a plugin exposed in-app settings, but its actions did not provide a route to those settings. Plugins configured through a frontend-contributed settings section also still need an explicit reload after configuration, and the banner's single-row layout left too little width for its recovery copy once both actions were present on compact screens.

What changed

  • Adds an Open settings action for needs-configuration plugins with either declarative settings or a frontend-contributed settings section.
  • Keeps Reload for plugins whose configuration is not automatically applied, including plugins with frontend-contributed settings.
  • Lets banner content wrap so the actions move below the message when horizontal space is limited.
  • Adds focused coverage for declarative settings, frontend-contributed settings, config-less plugins, and unrelated runtime failures.
  • No wire, CLI, guide, or public plugin API changes.

How you verified

  • pnpm exec turbo run test --filter=@bb/app --force -- ToolsView.plugin-detail (36 tests passed)
  • pnpm exec turbo run typecheck lint --filter=@bb/app --force (passed; lint reported 0 errors)
  • pnpm exec oxfmt --check apps/app/src/components/tools/PluginCapabilities.tsx apps/app/src/components/tools/plugin-detail-banner.tsx apps/app/src/views/ToolsView.plugin-detail.test.tsx
  • git diff --check origin/main...HEAD
  • Manually verified the link destination, retained reload action, and compact 390px wrapping in the isolated review app.

AGENT GENERATED

ymichael and others added 2 commits September 8, 2026 14:21
The "Needs configuration" banner told users to add configuration but gave
no way to reach the plugin's settings page, so the only visible action was
Reload. Add an "Open settings" action to the banner whenever the plugin has
a settings page (server settings schema or a frontend settings section),
keeping Reload for plugins that are configured outside Settings.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The needs-configuration banner kept its actions on the same row as the text
at every width, so on a phone the message collapsed into a ragged column
beside the buttons. Let the banner row wrap and give the text a 16rem basis,
so narrow layouts drop the actions to their own row while the desktop panel
keeps its single-row layout.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@ymichael
ymichael merged commit 31da836 into main Sep 8, 2026
16 checks passed
@ymichael
ymichael deleted the bb/banner-settings-link-isolated-thr_xf82yr5t53 branch September 8, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant