From 74843fe598702a9a55f914f2d2d291368a5abb13 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Wed, 1 Oct 2025 10:31:23 +0000 Subject: (대표님) dolce 수정, spreadjs 수정 등 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ship/send-to-shi-button.tsx | 108 ++++++++++++++++++++- 1 file changed, 105 insertions(+), 3 deletions(-) (limited to 'lib/vendor-document-list/ship/send-to-shi-button.tsx') diff --git a/lib/vendor-document-list/ship/send-to-shi-button.tsx b/lib/vendor-document-list/ship/send-to-shi-button.tsx index 52874702..7bb85710 100644 --- a/lib/vendor-document-list/ship/send-to-shi-button.tsx +++ b/lib/vendor-document-list/ship/send-to-shi-button.tsx @@ -325,21 +325,123 @@ export function SendToSHIButton({
+ {/* 전체 통계 */}
{t('shiSync.labels.pending')}
-
{t('shiSync.labels.itemCount', { count: totalStats.totalPending })}
+
+ {t('shiSync.labels.itemCount', { count: totalStats.totalPending })} +
{t('shiSync.labels.synced')}
-
{t('shiSync.labels.itemCount', { count: totalStats.totalSynced })}
+
+ {t('shiSync.labels.itemCount', { count: totalStats.totalSynced })} +
{t('shiSync.labels.failed')}
-
{t('shiSync.labels.itemCount', { count: totalStats.totalFailed })}
+
+ {t('shiSync.labels.itemCount', { count: totalStats.totalFailed })} +
+ {/* EntityType별 상세 통계 추가 */} + {totalStats.entityTypeDetailsTotals && ( + <> + +
+
+ {t('shiSync.labels.detailsByType')} + + {t('shiSync.labels.experimental')} + +
+ +
+ {/* Document 통계 */} + {totalStats.entityTypeDetailsTotals.document && ( +
+ + {t('shiSync.labels.documents')} + +
+ {totalStats.entityTypeDetailsTotals.document.pending > 0 && ( + + {totalStats.entityTypeDetailsTotals.document.pending} {t('shiSync.labels.pendingShort')} + + )} + {totalStats.entityTypeDetailsTotals.document.synced > 0 && ( + + {totalStats.entityTypeDetailsTotals.document.synced} {t('shiSync.labels.syncedShort')} + + )} + {totalStats.entityTypeDetailsTotals.document.failed > 0 && ( + + {totalStats.entityTypeDetailsTotals.document.failed} {t('shiSync.labels.failedShort')} + + )} +
+
+ )} + + {/* Revision 통계 */} + {totalStats.entityTypeDetailsTotals.revision && ( +
+ + {t('shiSync.labels.revisions')} + +
+ {totalStats.entityTypeDetailsTotals.revision.pending > 0 && ( + + {totalStats.entityTypeDetailsTotals.revision.pending} {t('shiSync.labels.pendingShort')} + + )} + {totalStats.entityTypeDetailsTotals.revision.synced > 0 && ( + + {totalStats.entityTypeDetailsTotals.revision.synced} {t('shiSync.labels.syncedShort')} + + )} + {totalStats.entityTypeDetailsTotals.revision.failed > 0 && ( + + {totalStats.entityTypeDetailsTotals.revision.failed} {t('shiSync.labels.failedShort')} + + )} +
+
+ )} + + {/* Attachment 통계 */} + {totalStats.entityTypeDetailsTotals.attachment && ( +
+ + {t('shiSync.labels.attachments')} + +
+ {totalStats.entityTypeDetailsTotals.attachment.pending > 0 && ( + + {totalStats.entityTypeDetailsTotals.attachment.pending} {t('shiSync.labels.pendingShort')} + + )} + {totalStats.entityTypeDetailsTotals.attachment.synced > 0 && ( + + {totalStats.entityTypeDetailsTotals.attachment.synced} {t('shiSync.labels.syncedShort')} + + )} + {totalStats.entityTypeDetailsTotals.attachment.failed > 0 && ( + + {totalStats.entityTypeDetailsTotals.attachment.failed} {t('shiSync.labels.failedShort')} + + )} +
+
+ )} +
+
+ + )} + {/* 계약별 상세 상태 */} {contractStatuses.length > 1 && (
-- cgit v1.2.3