tui: render remote plugin catalog sections

This commit is contained in:
canvrno-oai
2026-06-08 13:22:22 -07:00
parent 4b2ca8ef53
commit 9a23d50d47
8 changed files with 805 additions and 103 deletions
+3
View File
@@ -498,6 +498,9 @@ impl App {
AppEvent::PluginsLoaded { cwd, result } => {
self.chat_widget.on_plugins_loaded(cwd, result);
}
AppEvent::OpenPluginsList { cwd, response } => {
self.chat_widget.open_plugins_list(cwd, response);
}
AppEvent::PluginRemoteSectionsLoaded {
cwd,
marketplaces,
+6
View File
@@ -416,6 +416,12 @@ pub(crate) enum AppEvent {
result: Result<PluginListResponse, String>,
},
/// Open the plugin list from an already cached response.
OpenPluginsList {
cwd: PathBuf,
response: PluginListResponse,
},
/// Result of explicitly fetching remote-backed plugin sections.
PluginRemoteSectionsLoaded {
cwd: PathBuf,
File diff suppressed because it is too large Load Diff
@@ -10,6 +10,8 @@ expression: strip_osc8_for_snapshot(&popup)
› 1. Back to plugins Return to the plugin list.
2. Install plugin Install this plugin now.
Source Local
Auth Auth on install
Skills design-review, extract-copy
Hooks PreToolUse (1), Stop (2)
Apps Figma, Slack
@@ -8,6 +8,8 @@ expression: strip_osc8_for_snapshot(&popup)
› 1. Back to plugins Return to the plugin list.
2. Uninstall plugin Remove this plugin now.
Source Local
Auth Auth on install
Skills design-review, extract-copy
Hooks PreToolUse (1), Stop (2)
Apps Figma, Slack
@@ -6,12 +6,12 @@ expression: popup
Browse plugins from available marketplaces.
Installed 1 of 4 available plugins.
[All Plugins] Installed (1) OpenAI Curated Repo Marketplace Add Marketplace
[All Plugins] Installed (1) OpenAI Curated Repo Marketplace Add marketplace
Type to search plugins
› [ ] Alpha Sync Disabled Space to enable; Enter view details.
[-] Bravo Search Available · ChatGPT Marketplace · Search docs and tickets.
[-] Hidden Repo Plugin Available · Repo Marketplace · Should not be shown in /plugins.
[-] Starter Available · ChatGPT Marketplace · Included by default.
› [ ] Alpha Sync Disabled Space to enable; Enter view details.
[-] Bravo Search Available · OpenAI Curated · Search docs and tickets.
[-] Hidden Repo Plugin Available · Repo Marketplace · Should not be shown in /plugins.
[-] Starter Available by default · OpenAI Curated · Included by default.
space enable/disable · ←/→ select marketplace · enter view details · esc close
@@ -1,13 +1,12 @@
---
source: tui/src/chatwidget/tests/popups_and_settings.rs
assertion_line: 339
expression: popup
---
Plugins
Debug Marketplace installed successfully.
Select the plugins you want to use and press Enter to install or view details.
All Plugins Installed (0) OpenAI Curated [Debug Marketplace] Add Marketplace
All Plugins Installed (0) OpenAI Curated [Debug Marketplace] Add marketplace
Type to search plugins
› [-] Debug Plugin Available Press Enter to install or view plugin details.
@@ -7,7 +7,7 @@ expression: popup
Browse plugins from available marketplaces.
Installed 0 of 3 available plugins.
[All Plugins] Installed (0) OpenAI Curated Add Marketplace
[All Plugins] Installed (0) OpenAI Curated Add marketplace
sla
› [-] Slack Available Press Enter to install or view plugin details.