diff --git a/apps/as/src/pages/design-cnstn/model/columns.tsx b/apps/as/src/pages/design-cnstn/model/columns.tsx index 1e5deab7c..2212b2cb1 100644 --- a/apps/as/src/pages/design-cnstn/model/columns.tsx +++ b/apps/as/src/pages/design-cnstn/model/columns.tsx @@ -90,6 +90,12 @@ function getBadgeStateText(state: BadgeState) { } } +/** 단계명을 2줄로 분리: "설치인가 신청" → ["설치인가", "신청"], "기술검토" → ["기술검토", ""] */ +function splitStepLabel(label: string) { + const [title = "", ...rest] = label.split(" "); + return { title, detail: rest.join(" ") }; +} + function formatOptional(value: string | null | undefined) { return value?.trim() ? value : "-"; } @@ -106,8 +112,16 @@ function ProgressStepBadge({ prgrsSttsComCd }: ProgressStepBadgeProps) { {badges.map((badge, index) => ( {index > 0 && >} - - {badge.label}({getBadgeStateText(badge.state)}) + {/* 1줄: 단계명 / 2줄: 세부단계 + 상태 (예: 설치인가 / 신청완료, 기술검토 / 완료) */} + + {splitStepLabel(badge.label).title} + + {splitStepLabel(badge.label).detail} + {getBadgeStateText(badge.state)} + ))} diff --git a/apps/as/src/pages/design-cnstn/ui/design-list-page.tsx b/apps/as/src/pages/design-cnstn/ui/design-list-page.tsx index d578c8725..3cf8674fb 100644 --- a/apps/as/src/pages/design-cnstn/ui/design-list-page.tsx +++ b/apps/as/src/pages/design-cnstn/ui/design-list-page.tsx @@ -77,8 +77,8 @@ function DesignListPage() { }; return ( -
-
+
+
-
+
-
+
-

설계자문 목록

+

설계자문 목록

- {tableComponent} -
+
{tableComponent}
+ +
-

필수첨부파일 목록

+

필수첨부파일 목록

- {tableComponent} +
{tableComponent}
{dialogMode ? ( ) : null} - +
); } diff --git a/apps/as/src/pages/esntl-atch-file-mng/ui/esntl-atch-file-mng-page.tsx b/apps/as/src/pages/esntl-atch-file-mng/ui/esntl-atch-file-mng-page.tsx index 3e5dbe9bb..6fb82f07c 100644 --- a/apps/as/src/pages/esntl-atch-file-mng/ui/esntl-atch-file-mng-page.tsx +++ b/apps/as/src/pages/esntl-atch-file-mng/ui/esntl-atch-file-mng-page.tsx @@ -52,8 +52,8 @@ function EsntlAtchFileMngPage() { }; return ( -
-
+
+
@@ -79,7 +79,7 @@ function EsntlAtchFileMngPage() {
-
+
( {index > 0 && >} - - {badge.label}({getBadgeStateText(badge.state)}) + {/* 1줄: 단계명 / 2줄: 세부단계 + 상태 (예: 설치인가 / 신청완료, 기술검토 / 완료) */} + + {splitStepLabel(badge.label).title} + + {splitStepLabel(badge.label).detail} + {getBadgeStateText(badge.state)} + ))} diff --git a/apps/as/src/pages/fnrs-cnsltn/ui/fnrs-list-page.tsx b/apps/as/src/pages/fnrs-cnsltn/ui/fnrs-list-page.tsx index cb8a487d4..7ae08fe61 100644 --- a/apps/as/src/pages/fnrs-cnsltn/ui/fnrs-list-page.tsx +++ b/apps/as/src/pages/fnrs-cnsltn/ui/fnrs-list-page.tsx @@ -77,8 +77,8 @@ function FnrsListPage() { }; return ( -
-
+
+
-
+
-
+
-

재원협의 목록

+

재원협의 목록

- {tableComponent} -
+
{tableComponent}
+ ( {index > 0 && >} - - {badge.label}({getBadgeStateText(badge.state)}) + {/* 1줄: 단계명 / 2줄: 세부단계 + 상태 (예: 설치인가 / 신청완료, 기술검토 / 완료) */} + + {splitStepLabel(badge.label).title} + + {splitStepLabel(badge.label).detail} + {getBadgeStateText(badge.state)} + ))} diff --git a/apps/as/src/pages/instl-sncn/ui/instl-list-page.tsx b/apps/as/src/pages/instl-sncn/ui/instl-list-page.tsx index 3142c9c2b..fef0a121b 100644 --- a/apps/as/src/pages/instl-sncn/ui/instl-list-page.tsx +++ b/apps/as/src/pages/instl-sncn/ui/instl-list-page.tsx @@ -77,8 +77,8 @@ function InstlListPage() { }; return ( -
-
+
+
-
+
-
+
-

설치인가 목록

+

설치인가 목록

- {tableComponent} -
+
{tableComponent}
+ -
+
+
@@ -157,7 +157,7 @@ function MyPbadmsSprtListPage() { -
+ +
-

내 신청 목록

+

내 신청 목록

- {tableComponent} - +
{tableComponent}
+
); } diff --git a/apps/as/src/pages/nti-hstry/ui/nti-hstry-list-page.tsx b/apps/as/src/pages/nti-hstry/ui/nti-hstry-list-page.tsx index bffec4476..d3fde2e4f 100644 --- a/apps/as/src/pages/nti-hstry/ui/nti-hstry-list-page.tsx +++ b/apps/as/src/pages/nti-hstry/ui/nti-hstry-list-page.tsx @@ -71,8 +71,8 @@ function NtiHstryListPage() { }; return ( -
-
+
+
@@ -114,7 +114,7 @@ function NtiHstryListPage() { -
+
+
-

알림 이력 목록

+

알림 이력 목록

- {tableComponent} - +
{tableComponent}
+
); } diff --git a/apps/as/src/pages/sewer-bsc-plan/model/columns.tsx b/apps/as/src/pages/sewer-bsc-plan/model/columns.tsx index fb311e127..8d6be2b19 100644 --- a/apps/as/src/pages/sewer-bsc-plan/model/columns.tsx +++ b/apps/as/src/pages/sewer-bsc-plan/model/columns.tsx @@ -130,6 +130,12 @@ function getBadgeStateText(state: BadgeState) { } } +/** 단계명을 2줄로 분리: "설치인가 신청" → ["설치인가", "신청"], "기술검토" → ["기술검토", ""] */ +function splitStepLabel(label: string) { + const [title = "", ...rest] = label.split(" "); + return { title, detail: rest.join(" ") }; +} + function formatOptional(value: string | undefined) { return value?.trim() ? value : "-"; } @@ -147,8 +153,16 @@ function ProgressStepBadge({ prgrsSttsComCd, techRplyHstryYn }: ProgressStepBadg {badges.map((badge, index) => ( {index > 0 && >} - - {badge.label}({getBadgeStateText(badge.state)}) + {/* 1줄: 단계명 / 2줄: 세부단계 + 상태 (예: 설치인가 / 신청완료, 기술검토 / 완료) */} + + {splitStepLabel(badge.label).title} + + {splitStepLabel(badge.label).detail} + {getBadgeStateText(badge.state)} + ))} diff --git a/apps/as/src/pages/sewer-bsc-plan/ui/sewer-bsc-plan-list-page.tsx b/apps/as/src/pages/sewer-bsc-plan/ui/sewer-bsc-plan-list-page.tsx index c1ca4a39e..9ab2a5b18 100644 --- a/apps/as/src/pages/sewer-bsc-plan/ui/sewer-bsc-plan-list-page.tsx +++ b/apps/as/src/pages/sewer-bsc-plan/ui/sewer-bsc-plan-list-page.tsx @@ -81,8 +81,8 @@ function SewerBscPlanListPage() { }; return ( -
-
+
+
-
+
-
+
-

하수도기본계획 목록

+

하수도기본계획 목록

- {tableComponent} -
+
{tableComponent}
+