feat(ssulbox): 썰박스 진입 탭·생성 플로우와 통합 콘텐츠 목록 분기

This commit is contained in:
skkim committed 2026-08-11 14:57:33 +09:00
1 parent c4c46db0d9
commit bb0ab91bcc
26 files changed
+2793 -119

No files matched your search

+57
View File
@@ -0,0 +1,57 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
/** 생성할 콘텐츠 종류. 진입 화면에서 고르면 이후 플로우 전체가 갈린다. */
export type Pipeline = 'ado2' | 'ssul';
interface PipelineTabsProps {
value: Pipeline;
onChange: (value: Pipeline) => void;
}
const TABS: { id: Pipeline; labelKey: string; emoji?: string }[] = [
{ id: 'ado2', labelKey: 'pipelineTabs.ado2' },
{ id: 'ssul', labelKey: 'pipelineTabs.ssul', emoji: '📋' },
];
/**
* ADO2 / 썰박스 전환 탭 (밑줄 탭).
*
* 활성 탭 아래에만 밑줄이 얹히고, 색이 민트(ADO2) ↔ 앰버(썰박스)로 바뀐다.
* 스타일은 generation-flow.css 의 `.pipeline-tabs*` 참조.
*
* 접근성: castad 의 기존 탭(`.myinfo-tab` 등)에는 role/aria 가 없지만,
* 이 컴포넌트를 기점으로 표준 tablist 패턴을 도입한다.
*/
const PipelineTabs: React.FC<PipelineTabsProps> = ({ value, onChange }) => {
const { t } = useTranslation();
return (
<div
className="pipeline-tabs"
data-active={value}
role="tablist"
aria-label={t('pipelineTabs.ariaLabel')}
>
{TABS.map((tab) => (
<button
key={tab.id}
type="button"
role="tab"
aria-selected={value === tab.id}
className="pipeline-tab"
onClick={() => onChange(tab.id)}
>
{tab.emoji && (
<span className="pipeline-tab__emoji" aria-hidden="true">
{tab.emoji}
</span>
)}
{t(tab.labelKey)}
</button>
))}
</div>
);
};
export default PipelineTabs;
+8 -3
View File
@@ -3,13 +3,18 @@ import React from 'react';
import { useTranslation } from 'react-i18next';
interface WizardStepperProps {
currentStep: number; // 0~3, matching wizardStep in GenerationFlow
currentStep: number; // 0-based. ADO2 는 wizardStep 0~3 과 일치
/**
* 단계 라벨. 생략하면 ADO2 기본 4단계를 쓴다(기존 호출부 무수정).
* 썰박스처럼 단계 구성이 다른 파이프라인이 직접 넘긴다.
*/
steps?: string[];
}
const WizardStepper: React.FC<WizardStepperProps> = ({ currentStep }) => {
const WizardStepper: React.FC<WizardStepperProps> = ({ currentStep, steps: stepsProp }) => {
const { t } = useTranslation();
const steps = [
const steps = stepsProp ?? [
t('wizardSteps.brandAnalysis'),
t('wizardSteps.asset'),
t('wizardSteps.sound'),