From 45e99664b9e25b18addfc80afa401afbfc7977af Mon Sep 17 00:00:00 2001 From: Jaret Burkett Date: Sun, 29 Mar 2026 12:38:47 -0600 Subject: [PATCH] Add icons to the top bar on the job page --- ui/src/app/jobs/[jobID]/page.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/src/app/jobs/[jobID]/page.tsx b/ui/src/app/jobs/[jobID]/page.tsx index e50acea9..ff40936a 100644 --- a/ui/src/app/jobs/[jobID]/page.tsx +++ b/ui/src/app/jobs/[jobID]/page.tsx @@ -2,6 +2,7 @@ import { useState, use } from 'react'; import { FaChevronLeft } from 'react-icons/fa'; +import { MdDashboard, MdImage, MdShowChart, MdCode } from 'react-icons/md'; import { Button } from '@headlessui/react'; import { TopBar, MainContent } from '@/components/layout'; import useJob from '@/hooks/useJob'; @@ -18,6 +19,7 @@ type PageKey = 'overview' | 'samples' | 'config' | 'loss_log'; interface Page { name: string; value: PageKey; + icon: React.ComponentType<{ className?: string }>; component: React.ComponentType<{ job: Job }>; menuItem?: React.ComponentType<{ job?: Job | null }> | null; mainCss?: string; @@ -27,12 +29,14 @@ const pages: Page[] = [ { name: 'Overview', value: 'overview', + icon: MdDashboard, component: JobOverview, mainCss: 'pt-24', }, { name: 'Samples', value: 'samples', + icon: MdImage, component: SampleImages, menuItem: SampleImagesMenu, mainCss: 'pt-24', @@ -40,12 +44,14 @@ const pages: Page[] = [ { name: 'Loss Graph', value: 'loss_log', + icon: MdShowChart, component: JobLossGraph, mainCss: 'pt-24', }, { name: 'Config File', value: 'config', + icon: MdCode, component: JobConfigViewer, mainCss: 'pt-[80px] px-0 pb-0', }, @@ -101,8 +107,9 @@ export default function JobPage({ params }: { params: { jobID: string } }) { ))}