From 6bd7fe92d81107dc523a14098f60d7c0cd9d7cb5 Mon Sep 17 00:00:00 2001 From: fuomag9 <1580624+fuomag9@users.noreply.github.com> Date: Fri, 27 Feb 2026 18:00:26 +0100 Subject: [PATCH] feat: add server-side pagination to proxy-hosts page Co-Authored-By: Claude Sonnet 4.6 --- .../proxy-hosts/ProxyHostsClient.tsx | 4 ++- app/(dashboard)/proxy-hosts/page.tsx | 30 +++++++++++++++---- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/app/(dashboard)/proxy-hosts/ProxyHostsClient.tsx b/app/(dashboard)/proxy-hosts/ProxyHostsClient.tsx index be9ef1a4..a5ff2d24 100644 --- a/app/(dashboard)/proxy-hosts/ProxyHostsClient.tsx +++ b/app/(dashboard)/proxy-hosts/ProxyHostsClient.tsx @@ -21,9 +21,10 @@ type Props = { certificates: Certificate[]; accessLists: AccessList[]; authentikDefaults: AuthentikSettings | null; + pagination: { total: number; page: number; perPage: number }; }; -export default function ProxyHostsClient({ hosts, certificates, accessLists, authentikDefaults }: Props) { +export default function ProxyHostsClient({ hosts, certificates, accessLists, authentikDefaults, pagination }: Props) { const [createOpen, setCreateOpen] = useState(false); const [duplicateHost, setDuplicateHost] = useState(null); const [editHost, setEditHost] = useState(null); @@ -159,6 +160,7 @@ export default function ProxyHostsClient({ hosts, certificates, accessLists, aut data={filteredHosts} keyField="id" emptyMessage={searchTerm ? "No hosts match your search" : "No proxy hosts found"} + pagination={pagination} /> ; + return ( + + ); }