diff --git a/src/components/requester.tsx b/src/components/requester.tsx index 9f1dc80..d6529e1 100644 --- a/src/components/requester.tsx +++ b/src/components/requester.tsx @@ -28,21 +28,21 @@ export function Requester({ item, label = '작업자' }: { item: RequesterLike; const initial = name.trim().charAt(0).toUpperCase() || '?'; return ( - - {label} + + {label} {avatarUrl && !failed ? ( setFailed(true)} /> ) : ( - + {initial} )} - {name} + {name} ); } diff --git a/src/pages/applications/SourceManagementPage.tsx b/src/pages/applications/SourceManagementPage.tsx index 6327e2d..5d5e231 100644 --- a/src/pages/applications/SourceManagementPage.tsx +++ b/src/pages/applications/SourceManagementPage.tsx @@ -574,7 +574,7 @@ export function SourceManagementPage() {
- + {totalCommits === null ? `페이지 ${commitPage}` : `총 ${totalCommits}건 · ${commitPage} / ${totalCommitPages}`}
diff --git a/src/pages/common-apps/CommonAppBuildPage.tsx b/src/pages/common-apps/CommonAppBuildPage.tsx index 6c44803..5ad0e3f 100644 --- a/src/pages/common-apps/CommonAppBuildPage.tsx +++ b/src/pages/common-apps/CommonAppBuildPage.tsx @@ -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() {
- {historyTotal !== null && historyTotalPages !== null - ? `총 ${historyTotal}건 · ${historyPage} / ${historyTotalPages}` + {historyTotal !== null + ? `총 ${historyTotal}건 · ${historyPage} / ${effectiveHistoryTotalPages ?? 1}` : `현재 ${historyPage}페이지`}
diff --git a/src/pages/common-apps/CommonAppSourcePage.tsx b/src/pages/common-apps/CommonAppSourcePage.tsx index 81d17ec..9ab19a8 100644 --- a/src/pages/common-apps/CommonAppSourcePage.tsx +++ b/src/pages/common-apps/CommonAppSourcePage.tsx @@ -378,7 +378,7 @@ export function CommonAppSourcePage() {
- + {totalCommits === null ? `페이지 ${commitPage}` : `총 ${totalCommits}건 · ${commitPage} / ${totalCommitPages}`}
diff --git a/src/pages/launcher/LauncherSourcePage.tsx b/src/pages/launcher/LauncherSourcePage.tsx index e10958c..e8c5262 100644 --- a/src/pages/launcher/LauncherSourcePage.tsx +++ b/src/pages/launcher/LauncherSourcePage.tsx @@ -710,7 +710,7 @@ export function LauncherSourcePage() {
- + {totalCommits === null ? `페이지 ${commitPage}` : `총 ${totalCommits}건 · ${commitPage} / ${totalCommitPages}`}