Show the `notion` plugin settings menu in the `clai2` web UI

Merged
MP
2mo ago
+162-253

Part 20 of the clai2 web UI stack (… → #10319 → this PR). Based on #10319. No linked issue: requested by the CLAI maintainer.

Why. One PR per plugin: notion now declares its settings menu (settings_menu(), #10312) instead of running termflow widgets in configure(). The same menu, sign-in and /keys steps included, opens in the terminal and in the web UI's plugins panel (#10315), where those steps show as dialogs.

What changes

  • Key row → action using the shared choose_key. Choosing a key also switches Sign-in to the key, as before.
  • Sign-in row → action: dialogs.choose, then sign_in_now(SIGN_IN, dialogs) when browser sign-in is chosen and none is stored.
  • Deleted ui/menus/key_picker.py. Only notion used it; its threading bridge and its own masked prompt and confirmation are gone.
  • PLUGINS.md's list of plugins that still use a configure() override is corrected to the ones left: github and pylon, which the next PR drops.
  • Its tests drive the actions with ScriptedDialogs (#10316) and the terminal path through plugin.configure() with scripted runners. Its PLUGINS.md section says the menu also opens in the web UI's plugins panel.

Verification.

  • Ported in its own herdr worktree and stacked here.
  • On the stacked branch (grain, linear, notion and pylon together): 308 tests pass across the four plugins' suites plus web, loader, keys, sign-in, reload and startup imports. Pyright is clean on the plugins and their tests.
  • Headed Playwright against an isolated clai2 --web -m test with all four enabled: the rows render, each action's first dialog opens, Esc backs out with the plugin's "unchanged" message, and there are no page errors. Screenshots are in /tmp/clai-web-shots/port-notion-*.png.

What changes for existing users. The terminal menu keeps its rows, labels and messages. The /keys step uses the shared picker and confirmation from #10316. The menu now also works in the web UI.

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration, release note, and exact API-check waiver.
  • PR title is fit for the release changelog.