From cf77fa8cd120ed0e04ff68d38d4889bb3c0b6700 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sat, 2 Mar 2024 10:16:32 +0000 Subject: [PATCH] ui: Minor UI tweaks in admin page and sidebar --- packages/web/app/dashboard/admin/page.tsx | 65 ++++++++++--------- .../web/app/dashboard/components/AllLists.tsx | 3 +- 2 files changed, 36 insertions(+), 32 deletions(-) diff --git a/packages/web/app/dashboard/admin/page.tsx b/packages/web/app/dashboard/admin/page.tsx index 26b6447b..b2f8e9ac 100644 --- a/packages/web/app/dashboard/admin/page.tsx +++ b/packages/web/app/dashboard/admin/page.tsx @@ -69,42 +69,46 @@ export default function AdminPage() {

Admin


{data ? ( - - - - Stats - Value - - - - - Num Users - {data.numUsers} - - - Num Bookmarks - {data.numBookmarks} - - - Pending Crawling Jobs - {data.pendingCrawls} - - - Pending Indexing Jobs - {data.pendingIndexing} - - - Pending OpenAI Jobs - {data.pendingOpenai} - - -
+ <> +

Server Stats

+ + + + Num Users + {data.numUsers} + + + Num Bookmarks + {data.numBookmarks} + + +
+
+

Background Jobs

+ + + + Pending Crawling Jobs + {data.pendingCrawls} + + + Pending Indexing Jobs + {data.pendingIndexing} + + + Pending OpenAI Jobs + {data.pendingOpenai} + + +
+ ) : ( )}

Actions

recrawlLinks()} @@ -112,6 +116,7 @@ export default function AdminPage() { Recrawl All Links reindexBookmarks()} diff --git a/packages/web/app/dashboard/components/AllLists.tsx b/packages/web/app/dashboard/components/AllLists.tsx index 6b5ca3b5..937ba90d 100644 --- a/packages/web/app/dashboard/components/AllLists.tsx +++ b/packages/web/app/dashboard/components/AllLists.tsx @@ -1,7 +1,6 @@ "use client"; import { api } from "@/lib/trpc"; -import { ScrollArea } from "@/components/ui/scroll-area"; import SidebarItem from "./SidebarItem"; import LoadingSpinner from "@/components/ui/spinner"; import NewListModal, { useNewListModal } from "./NewListModal"; @@ -16,7 +15,7 @@ export default function AllLists() { return (
    -
  • +
  • Lists

    setOpen(true)}>