From d26cd90b02ad8653f0bfdfbe758d8bee82b1ee3c Mon Sep 17 00:00:00 2001 From: bicochan Date: Tue, 21 Jul 2026 09:20:37 +0900 Subject: [PATCH 1/3] =?UTF-8?q?[common/components]=20feat:=20nofooter?= =?UTF-8?q?=EC=97=90=20authService=20props=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/src/ui/layout/nofooter.tsx | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/packages/common/components/src/ui/layout/nofooter.tsx b/packages/common/components/src/ui/layout/nofooter.tsx index 12f14ceea..29b5cddf6 100644 --- a/packages/common/components/src/ui/layout/nofooter.tsx +++ b/packages/common/components/src/ui/layout/nofooter.tsx @@ -8,15 +8,18 @@ import { SidebarProvider } from "../sidebar"; import { LNB } from "../lnb"; import { Header } from "../header"; import "./common.css"; +import type { AuthService } from "@common/auth"; export function NoFooterLayout({ children, queryClient, + authService, currentPath, handleMenuClick, }: { children: React.ReactNode; queryClient?: QueryClient; + authService?: AuthService; currentPath?: string; handleMenuClick?: (item: MenuItem) => void; }) { @@ -26,19 +29,19 @@ export function NoFooterLayout({ -
-
-
- -
-
{children}
+
+
+
+ +
+
{children}
+
-
- + From a1d43dc65c9f0daab6faa1faef7c256b98542800 Mon Sep 17 00:00:00 2001 From: jcchoi Date: Tue, 21 Jul 2026 11:11:55 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=EC=B0=A8=EC=88=98=20=EB=8B=A8=EC=96=B4=20?= =?UTF-8?q?=EC=A0=9C=EC=99=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../st/src/pages/statistics/ui/panels/schedule-info-panel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/st/src/pages/statistics/ui/panels/schedule-info-panel.tsx b/apps/st/src/pages/statistics/ui/panels/schedule-info-panel.tsx index 6a5e3602d..b678099d3 100644 --- a/apps/st/src/pages/statistics/ui/panels/schedule-info-panel.tsx +++ b/apps/st/src/pages/statistics/ui/panels/schedule-info-panel.tsx @@ -84,7 +84,7 @@ export function ScheduleInfoPanel({ params }: ScheduleInfoPanelProps) {
- {data.inptSeCd}차 입력기간 + 입력기간

{dayjs(data.inptBgngYmd).format( @@ -102,7 +102,7 @@ export function ScheduleInfoPanel({ params }: ScheduleInfoPanelProps) { color="gray" className="font-semibold" > - {data.vrfcSeCd}차 검증기간 + 검증기간

{dayjs(data.vrfcBgngYmd).format( From 3e1f89d90fd042d950315e5199eb4f9b4bfcb3c0 Mon Sep 17 00:00:00 2001 From: bicochan Date: Tue, 21 Jul 2026 11:47:39 +0900 Subject: [PATCH 3/3] =?UTF-8?q?[common/components]=20chore:=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=9D=B8=20=EC=97=B0=EC=9E=A5=20=EC=BD=98=EC=86=94=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80(=EC=9E=84=EC=8B=9C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/src/lib/use-session-extend-confirm.ts | 12 +++++++++++- packages/common/components/src/ui/header/index.tsx | 6 +++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/packages/common/components/src/lib/use-session-extend-confirm.ts b/packages/common/components/src/lib/use-session-extend-confirm.ts index 30c08584a..35e210e34 100644 --- a/packages/common/components/src/lib/use-session-extend-confirm.ts +++ b/packages/common/components/src/lib/use-session-extend-confirm.ts @@ -15,6 +15,14 @@ interface UseSessionExtendConfirmOptions { const DEFAULT_MESSAGE = "로그인을 연장하시겠습니까?"; +function formatRemainingMs(remainingMs: number): string { + const totalSeconds = Math.floor(remainingMs / 1000); + const minutes = Math.floor((totalSeconds % 3600) / 60); + const seconds = totalSeconds % 60; + + return `${minutes}분 ${seconds}초`; +} + function useSessionExtendConfirm({ enabled, getAccessToken, @@ -71,8 +79,10 @@ function useSessionExtendConfirm({ void showConfirm(); return; } - confirmTimerRef.current = setTimeout(() => { + console.log( + `>>>>>>>>>>>>>>>>>>>> ${formatRemainingMs(confirmMs)} 후 로그인 연장 팝업 표시 <<<<<<<<<<<<<<<<<<<<`, + ); void showConfirm(); }, confirmMs); }, [message, confirm, getAccessToken, silentRefresh, declineSessionExtend]); diff --git a/packages/common/components/src/ui/header/index.tsx b/packages/common/components/src/ui/header/index.tsx index 7d01f09f0..457e7d819 100644 --- a/packages/common/components/src/ui/header/index.tsx +++ b/packages/common/components/src/ui/header/index.tsx @@ -117,7 +117,7 @@ function useTokenRemainingMs(enabled: boolean): number { const update = () => { const token = getCookie(appConfig.CLAIM_NAME ?? ""); - setRemainingMs(token ? getRemainingMs(token) : 0); + setRemainingMs(token ? getRemainingMs(token, 0) : 0); }; update(); @@ -145,6 +145,10 @@ export function Header({ const remainingMs = useTokenRemainingMs(mounted && isLoggedIn && !viewOnly); const siteId = getCookie("site-id-key") ?? ""; + console.log( + `/********************* 로그인 만료까지: ${formatRemainingMs(remainingMs)} *********************/`, + ); + useSessionExtendConfirm({ enabled: mounted &&