Phase 5: Frontend Admin Page
- Create /admin/random-jobs/page.tsx with outcomes table - Add 'admin-random-jobs' to PageId type in Header - Add 'Random Jobs' nav item to ADMIN_NAV_ITEMS - Display: ID, Job ID, Triggered By, Value, Duration, Status, Created At - Uses VIEW_AUDIT permission
This commit is contained in:
parent
b3ed81e8fd
commit
b8470b77a7
4 changed files with 299 additions and 3 deletions
|
|
@ -17,7 +17,8 @@ type PageId =
|
|||
| "audit"
|
||||
| "admin-invites"
|
||||
| "admin-availability"
|
||||
| "admin-appointments";
|
||||
| "admin-appointments"
|
||||
| "admin-random-jobs";
|
||||
|
||||
interface HeaderProps {
|
||||
currentPage: PageId;
|
||||
|
|
@ -45,6 +46,7 @@ const ADMIN_NAV_ITEMS: NavItem[] = [
|
|||
{ id: "admin-invites", label: "Invites", href: "/admin/invites", adminOnly: true },
|
||||
{ id: "admin-availability", label: "Availability", href: "/admin/availability", adminOnly: true },
|
||||
{ id: "admin-appointments", label: "Appointments", href: "/admin/appointments", adminOnly: true },
|
||||
{ id: "admin-random-jobs", label: "Random Jobs", href: "/admin/random-jobs", adminOnly: true },
|
||||
];
|
||||
|
||||
export function Header({ currentPage }: HeaderProps) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue