From 82f166a80e56d284cb21b55208a6cbe8e673f7c6 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Mon, 18 May 2026 15:36:03 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20plan/report=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=EC=97=90=EC=84=9C=20'=ED=81=B4=EB=A6=AC=EB=8B=89?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C'=20=EB=A7=81=ED=81=AC=20+=20=EB=8B=A4?= =?UTF-8?q?=EC=9A=B4=EB=A1=9C=EB=93=9C=20=EB=B2=84=ED=8A=BC=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guest/User × Plan/Report 4개 페이지 상단 ReportNav 의 leftSlot('클리닉으로')과 rightSlot 의 다운로드 메뉴 버튼 제거. UserReportPage 의 '다시 분석' 버튼은 유지. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/features/plan/pages/GuestPlanPage.tsx | 22 ++---------- src/features/plan/pages/UserPlanPage.tsx | 24 ++----------- src/features/report/pages/GuestReportPage.tsx | 26 ++------------ src/features/report/pages/UserReportPage.tsx | 34 +++++-------------- 4 files changed, 17 insertions(+), 89 deletions(-) diff --git a/src/features/plan/pages/GuestPlanPage.tsx b/src/features/plan/pages/GuestPlanPage.tsx index ab0a050..c77cc05 100644 --- a/src/features/plan/pages/GuestPlanPage.tsx +++ b/src/features/plan/pages/GuestPlanPage.tsx @@ -6,11 +6,9 @@ * 하단에 도입 문의 CTA(PlanCTA) 가 붙습니다. */ import { useEffect } from 'react'; -import { Link, useParams, useLocation } from 'react-router'; -import { ArrowLeft } from 'lucide-react'; +import { useParams, useLocation } from 'react-router'; import { useMarketingPlan } from '../hooks/useMarketingPlan'; import { ReportNav } from '@/features/report/components/ReportNav'; -import { PlanDownloadMenuButton } from '../components/PlanDownloadMenuButton'; import { PLAN_SECTIONS } from '@/shared/constants/planSections'; import PlanBody from '../components/PlanBody'; @@ -59,23 +57,7 @@ export default function GuestPlanPage() { return (
- - - 클리닉으로 - - } - rightSlot={ -
- -
- } - /> +
); diff --git a/src/features/plan/pages/UserPlanPage.tsx b/src/features/plan/pages/UserPlanPage.tsx index 57b8058..4c6df6f 100644 --- a/src/features/plan/pages/UserPlanPage.tsx +++ b/src/features/plan/pages/UserPlanPage.tsx @@ -9,11 +9,9 @@ * 본 차수 미포함, 후속 모듈로 이관. 아래 import/render 주석 처리. */ import { useEffect } from 'react'; -import { Link, useParams, useLocation } from 'react-router'; -import { ArrowLeft } from 'lucide-react'; +import { useParams, useLocation } from 'react-router'; import { useMarketingPlan } from '../hooks/useMarketingPlan'; import { ReportNav } from '@/features/report/components/ReportNav'; -import { PlanDownloadMenuButton } from '../components/PlanDownloadMenuButton'; import { PLAN_SECTIONS } from '@/shared/constants/planSections'; import PlanBody from '../components/PlanBody'; import MyAssetUpload from '../components/MyAssetUpload'; @@ -21,7 +19,7 @@ import MyAssetUpload from '../components/MyAssetUpload'; import WorkflowTracker from '../components/WorkflowTracker'; export default function UserPlanPage() { - const { clinicId, id } = useParams<{ clinicId: string; id: string }>(); + const { id } = useParams<{ clinicId: string; id: string }>(); const location = useLocation(); // const stateClinicId = (location.state as { clinicId?: string } | undefined)?.clinicId || null; const { data, isLoading, error } = useMarketingPlan(id); @@ -63,23 +61,7 @@ export default function UserPlanPage() { return (
- - - 클리닉으로 - - } - rightSlot={ -
- -
- } - /> + diff --git a/src/features/report/pages/GuestReportPage.tsx b/src/features/report/pages/GuestReportPage.tsx index 1f823e2..9aa3a0b 100644 --- a/src/features/report/pages/GuestReportPage.tsx +++ b/src/features/report/pages/GuestReportPage.tsx @@ -5,15 +5,14 @@ * 본문은 UserReportPage 와 동일하나, 하단에 도입 문의 CTA가 추가되고 * 워크스페이스용 액션바는 노출되지 않습니다. */ -import { Link, useParams } from 'react-router'; -import { ArrowRight, ArrowLeft } from 'lucide-react'; +import { useParams } from 'react-router'; +import { ArrowRight } from 'lucide-react'; import { useReportPageData } from '../hooks/useReportPageData'; import { ReportNav } from '../components/ReportNav'; import { ScreenshotProvider } from '../stores/ScreenshotContext'; import { REPORT_SECTIONS } from '@/shared/constants/reportSections'; import { buildContactMailto } from '@/shared/lib/contact'; import ReportBody from '../components/ReportBody'; -import { DownloadMenuButton } from '../components/DownloadMenuButton'; export default function GuestReportPage() { const { id } = useParams<{ id: string }>(); @@ -44,26 +43,7 @@ export default function GuestReportPage() { return (
- - - 클리닉으로 - - } - rightSlot={ -
- -
- } - /> + {enrichStatus === 'loading' && (
diff --git a/src/features/report/pages/UserReportPage.tsx b/src/features/report/pages/UserReportPage.tsx index b0d4fb5..49a5fe7 100644 --- a/src/features/report/pages/UserReportPage.tsx +++ b/src/features/report/pages/UserReportPage.tsx @@ -7,16 +7,15 @@ * - 하단의 도입 문의 CTA 없음 */ import { Link, useParams } from 'react-router'; -import { ArrowLeft, RefreshCw } from 'lucide-react'; +import { RefreshCw } from 'lucide-react'; import { useReportPageData } from '../hooks/useReportPageData'; import { ReportNav } from '../components/ReportNav'; import { ScreenshotProvider } from '../stores/ScreenshotContext'; import { REPORT_SECTIONS } from '@/shared/constants/reportSections'; import ReportBody from '../components/ReportBody'; -import { DownloadMenuButton } from '../components/DownloadMenuButton'; export default function UserReportPage() { - const { clinicId, id } = useParams<{ clinicId: string; id: string }>(); + const { id } = useParams<{ clinicId: string; id: string }>(); const { data, isLoading, error, enrichStatus } = useReportPageData(id); if (isLoading) { @@ -46,29 +45,14 @@ export default function UserReportPage() {
- - 클리닉으로 - - } rightSlot={ -
- - - - 다시 분석 - -
+ + + 다시 분석 + } />