From f0bba7e7b92a6fd2f9f0b6fcdb439541e6d061d5 Mon Sep 17 00:00:00 2001 From: dahyeon Date: Wed, 12 Aug 2026 02:11:40 -0700 Subject: [PATCH] . --- .agents/skills/ss-a11y/SKILL.md | 74 ++++ .agents/skills/ss-audit/SKILL.md | 119 ++++++ .agents/skills/ss-build/SKILL.md | 80 ++++ .agents/skills/ss-component/SKILL.md | 62 +++ .agents/skills/ss-copy/SKILL.md | 100 +++++ .agents/skills/ss-dial/SKILL.md | 171 ++++++++ .agents/skills/ss-feedback/SKILL.md | 101 +++++ .agents/skills/ss-flow/SKILL.md | 58 +++ .agents/skills/ss-lint/SKILL.md | 106 +++++ .agents/skills/ss-motion/SKILL.md | 172 ++++++++ .agents/skills/ss-page/SKILL.md | 78 ++++ .agents/skills/ss-pattern/SKILL.md | 63 +++ .agents/skills/ss-reference/SKILL.md | 36 ++ .agents/skills/ss-resolve/SKILL.md | 57 +++ .../ss-resolve/color/generate-palette.mjs | 78 ++++ .../skills/ss-resolve/color/generator.d.mts | 40 ++ .agents/skills/ss-resolve/color/generator.mjs | 308 ++++++++++++++ .agents/skills/ss-resolve/color/index.ts | 12 + .agents/skills/ss-resolve/color/palettes.json | 234 +++++++++++ .../skills/ss-resolve/references/catalog.json | 93 +++++ .../ss-resolve/scripts/resolve-context.mjs | 382 ++++++++++++++++++ .agents/skills/ss-restyle/SKILL.md | 33 ++ .agents/skills/ss-review/SKILL.md | 100 +++++ .agents/skills/ss-score/SKILL.md | 175 ++++++++ .agents/skills/ss-setup/SKILL.md | 154 +++++++ .agents/skills/ss-studio/SKILL.md | 146 +++++++ .agents/skills/ss-studio/agents/openai.yaml | 4 + .../ss-studio/references/artifact-contract.md | 135 +++++++ .../ss-studio/references/provider-adapters.md | 48 +++ .../skills/ss-studio/scripts/studio-run.mjs | 356 ++++++++++++++++ .agents/skills/ss-tokens/SKILL.md | 76 ++++ .agents/skills/ss-update/SKILL.md | 184 +++++++++ .agents/skills/ss-verify/SKILL.md | 134 ++++++ .../skills/styleseed-design-review/SKILL.md | 114 ++++++ .claude/skills/ss-a11y | 1 + .claude/skills/ss-audit | 1 + .claude/skills/ss-build | 1 + .claude/skills/ss-component | 1 + .claude/skills/ss-copy | 1 + .claude/skills/ss-dial | 1 + .claude/skills/ss-feedback | 1 + .claude/skills/ss-flow | 1 + .claude/skills/ss-lint | 1 + .claude/skills/ss-motion | 1 + .claude/skills/ss-page | 1 + .claude/skills/ss-pattern | 1 + .claude/skills/ss-reference | 1 + .claude/skills/ss-resolve | 1 + .claude/skills/ss-restyle | 1 + .claude/skills/ss-review | 1 + .claude/skills/ss-score | 1 + .claude/skills/ss-setup | 1 + .claude/skills/ss-studio | 1 + .claude/skills/ss-tokens | 1 + .claude/skills/ss-update | 1 + .claude/skills/ss-verify | 1 + .claude/skills/styleseed-design-review | 1 + .styleseed/effective-rules.md | 340 ++++++++++++++++ .styleseed/manifest.json | 88 ++++ .styleseed/palette.css | 42 ++ .styleseed/palette.json | 189 +++++++++ STYLESEED.md | 28 ++ skills-lock.json | 143 +++++++ src/ReservationApp.tsx | 120 +++--- src/components/AutomationPanel.tsx | 60 +-- src/index.css | 54 ++- src/reservation.css | 121 +++--- test/screenshots/e2e.png | Bin 302213 -> 82503 bytes 68 files changed, 5149 insertions(+), 142 deletions(-) create mode 100644 .agents/skills/ss-a11y/SKILL.md create mode 100644 .agents/skills/ss-audit/SKILL.md create mode 100644 .agents/skills/ss-build/SKILL.md create mode 100644 .agents/skills/ss-component/SKILL.md create mode 100644 .agents/skills/ss-copy/SKILL.md create mode 100644 .agents/skills/ss-dial/SKILL.md create mode 100644 .agents/skills/ss-feedback/SKILL.md create mode 100644 .agents/skills/ss-flow/SKILL.md create mode 100644 .agents/skills/ss-lint/SKILL.md create mode 100644 .agents/skills/ss-motion/SKILL.md create mode 100644 .agents/skills/ss-page/SKILL.md create mode 100644 .agents/skills/ss-pattern/SKILL.md create mode 100644 .agents/skills/ss-reference/SKILL.md create mode 100644 .agents/skills/ss-resolve/SKILL.md create mode 100644 .agents/skills/ss-resolve/color/generate-palette.mjs create mode 100644 .agents/skills/ss-resolve/color/generator.d.mts create mode 100644 .agents/skills/ss-resolve/color/generator.mjs create mode 100644 .agents/skills/ss-resolve/color/index.ts create mode 100644 .agents/skills/ss-resolve/color/palettes.json create mode 100644 .agents/skills/ss-resolve/references/catalog.json create mode 100644 .agents/skills/ss-resolve/scripts/resolve-context.mjs create mode 100644 .agents/skills/ss-restyle/SKILL.md create mode 100644 .agents/skills/ss-review/SKILL.md create mode 100644 .agents/skills/ss-score/SKILL.md create mode 100644 .agents/skills/ss-setup/SKILL.md create mode 100644 .agents/skills/ss-studio/SKILL.md create mode 100644 .agents/skills/ss-studio/agents/openai.yaml create mode 100644 .agents/skills/ss-studio/references/artifact-contract.md create mode 100644 .agents/skills/ss-studio/references/provider-adapters.md create mode 100644 .agents/skills/ss-studio/scripts/studio-run.mjs create mode 100644 .agents/skills/ss-tokens/SKILL.md create mode 100644 .agents/skills/ss-update/SKILL.md create mode 100644 .agents/skills/ss-verify/SKILL.md create mode 100644 .agents/skills/styleseed-design-review/SKILL.md create mode 120000 .claude/skills/ss-a11y create mode 120000 .claude/skills/ss-audit create mode 120000 .claude/skills/ss-build create mode 120000 .claude/skills/ss-component create mode 120000 .claude/skills/ss-copy create mode 120000 .claude/skills/ss-dial create mode 120000 .claude/skills/ss-feedback create mode 120000 .claude/skills/ss-flow create mode 120000 .claude/skills/ss-lint create mode 120000 .claude/skills/ss-motion create mode 120000 .claude/skills/ss-page create mode 120000 .claude/skills/ss-pattern create mode 120000 .claude/skills/ss-reference create mode 120000 .claude/skills/ss-resolve create mode 120000 .claude/skills/ss-restyle create mode 120000 .claude/skills/ss-review create mode 120000 .claude/skills/ss-score create mode 120000 .claude/skills/ss-setup create mode 120000 .claude/skills/ss-studio create mode 120000 .claude/skills/ss-tokens create mode 120000 .claude/skills/ss-update create mode 120000 .claude/skills/ss-verify create mode 120000 .claude/skills/styleseed-design-review create mode 100644 .styleseed/effective-rules.md create mode 100644 .styleseed/manifest.json create mode 100644 .styleseed/palette.css create mode 100644 .styleseed/palette.json create mode 100644 STYLESEED.md create mode 100644 skills-lock.json diff --git a/.agents/skills/ss-a11y/SKILL.md b/.agents/skills/ss-a11y/SKILL.md new file mode 100644 index 0000000..2e2d5e7 --- /dev/null +++ b/.agents/skills/ss-a11y/SKILL.md @@ -0,0 +1,74 @@ +--- +name: ss-a11y +description: Audit a component or page for accessibility issues and fix them +argument-hint: "[file-path]" +allowed-tools: Read, Write, Edit, Grep, Glob +--- + +# Accessibility Audit + +## When NOT to use + +- For general design system compliance review → use `/ss-review` +- For Nielsen UX heuristics → use `/ss-audit` +- For non-StyleSeed code (no `data-slot`, no semantic tokens) — assumes StyleSeed conventions +- For runtime testing — this is a static code audit, not a screen-reader simulation + +Target: **$ARGUMENTS** + +## Audit Criteria + +### WCAG 2.2 AA Compliance + +#### 1. Perceivable +- **Color contrast**: Text must meet 4.5:1 (normal) or 3:1 (large/bold text) + - Check `text-muted-foreground` (#717182) on `bg-background` (#FFFFFF) = 4.6:1 (passes) + - Check `text-brand` on white (verify contrast with your skin's brand color) + - Flag any custom colors that don't meet ratio +- **Non-text contrast**: UI controls/graphics must meet 3:1 +- **Text alternatives**: All `` need `alt`, icons need `aria-label` when meaningful +- **Color independence**: Don't convey info by color alone (add icons/text) + +#### 2. Operable +- **Touch targets**: Minimum 44x44px (`min-h-11 min-w-11`) + - Common violation: `h-9` (36px) buttons — should be `h-11` + - Icon buttons need explicit size: `w-11 h-11` +- **Keyboard navigation**: All interactive elements must be keyboard-accessible + - Tab order should be logical + - `focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2` +- **Motion**: Animations must respect `prefers-reduced-motion` + ```css + @media (prefers-reduced-motion: reduce) { + *, *::before, *::after { + animation-duration: 0.01ms !important; + transition-duration: 0.01ms !important; + } + } + ``` + +#### 3. Understandable +- **Labels**: Form inputs must have visible labels or `aria-label` +- **Error messages**: Form errors must be programmatically associated (`aria-describedby`) +- **Language**: `` (or appropriate language code for your project) + +#### 4. Robust +- **Semantic HTML**: Use appropriate elements (`} +/> +``` +Rules: +- Center-aligned in the card +- Icon: 32px, `text-text-tertiary` +- Title: 14px, `text-text-secondary` +- Always suggest a next action +- Zero values show as "0" (don't hide or dash) + +### State 3: Error (Load Failed) +```tsx +
+ +

