diff --git a/UI/src/components/Layout.tsx b/UI/src/components/Layout.tsx index f8e9695..4536a69 100644 --- a/UI/src/components/Layout.tsx +++ b/UI/src/components/Layout.tsx @@ -80,13 +80,22 @@ export function Layout({ children }: { children: ReactNode }) { > Settings - setMenuOpen(false)} + > + Notifications + + {user?.role === "ADMIN" && ( + setMenuOpen(false)} > - Notifications + Admin + )} { await logout(); @@ -102,14 +111,14 @@ export function Layout({ children }: { children: ReactNode }) { {/* mobile nav */} - + {navItems.map((item) => ( - `whitespace-nowrap rounded-lg px-3 py-1.5 text-sm font-medium ${ + `whitespace-nowrap rounded-lg px-2 py-1.5 text-sm font-medium ${ isActive ? "bg-surface-raised text-text" : "text-muted" }` } @@ -117,11 +126,6 @@ export function Layout({ children }: { children: ReactNode }) { {item.label} ))} - {user?.role === "ADMIN" && ( - - Admin - - )} diff --git a/UI/src/pages/Requests.tsx b/UI/src/pages/Requests.tsx index c2229c2..3e4e509 100644 --- a/UI/src/pages/Requests.tsx +++ b/UI/src/pages/Requests.tsx @@ -60,7 +60,21 @@ export function RequestsPage() { - + + { + setStateFilter(e.target.value as RequestState | ""); + setPage(1); + }} + className="w-full rounded-lg border border-border-strong bg-bg px-3 py-2 text-sm text-text outline-none sm:hidden" + > + All states + {STATES.map((s) => ( + {s.replace("_", " ").toLowerCase()} + ))} + + { setStateFilter(""); @@ -82,13 +96,14 @@ export function RequestsPage() { {s.replace("_", " ").toLowerCase()} ))} + { setAgentFilter(e.target.value ? Number(e.target.value) : ""); setPage(1); }} - className="sticky right-0 ml-auto shrink-0 rounded-lg border border-border-strong bg-bg px-3 py-2 text-sm text-text outline-none sm:static" + className="w-full rounded-lg border border-border-strong bg-bg px-3 py-2 text-sm text-text outline-none sm:ml-auto sm:w-auto" > All agents {agents.map((a) => ( @@ -109,11 +124,12 @@ export function RequestsPage() { {items.map((r) => ( - + + - {r.title} + {r.title} {r.resubmitted && r.state === "PENDING" && ( UPDATED @@ -125,7 +141,8 @@ export function RequestsPage() { {relativeTime(r.created_at)} - + + ))}
{r.title}