From 880f499c0bdd0da385cfe788b17396c7c97a71ff Mon Sep 17 00:00:00 2001 From: seongho5356 Date: Sun, 25 Jan 2026 20:35:25 +0900 Subject: [PATCH 1/7] =?UTF-8?q?feat:=20(SRLT-132)=20=EC=A0=84=EB=AC=B8?= =?UTF-8?q?=EA=B0=80=20=EC=83=81=EC=84=B8=ED=8E=98=EC=9D=B4=EC=A7=80=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=A1=9C=EB=94=A9=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 8 +++ .idea/STARLIGHT_FE.iml | 12 ++++ .idea/codeStyles/Project.xml | 59 ++++++++++++++++++++ .idea/codeStyles/codeStyleConfig.xml | 5 ++ .idea/inspectionProfiles/Project_Default.xml | 6 ++ .idea/modules.xml | 8 +++ .idea/prettier.xml | 6 ++ .idea/vcs.xml | 6 ++ next.config.ts | 4 ++ tsconfig.json | 16 ++++-- 10 files changed, 126 insertions(+), 4 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/STARLIGHT_FE.iml create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/prettier.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/STARLIGHT_FE.iml b/.idea/STARLIGHT_FE.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/.idea/STARLIGHT_FE.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..932f7d1 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..03d9549 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..7e5fbb7 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/prettier.xml b/.idea/prettier.xml new file mode 100644 index 0000000..b0c1c68 --- /dev/null +++ b/.idea/prettier.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/next.config.ts b/next.config.ts index 5a59ab4..dc4bad4 100644 --- a/next.config.ts +++ b/next.config.ts @@ -6,6 +6,10 @@ const nextConfig = { hostname: 'kr.object.ncloudstorage.com', pathname: '/**', }, + { + hostname: 'starlight-s3.kr.object.ncloudstorage.com', + pathname: '/**', + }, { hostname: 'k.kakaocdn.net', pathname: '/**', diff --git a/tsconfig.json b/tsconfig.json index a966197..2b452a7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { "target": "ES2017", - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -11,7 +15,7 @@ "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, - "jsx": "preserve", + "jsx": "react-jsx", "incremental": true, "plugins": [ { @@ -20,7 +24,9 @@ ], "baseUrl": ".", "paths": { - "@/*": ["src/*"] + "@/*": [ + "src/*" + ] } }, "include": [ @@ -30,5 +36,7 @@ ".next/types/**/*.ts", ".next/dev/types/**/*.ts" ], - "exclude": ["node_modules"] + "exclude": [ + "node_modules" + ] } From 4de6e95ace394f69d1aedb87c385b07709b93cfe Mon Sep 17 00:00:00 2001 From: seongho5356 Date: Mon, 26 Jan 2026 22:09:44 +0900 Subject: [PATCH 2/7] =?UTF-8?q?Revert=20"feat:=20(SRLT-132)=20=EC=A0=84?= =?UTF-8?q?=EB=AC=B8=EA=B0=80=20=EC=83=81=EC=84=B8=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=A1=9C=EB=94=A9=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 880f499c0bdd0da385cfe788b17396c7c97a71ff. --- .idea/.gitignore | 8 --- .idea/STARLIGHT_FE.iml | 12 ---- .idea/codeStyles/Project.xml | 59 -------------------- .idea/codeStyles/codeStyleConfig.xml | 5 -- .idea/inspectionProfiles/Project_Default.xml | 6 -- .idea/modules.xml | 8 --- .idea/prettier.xml | 6 -- .idea/vcs.xml | 6 -- next.config.ts | 4 -- tsconfig.json | 16 ++---- 10 files changed, 4 insertions(+), 126 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/STARLIGHT_FE.iml delete mode 100644 .idea/codeStyles/Project.xml delete mode 100644 .idea/codeStyles/codeStyleConfig.xml delete mode 100644 .idea/inspectionProfiles/Project_Default.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/prettier.xml delete mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/STARLIGHT_FE.iml b/.idea/STARLIGHT_FE.iml deleted file mode 100644 index 24643cc..0000000 --- a/.idea/STARLIGHT_FE.iml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml deleted file mode 100644 index 932f7d1..0000000 --- a/.idea/codeStyles/Project.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml deleted file mode 100644 index 79ee123..0000000 --- a/.idea/codeStyles/codeStyleConfig.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 03d9549..0000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 7e5fbb7..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/prettier.xml b/.idea/prettier.xml deleted file mode 100644 index b0c1c68..0000000 --- a/.idea/prettier.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/next.config.ts b/next.config.ts index dc4bad4..5a59ab4 100644 --- a/next.config.ts +++ b/next.config.ts @@ -6,10 +6,6 @@ const nextConfig = { hostname: 'kr.object.ncloudstorage.com', pathname: '/**', }, - { - hostname: 'starlight-s3.kr.object.ncloudstorage.com', - pathname: '/**', - }, { hostname: 'k.kakaocdn.net', pathname: '/**', diff --git a/tsconfig.json b/tsconfig.json index 2b452a7..a966197 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,7 @@ { "compilerOptions": { "target": "ES2017", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -15,7 +11,7 @@ "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, - "jsx": "react-jsx", + "jsx": "preserve", "incremental": true, "plugins": [ { @@ -24,9 +20,7 @@ ], "baseUrl": ".", "paths": { - "@/*": [ - "src/*" - ] + "@/*": ["src/*"] } }, "include": [ @@ -36,7 +30,5 @@ ".next/types/**/*.ts", ".next/dev/types/**/*.ts" ], - "exclude": [ - "node_modules" - ] + "exclude": ["node_modules"] } From d8acce417d40ac44853f62cc89bbe13836954c5b Mon Sep 17 00:00:00 2001 From: parknari02 Date: Wed, 28 Jan 2026 19:40:05 +0900 Subject: [PATCH 3/7] =?UTF-8?q?feat:=20(SRLT-135-=EC=97=90=EB=9F=AC-?= =?UTF-8?q?=EC=88=98=EC=A0=95)=20gnb=20=EB=B9=84=ED=9A=8C=EC=9B=90=20?= =?UTF-8?q?=EC=A0=91=EA=B7=BC=20=EC=A0=9C=ED=95=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/_components/common/Header.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/app/_components/common/Header.tsx b/src/app/_components/common/Header.tsx index fd2e35f..6f708f4 100644 --- a/src/app/_components/common/Header.tsx +++ b/src/app/_components/common/Header.tsx @@ -134,12 +134,24 @@ const Header = () => { href="/business" className={dropdownItem} role="menuitem" + onClick={(e) => { + if (!isAuthenticated) { + e.preventDefault(); + setOpenLogin(true); + } + }} > 작성하기 + setOpenLogin(false)} /> ); }; From cefae1391e73cc0272c748cfc6563ef087a325f0 Mon Sep 17 00:00:00 2001 From: parknari02 Date: Wed, 11 Feb 2026 18:41:04 +0900 Subject: [PATCH 7/7] =?UTF-8?q?fix:=20(SRLT-135)=20=ED=86=A0=ED=81=B0=20?= =?UTF-8?q?=EB=A6=AC=ED=94=84=EB=A0=88=EC=89=AC=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/_components/common/Header.tsx | 2 -- src/app/expert/detail/components/ExpertDetailSidebar.tsx | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/app/_components/common/Header.tsx b/src/app/_components/common/Header.tsx index 6f708f4..d9b61c6 100644 --- a/src/app/_components/common/Header.tsx +++ b/src/app/_components/common/Header.tsx @@ -80,9 +80,7 @@ const Header = () => { const handleLogout = () => { logout(); - clearUser(); router.push('/'); - setIsProfileOpen(false); }; diff --git a/src/app/expert/detail/components/ExpertDetailSidebar.tsx b/src/app/expert/detail/components/ExpertDetailSidebar.tsx index 9415d5c..af54d69 100644 --- a/src/app/expert/detail/components/ExpertDetailSidebar.tsx +++ b/src/app/expert/detail/components/ExpertDetailSidebar.tsx @@ -6,6 +6,7 @@ import { useExpertStore } from '@/store/expert.store'; import { useBusinessStore } from '@/store/business.store'; import { useEvaluationStore } from '@/store/report.store'; import { useUserStore } from '@/store/user.store'; +import { useAuthStore } from '@/store/auth.store'; import { useExpertReportDetail } from '@/hooks/queries/useExpert'; import GrayPlus from '@/assets/icons/gray_plus.svg'; import GrayCheck from '@/assets/icons/gray_check.svg'; @@ -25,9 +26,8 @@ const ExpertDetailSidebar = ({ expert }: ExpertDetailSidebarProps) => { const hasExpertUnlocked = useEvaluationStore((s) => s.hasExpertUnlocked); const user = useUserStore((s) => s.user); const [openLogin, setOpenLogin] = useState(false); - const hasAccessToken = - typeof window !== 'undefined' && !!localStorage.getItem('accessToken'); - const isMember = hasAccessToken && !!user; + const isAuthenticated = useAuthStore((s) => s.isAuthenticated); + const isMember = isAuthenticated && !!user; const { data: reportDetails = [], isLoading: isLoadingReports } = useExpertReportDetail(expert.id, { @@ -67,7 +67,7 @@ const ExpertDetailSidebar = ({ expert }: ExpertDetailSidebarProps) => { : '전문가 연결'; const requireAuth = () => { - if (hasAccessToken) return true; + if (isAuthenticated) return true; setOpenLogin(true); return false; };