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(empty-states): next-best-action CTAs on filtered/installed empties

Juan Denis527deaae16b4
diff --git a/frontend/src/pages/DeliveryLog.jsx b/frontend/src/pages/DeliveryLog.jsx
index ee1e212f..0a29a4eb 100644
--- a/frontend/src/pages/DeliveryLog.jsx
+++ b/frontend/src/pages/DeliveryLog.jsx
@@ -166,7 +166,15 @@ export default function DeliveryLog() {
{loading && deliveries.length === 0 ? (
<EmptyState loading loadingVariant="table" title="Loading…" />
) : deliveries.length === 0 ? (
- <EmptyState icon={Inbox} title="No deliveries match these filters." />
+ <EmptyState
+ icon={Inbox}
+ title="No deliveries match these filters."
+ action={(status !== 'all' || channel !== 'all') ? (
+ <Button variant="outline" onClick={() => { setStatus('all'); setChannel('all'); }}>
+ Clear filters
+ </Button>
+ ) : undefined}
+ />
) : (
<DataTable
columns={columns}
diff --git a/frontend/src/pages/Domains.jsx b/frontend/src/pages/Domains.jsx
index d4504caa..cd846532 100644
--- a/frontend/src/pages/Domains.jsx
+++ b/frontend/src/pages/Domains.jsx
@@ -505,6 +505,11 @@ const Domains = () => {
<EmptyState
icon={Globe}
title={query ? `No domains match “${search.trim()}”.` : 'No domains match this filter.'}
+ action={(
+ <Button variant="outline" onClick={() => { setSearch(''); setFilter('all'); }}>
+ Clear filters
+ </Button>
+ )}
/>
) : (
<div className="dom-card">
diff --git a/frontend/src/pages/Marketplace.jsx b/frontend/src/pages/Marketplace.jsx
index c702e1c6..aad7b413 100644
--- a/frontend/src/pages/Marketplace.jsx
+++ b/frontend/src/pages/Marketplace.jsx
@@ -555,6 +555,9 @@ const Marketplace = () => {
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.'}
+ action={hasFilters ? (
+ <Button variant="outline" size="sm" onClick={resetFilters}>Clear filters</Button>
+ ) : undefined}
/>
)}
</section>
@@ -586,7 +589,12 @@ const Marketplace = () => {
<EmptyState
icon={PackageCheck}
title="No extensions installed"
- description="Install one from Extensions or use Install manually."
+ description="Install one from the catalog or use Install manually."
+ action={(
+ <Button variant="outline" size="sm" onClick={() => navigate('/extensions')}>
+ Browse catalog
+ </Button>
+ )}
/>
)}
</section>