diff --git a/CLAUDE.md b/CLAUDE.md index 793eca9..6284376 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -76,6 +76,7 @@ Never do any of the following: - **No inline styles** — use Tailwind classes only - **No cross-layer imports in FSD** — e.g., `features` must not import from `pages` - **No committing to `main` or `develop`** — always use a feature branch + PR +- **No PRs to `main`** — every PR targets `develop`; `main` is updated only by a maintainer's release PR - **No skipping CI gates** — do not use `--no-verify` or bypass lint/typecheck ## Commit Convention (Conventional Commits) @@ -110,12 +111,16 @@ CI must pass before merging. Run `npm run typecheck && npm run lint && npm run f Direct pushes to `main` and `develop` are blocked by a git `pre-push` hook. Always work on a feature branch and open a PR. Use `/pr` to create the PR. +**All PRs MUST target `develop` — never open a PR against `main`.** +`main` only receives changes via a `develop` → `main` release PR opened by a maintainer. +Claude must never create a PR to `main` or merge anything into `main`. + Hook lives in `.githooks/pre-push` and registers automatically on `npm install` via the `prepare` script (`git config core.hooksPath .githooks`). ## GitHub -- Repo: `DarkMode-Lab/AIKON-Client` +- Repo: `DarkMode-Lap/AIKON-Client` - Default branch: `main` - PR template: `.github/pull_request_template.md` - Use `gh` CLI for PR operations (`/pr` command handles this) diff --git a/src/pages/create/index.tsx b/src/pages/create/index.tsx index d877b9d..cc1f087 100644 --- a/src/pages/create/index.tsx +++ b/src/pages/create/index.tsx @@ -101,6 +101,16 @@ export default function CreatePage() { }) } + // 스타일 자동 선택: 직접 고르지 않고 랜덤 스타일로 다음 단계 진행 + function handleStyleAuto() { + const style = STYLE_OPTIONS[Math.floor(Math.random() * STYLE_OPTIONS.length)].id + setForm((f) => ({ ...f, style })) + setDir(1) + // 함수형 업데이터로 멱등 처리 — 빠른 더블클릭에도 2→3만, 단계 건너뛰기 방지 + setStep((s) => (s === 2 ? 3 : s)) + toast.success('스타일을 랜덤으로 골랐어요! ✨') + } + return (
어떤 느낌의 캐릭터로 만들까요? 🎨
+ 고르기 어렵다면 AI가 알아서 멋지게 만들어드려요 +
+ +