Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

feat(marketplace): featured Automations with illustrated icon

Juan Denis475c492d1931
diff --git a/builtin-extensions/serverkit-tramo/plugin.json b/builtin-extensions/serverkit-tramo/plugin.json
index 46ea234b..81092b44 100644
--- a/builtin-extensions/serverkit-tramo/plugin.json
+++ b/builtin-extensions/serverkit-tramo/plugin.json
@@ -7,6 +7,8 @@
"license": "MIT",
"category": "deployment",
"homepage": "https://github.com/jhd3197/ServerKit",
+ "featured": true,
+ "feature_score": 100,
"permissions": ["docker", "shell", "filesystem", "network"],
"min_panel_version": "1.7.0",
"entry_point": "tramo:tramo_bp",
diff --git a/frontend/src/assets/extension-icons/automations.png b/frontend/src/assets/extension-icons/automations.png
new file mode 100644
index 00000000..13d91627
Binary files /dev/null and b/frontend/src/assets/extension-icons/automations.png differ
diff --git a/frontend/src/components/icons/ExtensionIcons.js b/frontend/src/components/icons/ExtensionIcons.js
index 97e867fd..891355f6 100644
--- a/frontend/src/components/icons/ExtensionIcons.js
+++ b/frontend/src/components/icons/ExtensionIcons.js
@@ -5,6 +5,7 @@
// the caller falls back to the brand mark, manifest SVG, or category glyph.
//
// PNGs are bundled + hashed by Vite via these URL imports.
+import automations from '../../assets/extension-icons/automations.png';
import backup from '../../assets/extension-icons/backup.png';
import cloudflare from '../../assets/extension-icons/cloudflare.png';
import extensions from '../../assets/extension-icons/extensions.png';
@@ -27,6 +28,9 @@ const normalizeSlug = (slug) => String(slug || '').toLowerCase().replace(/^serve
// Ordered keyword rules — first match wins. Keep the most specific keys first.
const KEYWORD_RULES = [
+ // tramo/Automations ships its own illustrated cover; keep it ahead of the
+ // generic workflow rule so 'serverkit-tramo' resolves to it.
+ { keys: ['tramo', 'automation'], icon: automations },
{ keys: ['cloudflare'], icon: cloudflare },
{ keys: ['gitea', 'forgejo', 'git'], icon: git },
{ keys: ['gpu', 'nvidia', 'cuda'], icon: gpu },
diff --git a/frontend/src/pages/Marketplace.jsx b/frontend/src/pages/Marketplace.jsx
index 873875ad..eb6bcb31 100644
--- a/frontend/src/pages/Marketplace.jsx
+++ b/frontend/src/pages/Marketplace.jsx
@@ -13,6 +13,7 @@ import {
ServerCog,
ShieldCheck,
Sparkles,
+ Star,
UploadCloud,
} from 'lucide-react';
import api from '../services/api';
@@ -93,6 +94,8 @@ const getRegistryCatalogEntry = (entry) => ({
extensionType: 'registry',
installed: Boolean(entry.installed),
status: entry.status,
+ featured: Boolean(entry.featured),
+ featureScore: Number(entry.feature_score) || 0,
});
// Source badge tint: built-in is 'warning', registry is 'info'.
@@ -125,6 +128,8 @@ const getLocalCatalogEntry = (builtin) => {
extensionType: 'built-in',
installed: Boolean(builtin.installed),
status: builtin.status,
+ featured: Boolean(manifest.featured),
+ featureScore: Number(manifest.feature_score) || 0,
};
};
@@ -326,7 +331,21 @@ const Marketplace = () => {
if (update.plugin_id != null) updatesByKey.set(String(update.plugin_id), update);
if (update.slug) updatesByKey.set(update.slug, update);
});
- const mergedCatalogEntries = [...localCatalogEntries, ...registryCatalogEntries];
+ // Featured entries float to the top of the catalog, ordered by their
+ // feature score (higher = more prominent). The score itself is not shown —
+ // it only drives ordering; featured cards just get a "Featured" badge.
+ const mergedCatalogEntries = [...localCatalogEntries, ...registryCatalogEntries]
+ .map((entry, index) => ({ entry, index }))
+ .sort((a, b) => {
+ const fa = a.entry.featured ? 1 : 0;
+ const fb = b.entry.featured ? 1 : 0;
+ if (fa !== fb) return fb - fa;
+ if (fa && a.entry.featureScore !== b.entry.featureScore) {
+ return b.entry.featureScore - a.entry.featureScore;
+ }
+ return a.index - b.index; // stable: preserve original order otherwise
+ })
+ .map(({ entry }) => entry);
const catalogCategories = deriveCatalogCategories(mergedCatalogEntries);
const filterGroups = [
{
@@ -575,7 +594,7 @@ const CatalogExtensionCard = ({ entry, installing, onInstall, onOpenDetail, stat
return (
<article
- className={`extension-card extension-card--${entry.source} extension-card--${category} extension-card--clickable card`}
+ className={`extension-card extension-card--${entry.source} extension-card--${category} extension-card--clickable card${entry.featured ? ' extension-card--featured' : ''}`}
role="button"
tabIndex={0}
onClick={openDetail}
@@ -583,6 +602,11 @@ const CatalogExtensionCard = ({ entry, installing, onInstall, onOpenDetail, stat
>
<div {...coverProps('extension-card__cover', entry, category)}>
<ExtensionCover entry={entry} category={category} brandSize={34} />
+ {entry.featured && (
+ <span className="extension-featured-badge">
+ <Star aria-hidden="true" /> Featured
+ </span>
+ )}
</div>
<div className="extension-card__badges">
<Badge variant={sourceBadgeVariant(entry.source)}>{entry.sourceLabel}</Badge>
diff --git a/frontend/src/plugins/serverkit-tramo/plugin.json b/frontend/src/plugins/serverkit-tramo/plugin.json
index 9ca621ce..b1938d52 100644
--- a/frontend/src/plugins/serverkit-tramo/plugin.json
+++ b/frontend/src/plugins/serverkit-tramo/plugin.json
@@ -7,6 +7,8 @@
"license": "MIT",
"category": "deployment",
"homepage": "https://github.com/jhd3197/ServerKit",
+ "featured": true,
+ "feature_score": 100,
"permissions": [
"docker",
"shell",
diff --git a/frontend/src/styles/pages/_marketplace.scss b/frontend/src/styles/pages/_marketplace.scss
index 700f3b9a..0ebb5723 100644
--- a/frontend/src/styles/pages/_marketplace.scss
+++ b/frontend/src/styles/pages/_marketplace.scss
@@ -146,6 +146,7 @@
// Cover banner. Gradient variant (per-slug hue set inline via
// extensionCoverStyle) holds the brand mark / manifest icon / category glyph.
.extension-card__cover {
+ position: relative;
display: grid;
place-items: center;
height: 140px;
@@ -159,6 +160,36 @@
}
}
+ // Featured ribbon (top-left of the cover). Driven by manifest `featured`;
+ // the feature_score only orders cards, it is not shown.
+ .extension-featured-badge {
+ position: absolute;
+ top: 8px;
+ left: 8px;
+ z-index: 2;
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ padding: 3px 9px 3px 7px;
+ border-radius: $radius-full;
+ background: linear-gradient(135deg, #f7b733, #fc9d3c);
+ color: #1c1200;
+ font-size: 11px;
+ font-weight: 700;
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
+
+ svg {
+ width: 12px;
+ height: 12px;
+ fill: currentColor;
+ }
+ }
+
+ .extension-card--featured {
+ border-color: rgba(247, 183, 51, 0.5);
+ box-shadow: 0 0 0 1px rgba(247, 183, 51, 0.22);
+ }
+
.extension-card__brand,
.extension-card__glyph {
color: rgba(255, 255, 255, 0.92);