Skip to content

Agent Zero AI framework

improve Plugin Hub cards and plugin info

Alessandro6b8a6d959abc
diff --git a/helpers/plugins.py b/helpers/plugins.py
index 5cd0e73c1..87f296f2b 100644
--- a/helpers/plugins.py
+++ b/helpers/plugins.py
@@ -86,6 +86,8 @@ class PluginListItem(BaseModel):
display_name: str = ""
description: str = ""
version: str = ""
+ author: str = ""
+ repo: str = ""
settings_sections: List[str] = Field(default_factory=list)
per_project_config: bool = False
per_agent_config: bool = False
@@ -254,11 +256,16 @@ def get_enhanced_plugins_list(
break
current_commit = ""
current_commit_timestamp = ""
+ author = ""
+ repo_name = ""
if is_custom:
repo_info = git.get_repo_release_info(str(d))
- if repo_info.is_git_repo and repo_info.head:
- current_commit = repo_info.head.hash
- current_commit_timestamp = repo_info.head.committed_at
+ if repo_info.is_git_repo:
+ author = repo_info.author
+ repo_name = repo_info.repo
+ if repo_info.head:
+ current_commit = repo_info.head.hash
+ current_commit_timestamp = repo_info.head.committed_at
results.append(
PluginListItem(
name=d.name,
@@ -266,6 +273,8 @@ def get_enhanced_plugins_list(
display_name=meta.title or d.name,
description=meta.description,
version=meta.version,
+ author=author,
+ repo=repo_name,
settings_sections=meta.settings_sections,
per_project_config=meta.per_project_config,
per_agent_config=meta.per_agent_config,
diff --git a/plugins/_plugin_installer/webui/install-detail.html b/plugins/_plugin_installer/webui/install-detail.html
index 30edf6660..4cf5e55a4 100644
--- a/plugins/_plugin_installer/webui/install-detail.html
+++ b/plugins/_plugin_installer/webui/install-detail.html
@@ -290,7 +290,8 @@
display: flex;
align-items: center;
justify-content: center;
- background: var(--color-panel);
+ background: radial-gradient(circle at top, #6b728089, var(--color-panel)),
+ var(--color-panel);
border: 1px solid var(--color-border);
}
@@ -404,6 +405,36 @@
gap: 0.4rem;
}
+ .pi-card-installed-pill {
+ display: inline-flex;
+ padding: 0.24rem 0.5rem;
+ border-radius: 0.5rem;
+ background: rgba(34, 197, 94, 0.15);
+ color: #4ade80;
+ font-size: 0.72rem;
+ font-weight: 700;
+ }
+
+ body.light-mode .pi-card-installed-pill {
+ background: rgba(34, 197, 94, 0.22);
+ color: #166534;
+ }
+
+ .pi-card-update-pill {
+ display: inline-flex;
+ padding: 0.24rem 0.5rem;
+ border-radius: 0.5rem;
+ background: rgba(59, 130, 246, 0.16);
+ color: #60a5fa;
+ font-size: 0.72rem;
+ font-weight: 700;
+ }
+
+ body.light-mode .pi-card-update-pill {
+ background: rgba(59, 130, 246, 0.2);
+ color: #1d4ed8;
+ }
+
.pi-status-badges .pi-card-installed-pill {
position: static;
top: auto;
diff --git a/plugins/_plugin_installer/webui/install-index.html b/plugins/_plugin_installer/webui/install-index.html
index 753b4ca09..fea254167 100644
--- a/plugins/_plugin_installer/webui/install-index.html
+++ b/plugins/_plugin_installer/webui/install-index.html
@@ -86,18 +86,13 @@
x-text="$store.pluginInstallStore.getBrowseSubtitle(plugin)">
</div>
- <div class="pi-card-pills">
- <template x-if="plugin.installed">
- <span class="pi-card-installed-pill">Installed</span>
- </template>
- <template x-if="plugin.has_update">
- <span class="pi-card-update-pill">New version</span>
- </template>
- </div>
+ <span class="pi-card-stars">
+ <span class="material-symbols-outlined">star</span>
+ <span x-text="plugin.stars || 0"></span>
+ </span>
</div>
- <span class="material-symbols-outlined pi-card-arrow">arrow_outward</span>
</div>
<div class="pi-card-body">
@@ -109,16 +104,32 @@
</div>
<div class="pi-card-footer">
- <span class="pi-card-stars">
- <span class="material-symbols-outlined">star</span>
- <span x-text="plugin.stars || 0"></span>
- </span>
-
- <template x-if="$store.pluginInstallStore.getBrowsePrimaryTag(plugin)">
- <span class="pi-card-tag"
- x-text="$store.pluginInstallStore.getBrowsePrimaryTag(plugin)">
- </span>
- </template>
+
+ <div class="pi-card-bubbles pi-card-bubbles-tags">
+ <template x-if="$store.pluginInstallStore.getBrowsePrimaryTag(plugin)">
+ <span class="pi-card-bubble pi-card-bubble-tag">
+ <span class="material-symbols-outlined">sell</span>
+ <span class="pi-card-bubble-text"
+ x-text="$store.pluginInstallStore.getBrowsePrimaryTag(plugin)"></span>
+ </span>
+ </template>
+ </div>
+
+ <div class="pi-card-bubbles pi-card-bubbles-status">
+ <template x-if="plugin.installed">
+ <span class="pi-card-bubble pi-card-bubble-installed">
+ <span class="material-symbols-outlined">check_circle</span>
+ <span class="pi-card-bubble-text">Installed</span>
+ </span>
+ </template>
+ <template x-if="plugin.has_update">
+ <span class="pi-card-bubble pi-card-bubble-update">
+ <span class="material-symbols-outlined">update</span>
+ <span class="pi-card-bubble-text">New version</span>
+ </span>
+ </template>
+ </div>
+
</div>
</button>
</template>
@@ -394,7 +405,7 @@
width: 100%;
padding: 0;
border: 1px solid var(--color-border);
- border-radius: 16px;
+ border-radius: 10px;
background: var(--color-background);
color: inherit;
text-align: left;
@@ -425,7 +436,8 @@
justify-content: center;
border-radius: 0.5rem;
overflow: hidden;
- background: var(--color-panel);
+ background: radial-gradient(circle at top, #6b728089, var(--color-panel)),
+ var(--color-panel);
border: 1px solid var(--color-border);
}
@@ -481,51 +493,12 @@
color: var(--color-text-secondary);
}
- .pi-card-pills {
- display: flex;
- flex-wrap: wrap;
- padding: var(--spacing-xs) 0;
- gap: 0.4rem;
- }
-
- .pi-card-pills
-
- .pi-card-installed-pill {
- display: inline-flex;
- padding: 0.24rem 0.5rem;
- border-radius: 0.5rem;
- background: rgba(34, 197, 94, 0.15);
- color: #4ade80;
- font-size: 0.72rem;
- font-weight: 700;
- }
-
- body.light-mode .pi-card-installed-pill {
- background: rgba(34, 197, 94, 0.22);
- color: #166534;
- }
-
- .pi-card-update-pill {
- display: inline-flex;
- padding: 0.24rem 0.5rem;
- border-radius: 0.5rem;
- background: rgba(59, 130, 246, 0.16);
- color: #60a5fa;
- font-size: 0.72rem;
- font-weight: 700;
- }
-
- body.light-mode .pi-card-update-pill {
- background: rgba(59, 130, 246, 0.2);
- color: #1d4ed8;
- }
-
.pi-card-footer {
display: flex;
align-items: center;
justify-content: space-between;
- gap: 0.5rem;
- padding: 0.9rem 1rem 1rem;
+ gap: 0.75rem;
+ padding: 0.65rem 0.85rem 0.75rem;
border-top: 1px solid var(--color-border);
}
@@ -533,6 +506,7 @@
display: inline-flex;
align-items: center;
gap: 0.3rem;
+ padding: var(--spacing-xxs) 0;
font-size: 0.85rem;
color: var(--color-text-secondary);
}
@@ -542,14 +516,127 @@
color: #fbbf24;
}
- .pi-card-tag {
- padding: 0.22rem 0.55rem;
- border-radius: 0.5rem;
- font-size: 0.75rem;
- font-weight: 600;
+ .pi-card-bubbles {
+ display: flex;
+ align-items: center;
+ gap: 0.35rem;
+ flex-shrink: 0;
+ }
+
+ .pi-card-bubbles-tags {
+ min-width: 0;
+ flex: 1 1 auto;
+ justify-content: flex-start;
+ }
+
+ .pi-card-bubbles-status {
+ justify-content: flex-end;
+ }
+
+ .pi-card-bubble {
+ display: inline-flex;
+ align-items: center;
+ height: 26px;
+ padding: 0 0.45rem;
+ border-radius: 6px;
+ border: 1px solid var(--color-border);
background: var(--color-panel);
+ overflow: hidden;
+ cursor: default;
+ transition: background 0.2s ease, border-color 0.2s ease;
+ }
+
+ .pi-card-bubble .material-symbols-outlined {
+ font-size: 0.95rem;
+ flex-shrink: 0;
+ line-height: 1;
+ }
+
+ .pi-card-bubble-text {
+ max-width: 0;
+ opacity: 0;
+ overflow: hidden;
+ white-space: nowrap;
+ font-size: 0.72rem;
+ font-weight: 600;
+ transition: max-width 0.25s ease, opacity 0.2s ease, margin-left 0.2s ease;
+ margin-left: 0;
+ }
+
+ /* Category tag (left): label always visible */
+ .pi-card-bubbles-tags .pi-card-bubble {
+ min-width: 0;
+ max-width: 100%;
+ }
+
+ .pi-card-bubbles-tags .pi-card-bubble-text {
+ flex: 1 1 auto;
+ min-width: 0;
+ max-width: 10rem;
+ opacity: 1;
+ margin-left: 0.3rem;
+ text-overflow: ellipsis;
+ }
+
+ /* Status pills (right): icon until hover */
+ .pi-card-bubbles-status .pi-card-bubble:hover .pi-card-bubble-text {
+ max-width: 8rem;
+ opacity: 1;
+ margin-left: 0.3rem;
+ }
+
+ .pi-card-bubble-tag .material-symbols-outlined {
+ color: var(--color-text-muted);
+ }
+
+ .pi-card-bubble-tag .pi-card-bubble-text {
color: var(--color-text-secondary);
- border: 1px solid var(--color-border);
+ }
+
+ .pi-card-bubble-installed .material-symbols-outlined {
+ color: #4ade80;
+ }
+
+ .pi-card-bubble-installed .pi-card-bubble-text {
+ color: #4ade80;
+ }
+
+ .pi-card-bubble-installed:hover {
+ background: rgba(34, 197, 94, 0.1);
+ border-color: rgba(34, 197, 94, 0.3);
+ }
+
+ .pi-card-bubble-update .material-symbols-outlined {
+ color: #60a5fa;
+ }
+
+ .pi-card-bubble-update .pi-card-bubble-text {
+ color: #60a5fa;
+ }
+
+ .pi-card-bubble-update:hover {
+ background: rgba(59, 130, 246, 0.1);
+ border-color: rgba(59, 130, 246, 0.3);
+ }
+
+ body.light-mode .pi-card-bubble-installed .material-symbols-outlined,
+ body.light-mode .pi-card-bubble-installed .pi-card-bubble-text {
+ color: #166534;
+ }
+
+ body.light-mode .pi-card-bubble-installed:hover {
+ background: rgba(34, 197, 94, 0.12);
+ border-color: rgba(34, 197, 94, 0.35);
+ }
+
+ body.light-mode .pi-card-bubble-update .material-symbols-outlined,
+ body.light-mode .pi-card-bubble-update .pi-card-bubble-text {
+ color: #1d4ed8;
+ }
+
+ body.light-mode .pi-card-bubble-update:hover {
+ background: rgba(59, 130, 246, 0.1);
+ border-color: rgba(59, 130, 246, 0.35);
}
.pi-pagination {
diff --git a/plugins/_plugin_installer/webui/pluginInstallStore.js b/plugins/_plugin_installer/webui/pluginInstallStore.js
index 73ea0bfa9..2929b11c3 100644
--- a/plugins/_plugin_installer/webui/pluginInstallStore.js
+++ b/plugins/_plugin_installer/webui/pluginInstallStore.js
@@ -608,9 +608,21 @@ const model = {
},
handleOpenInfo() {
- if (this.installedPluginInfo) {
- pluginListStore.openPluginInfo(this.installedPluginInfo);
- }
+ if (!this.installedPluginInfo) return;
+ const pluginHubKey = (this.selectedPlugin?.key || "").trim();
+ const plugin = pluginHubKey
+ ? {
+ ...this.installedPluginInfo,
+ pluginHub: {
+ key: pluginHubKey,
+ title:
+ this.selectedPlugin?.title ||
+ this.installedPluginInfo.display_name ||
+ this.installedPluginInfo.name,
+ },
+ }
+ : this.installedPluginInfo;
+ pluginListStore.openPluginInfo(plugin);
},
handleOpenExecute() {
diff --git a/webui/components/plugins/list/plugin-list.html b/webui/components/plugins/list/plugin-list.html
index f3ce3282d..afb8cf8df 100644
--- a/webui/components/plugins/list/plugin-list.html
+++ b/webui/components/plugins/list/plugin-list.html
@@ -291,7 +291,7 @@
.plugin-card {
border: 1px solid var(--color-border);
- border-radius: 0.5rem;
+ border-radius: 10px;
padding: 0.75rem;
margin-top: 0.75rem;
background: var(--color-background);
diff --git a/webui/components/plugins/list/pluginListStore.js b/webui/components/plugins/list/pluginListStore.js
index 841b80f6b..25aff0767 100644
--- a/webui/components/plugins/list/pluginListStore.js
+++ b/webui/components/plugins/list/pluginListStore.js
@@ -3,6 +3,7 @@ import * as api from "/js/api.js";
import { store as pluginSettingsStore } from "/components/plugins/plugin-settings-store.js";
import { store as pluginToggleStore } from "/components/plugins/toggle/plugin-toggle-store.js";
import { store as pluginExecuteStore } from "/components/plugins/list/plugin-execute-store.js";
+import { store as fileBrowserStore } from "/components/modals/file-browser/file-browser-store.js";
import { store as markdownModalStore } from "/components/modals/markdown/markdown-store.js";
import { callJsExtensions } from "/js/extensions.js";
import {
@@ -156,6 +157,20 @@ const model = {
window.openModal?.("components/plugins/plugin-info.html");
},
+ async openPluginFolder(plugin) {
+ if (!plugin?.path) return;
+ await fileBrowserStore.open(plugin.path);
+ },
+
+ async openPluginHub(plugin) {
+ const pluginKey = (plugin?.pluginHub?.key || "").trim();
+ if (!pluginKey) return;
+ const { store: pluginInstallStore } = await import(
+ "/plugins/_plugin_installer/webui/pluginInstallStore.js"
+ );
+ await pluginInstallStore.openPluginHubDetailByKey(pluginKey);
+ },
+
async deletePlugin(plugin) {
if (!plugin?.name) return;
diff --git a/webui/components/plugins/plugin-info.html b/webui/components/plugins/plugin-info.html
index 083a0d8e4..d3f8477b4 100644
--- a/webui/components/plugins/plugin-info.html
+++ b/webui/components/plugins/plugin-info.html
@@ -10,15 +10,25 @@
<template x-if="$store.pluginListStore && $store.pluginListStore.selectedPlugin">
<div class="plugin-info-view">
<div class="plugin-info-header">
- <h2 class="plugin-info-title"
- x-text="$store.pluginListStore.selectedPlugin.display_name || $store.pluginListStore.selectedPlugin.name"></h2>
- <div class="plugin-info-source"
- x-text="$store.pluginListStore.selectedPlugin.is_custom ? 'Custom plugin' : 'Builtin plugin'"></div>
+ <template x-if="$store.pluginListStore.selectedPlugin.thumbnail_url">
+ <div class="plugin-info-thumb">
+ <img :src="$store.pluginListStore.selectedPlugin.thumbnail_url"
+ :alt="$store.pluginListStore.selectedPlugin.display_name || $store.pluginListStore.selectedPlugin.name">
+ </div>
+ </template>
+ <div class="plugin-info-header-main">
+ <div class="plugin-info-heading">
+ <h2 class="plugin-info-title"
+ x-text="$store.pluginListStore.selectedPlugin.display_name || $store.pluginListStore.selectedPlugin.name"></h2>
+ <div class="plugin-info-source"
+ x-text="$store.pluginListStore.selectedPlugin.is_custom ? 'Custom plugin' : 'Builtin plugin'"></div>
+ </div>
+
+ <div class="plugin-info-description"
+ x-text="$store.pluginListStore.selectedPlugin.description || 'No description provided.'"></div>
+ </div>
</div>
- <div class="plugin-info-description"
- x-text="$store.pluginListStore.selectedPlugin.description || 'No description provided.'"></div>
-
<div class="plugin-info-grid">
<div class="plugin-info-label">Plugin ID:</div>
<div class="plugin-info-value">
@@ -29,6 +39,15 @@
<div class="plugin-info-value"
x-text="$store.pluginListStore.selectedPlugin.version || 'n/a'"></div>
+ <template x-if="$store.pluginListStore.selectedPlugin.author && $store.pluginListStore.selectedPlugin.repo">
+ <div class="plugin-info-grid-pair">
+ <div class="plugin-info-label">Repository:</div>
+ <div class="plugin-info-value">
+ <code x-text="`${$store.pluginListStore.selectedPlugin.author}/${$store.pluginListStore.selectedPlugin.repo}`"></code>
+ </div>
+ </div>
+ </template>
+
<div class="plugin-info-label">Path:</div>
<div class="plugin-info-value">
<code x-text="$store.pluginListStore.selectedPlugin.path"></code>
@@ -56,10 +75,32 @@
</div>
</div>
</template>
- </div>
- <div class="modal-footer" data-modal-footer>
- <button class="btn btn-cancel" @click="window.closeModal?.()">Close</button>
+ <template x-if="$store.pluginListStore?.selectedPlugin">
+ <div class="modal-footer plugin-info-footer" data-modal-footer>
+ <div class="plugin-info-footer-row">
+ <div class="plugin-info-footer-left">
+ <button type="button"
+ class="button"
+ title="Open plugin files"
+ @click="$store.pluginListStore.openPluginFolder($store.pluginListStore.selectedPlugin)">
+ <span class="icon material-symbols-outlined">folder_open</span> Files
+ </button>
+ <template x-if="$store.pluginListStore.selectedPlugin.pluginHub?.key">
+ <button type="button"
+ class="button"
+ title="Open in Plugin Hub"
+ @click="$store.pluginListStore.openPluginHub($store.pluginListStore.selectedPlugin)">
+ <span class="icon material-symbols-outlined">storefront</span> Hub
+ </button>
+ </template>
+ </div>
+ <div class="plugin-info-footer-right">
+ <button class="btn btn-cancel" @click="window.closeModal?.()">Close</button>
+ </div>
+ </div>
+ </div>
+ </template>
</div>
<style>
@@ -68,6 +109,38 @@
}
.plugin-info-header {
+ display: flex;
+ align-items: flex-start;
+ gap: 1rem;
+ margin-bottom: 1rem;
+ }
+
+ .plugin-info-thumb {
+ width: 96px;
+ height: 96px;
+ flex-shrink: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ overflow: hidden;
+ border: 1px solid var(--color-border);
+ border-radius: 12px;
+ background: var(--color-panel);
+ }
+
+ .plugin-info-thumb img {
+ width: 100%;
+ height: 100%;
+ object-fit: contain;
+ padding: 0.5rem;
+ }
+
+ .plugin-info-header-main {
+ flex: 1;
+ min-width: 0;
+ }
+
+ .plugin-info-heading {
display: flex;
flex-wrap: wrap;
align-items: baseline;
@@ -97,6 +170,10 @@
gap: 0.5rem 0.75rem;
}
+ .plugin-info-grid-pair {
+ display: contents;
+ }
+
.plugin-info-label {
font-weight: 600;
color: var(--color-text-secondary);
@@ -108,7 +185,27 @@
overflow-wrap: anywhere;
}
+ .plugin-info-footer-row {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 0.75rem;
+ flex-wrap: wrap;
+ }
+
+ .plugin-info-footer-left,
+ .plugin-info-footer-right {
+ display: flex;
+ gap: 0.5rem;
+ flex-wrap: wrap;
+ }
+
@media (max-width: 640px) {
+ .plugin-info-header {
+ flex-direction: column;
+ }
+
.plugin-info-grid {
grid-template-columns: 1fr;
gap: 0.25rem;
@@ -117,6 +214,16 @@
.plugin-info-label {
margin-top: 0.5rem;
}
+
+ .plugin-info-footer-row {
+ flex-direction: column;
+ align-items: stretch;
+ }
+
+ .plugin-info-footer-left,
+ .plugin-info-footer-right {
+ width: 100%;
+ }
}
</style>
</body>
diff --git a/webui/components/settings/plugins/plugins-subsection.html b/webui/components/settings/plugins/plugins-subsection.html
index 392c7a223..eb8c0ed34 100644
--- a/webui/components/settings/plugins/plugins-subsection.html
+++ b/webui/components/settings/plugins/plugins-subsection.html
@@ -61,7 +61,7 @@
.plugin-card {
border: 1px solid var(--color-border);
- border-radius: 4px;
+ border-radius: 10px;
padding: 0.75rem;
margin-top: 0.75rem;
background: var(--color-background);
diff --git a/webui/css/modals.css b/webui/css/modals.css
index 399da184b..a86229629 100644
--- a/webui/css/modals.css
+++ b/webui/css/modals.css
@@ -176,7 +176,7 @@ some classes like modal-header are shared between the old and the new system */
display: flex;
justify-content: flex-end;
align-items: center;
- padding: 0.6rem 2rem 0.6rem 0;
+ padding: var(--spacing-sm) var(--spacing-lg);
border-top: 1px solid var(--color-border);
background: var(--color-background);
gap: 1rem;