File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
packages/web/src/app/[domain]/repos Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import z from "zod";
88
99const numberSchema = z . coerce . number ( ) . int ( ) . positive ( ) ;
1010
11+ const DEFAULT_PAGE_SIZE = 20 ;
12+
1113interface 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 ?? '' ;
You can’t perform that action at this time.
0 commit comments