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.

refactor(marketplace): strip dashboard chrome from the Browse tab

Juan Denis09781a1f0a8b
diff --git a/frontend/src/pages/Marketplace.jsx b/frontend/src/pages/Marketplace.jsx
index 3cff42ce..a30f4d2c 100644
--- a/frontend/src/pages/Marketplace.jsx
+++ b/frontend/src/pages/Marketplace.jsx
@@ -5,7 +5,6 @@ import {
CheckCircle2,
DownloadCloud,
FileArchive,
- Filter,
FolderOpen,
Globe2,
LayoutGrid,
@@ -25,7 +24,6 @@ import { sanitizeSvgInner } from '../utils/sanitizeSvg';
import Modal from '@/components/Modal';
import PageLoader from '../components/PageLoader';
import EmptyState from '../components/EmptyState';
-import { StatStrip, Stat } from '../components/StatCard';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Badge } from '@/components/ui/badge';
@@ -323,10 +321,6 @@ const Marketplace = () => {
const localCatalogEntries = builtins.map(getLocalCatalogEntry);
const registryCatalogEntries = registryExtensions.map(getRegistryCatalogEntry);
const installedCatalogEntries = localCatalogEntries.filter((entry) => entry.installed);
- const installedBuiltinCount = installedCatalogEntries.length;
- const activePluginCount = plugins.filter((plugin) => plugin.status === 'active').length;
- const pluginIssueCount = plugins.filter((plugin) => plugin.status === 'error').length;
- const availableCount = builtins.length + registryExtensions.length;
const installedCatalogCount = installedCatalogEntries.length;
// Update descriptors keyed by both plugin_id and slug so PluginRow can match
// whichever identifier it has on hand.
@@ -343,17 +337,6 @@ const Marketplace = () => {
return (
<div className="sk-tabgroup__inner marketplace-page">
- <StatStrip ariaLabel="Marketplace summary">
- <Stat label="Catalog" value={availableCount} />
- <Stat label="Built-in" value={builtins.length} />
- <Stat label="Installed" value={installedCatalogCount} />
- <Stat
- label="Active Plugins"
- value={`${activePluginCount}/${plugins.length}`}
- state={pluginIssueCount > 0 ? 'danger' : undefined}
- />
- </StatStrip>
-
<Tabs value={activeTab} onValueChange={setActiveTab} className="marketplace-tabs">
<TabsList className="marketplace-tabs__list">
<TabsTrigger value="browse">
@@ -381,17 +364,6 @@ const Marketplace = () => {
aria-label="Search extensions"
/>
</div>
- <select
- className="form-select marketplace-category-select"
- value={category}
- onChange={(event) => setCategory(event.target.value)}
- aria-label="Filter by category"
- >
- <option value="">All Categories</option>
- {catalogCategories.map((item) => (
- <option key={item} value={item}>{titleCase(item)}</option>
- ))}
- </select>
{hasFilters && (
<Button variant="ghost" size="sm" onClick={resetFilters}>
Reset
@@ -421,91 +393,37 @@ const Marketplace = () => {
))}
</div>
- <div className="marketplace-browse-grid">
- <div className="marketplace-main-stack">
- <section className="marketplace-section">
- <SectionHeader
- kicker="Catalog"
- title="Extension catalog"
- meta={`${catalogEntries.length} results`}
- />
- {catalogEntries.length > 0 ? (
- <div className="extensions-grid">
- {catalogEntries.map((entry) => (
- <CatalogExtensionCard
- key={entry.key}
- entry={entry}
- installing={installing}
- onInstall={
- entry.source === 'local'
- ? handleBuiltinInstall
- : handleRegistryInstall
- }
- onOpenDetail={setDetailEntry}
- statusVariant={pluginStatusVariant}
- />
- ))}
- </div>
- ) : (
- <EmptyState
- icon={Package}
- title="No catalog entries found"
- description={hasFilters ? 'No built-in or registry entries match the current filter.' : 'No extension entries are available yet.'}
- />
- )}
- </section>
- </div>
-
- <aside className="marketplace-side-panel" aria-label="Marketplace controls">
- <div className="marketplace-panel">
- <div className="marketplace-panel__title">
- <Filter aria-hidden="true" />
- Categories
- </div>
- <div className="marketplace-category-list">
- <button
- type="button"
- className={`marketplace-category ${category === '' ? 'marketplace-category--active' : ''}`}
- onClick={() => setCategory('')}
- >
- All
- </button>
- {catalogCategories.map((item) => {
- const Icon = getCategoryIcon(item);
- return (
- <button
- key={item}
- type="button"
- className={`marketplace-category marketplace-category--${item} ${category === item ? 'marketplace-category--active' : ''}`}
- onClick={() => setCategory(item)}
- >
- <Icon aria-hidden="true" />
- {titleCase(item)}
- </button>
- );
- })}
- </div>
- </div>
-
- <div className="marketplace-panel">
- <div className="marketplace-panel__title">
- <ServerCog aria-hidden="true" />
- Runtime
- </div>
- <div className="marketplace-runtime">
- <RuntimeRow label="Registry" value={registryExtensions.length} />
- <RuntimeRow label="Built-in" value={builtins.length} />
- <RuntimeRow label="Built-in installed" value={`${installedBuiltinCount}/${builtins.length}`} />
- <RuntimeRow label="Active plugins" value={`${activePluginCount}/${plugins.length}`} />
- <RuntimeRow
- label="Plugin issues"
- value={pluginIssueCount}
- danger={pluginIssueCount > 0}
+ <section className="marketplace-section">
+ <SectionHeader
+ kicker="Catalog"
+ title="Extension catalog"
+ meta={`${catalogEntries.length} results`}
+ />
+ {catalogEntries.length > 0 ? (
+ <div className="extensions-grid">
+ {catalogEntries.map((entry) => (
+ <CatalogExtensionCard
+ key={entry.key}
+ entry={entry}
+ installing={installing}
+ onInstall={
+ entry.source === 'local'
+ ? handleBuiltinInstall
+ : handleRegistryInstall
+ }
+ onOpenDetail={setDetailEntry}
+ statusVariant={pluginStatusVariant}
/>
- </div>
+ ))}
</div>
- </aside>
- </div>
+ ) : (
+ <EmptyState
+ icon={Package}
+ title="No catalog entries found"
+ description={hasFilters ? 'No built-in or registry entries match the current filter.' : 'No extension entries are available yet.'}
+ />
+ )}
+ </section>
</TabsContent>
<TabsContent value="installed">
@@ -1127,11 +1045,4 @@ const PluginInstallInput = ({
</div>
);
-const RuntimeRow = ({ label, value, danger }) => (
- <div className={`marketplace-runtime__row ${danger ? 'marketplace-runtime__row--danger' : ''}`}>
- <span>{label}</span>
- <strong>{value}</strong>
- </div>
-);
-
export default Marketplace;
diff --git a/frontend/src/styles/pages/_marketplace.scss b/frontend/src/styles/pages/_marketplace.scss
index d8520952..06ec94fb 100644
--- a/frontend/src/styles/pages/_marketplace.scss
+++ b/frontend/src/styles/pages/_marketplace.scss
@@ -73,7 +73,7 @@
.marketplace-toolbar {
display: grid;
- grid-template-columns: minmax(260px, 1fr) 220px auto;
+ grid-template-columns: minmax(260px, 1fr) auto;
gap: $space-3;
align-items: center;
margin-bottom: $space-6;
@@ -101,11 +101,6 @@
pointer-events: none;
}
- .marketplace-category-select {
- width: 100%;
- height: 40px;
- }
-
.cat-chips {
display: flex;
flex-wrap: wrap;
@@ -141,14 +136,6 @@
}
}
- .marketplace-browse-grid {
- display: grid;
- grid-template-columns: minmax(0, 1fr) 292px;
- gap: $space-6;
- align-items: start;
- }
-
- .marketplace-main-stack,
.plugins-section {
display: flex;
flex-direction: column;
@@ -359,112 +346,6 @@
font-size: $font-size-sm;
}
- .marketplace-side-panel {
- display: flex;
- flex-direction: column;
- gap: $space-4;
- position: sticky;
- top: $space-4;
- }
-
- .marketplace-panel {
- padding: $space-4;
- border: 1px solid $border-subtle;
- border-radius: $radius-lg;
- background: fade($bg-card-raw, 92%);
- }
-
- .marketplace-panel__title {
- display: flex;
- align-items: center;
- gap: $space-2;
- margin-bottom: $space-3;
- color: $text-primary;
- font-size: $font-size-base;
- font-weight: $font-weight-semibold;
-
- svg {
- width: 16px;
- height: 16px;
- color: $accent-primary;
- }
- }
-
- .marketplace-category-list {
- display: flex;
- flex-direction: column;
- gap: $space-2;
- }
-
- .marketplace-category {
- display: flex;
- align-items: center;
- gap: $space-2;
- width: 100%;
- height: 36px;
- padding: 0 $space-3;
- border: 1px solid transparent;
- border-radius: $radius-md;
- background: transparent;
- color: $text-secondary;
- font-family: inherit;
- font-size: $font-size-sm + 1;
- font-weight: $font-weight-medium;
- text-align: left;
- cursor: pointer;
- transition:
- color $transition-base,
- background $transition-base,
- border-color $transition-base;
-
- svg {
- width: 15px;
- height: 15px;
- }
-
- &:hover {
- border-color: $border-active;
- background: $bg-hover;
- color: $text-primary;
- }
-
- &--active {
- border-color: var(--accent-dim);
- background: var(--accent-bg);
- color: var(--accent-bright);
- }
- }
-
- .marketplace-runtime {
- display: flex;
- flex-direction: column;
- gap: $space-2;
- }
-
- .marketplace-runtime__row {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: $space-3;
- padding: $space-2 0;
- color: $text-secondary;
- font-size: $font-size-sm;
- border-bottom: 1px solid $border-subtle;
-
- &:last-child {
- border-bottom: none;
- }
-
- strong {
- color: $text-primary;
- font-weight: $font-weight-semibold;
- }
-
- &--danger strong {
- color: $danger;
- }
- }
-
.installed-list {
display: flex;
flex-direction: column;
@@ -686,18 +567,6 @@
}
}
- @media (max-width: 1180px) {
- .marketplace-browse-grid {
- grid-template-columns: 1fr;
- }
-
- .marketplace-side-panel {
- position: static;
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- }
- }
-
@media (max-width: $breakpoint-md) {
.marketplace-hero {
grid-template-columns: 1fr;
@@ -712,10 +581,6 @@
}
}
- .marketplace-side-panel {
- grid-template-columns: repeat(2, minmax(0, 1fr));
- }
-
.marketplace-toolbar {
grid-template-columns: 1fr;
}
@@ -753,10 +618,6 @@
font-size: $font-size-2xl;
}
- .marketplace-side-panel {
- grid-template-columns: 1fr;
- }
-
.marketplace-section__header {
align-items: flex-start;
flex-direction: column;