Couldn't load the data

+ +
+``` +Rules: +- Partial failure: only affected card shows error, rest loads normally +- Full page failure: full-screen EmptyState with retry +- Error message: plain language, blame the system +- Always provide retry button + +### State 4: Success (Action Feedback) +```tsx +// Toast notification for action confirmations +toast("Changes saved") + +// With undo for destructive actions +toast("Item deleted", { action: { label: "Undo", onClick: handleUndo } }) +``` +Rules: +- Info toast: 3s display +- Action toast (with undo): 5s display +- Toast position: above BottomNav +- One toast at a time (new replaces old) + +4. Implementation pattern: +```tsx +function DataCard({ data, isLoading, error }) { + if (isLoading) return + if (error) return + if (!data || data.length === 0) return + return +} +``` + +5. Check `prefers-reduced-motion` — disable `animate-pulse` when reduced motion is preferred. diff --git a/.agents/skills/ss-flow/SKILL.md b/.agents/skills/ss-flow/SKILL.md new file mode 100644 index 0000000..bf32b9f --- /dev/null +++ b/.agents/skills/ss-flow/SKILL.md @@ -0,0 +1,58 @@ +--- +name: ss-flow +description: Design user flows and navigation structure following proven UX patterns +argument-hint: "[flow-name] [description]" +allowed-tools: Read, Write, Edit, Grep, Glob, Bash +--- + +# UX Flow Designer + +## When NOT to use + +- For implementing a single page → use `/ss-page` after the flow is settled +- For copy on each step → use `/ss-copy` after the structure is settled +- For information architecture of an entire product — narrow scope to one flow first +- For high-fidelity mockups — this produces a flow map, not pixel-perfect designs + +Design a user flow: **$0** +Description: $ARGUMENTS + +## Instructions + +1. Read the design system reference: + - `CLAUDE.md` for component inventory + - `DESIGN-LANGUAGE.md` for layout patterns (sections 13-14, 19-20) + - `components/patterns/` for available building blocks + +2. Apply these UX principles: + +### Information Architecture +- **Progressive Disclosure**: Show only what's needed at each step. Hide complexity behind logical drill-downs. +- **Miller's Law**: Chunk information into groups of 5-9 items maximum. +- **Hick's Law**: Minimize choices per screen. Fewer options = faster decisions. + +### Navigation Patterns +- **Hub & Spoke**: Dashboard → detail pages → back to dashboard (default for mobile apps) +- **Linear Flow**: Step 1 → Step 2 → Step 3 (for forms, onboarding, checkout) +- **Tab Navigation**: 3-5 top-level sections via BottomNav + +### Screen Flow Rules +- Every flow must have a **clear entry point** and **clear exit point** +- Maximum **3 taps** to reach any key feature from the home screen +- Back navigation must always be available (except root screens) +- Error states must provide **recovery paths** (retry, go back, contact support) +- Loading states must use skeleton screens (never spinners in cards) + +### Page Composition (from DESIGN-LANGUAGE.md) +- Follow the **Information Pyramid**: Hero → KPI Grid → Details → Lists +- Each screen should answer ONE primary question +- Above the fold: the most important metric or action +- Use the 4 section types: Full Card (A), Grid (B), Carousel (C), Hero (D) + +3. Output format: + - **Flow diagram** in ASCII showing screen connections + - **Screen inventory** listing each screen's purpose and key components + - **Edge cases** (empty states, errors, loading) for each screen + - **Scaffolded pages** using `PageShell`, `TopBar`, `BottomNav` patterns + +4. Generate the actual page files using `/ss-page` conventions. diff --git a/.agents/skills/ss-lint/SKILL.md b/.agents/skills/ss-lint/SKILL.md new file mode 100644 index 0000000..0f0b6ec --- /dev/null +++ b/.agents/skills/ss-lint/SKILL.md @@ -0,0 +1,106 @@ +--- +name: ss-lint +description: Quick automated lint — detects common design system violations in seconds +argument-hint: "[file-path or directory]" +allowed-tools: Read, Grep, Glob, Bash +--- + +# Design Lint (Quick Check) + +Read `.styleseed/effective-rules.md` and `.styleseed/manifest.json`; invoke `/ss-resolve` or +`$ss-resolve` first when they are missing or stale. Lint detects deterministic drift; it must +not flag an exact grammar/recipe/profile/adapter contract as a violation or let an arbitrary lock +value create an exception. + +## When NOT to use + +- For deeper review of design judgment (composition, hierarchy, rhythm) → use `/ss-review` +- For accessibility specifically → use `/ss-a11y` +- For Nielsen UX heuristics → use `/ss-audit` +- For applying refactors — this only flags violations; use `/ss-review` to fix + +Target: **$ARGUMENTS** + +## What This Does + +Fast, grep-based scan for common design violations. Runs in seconds (unlike /ss-review which is a deep manual audit). Run this after every file change. + +## Checks + +### 1. Hardcoded Colors +Search for hex colors in className strings that should be semantic tokens: +```bash +grep -n '#[0-9a-fA-F]\{3,8\}' [file] | grep -v 'theme.css\|tokens\|\.json' +``` +**Violation:** `text-[#3C3C3C]`, `bg-[#3182F6]` +**Fix:** `text-text-primary`, `bg-brand` + +### 2. Raw Pixel Values in Tailwind +```bash +grep -n 'p-\[.*px\]\|m-\[.*px\]\|gap-\[.*px\]' [file] +``` +**Violation:** `p-[24px]`, `gap-[12px]` +**Fix:** `p-6`, `gap-3` + +### 3. Old Width/Height Syntax +```bash +grep -n 'w-[0-9] h-[0-9]\|w-\[.*\] h-\[' [file] +``` +**Violation:** `w-4 h-4` +**Fix:** `size-4` + +### 4. Physical Properties (LTR-only) +```bash +grep -n ' ml-\| mr-\| pl-\| pr-' [file] +``` +**Violation:** `ml-2`, `mr-4` +**Fix:** `ms-2`, `me-4` + +### 5. Uncontracted Hard Black +```bash +grep -n 'text-black\|bg-black\|#000000\|#000"' [file] +``` +**Violation:** Pure black without an exact structural role in the selected grammar/profile +**Fix:** Use the semantic ink token, or cite the maintained contract that requires hard black + +### 6. Missing data-slot +```bash +grep -n 'function [A-Z]' [file] # find components +grep -n 'data-slot' [file] # check if present +``` +**Violation:** Component without `data-slot` +**Fix:** Add `data-slot="component-name"` + +### 7. Font Size CSS Variables (CRITICAL — Tailwind v4 conflict) +```bash +grep -n 'text-\[var(--' [file] +grep -n '\-\-text-.*px\|--fs-.*px' [file] +``` +**Violation:** `text-[var(--text-sm)]` or `--text-sm: 13px` in theme.css +**Fix:** Use explicit `text-[13px]`. CSS variable font sizes conflict with Tailwind v4's `--text-*` namespace — Tailwind reads them as color, not font-size. + +### 8. className Without cn() +```bash +grep -n 'className={`' [file] +``` +**Violation:** Template literal className +**Fix:** Use `cn()` for all className composition + +### 9. Universal Soft-card Drift +Search for repeated `rounded-2xl`, `shadow-[var(--shadow-card)]`, and `mx-6` in pattern files. +Flag the combination when the selected recipe is not `calm-consumer`. +**Fix:** use `ss-pattern-surface`, `ss-page-gutter`, and the other recipe-aware helper classes. + +## Output Format + +``` +🔴 FAIL [file:line] Hardcoded hex: text-[#3C3C3C] → use text-text-primary +🔴 FAIL [file:line] Raw px: p-[24px] → use p-6 +🟡 WARN [file:line] Physical prop: ml-2 → use ms-2 +🟡 WARN [file:line] Missing data-slot on MyComponent +🟢 PASS No violations found + +Total: X errors, Y warnings +``` + +If errors > 0, list specific fixes for each violation. diff --git a/.agents/skills/ss-motion/SKILL.md b/.agents/skills/ss-motion/SKILL.md new file mode 100644 index 0000000..c4cfb95 --- /dev/null +++ b/.agents/skills/ss-motion/SKILL.md @@ -0,0 +1,172 @@ +--- +name: ss-motion +description: Apply a named StyleSeed motion to a component — either one of the 5 personality seeds (Spring/Silk/Snap/Float/Pulse × entrance/exit/hover/press/layout) or a distinctive keyword move from the motion library (toggle-flip, toggle-curtain, reveal-blur, pop-in, shimmer, …). Translates vibe words into framer-motion code from one source of truth. +argument-hint: "[vibe-seed-or-keyword] [context] [file-path]" +allowed-tools: Read, Write, Edit, Grep, Glob, Bash +--- + +# Motion Seed Applier + +## When NOT to use + +- For general framer-motion docs or learning → use the framer-motion site +- For non-React motion (CSS-only transitions, GSAP) — this skill targets `motion.X` JSX only +- For full scroll-linked timelines or parallax — out of scope for *this* skill (it does per-component + seeds/moves). Note these ARE allowed on a marketing/landing/brand page (DESIGN-LANGUAGE §43 + Cinematic tier); just build them with a scroll library, not this skill. On app/data surfaces they + stay banned. +- For tweaking the existing FadeIn/FadeUp/Stagger wrappers — edit `engine/components/ui/motion.tsx` directly + +## Vibe → Seed mapping + +Translate the user's prompt to one of the five seeds before applying. Use this lookup table from `engine/motion/index.ts`: + +| Words the user might say | Seed | +|---|---| +| bouncy, springy, playful, energetic, alive | **Spring** | +| smooth, silky, fluid, elegant, composed, continuous | **Silk** | +| snappy, quick, instant, decisive, sharp, precise | **Snap** | +| floaty, gentle, weightless, dreamy, ambient, drifting | **Float** | +| rhythmic, punchy, pulsing, heartbeat, beat | **Pulse** | +| "Toss style", "Arc style" | **Spring** (per brand default) | +| "Stripe style", "Notion style" | **Silk** | +| "Linear style", "Raycast style", "Vercel style" | **Snap** | + +If the user says only a *brand* name, use that brand's default seed from `BRAND_DEFAULT_SEED`. If the user is explicit about a seed name (`spring`, `silk`, etc.), respect it verbatim. + +## Recommend mode — use-case → motion (when the user describes the *moment*, not the vibe) + +If the user describes **what the thing is** ("a like button", "a modal", "the loading +state", "items in a feed") rather than a feeling, recommend from the use-case map +(`MOTION_BY_USECASE` in `engine/motion/library.ts`, exported from `@engine/motion`): + +| Use case | Reach for | Why | +|---|---|---| +| Primary button / CTA press | `spring · press` | tactile, confident — the press should "give" | +| Modal / dialog / sheet enter | `silk · entrance` | smooth; never bounce serious/destructive content | +| Dropdown / popover / menu | `snap · entrance` | instant, precise — frequent UI shouldn't wait | +| Toast / inline notification | `spring · entrance` | small friendly arrival, non-blocking | +| List / feed items appearing | `stagger-cascade` | choreograph order, gently | +| Feature / marketing card hover | `tilt-3d` | depth/flair OK on content-light marketing | +| Dashboard / data card hover | `snap · hover` | a subtle lift only — keep dense UI calm | +| Like / favorite / reaction | `like-burst` | a celebratory one-shot; reward the tap | +| Live / online / recording dot | `pulse-beat` | looping heartbeat = "alive" | +| Loading / skeleton | `shimmer` | calm directional progress | +| Success / confirmation | `pop-in` | positive little "done" | +| Toggle / tab / segment switch | `toggle-flip` | distinctive, recognizable switch | +| Page / route transition | `silk · entrance` | smooth, minimal, get out of the way | +| Number / balance / KPI / price reveal | **none** | don't animate the payload — it must read instantly | + +**Two anti-rules override the table** (state them if you deviate): +1. **One seed per product.** If the project already uses a seed, match it — don't introduce a second personality. +2. **Never delay the payload.** Don't animate a balance, price, or search result into view; motion is for affordance, not content. + +## Named motion keywords (distinctive moves) + +Seeds set a *personality* (how a fade/scale feels). The **motion library** in +`engine/motion/library.ts` adds *distinctive moves* — a flip, a curtain wipe, a +morph — each behind a unique keyword. Prefer a keyword when the user wants a +specific, recognizable motion rather than a generic feel. + +`engine/motion/library.ts` (exported as `MOTION_LIBRARY` / `MOTION_BY_KEY` from +`@engine/motion`) is the **single source of truth** — every keyword carries its +own runnable `snippet`. Pull the snippet from there; never hand-write the params. + +| Keyword | Move | Say it when the user wants… | +|---|---|---| +| `toggle-flip` | 3D Y-axis card flip | a switch/toggle to flip between two faces | +| `toggle-slide` | slide-stack swap | a value to slide out and the next to slide in | +| `toggle-morph` | pill ⇄ circle morph | a control to change shape on toggle | +| `toggle-curtain` | top→bottom clip-path wipe | a panel to reveal like a curtain | +| `reveal-blur` | blur(12px)→0 focus-in | content to focus-pull into place | +| `reveal-rise` | masked clip-path text rise | a headline/text to climb into view | +| `reveal-unfold` | scaleY from top edge | an accordion/panel to unfold | +| `pop-in` | spring overshoot from 0 | a badge/checkmark to pop in bouncily | +| `press-squish` | scale-down + skew | a button to feel jelly/tactile on tap | +| `tap-ripple` | radial ripple from tap | Material-style press feedback | +| `pulse-beat` | looping scale pulse | a live/recording/heartbeat indicator | +| `wiggle` | quick horizontal shake | error / invalid-input feedback | +| `shimmer` | skeleton loading sweep | a loading placeholder | +| `stagger-cascade` | children fade-up in sequence | a list to animate in one-by-one | + +**Applying a keyword:** + +1. Read the exact recipe from `engine/motion/library.ts` — find the entry whose + `key` matches, copy its `snippet` verbatim (it is calibrated and runnable). +2. Adapt only the element/content to the user's JSX; keep the transition values. +3. If the keyword is stateful (toggles, ripple), wire the `useState` shown in the + snippet. If it's a one-shot reveal, a `key` bump replays it. +4. Tell the user the keyword you applied so they can reuse it elsewhere for + consistency, and point them at `/motion` to preview/Copy others. + +If the user describes a move but no exact keyword fits, fall back to a seed + +context. If they say a keyword that doesn't exist, suggest the closest real one +from the table — never invent a keyword. + +## Context detection + +Infer one of the five contexts from the prompt: + +- "on hover" / "when hovered" → `hover` +- "on press" / "on tap" / "on click" → `press` +- "when it appears" / "on mount" / "entering" → `entrance` +- "when it leaves" / "on close" / "exiting" → `exit` (requires ``) +- "when layout changes" / "FLIP" / "rearranging" → `layout` + +If ambiguous, default to `entrance`. If multiple contexts are reasonable (e.g., a button needs both `hover` and `press`), apply both. + +## Application steps + +Apply seed: **$0** · Context: **$1** · Target: **$ARGUMENTS** + +1. **Read the target file** at the path given (or, if no path was given, ask the user which file). Locate the JSX element the user is talking about — usually a ` - +
+ +
- {error && ( -
- {error} +
+ {error}
)} {result && ( -
+
-
-

{result.success ? '예약 접수 완료' : '예약 접수 실패'}

{result.message}

{result.reservationNum &&

예약 번호 {result.reservationNum}

}
- {result.confirmationUrl && 확인 페이지 } +
+

{result.success ? '예약 접수 완료' : '예약 접수 실패'}

{result.message}

{result.reservationNum &&

예약 번호 {result.reservationNum}

}
+ {result.confirmationUrl && 확인 페이지 }
)}
+
+
+
-
01

