Skip to content

Commit 0b436bb

Browse files
chore(web): Increase /repos default page size to 20 (#706)
* bump default repo page size to 20 * changelog
1 parent 1de9952 commit 0b436bb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
- Changed the default `/repos` pagination size to 20. [#706](https://github.com/sourcebot-dev/sourcebot/pull/706)
12+
1013
## [4.10.7] - 2025-12-29
1114

1215
### Fixed

packages/web/src/app/[domain]/repos/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import z from "zod";
88

99
const numberSchema = z.coerce.number().int().positive();
1010

11+
const DEFAULT_PAGE_SIZE = 20;
12+
1113
interface ReposPageProps {
1214
searchParams: Promise<{
1315
page?: string;
@@ -24,7 +26,7 @@ export default async function ReposPage(props: ReposPageProps) {
2426

2527
// Parse pagination parameters with defaults
2628
const page = numberSchema.safeParse(params.page).data ?? 1;
27-
const pageSize = numberSchema.safeParse(params.pageSize).data ?? 5;
29+
const pageSize = numberSchema.safeParse(params.pageSize).data ?? DEFAULT_PAGE_SIZE;
2830

2931
// Parse filter parameters
3032
const search = z.string().optional().safeParse(params.search).data ?? '';

0 commit comments

Comments
 (0)