diff --git a/frontend/src/pages/Jobs.tsx b/frontend/src/pages/Jobs.tsx index 5b3a429..5504668 100644 --- a/frontend/src/pages/Jobs.tsx +++ b/frontend/src/pages/Jobs.tsx @@ -3,23 +3,46 @@ import { useApiSubscription } from '../api/subscription.js' import { api } from '../api/api.js' import { Heading } from '../components/Heading.js' import { JobPanel } from '../components/JobPanel.js' +import { ErrorMessage } from '../components/ErrorMessage.js' export const Jobs: FunctionComponent = () => { - const { loading, data: jobs } = useApiSubscription({ interval: 5_000 }, api.jobs) + const { loading, data: jobs, error } = useApiSubscription({ interval: 5_000 }, api.jobs) return (
+ There are no previous jobs. Once a job is run, it will appear here automatically. +
+ )} + {jobs?.map((job) => ( +