Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed
- Changed the default `/repos` pagination size to 20. [#706](https://github.com/sourcebot-dev/sourcebot/pull/706)

## [4.10.7] - 2025-12-29

### Fixed
Expand Down
4 changes: 3 additions & 1 deletion packages/web/src/app/[domain]/repos/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import z from "zod";

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

const DEFAULT_PAGE_SIZE = 20;

interface ReposPageProps {
searchParams: Promise<{
page?: string;
Expand All @@ -24,7 +26,7 @@ export default async function ReposPage(props: ReposPageProps) {

// Parse pagination parameters with defaults
const page = numberSchema.safeParse(params.page).data ?? 1;
const pageSize = numberSchema.safeParse(params.pageSize).data ?? 5;
const pageSize = numberSchema.safeParse(params.pageSize).data ?? DEFAULT_PAGE_SIZE;

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