From 10fbcd355c15420a9dc1ef2ebcf3c19e5d63e401 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Wed, 8 Apr 2026 04:54:43 +0000 Subject: [PATCH 1/4] Add premium metal-button UI with full responsive design and dark theme Agent-Logs-Url: https://github.com/hari7261/SankhyaAI/sessions/90febd32-18f1-4fa5-85d8-08f9bf2088f4 Co-authored-by: hari7261 <138400713+hari7261@users.noreply.github.com> --- frontend/app/admin/page.tsx | 154 ++++++++++++++---------- frontend/app/globals.css | 59 ++++++--- frontend/app/page.tsx | 96 +++++++++------ frontend/components/ui/metal-button.tsx | 56 +++++++++ frontend/package-lock.json | 57 ++++++--- frontend/package.json | 1 + 6 files changed, 287 insertions(+), 136 deletions(-) create mode 100644 frontend/components/ui/metal-button.tsx diff --git a/frontend/app/admin/page.tsx b/frontend/app/admin/page.tsx index 94b2ced..5083db3 100644 --- a/frontend/app/admin/page.tsx +++ b/frontend/app/admin/page.tsx @@ -6,7 +6,7 @@ import { LogRow, TokenUsageRow, useLogs, useTokenUsage } from "@/hooks/use-admin import { DashboardMetrics, useDashboard } from "@/hooks/use-dashboard"; import { DocumentRow, useCreateDocument, useDocuments } from "@/hooks/use-documents"; import { Badge } from "@/components/ui/badge"; -import { Button } from "@/components/ui/button"; +import { MetalButton } from "@/components/ui/metal-button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { ScrollArea } from "@/components/ui/scroll-area"; @@ -33,19 +33,19 @@ export default function AdminPage() { const metrics: DashboardMetrics | undefined = dashboard.data; return ( -
-
- - - Admin Dashboard - Observe token usage, queue health, cache activity, and document ingestion. +
+
+ + + Admin Dashboard + Observe token usage, queue health, cache activity, and document ingestion. - + {Object.entries(metrics ?? {}).map(([key, value]) => ( - - - {key.replaceAll("_", " ")} - {value} + + + {key.replaceAll("_", " ")} + {value} ))} @@ -53,52 +53,74 @@ export default function AdminPage() { - - Document Manager - Queue + + Document Manager + Queue -
- - - Ingest Document - New content is chunked, embedded, and indexed by the worker. +
+ + + Ingest Document + New content is chunked, embedded, and indexed by the worker.
- setForm((current) => ({ ...current, title: event.target.value }))} /> - setForm((current) => ({ ...current, source: event.target.value }))} /> -