Skip to content

Agent Zero AI framework

surface marketplace browse tab and polish plugin detail UX

Alessandro976937fae956
diff --git a/plugins/plugin_installer/webui/install-detail.html b/plugins/plugin_installer/webui/install-detail.html
index 8f2ffa67c..c5b2e4da3 100644
--- a/plugins/plugin_installer/webui/install-detail.html
+++ b/plugins/plugin_installer/webui/install-detail.html
@@ -23,7 +23,40 @@
</div>
<div class="pi-hero-info">
<div class="pi-hero-title-row">
- <h2 class="pi-hero-title" x-text="$store.pluginInstallStore.selectedPlugin.title || $store.pluginInstallStore.selectedPlugin.key"></h2>
+ <div class="pi-hero-main">
+ <h2 class="pi-hero-title" x-text="$store.pluginInstallStore.selectedPlugin.title || $store.pluginInstallStore.selectedPlugin.key"></h2>
+ <template x-if="$store.pluginInstallStore.selectedPlugin.installed">
+ <div class="pi-installed-badge-simple">
+ <span class="material-symbols-outlined">check_circle</span>
+ <span>Installed</span>
+ </div>
+ </template>
+ <div class="pi-hero-meta">
+ <template x-if="$store.pluginInstallStore.selectedPlugin.author">
+ <span class="pi-hero-author">
+ <span class="pi-hero-label">Author</span>
+ <span x-text="$store.pluginInstallStore.selectedPlugin.author"></span>
+ </span>
+ </template>
+ <span class="pi-hero-stars">
+ <span class="material-symbols-outlined">star</span>
+ <span x-text="($store.pluginInstallStore.selectedPlugin.stars || 0)"></span>
+ <template x-if="$store.pluginInstallStore.selectedPlugin.github">
+ <a :href="$store.pluginInstallStore.selectedPlugin.github"
+ target="_blank"
+ rel="noopener noreferrer"
+ class="pi-dev-link">
+ Give a star
+ </a>
+ </template>
+ </span>
+ </div>
+ <div class="pi-hero-tags" x-show="$store.pluginInstallStore.selectedPlugin.tags?.length">
+ <template x-for="tag in $store.pluginInstallStore.selectedPlugin.tags || []" :key="tag">
+ <span class="pi-tag" x-text="tag"></span>
+ </template>
+ </div>
+ </div>
<template x-if="$store.pluginInstallStore.selectedPlugin.installed && $store.pluginInstallStore.installedPluginInfo">
<div class="pi-hero-manage">
<template x-if="$store.pluginInstallStore.installedPluginInfo.has_main_screen">
@@ -63,32 +96,11 @@
</div>
</template>
</div>
- <template x-if="$store.pluginInstallStore.selectedPlugin.installed">
- <div class="pi-installed-badge-simple">
- <span class="material-symbols-outlined">check_circle</span>
- <span>Installed</span>
- </div>
- </template>
- <div class="pi-hero-meta">
- <template x-if="$store.pluginInstallStore.selectedPlugin.author">
- <span class="pi-hero-author">
- <span class="pi-hero-label">Author</span>
- <span x-text="$store.pluginInstallStore.selectedPlugin.author"></span>
- </span>
- </template>
- <span class="pi-hero-stars">
- <span class="material-symbols-outlined">star</span>
- <span x-text="($store.pluginInstallStore.selectedPlugin.stars || 0)"></span>
- </span>
- </div>
- <div class="pi-hero-tags" x-show="$store.pluginInstallStore.selectedPlugin.tags?.length">
- <template x-for="tag in $store.pluginInstallStore.selectedPlugin.tags || []" :key="tag">
- <span class="pi-tag" x-text="tag"></span>
- </template>
- </div>
</div>
</div>
+ <div class="pi-description" x-text="$store.pluginInstallStore.selectedPlugin.description || 'No description available.'"></div>
+
<div class="pi-screenshots-section"
x-show="$store.pluginInstallStore.selectedPlugin.screenshots?.length">
<div class="pi-screenshots-header">Screenshots</div>
@@ -102,8 +114,6 @@
</div>
</div>
- <div class="pi-description" x-text="$store.pluginInstallStore.selectedPlugin.description || 'No description available.'"></div>
-
<div class="pi-actions-primary">
<template x-if="!$store.pluginInstallStore.selectedPlugin.installed">
<button class="pi-btn-install"
@@ -227,19 +237,27 @@
}
.pi-hero-title-row {
- display: flex;
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) clamp(18rem, 42%, 32rem);
align-items: flex-start;
- justify-content: space-between;
- gap: 0.75rem;
+ column-gap: 1rem;
+ row-gap: 0.5rem;
margin-bottom: 0.5rem;
}
+ .pi-hero-main {
+ min-width: 0;
+ width: 100%;
+ row-gap: var(--spacing-xxs);
+ }
+
.pi-hero-title {
margin: 0;
font-size: 1.75rem;
font-weight: 600;
line-height: 1.2;
color: var(--color-text-primary);
+ min-width: 0;
}
.pi-hero-manage {
@@ -247,8 +265,9 @@
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
- flex-shrink: 0;
justify-content: flex-end;
+ align-content: flex-start;
+ width: 100%;
}
.pi-hero-manage .button {
@@ -289,6 +308,7 @@
gap: 0.3rem;
font-size: 0.95rem;
color: var(--color-text-secondary);
+ flex-wrap: wrap;
}
.pi-hero-stars .material-symbols-outlined {
@@ -309,7 +329,7 @@
font-size: 0.9rem;
font-weight: 600;
color: #22c55e;
- margin-bottom: 0.35rem;
+ margin: var(--spacing-xs) 0;
}
.pi-installed-badge-simple .material-symbols-outlined {
@@ -462,8 +482,8 @@
}
.pi-screenshots-section {
- margin-top: 1.5rem;
- padding-top: 1.5rem;
+ margin: var(--spacing-lg) 0;
+ padding-top: var(--spacing-lg);
border-top: 1px solid var(--color-border);
}
@@ -634,7 +654,7 @@
gap: 0.5rem;
padding: 0.5rem 0;
text-decoration: none;
- font-size: 0.9rem;
+ font-size: 0.8rem;
color: var(--color-text-secondary);
transition: color 0.15s;
}
@@ -673,8 +693,8 @@
}
.pi-hero-title-row {
- flex-direction: column;
- align-items: center;
+ grid-template-columns: 1fr;
+ justify-items: center;
}
.pi-hero-manage {
@@ -685,6 +705,11 @@
justify-content: center;
}
+ .pi-hero-stars {
+ flex-basis: 100%;
+ justify-content: center;
+ }
+
.pi-hero-tags {
justify-content: center;
}
diff --git a/plugins/plugin_installer/webui/pluginInstallStore.js b/plugins/plugin_installer/webui/pluginInstallStore.js
index 7c2197e54..30d0599d6 100644
--- a/plugins/plugin_installer/webui/pluginInstallStore.js
+++ b/plugins/plugin_installer/webui/pluginInstallStore.js
@@ -569,8 +569,11 @@ const model = {
this.selectedPlugin = null;
},
- /** Called from x-destroy when the installer modal is torn down; refreshes the plugin list store */
+ /** Refresh related list views after installer/detail actions. */
refreshPluginList() {
+ if (pluginListStore.activeTab === "marketplace") {
+ void this.fetchIndex();
+ }
pluginListStore.refresh();
},
diff --git a/webui/components/plugins/list/plugin-list.html b/webui/components/plugins/list/plugin-list.html
index 999d39659..d11b09d99 100644
--- a/webui/components/plugins/list/plugin-list.html
+++ b/webui/components/plugins/list/plugin-list.html
@@ -36,130 +36,150 @@
Builtin
</button>
</li>
- </ul>
-
- <div class="plugins-toolbar">
- <div class="plugins-toolbar-search">
- <input type="text"
- class="plugins-search-input"
- placeholder="Search plugins by name or description..."
- x-model="$store.pluginListStore.searchQuery">
- </div>
- <div class="plugins-toolbar-actions">
- <button type="button"
- class="button confirm"
- title="Refresh"
- @click="$store.pluginListStore.refresh()"
- :disabled="$store.pluginListStore.loading">
- <span class="icon material-symbols-outlined">refresh</span> Refresh
+ <li class="nav-item" role="presentation">
+ <button class="nav-link"
+ :class="{ active: $store.pluginListStore.activeTab === 'marketplace' }"
+ id="plugins-marketplace-tab"
+ type="button"
+ role="tab"
+ aria-controls="plugins-marketplace"
+ :aria-selected="$store.pluginListStore.activeTab === 'marketplace'"
+ @click="$store.pluginListStore.setTab('marketplace')">
+ <span class="material-symbols-outlined pi-tab-icon">store</span> Browse
</button>
+ </li>
+ </ul>
- <x-extension id="plugins-list-header-buttons"></x-extension>
- </div>
- </div>
-
- <div x-show="$store.pluginListStore.loading" class="loading">
- <span>Loading plugins...</span>
- </div>
-
- <div class="plugins-list">
- <template x-for="plugin in (($store.pluginListStore.plugins || []).filter((plugin) => {
- const q = (($store.pluginListStore.searchQuery || '').trim().toLowerCase());
- if (!q) return true;
- const name = (plugin.display_name || plugin.name || '').toLowerCase();
- const description = (plugin.description || '').toLowerCase();
- return name.includes(q) || description.includes(q);
- }))" :key="plugin.path || plugin.name">
- <div class="plugin-card">
- <div class="plugin-header">
- <div class="plugin-heading">
- <div class="plugin-title" x-text="plugin.display_name || plugin.name || '(unnamed plugin)'"></div>
- <code class="plugin-path" x-text="plugin.path"></code>
- </div>
- <div class="plugin-actions">
- <template x-if="plugin.has_main_screen">
- <button type="button"
- class="button"
- title="Open"
- @click="$store.pluginListStore.openPlugin(plugin)">
- <span class="icon material-symbols-outlined">dashboard</span> Open
- </button>
- </template>
- <template x-if="plugin.has_config_screen">
- <button type="button"
- class="button"
- title="Config"
- @click="$store.pluginListStore.openPluginConfig(plugin)">
- <span class="icon material-symbols-outlined">settings</span> Config
- </button>
- </template>
- <template x-if="plugin.has_readme">
- <button type="button"
- class="button"
- title="README"
- @click="$store.pluginListStore.openPluginDoc(plugin, 'readme')">
- <span class="icon material-symbols-outlined">description</span> README
- </button>
- </template>
- <template x-if="plugin.has_license">
- <button type="button"
- class="button"
- title="LICENSE"
- @click="$store.pluginListStore.openPluginDoc(plugin, 'license')">
- <span class="icon material-symbols-outlined">gavel</span> License
- </button>
- </template>
- <template x-if="plugin.has_init_script">
- <button type="button"
- class="button"
- title="Run initializer script"
- @click="$store.pluginListStore.openPluginInit(plugin)">
- <span class="icon material-symbols-outlined">terminal</span> Init
- </button>
- </template>
- <button type="button"
- class="button"
- title="Info"
- @click="$store.pluginListStore.openPluginInfo(plugin)">
- <span class="icon material-symbols-outlined">info</span>
- </button>
- <template x-if="plugin.is_custom">
- <button type="button"
- class="button cancel icon-button"
- title="Delete"
- @click="$confirmClick($event, () => $store.pluginListStore.deletePlugin(plugin))">
- <span class="icon material-symbols-outlined">delete</span>
- </button>
- </template>
- </div>
+ <template x-if="$store.pluginListStore.activeTab !== 'marketplace'">
+ <div>
+ <div class="plugins-toolbar">
+ <div class="plugins-toolbar-search">
+ <input type="text"
+ class="plugins-search-input"
+ placeholder="Search plugins by name or description..."
+ x-model="$store.pluginListStore.searchQuery">
</div>
-
- <div class="plugin-footer-row">
- <div class="plugin-description" x-text="plugin.description || 'No description provided.'"></div>
- <div class="plugin-status-group">
- <template x-if="plugin.toggle_state === 'advanced'">
- <button type="button"
- class="button icon-button"
- title="Open Advanced"
- @click="$store.pluginListStore.openPluginAdvancedToggle(plugin)">
- <span class="icon material-symbols-outlined">rule_settings</span>
- </button>
- </template>
- <select class="plugin-status-select"
- @change="$store.pluginListStore.updateToggle(plugin, $event.target.value)"
- @click.stop
- :disabled="plugin.always_enabled">
- <option value="enabled" :selected="plugin.toggle_state === 'enabled'">ON</option>
- <option value="disabled" :selected="plugin.toggle_state === 'disabled'">OFF</option>
- <template x-if="plugin.per_project_config || plugin.per_agent_config">
- <option value="advanced" :selected="plugin.toggle_state === 'advanced'">Advanced</option>
- </template>
- </select>
- </div>
+ <div class="plugins-toolbar-actions">
+ <button type="button"
+ class="button confirm"
+ title="Refresh"
+ @click="$store.pluginListStore.refresh()"
+ :disabled="$store.pluginListStore.loading">
+ <span class="icon material-symbols-outlined">refresh</span> Refresh
+ </button>
+
+ <x-extension id="plugins-list-header-buttons"></x-extension>
</div>
</div>
- </template>
- </div>
+
+ <div x-show="$store.pluginListStore.loading" class="loading">
+ <span>Loading plugins...</span>
+ </div>
+
+ <div class="plugins-list">
+ <template x-for="plugin in (($store.pluginListStore.plugins || []).filter((plugin) => {
+ const q = (($store.pluginListStore.searchQuery || '').trim().toLowerCase());
+ if (!q) return true;
+ const name = (plugin.display_name || plugin.name || '').toLowerCase();
+ const description = (plugin.description || '').toLowerCase();
+ return name.includes(q) || description.includes(q);
+ }))" :key="plugin.path || plugin.name">
+ <div class="plugin-card">
+ <div class="plugin-header">
+ <div class="plugin-heading">
+ <div class="plugin-title" x-text="plugin.display_name || plugin.name || '(unnamed plugin)'"></div>
+ <code class="plugin-path" x-text="plugin.path"></code>
+ </div>
+ <div class="plugin-actions">
+ <template x-if="plugin.has_main_screen">
+ <button type="button"
+ class="button"
+ title="Open"
+ @click="$store.pluginListStore.openPlugin(plugin)">
+ <span class="icon material-symbols-outlined">dashboard</span> Open
+ </button>
+ </template>
+ <template x-if="plugin.has_config_screen">
+ <button type="button"
+ class="button"
+ title="Config"
+ @click="$store.pluginListStore.openPluginConfig(plugin)">
+ <span class="icon material-symbols-outlined">settings</span> Config
+ </button>
+ </template>
+ <template x-if="plugin.has_readme">
+ <button type="button"
+ class="button"
+ title="README"
+ @click="$store.pluginListStore.openPluginDoc(plugin, 'readme')">
+ <span class="icon material-symbols-outlined">description</span> README
+ </button>
+ </template>
+ <template x-if="plugin.has_license">
+ <button type="button"
+ class="button"
+ title="LICENSE"
+ @click="$store.pluginListStore.openPluginDoc(plugin, 'license')">
+ <span class="icon material-symbols-outlined">gavel</span> License
+ </button>
+ </template>
+ <template x-if="plugin.has_init_script">
+ <button type="button"
+ class="button"
+ title="Run initializer script"
+ @click="$store.pluginListStore.openPluginInit(plugin)">
+ <span class="icon material-symbols-outlined">terminal</span> Init
+ </button>
+ </template>
+ <button type="button"
+ class="button"
+ title="Info"
+ @click="$store.pluginListStore.openPluginInfo(plugin)">
+ <span class="icon material-symbols-outlined">info</span>
+ </button>
+ <template x-if="plugin.is_custom">
+ <button type="button"
+ class="button cancel icon-button"
+ title="Delete"
+ @click="$confirmClick($event, () => $store.pluginListStore.deletePlugin(plugin))">
+ <span class="icon material-symbols-outlined">delete</span>
+ </button>
+ </template>
+ </div>
+ </div>
+
+ <div class="plugin-footer-row">
+ <div class="plugin-description" x-text="plugin.description || 'No description provided.'"></div>
+ <div class="plugin-status-group">
+ <template x-if="plugin.toggle_state === 'advanced'">
+ <button type="button"
+ class="button icon-button"
+ title="Open Advanced"
+ @click="$store.pluginListStore.openPluginAdvancedToggle(plugin)">
+ <span class="icon material-symbols-outlined">rule_settings</span>
+ </button>
+ </template>
+ <select class="plugin-status-select"
+ @change="$store.pluginListStore.updateToggle(plugin, $event.target.value)"
+ @click.stop
+ :disabled="plugin.always_enabled">
+ <option value="enabled" :selected="plugin.toggle_state === 'enabled'">ON</option>
+ <option value="disabled" :selected="plugin.toggle_state === 'disabled'">OFF</option>
+ <template x-if="plugin.per_project_config || plugin.per_agent_config">
+ <option value="advanced" :selected="plugin.toggle_state === 'advanced'">Advanced</option>
+ </template>
+ </select>
+ </div>
+ </div>
+ </div>
+ </template>
+ </div>
+ </div>
+ </template>
+
+ <template x-if="$store.pluginListStore.activeTab === 'marketplace'">
+ <x-component path="/plugins/plugin_installer/webui/install-index.html"></x-component>
+ </template>
</div>
</template>
</div>
@@ -168,7 +188,7 @@
.nav {
display: flex;
padding-left: 0;
- margin: 0.75rem 0 0 0;
+ margin: 0 0 1rem 0;
list-style: none;
border-bottom: 1px solid var(--color-border);
gap: 0.25rem;
@@ -183,6 +203,9 @@
background: transparent;
color: var(--color-text-secondary);
cursor: pointer;
+ display: inline-flex;
+ align-items: center;
+ gap: 0.3rem;
}
.nav-link.active {
@@ -192,6 +215,10 @@
background: var(--color-background);
}
+ .pi-tab-icon {
+ font-size: 1.1rem;
+ }
+
.plugins-toolbar {
display: flex;
align-items: center;
diff --git a/webui/components/plugins/list/pluginListStore.js b/webui/components/plugins/list/pluginListStore.js
index fdbb3b4c5..21717db12 100644
--- a/webui/components/plugins/list/pluginListStore.js
+++ b/webui/components/plugins/list/pluginListStore.js
@@ -39,6 +39,12 @@ const model = {
},
async setTab(tab) {
+ if (tab === "marketplace") {
+ this.activeTab = "marketplace";
+ this.loading = false;
+ return;
+ }
+
this.activeTab = tab === "builtin" ? "builtin" : "custom";
const filter =
this.activeTab === "builtin"
@@ -48,6 +54,9 @@ const model = {
},
async refresh() {
+ if (this.activeTab === "marketplace") {
+ return;
+ }
await this.setTab(this.activeTab);
},