chain-studio/lib/data
flemming-it 91706cea2b
Some checks failed
Security / Security check (push) Failing after 2s
feat(studio): theme-plugin picker + translate-hook wrapper
Two pieces of the Studio plugin host:

- `data/theme_plugin.dart`: discovery, persistence, ColorScheme
  translation. Plugins listed via list_capabilities filtered
  to studio.theme.*; selection persisted in SharedPreferences;
  loadThemePluginSchemes builds a ColorScheme pair from the
  plugin's 14 ARGB tokens per brightness.
- `main.dart`: StudioApp gains themePluginNotifier +
  setThemePlugin(). MaterialApp wraps a FutureBuilder that
  re-fetches the plugin's ColorSchemes whenever the
  capability flips; falls back to FaiTheme.light/dark on
  null or load failure.
- `fai_settings_dialog.dart`: new `_ThemePluginPanel` shows a
  dropdown of installed studio.theme.* capabilities + a
  "Built-in" entry. Switching applies immediately.
- HubService.invokePluginTranslate added as the typed wrapper
  for the new gRPC RPC — ready for the FaiEnBadge swap-out
  in the next iteration.
- 4 new l10n keys (themePluginHeader / None / Hint / Empty),
  EN+DE.

flutter analyze + flutter test (widget + friendly_error): both
green. The integration test for the theme picker is the
existing fai_runtime plugin_theme + Studio-side
invokePluginTheme path that round-trips through the new
mirror-installable studio-theme-solarized bundle.

Signed-off-by: flemming-it <sf@flemming.it>
Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
2026-05-25 23:02:21 +02:00
..
flow_output.dart feat(studio): typed flow outputs + on-disk docs + UX polish 2026-05-25 11:17:58 +02:00
format.dart feat(studio): typed flow outputs + on-disk docs + UX polish 2026-05-25 11:17:58 +02:00
friendly_error.dart feat(studio): trust pass — friendly errors + store clarity + MCP i18n 2026-05-25 12:36:14 +02:00
hub.dart feat(studio): theme-plugin picker + translate-hook wrapper 2026-05-25 23:02:21 +02:00
registry_token.dart feat(studio): registry credentials panel in Settings (v0.44.0) 2026-05-09 13:38:47 +02:00
system_actions.dart feat(studio): hub maintenance panel with reset action (v0.45.0) 2026-05-09 18:52:19 +02:00
theme_plugin.dart feat(studio): theme-plugin picker + translate-hook wrapper 2026-05-25 23:02:21 +02:00
today_story_loader.dart feat(studio): daily Today-Hero proposal pipeline (v0.31.0) 2026-05-08 12:59:33 +02:00