1- import {
2- CheckCircleIcon ,
3- ClockIcon ,
4- ExclamationCircleIcon ,
5- RectangleGroupIcon ,
6- } from "@heroicons/react/20/solid" ;
7- import { ArrowUpCircleIcon } from "@heroicons/react/24/outline" ;
1+ import { ExclamationCircleIcon } from "@heroicons/react/20/solid" ;
82import { BookOpenIcon } from "@heroicons/react/24/solid" ;
9- import { Outlet , useLocation , useNavigation , useParams } from "@remix-run/react" ;
3+ import { useNavigation } from "@remix-run/react" ;
104import { LoaderFunctionArgs } from "@remix-run/server-runtime" ;
115import { formatDuration } from "@trigger.dev/core/v3/utils/durations" ;
126import { typedjson , useTypedLoaderData } from "remix-typedjson" ;
13- import { Feedback } from "~/components/Feedback" ;
147import { ListPagination } from "~/components/ListPagination" ;
158import { AdminDebugTooltip } from "~/components/admin/debugTooltip" ;
16- import { InlineCode } from "~/components/code/InlineCode" ;
17- import { EnvironmentLabel , EnvironmentLabels } from "~/components/environments/EnvironmentLabel" ;
18- import { MainCenteredContainer , PageBody , PageContainer } from "~/components/layout/AppLayout" ;
19- import { Button , LinkButton } from "~/components/primitives/Buttons" ;
9+ import { EnvironmentLabel } from "~/components/environments/EnvironmentLabel" ;
10+ import { PageBody , PageContainer } from "~/components/layout/AppLayout" ;
11+ import { LinkButton } from "~/components/primitives/Buttons" ;
2012import { DateTime } from "~/components/primitives/DateTime" ;
21- import { Header3 } from "~/components/primitives/Headers" ;
22- import { InfoPanel } from "~/components/primitives/InfoPanel" ;
2313import { NavBar , PageAccessories , PageTitle } from "~/components/primitives/PageHeader" ;
24- import { PaginationControls } from "~/components/primitives/Pagination" ;
2514import { Paragraph } from "~/components/primitives/Paragraph" ;
26- import {
27- ResizableHandle ,
28- ResizablePanel ,
29- ResizablePanelGroup ,
30- } from "~/components/primitives/Resizable" ;
3115import { Spinner } from "~/components/primitives/Spinner" ;
3216import {
3317 Table ,
3418 TableBlankRow ,
3519 TableBody ,
3620 TableCell ,
37- TableCellChevron ,
3821 TableHeader ,
3922 TableHeaderCell ,
4023 TableRow ,
@@ -46,30 +29,14 @@ import {
4629 BatchStatusCombo ,
4730 descriptionForBatchStatus ,
4831} from "~/components/runs/v3/BatchStatus" ;
49- import { EnabledStatus } from "~/components/runs/v3/EnabledStatus" ;
5032import { LiveTimer } from "~/components/runs/v3/LiveTimer" ;
51- import { ScheduleFilters } from "~/components/runs/v3/ScheduleFilters" ;
52- import {
53- ScheduleTypeCombo ,
54- ScheduleTypeIcon ,
55- scheduleTypeName ,
56- } from "~/components/runs/v3/ScheduleType" ;
5733import { useOrganization } from "~/hooks/useOrganizations" ;
5834import { useProject } from "~/hooks/useProject" ;
59- import { useUser } from "~/hooks/useUser" ;
6035import { redirectWithErrorMessage } from "~/models/message.server" ;
6136import { findProjectBySlug } from "~/models/project.server" ;
6237import { BatchList , BatchListPresenter } from "~/presenters/v3/BatchListPresenter.server" ;
63- import { type ScheduleListItem } from "~/presenters/v3/ScheduleListPresenter.server" ;
6438import { requireUserId } from "~/services/session.server" ;
65- import {
66- ProjectParamSchema ,
67- docsPath ,
68- v3BatchRunsPath ,
69- v3BillingPath ,
70- v3NewSchedulePath ,
71- v3SchedulePath ,
72- } from "~/utils/pathBuilder" ;
39+ import { docsPath , ProjectParamSchema , v3BatchRunsPath } from "~/utils/pathBuilder" ;
7340
7441export const loader = async ( { request, params } : LoaderFunctionArgs ) => {
7542 const userId = await requireUserId ( request ) ;
@@ -84,7 +51,7 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
8451 period : url . searchParams . get ( "period" ) ?? undefined ,
8552 from : url . searchParams . get ( "from" ) ?? undefined ,
8653 to : url . searchParams . get ( "to" ) ?? undefined ,
87- id : url . searchParams . get ( "batchId " ) ?? undefined ,
54+ id : url . searchParams . get ( "id " ) ?? undefined ,
8855 } ;
8956 const filters = BatchListFilters . parse ( s ) ;
9057
0 commit comments