[fix] 디렉토리 구조 변경 및 파일명칭 수정

This commit is contained in:
minheon committed 2026-04-02 10:55:09 +09:00
1 parent c29541a365
commit 45f6a9f6ab
95 files changed
+160 -164

No files matched your search

@@ -1,5 +1,5 @@
import { PageSection } from "@/components/section/PageSection";
import { MOCK_CHANNEL_SCORES } from "@/features/report/constants/mock_channel_scores";
import { MOCK_CHANNEL_SCORES } from "@/features/report/mocks/channelScores";
import type { ChannelScore } from "@/features/report/types/channelScore";
import { ChannelScoreGrid } from "@/features/report/ui/channels/ChannelScoreGrid";
@@ -1,5 +1,5 @@
import { PageSection } from "@/components/section/PageSection";
import { MOCK_CLINIC_SNAPSHOT } from "@/features/report/constants/mock_clinic_snapshot";
import { MOCK_CLINIC_SNAPSHOT } from "@/features/report/mocks/clinicSnapshot";
import type { ClinicSnapshot } from "@/features/report/types/clinicSnapshot";
import { ClinicCertificationsBlock } from "@/features/report/ui/clinic/ClinicCertificationsBlock";
import { ClinicInfoStatGrid } from "@/features/report/ui/clinic/ClinicInfoStatGrid";
@@ -1,5 +1,5 @@
import { PageSection } from "@/components/section/PageSection";
import { MOCK_PROBLEM_DIAGNOSIS } from "@/features/report/constants/mock_problem_diagnosis";
import { MOCK_PROBLEM_DIAGNOSIS } from "@/features/report/mocks/problemDiagnosis";
import type { DiagnosisItem } from "@/features/report/types/diagnosis";
import { ProblemDiagnosisCard } from "@/features/report/ui/diagnosis/ProblemDiagnosisCard";
@@ -1,9 +1,9 @@
import GlobeIcon from "@/assets/report/globe.svg?react";
import { BrandConsistencyMap } from "@/components/brand/BrandConsistencyMap";
import { DiagnosisRow } from "@/components/diagnosis/DiagnosisRow";
import { DiagnosisRow } from "@/features/report/ui/diagnosis/DiagnosisRow";
import { ConsolidationCallout } from "@/components/panel/ConsolidationCallout";
import { PageSection } from "@/components/section/PageSection";
import { MOCK_FACEBOOK_AUDIT } from "@/features/report/constants/mock_facebook_audit";
import { MOCK_FACEBOOK_AUDIT } from "@/features/report/mocks/facebookAudit";
import type { FacebookAudit } from "@/features/report/types/facebookAudit";
import { FacebookPageCard } from "@/features/report/ui/facebook/FacebookPageCard";
@@ -1,6 +1,6 @@
import { DiagnosisRow } from "@/components/diagnosis/DiagnosisRow";
import { DiagnosisRow } from "@/features/report/ui/diagnosis/DiagnosisRow";
import { PageSection } from "@/components/section/PageSection";
import { MOCK_INSTAGRAM_AUDIT } from "@/features/report/constants/mock_instagram_audit";
import { MOCK_INSTAGRAM_AUDIT } from "@/features/report/mocks/instagramAudit";
import type { InstagramAudit } from "@/features/report/types/instagramAudit";
import { InstagramAccountCard } from "@/features/report/ui/instagram/InstagramAccountCard";
+1 -1
View File
@@ -1,5 +1,5 @@
import { PageSection } from "@/components/section/PageSection";
import { MOCK_KPI_METRICS } from "@/features/report/constants/mock_kpi";
import { MOCK_KPI_METRICS } from "@/features/report/mocks/kpi";
import type { KpiMetric } from "@/features/report/types/kpiDashboard";
import { KpiMetricsTable } from "@/features/report/ui/kpi/KpiMetricsTable";
import { KpiTransformationCtaCard } from "@/features/report/ui/kpi/KpiTransformationCtaCard";
@@ -1,6 +1,6 @@
import { PageSection } from "@/components/section/PageSection";
import { MOCK_OTHER_CHANNELS_REPORT } from "@/features/report/constants/mock_other_channels";
import type { OtherChannelsReport } from "@/types/otherChannels";
import { MOCK_OTHER_CHANNELS_REPORT } from "@/features/report/mocks/otherChannels";
import type { OtherChannelsReport } from "@/features/report/types/otherChannels";
import { OtherChannelsList } from "@/features/report/ui/otherChannels/OtherChannelsList";
import { WebsiteTechAuditBlock } from "@/features/report/ui/otherChannels/WebsiteTechAuditBlock";
@@ -1,9 +1,9 @@
import { MOCK_REPORT_OVERVIEW } from "@/features/report/constants/mock_report_overview";
import { MOCK_REPORT_OVERVIEW } from "@/features/report/mocks/reportOverview";
import type { ReportOverviewData } from "@/features/report/types/reportOverview";
import { OverviewHeroBlobs } from "@/features/report/ui/overview/OverviewHeroBlobs";
import { OverviewHeroColumn } from "@/features/report/ui/overview/OverviewHeroColumn";
import { OverviewScorePanel } from "@/features/report/ui/overview/OverviewScorePanel";
import { OVERVIEW_SECTION_BG_CLASS } from "@/features/report/ui/overview/overviewSectionStyles";
import { OVERVIEW_SECTION_BG_CLASS } from "@/features/report/ui/overview/overviewSectionClasses";
type ReportOverviewSectionProps = {
data?: ReportOverviewData;
-40
View File
@@ -1,40 +0,0 @@
import { useParams } from "react-router-dom";
import { useReportSubNav } from "@/features/report/hooks/useReportSubNav";
import { ReportChannelsSection } from "@/features/report/ui/ReportChannelsSection";
import { ReportClinicSection } from "@/features/report/ui/ReportClinicSection";
import { ReportDiagnosisSection } from "@/features/report/ui/ReportDiagnosisSection";
import { ReportFacebookSection } from "@/features/report/ui/ReportFacebookSection";
import { ReportInstagramSection } from "@/features/report/ui/ReportInstagramSection";
import { ReportKpiSection } from "@/features/report/ui/ReportKpiSection";
import { ReportOtherChannelsSection } from "@/features/report/ui/ReportOtherChannelsSection";
import { ReportOverviewSection } from "@/features/report/ui/ReportOverviewSection";
import { ReportRoadmapSection } from "@/features/report/ui/ReportRoadmapSection";
import { ReportTransformationSection } from "@/features/report/ui/ReportTransformationSection";
import { ReportYouTubeSection } from "@/features/report/ui/ReportYouTubeSection";
export function ReportPage() {
const { id } = useParams<{ id: string }>();
useReportSubNav();
return (
<div data-report-content>
<p className="body-14 text-neutral-60 px-6 max-w-7xl mx-auto py-2">
Report ID: <span className="text-navy-900 font-medium">{id}</span>
</p>
<div className="divide-y divide-neutral-20">
<ReportOverviewSection />
<ReportClinicSection />
<ReportChannelsSection />
<ReportYouTubeSection />
<ReportInstagramSection />
<ReportFacebookSection />
<ReportOtherChannelsSection />
<ReportDiagnosisSection />
<ReportTransformationSection />
<ReportRoadmapSection />
<ReportKpiSection />
</div>
</div>
);
}
@@ -1,5 +1,5 @@
import { PageSection } from "@/components/section/PageSection";
import { MOCK_ROADMAP } from "@/features/report/constants/mock_roadmap";
import { MOCK_ROADMAP } from "@/features/report/mocks/roadmap";
import type { RoadmapMonth } from "@/features/report/types/roadmap";
import { RoadmapMonthsGrid } from "@/features/report/ui/roadmap/RoadmapMonthsGrid";
@@ -1,5 +1,5 @@
import { PageSection } from "@/components/section/PageSection";
import { MOCK_TRANSFORMATION } from "@/features/report/constants/mock_transformation";
import { MOCK_TRANSFORMATION } from "@/features/report/mocks/transformation";
import type { TransformationProposal } from "@/features/report/types/transformationProposal";
import { TransformationTabbedView } from "@/features/report/ui/transformation/TransformationTabbedView";
@@ -1,7 +1,7 @@
import { TagChipList } from "@/components/chip/TagChipList";
import { DiagnosisRow } from "@/components/diagnosis/DiagnosisRow";
import { DiagnosisRow } from "@/features/report/ui/diagnosis/DiagnosisRow";
import { PageSection } from "@/components/section/PageSection";
import { MOCK_YOUTUBE_AUDIT } from "@/features/report/constants/mock_youtube_audit";
import { MOCK_YOUTUBE_AUDIT } from "@/features/report/mocks/youtubeAudit";
import type { YouTubeAudit } from "@/features/report/types/youtubeAudit";
import { YouTubeChannelInfoCard } from "@/features/report/ui/youtube/YouTubeChannelInfoCard";
import { YouTubeMetricsGrid } from "@/features/report/ui/youtube/YouTubeMetricsGrid";
@@ -6,7 +6,7 @@ import CalendarIcon from "@/assets/report/calendar.svg?react";
import GlobeIcon from "@/assets/report/globe.svg?react";
import MapPinIcon from "@/assets/report/map-pin.svg?react";
import type { ClinicSnapshot } from "@/features/report/types/clinicSnapshot";
import { formatCompactNumber } from "@/lib/formatNumber";
import { formatCompactNumber } from "@/utils/formatNumber";
export type ClinicStatRow = {
label: string;
@@ -0,0 +1,22 @@
import { SeverityBadge } from "@/components/badge/SeverityBadge";
import type { Severity } from "@/types/severity";
export type DiagnosisRowProps = {
category: string;
detail: string;
severity: Severity;
};
export function DiagnosisRow({ category, detail, severity }: DiagnosisRowProps) {
return (
<div className="py-4 border-b border-neutral-20 last:border-b-0">
<div className="flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-4">
<span className="title-14 text-navy-900 shrink-0 sm:w-32 break-keep">{category}</span>
<p className="flex-1 body-14 text-neutral-70 min-w-0 break-keep">{detail}</p>
<div className="shrink-0 sm:self-start">
<SeverityBadge severity={severity} />
</div>
</div>
</div>
);
}
@@ -1,6 +1,6 @@
import AlertCircleIcon from "@/assets/icons/alert-circle.svg?react";
import type { DiagnosisItem } from "@/features/report/types/diagnosis";
import { problemDiagnosisSeverityDotClass } from "@/features/report/ui/diagnosis/severityDotClass";
import { problemDiagnosisSeverityDotClass } from "@/features/report/ui/diagnosis/severityDotClasses";
export type ProblemDiagnosisCardProps = {
item: DiagnosisItem;
@@ -8,9 +8,9 @@ import ImageIcon from "@/assets/report/image.svg?react";
import Link2Icon from "@/assets/report/link-2.svg?react";
import MessageCircleIcon from "@/assets/report/message-circle.svg?react";
import type { FacebookPage } from "@/features/report/types/facebookAudit";
import { facebookLangBadgeClass } from "@/features/report/ui/facebook/langBadgeClass";
import { formatCompactNumber } from "@/lib/formatNumber";
import { safeUrl } from "@/lib/safeUrl";
import { facebookLangBadgeClass } from "@/features/report/ui/facebook/langBadgeClasses";
import { formatCompactNumber } from "@/utils/formatNumber";
import { safeUrl } from "@/utils/safeUrl";
export type FacebookPageCardProps = {
page: FacebookPage;
@@ -3,9 +3,9 @@ import ChannelInstagramIcon from "@/assets/icons/channel-instagram.svg?react";
import ExternalLinkIcon from "@/assets/icons/external-link.svg?react";
import { TagChipList } from "@/components/chip/TagChipList";
import type { InstagramAccount } from "@/features/report/types/instagramAudit";
import { instagramLangBadgeClass } from "@/features/report/ui/instagram/langBadgeClass";
import { formatCompactNumber } from "@/lib/formatNumber";
import { safeUrl } from "@/lib/safeUrl";
import { instagramLangBadgeClass } from "@/features/report/ui/instagram/langBadgeClasses";
import { formatCompactNumber } from "@/utils/formatNumber";
import { safeUrl } from "@/utils/safeUrl";
export type InstagramAccountCardProps = {
account: InstagramAccount;
@@ -0,0 +1,74 @@
import ExternalLinkIcon from "@/assets/icons/external-link.svg?react";
import CheckCircleIcon from "@/assets/report/check-circle.svg?react";
import HelpCircleIcon from "@/assets/report/help-circle.svg?react";
import XCircleIcon from "@/assets/report/x-circle.svg?react";
import type { OtherChannelStatus } from "@/features/report/types/otherChannels";
import { safeUrl } from "@/utils/safeUrl";
export type OtherChannelRowProps = {
name: string;
details: string;
status: OtherChannelStatus;
url?: string;
animationDelayMs?: number;
};
const statusMeta: Record<
OtherChannelStatus,
{ Icon: typeof CheckCircleIcon; iconClass: string; labelClass: string; label: string }
> = {
active: {
Icon: CheckCircleIcon,
iconClass: "text-[var(--color-status-good-dot)]",
labelClass: "text-[var(--color-status-good-text)]",
label: "활성",
},
inactive: {
Icon: XCircleIcon,
iconClass: "text-[var(--color-status-critical-dot)]",
labelClass: "text-[var(--color-status-critical-text)]",
label: "비활성",
},
unknown: {
Icon: HelpCircleIcon,
iconClass: "text-neutral-60",
labelClass: "text-neutral-60",
label: "미확인",
},
not_found: {
Icon: XCircleIcon,
iconClass: "text-[var(--color-status-critical-dot)]",
labelClass: "text-[var(--color-status-critical-text)]",
label: "미발견",
},
};
export function OtherChannelRow({ name, details, status, url, animationDelayMs = 0 }: OtherChannelRowProps) {
const meta = statusMeta[status];
const { Icon } = meta;
return (
<div
className="flex items-center gap-4 px-6 py-4 animate-fade-in-left"
style={{ animationDelay: `${animationDelayMs}ms` }}
>
<Icon width={20} height={20} className={`shrink-0 ${meta.iconClass}`} aria-hidden />
<div className="flex-1 min-w-0">
<p className="body-14-medium text-navy-900 break-keep">{name}</p>
<p className="body-14 text-neutral-60 break-keep">{details}</p>
</div>
<span className={`label-12 font-medium shrink-0 break-keep ${meta.labelClass}`}>{meta.label}</span>
{url ? (
<a
href={safeUrl(url)}
target="_blank"
rel="noopener noreferrer"
className="text-violet-700 hover:underline shrink-0 cursor-pointer [&_svg]:block"
aria-label={`${name} 외부 링크`}
>
<ExternalLinkIcon width={16} height={16} aria-hidden />
</a>
) : null}
</div>
);
}
@@ -1,5 +1,5 @@
import { OtherChannelRow } from "@/components/channel/OtherChannelRow";
import type { OtherChannel } from "@/types/otherChannels";
import { OtherChannelRow } from "@/features/report/ui/otherChannels/OtherChannelRow";
import type { OtherChannel } from "@/features/report/types/otherChannels";
export type OtherChannelsListProps = {
channels: OtherChannel[];
@@ -2,7 +2,7 @@ import AlertCircleIcon from "@/assets/icons/alert-circle.svg?react";
import CheckCircleIcon from "@/assets/report/check-circle.svg?react";
import GlobeIcon from "@/assets/report/globe.svg?react";
import { PixelInstallCard } from "@/components/card/PixelInstallCard";
import type { WebsiteAudit } from "@/types/otherChannels";
import type { WebsiteAudit } from "@/features/report/types/otherChannels";
export type WebsiteTechAuditBlockProps = {
website: WebsiteAudit;
@@ -1,7 +1,7 @@
import CalendarIcon from "@/assets/report/calendar.svg?react";
import GlobeIcon from "@/assets/report/globe.svg?react";
import MapPinIcon from "@/assets/report/map-pin.svg?react";
import { OVERVIEW_META_CHIP_CLASS } from "@/features/report/ui/overview/overviewSectionStyles";
import { OVERVIEW_META_CHIP_CLASS } from "@/features/report/ui/overview/overviewSectionClasses";
export type OverviewMetaChipsProps = {
date: string;
@@ -0,0 +1,19 @@
export type ComparisonRowProps = {
area: string;
asIs: string;
toBe: string;
};
export function ComparisonRow({ area, asIs, toBe }: ComparisonRowProps) {
return (
<div className="grid grid-cols-1 md:grid-cols-[minmax(0,120px)_1fr_1fr] gap-3 items-start py-4 border-b border-neutral-20 last:border-0">
<span className="body-14-medium text-neutral-80 pt-0 md:pt-3 break-keep">{area}</span>
<div className="rounded-lg bg-[var(--color-status-critical-bg)]/50 p-3 body-14 text-neutral-70 break-keep">
{asIs}
</div>
<div className="rounded-lg bg-[var(--color-status-good-bg)]/50 p-3 body-14-medium text-neutral-80 break-keep">
{toBe}
</div>
</div>
);
}
@@ -1,5 +1,5 @@
import type { NewChannelProposal } from "@/features/report/types/transformationProposal";
import { newChannelPriorityClass } from "@/features/report/ui/transformation/newChannelPriorityClass";
import { newChannelPriorityClass } from "@/features/report/ui/transformation/newChannelPriorityClasses";
export type NewChannelProposalsTableProps = {
rows: NewChannelProposal[];
@@ -1,5 +1,5 @@
import { useState } from "react";
import { ComparisonRow } from "@/components/compare/ComparisonRow";
import { ComparisonRow } from "@/features/report/ui/transformation/ComparisonRow";
import type { TransformationProposal } from "@/features/report/types/transformationProposal";
import { NewChannelProposalsTable } from "@/features/report/ui/transformation/NewChannelProposalsTable";
import { PlatformStrategyCard } from "@/features/report/ui/transformation/PlatformStrategyCard";
@@ -1,7 +1,7 @@
import ChannelYoutubeIcon from "@/assets/icons/channel-youtube.svg?react";
import ExternalLinkIcon from "@/assets/icons/external-link.svg?react";
import type { YouTubeAudit } from "@/features/report/types/youtubeAudit";
import { safeUrl } from "@/lib/safeUrl";
import { safeUrl } from "@/utils/safeUrl";
export type YouTubeChannelInfoCardProps = {
data: YouTubeAudit;
@@ -4,7 +4,7 @@ import VideoIcon from "@/assets/icons/video.svg?react";
import UsersIcon from "@/assets/icons/users.svg?react";
import { MetricCard } from "@/components/card/MetricCard";
import type { YouTubeAudit } from "@/features/report/types/youtubeAudit";
import { formatCompactNumber } from "@/lib/formatNumber";
import { formatCompactNumber } from "@/utils/formatNumber";
export type YouTubeMetricsGridProps = {
data: YouTubeAudit;