mirror of
https://github.com/openai/codex.git
synced 2026-10-23 18:08:45 +00:00
tui: render remote plugin catalog sections
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
+2
@@ -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
|
||||
|
||||
+2
@@ -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
|
||||
|
||||
+5
-5
@@ -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
-2
@@ -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.
|
||||
|
||||
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user