지점과 테마

실시간으로 운영 중인 목록을 가져옵니다.

+
01

지점과 테마

실시간으로 운영 중인 목록을 가져옵니다.

{detail && selectedTheme && ( -
-
- {detail.imageUrl && } -
-
{detail.genre || '장르 정보 없음'}난이도 {detail.level || '—'}{detail.playTime || '—'}분

{detail.name}

+
+
+ {detail.imageUrl && } +
+
{detail.genre || '장르 정보 없음'}난이도 {detail.level || '—'}{detail.playTime || '—'}분

{detail.name}

)}
-
02

날짜와 시간

회색 시간은 이미 마감되었습니다.

{times.length > 0 && 예약 가능 {availableCount}}
- +
02

날짜와 시간

흐린 시간은 이미 마감되었습니다.

{times.length > 0 && 0 ? 'bg-success/10 text-success' : 'bg-chrome text-ink-muted'}`}>예약 가능 {availableCount}}
+
- {loading === 'times' ? Array.from({ length: 10 }, (_, index) =>
) : times.length > 0 ? times.map((slot) => ) :

테마와 날짜를 선택하면 시간표가 표시됩니다.

} + {loading === 'times' ? Array.from({ length: 10 }, (_, index) =>
) : times.length > 0 ? times.map((slot) => ) :

테마와 날짜를 선택하면 시간표가 표시됩니다.

}
- {autoMode && times.some((slot) => !slot.available) &&

자동 모드에서는 아직 열리지 않은 회색 슬롯도 사전 선택할 수 있습니다. 목표 슬롯 ID와 공식 가격만 준비하며 즉시 예약하지 않습니다.

} + {autoMode && times.some((slot) => !slot.available) &&

자동 모드에서는 아직 열리지 않은 흐린 슬롯도 사전 선택할 수 있습니다. 목표 슬롯 ID와 공식 가격만 준비하며 즉시 예약하지 않습니다.

}
-
03

예약자 정보

입금자명과 동일하게 작성하세요.

+
03

예약자 정보

입금자명과 동일하게 작성하세요.

@@ -411,22 +435,22 @@ function ReservationApp() {
-

캡차 인증

브라우저에서 직접 인증 후 토큰을 붙여넣으세요.

-