normalize pagination and requester metadata sizing
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-07-10 10:49:42 +09:00
parent 9625752a81
commit 2032b696e5
5 changed files with 13 additions and 10 deletions
@@ -574,7 +574,7 @@ export function SourceManagementPage() {
</table>
</div>
<div className="flex items-center justify-between gap-3 border-t border-border px-5 py-4 text-sm">
<span className="text-muted-foreground">
<span className="text-xs text-muted-foreground">
{totalCommits === null ? `페이지 ${commitPage}` : `총 ${totalCommits}건 · ${commitPage} / ${totalCommitPages}`}
</span>
<div className="flex items-center gap-2">
+5 -2
View File
@@ -29,6 +29,9 @@ export function CommonAppBuildPage() {
[pipelines]
);
const selectedPipeline = pipelines.find((pipeline) => pipeline.repoId === selectedRepoId) ?? pipelines[0];
const effectiveHistoryTotalPages = historyTotal !== null
? Math.max(1, historyTotalPages ?? Math.ceil(historyTotal / historyPageSize))
: historyTotalPages;
const refreshHistory = useCallback((repoId: string, page: number, silent = false) => {
if (!repoId) {
@@ -209,8 +212,8 @@ export function CommonAppBuildPage() {
</div>
<div className="flex items-center justify-between border-t border-border px-5 py-3 text-xs text-muted-foreground">
<span>
{historyTotal !== null && historyTotalPages !== null
? `총 ${historyTotal}건 · ${historyPage} / ${historyTotalPages}`
{historyTotal !== null
? `총 ${historyTotal}건 · ${historyPage} / ${effectiveHistoryTotalPages ?? 1}`
: `현재 ${historyPage}페이지`}
</span>
<div className="flex gap-2">
@@ -378,7 +378,7 @@ export function CommonAppSourcePage() {
</table>
</div>
<div className="flex items-center justify-between gap-3 border-t border-border px-5 py-4 text-sm">
<span className="text-muted-foreground">
<span className="text-xs text-muted-foreground">
{totalCommits === null ? `페이지 ${commitPage}` : `총 ${totalCommits}건 · ${commitPage} / ${totalCommitPages}`}
</span>
<div className="flex items-center gap-2">
+1 -1
View File
@@ -710,7 +710,7 @@ export function LauncherSourcePage() {
</table>
</div>
<div className="flex items-center justify-between gap-3 border-t border-border px-5 py-4 text-sm">
<span className="text-muted-foreground">
<span className="text-xs text-muted-foreground">
{totalCommits === null ? `페이지 ${commitPage}` : `총 ${totalCommits}건 · ${commitPage} / ${totalCommitPages}`}
</span>
<div className="flex items-center gap-2">