import { Pager } from "@/client/components/Pager"; import { type Progress, ProgressBanner } from "@/client/components/ProgressBanner"; import { RepoNav } from "@/client/components/RepoNav"; import { MergeExpanderIsland } from "@/client/islands/merge-expander"; import { IslandHost } from "@/client/server/IslandHost"; type CommitView = { oid: string; shortOid: string; firstLine: string; authorName: string; when: string; isMerge?: boolean; }; type PagerModel = { perPageLinks: Array<{ text: string; href: string }>; newerHref?: string; olderHref?: string; }; export type CommitsPageProps = { owner: string; repo: string; ref: string; refEnc: string; commits: CommitView[]; pager?: PagerModel; progress?: Progress; }; export function CommitsPage({ owner, repo, ref, refEnc, commits, pager, progress, }: CommitsPageProps) { const refLabel = ref.length === 40 ? ( <> {ref.slice(0, 12)}… {ref} ) : ( {ref} ); return (
History

Commits on {refLabel}

); }