Skip to content

Commit e7fc592

Browse files
committed
Reinstate pagination on schedules page
1 parent cb12a73 commit e7fc592

File tree

2 files changed

+16
-3
lines changed
  • apps/webapp/app

2 files changed

+16
-3
lines changed

apps/webapp/app/components/primitives/Pagination.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function PaginationControls({
2828
disabledClassName="opacity-30 cursor-default"
2929
>
3030
<ButtonContent variant="minimal/small" LeadingIcon={ChevronLeftIcon}>
31-
Previous
31+
Prev
3232
</ButtonContent>
3333
</LinkDisabled>
3434

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.schedules/route.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,22 @@ export default function Page() {
201201
possibleEnvironments={possibleEnvironments}
202202
possibleTasks={possibleTasks}
203203
/>
204+
<div className="flex items-center justify-end gap-x-2">
205+
<PaginationControls
206+
currentPage={currentPage}
207+
totalPages={totalPages}
208+
showPageNumbers={false}
209+
/>
210+
</div>
211+
</div>
212+
213+
<div className="h-fit max-h-full overflow-x-auto">
214+
<SchedulesTable schedules={schedules} hasFilters={hasFilters} />
215+
<div className="flex justify-end py-3">
216+
<PaginationControls currentPage={currentPage} totalPages={totalPages} />
217+
</div>
204218
</div>
205219

206-
<SchedulesTable schedules={schedules} hasFilters={hasFilters} />
207220
<div className="flex w-full items-start justify-between">
208221
<div className="flex h-fit w-full items-center gap-4 border-t border-grid-bright bg-background-bright p-[0.86rem] pl-4">
209222
<SimpleTooltip
@@ -359,7 +372,7 @@ function SchedulesTable({
359372
const { scheduleParam } = useParams();
360373

361374
return (
362-
<Table containerClassName="max-h-full h-fit overflow-x-auto border-b border-grid-bright">
375+
<Table>
363376
<TableHeader>
364377
<TableRow>
365378
<TableHeaderCell>ID</TableHeaderCell>

0 commit comments

Comments
 (0)