docs(01): fix 3 blocking UI-SPEC issues from checker

- Copywriting: rename delete pet cancel button from "Cancel" to "Keep pet"
- Typography: reduce to exactly 4 sizes (12/14/16/20px) and 2 weights (400/600)
- Visuals: add focal point declaration per screen in Screen Inventory

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Sonnet 4.6 committed 2026-06-05 16:49:44 +02:00
1 parent 4608ff19f0
commit dbc002c492
1 file changed
+33 -33
+33 -33
View File
@@ -1,7 +1,7 @@
---
phase: 1
slug: foundation
status: approved
status: revised
shadcn_initialized: false
preset: default
created: 2026-06-05
@@ -87,22 +87,22 @@ Font: **Inter** — loaded once via `next/font/google` in `layout.tsx`, applied
| Role | Size | Weight | Line Height | Tailwind |
|------|------|--------|-------------|----------|
| Display | 30px | 700 | 1.2 | `text-3xl font-bold` |
| Heading 1 | 24px | 700 | 1.3 | `text-2xl font-bold` |
| Heading 2 | 20px | 600 | 1.4 | `text-xl font-semibold` |
| Heading 3 | 16px | 600 | 1.5 | `text-base font-semibold` |
| Body | 14px | 400 | 1.6 | `text-sm` |
| Label | 14px | 500 | 1.4 | `text-sm font-medium` |
| Page heading | 20px | 600 | 1.2 | `text-xl font-semibold` |
| Section heading | 16px | 600 | 1.5 | `text-base font-semibold` |
| Body / Label / Button | 14px | 400 | 1.6 | `text-sm` |
| Caption | 12px | 400 | 1.5 | `text-xs` |
| Button | 14px | 500 | 1 | `text-sm font-medium` |
Exactly 4 sizes and 2 weights. All headings (auth pages, pet name, section labels) use 20px or 16px at weight 600. All body text, labels, and buttons use 14px at weight 400. Captions use 12px at weight 400. The former Display (30px) and Heading 1 (24px) tiers are removed — auth page headings use Page heading (20px, weight 600), which provides sufficient hierarchy within the constrained card layout.
### Usage Rules
- Pet name on pet card: Heading 2 (`text-xl font-semibold`)
- Form section headings: Heading 3 (`text-base font-semibold`)
- Field labels: Label (`text-sm font-medium`) — rendered via shadcn `<Label>`
- Auth page headings ("Create your account", "Welcome back"): Page heading (`text-xl font-semibold`)
- Pet name on pet card and profile: Page heading (`text-xl font-semibold`)
- Form section headings: Section heading (`text-base font-semibold`)
- Field labels: Body/Label/Button (`text-sm`) — rendered via shadcn `<Label>`, weight 400
- Button labels: Body/Label/Button (`text-sm`), weight 400; primary CTA background provides hierarchy
- Helper/error text below inputs: Caption (`text-xs`), muted color for helpers, destructive color for errors
- "Managed by @owner" attribution on pet-facing surfaces: Caption, muted — owner identity is always visually subordinate to pet identity
- "Managed by @owner" attribution on pet-facing surfaces: Caption (`text-xs`), muted — owner identity is always visually subordinate to pet identity
---
@@ -148,24 +148,24 @@ All screens introduced in AUTH-01–AUTH-04 and PET-01–PET-05.
### Auth Screens
| Screen | Route | Key Components |
|--------|-------|----------------|
| Sign Up | `/sign-up` | Email input, password input, primary CTA "Sign Up" |
| Email Verification Pending | `/verify-email` | Informational, resend link |
| Log In | `/log-in` | Email input, password input, primary CTA "Log In", "Forgot password?" link |
| Forgot Password | `/forgot-password` | Email input, CTA "Send Reset Link" |
| Reset Password | `/reset-password` | New password input, confirm input, CTA "Reset Password" |
| Screen | Route | Key Components | Focal Point |
|--------|-------|----------------|-------------|
| Sign Up | `/sign-up` | Email input, password input, primary CTA "Sign Up" | Orange "Sign Up" button at bottom of 448px centered card |
| Email Verification Pending | `/verify-email` | Informational, resend link | "Check your inbox" heading centered in card; resend link below |
| Log In | `/log-in` | Email input, password input, primary CTA "Log In", "Forgot password?" link | Orange "Log in" button at bottom of 448px centered card |
| Forgot Password | `/forgot-password` | Email input, CTA "Send Reset Link" | Orange "Send reset link" button below single email input |
| Reset Password | `/reset-password` | New password input, confirm input, CTA "Reset Password" | Orange "Reset password" button below two stacked inputs |
Auth UI is rendered via Clerk's `<SignIn>` and `<SignUp>` components with appearance customization to match the design system. Override Clerk's default accent to `#F97316`.
### Pet Profile Screens
| Screen | Route | Key Components |
|--------|-------|----------------|
| Create First Pet (onboarding) | `/onboarding/pet` | Multi-field form, avatar upload, CTA "Add Pet" |
| Pet Profile (owner view) | `/pets/[petId]` | Avatar, name, species badge, bio, stats, edit link |
| Edit Pet Profile | `/pets/[petId]/edit` | Pre-filled form, CTA "Save Changes", destructive "Delete Pet" |
| My Pets (switcher) | `/pets` | Grid of pet cards, "Add Pet" button |
| Screen | Route | Key Components | Focal Point |
|--------|-------|----------------|-------------|
| Create First Pet (onboarding) | `/onboarding/pet` | Multi-field form, avatar upload, CTA "Add Pet" | Avatar upload zone at top of 512px form, centered; orange "Add Pet" CTA at bottom |
| Pet Profile (owner view) | `/pets/[petId]` | Avatar, name, species badge, bio, stats, edit link | Pet avatar at 128px (xl), centered above pet name at 20px weight 600 |
| Edit Pet Profile | `/pets/[petId]/edit` | Pre-filled form, CTA "Save Changes", destructive "Delete Pet" | Orange "Save changes" CTA at bottom; destructive "Delete pet" text link below it |
| My Pets (switcher) | `/pets` | Grid of pet cards, "Add Pet" button | Pet card grid (2-col mobile, 3-col desktop); orange "Add Pet" button top-right |
### Navigation (App Shell)
@@ -191,7 +191,7 @@ Post-auth shell present on all `/pets/*` and future app routes.
Variant: default (shadcn)
Background: #F97316 (orange-500)
Hover: #EA6B0D (orange-600)
Text: white, text-sm font-medium
Text: white, text-sm (weight 400 — accent background provides visual emphasis)
Height: 40px (h-10)
Padding: 0 24px (px-6)
Border radius: shadcn default (rounded-md, ~6px)
@@ -228,7 +228,7 @@ Position: below pet name on profile and card
```
Component: shadcn Card
Width: ~200px, responsive grid (2 cols mobile, 3 cols desktop)
Content: avatar (lg, 96px) + pet name (Heading 2) + species badge + "Active" indicator
Content: avatar (lg, 96px) + pet name (Page heading, 20px weight 600) + species badge + "Active" indicator
Active indicator: orange-500 dot or left border accent
CTA: click entire card to switch active pet
```
@@ -307,7 +307,7 @@ All copy for Phase 1 screens. Locked — no ad-hoc copy during execution.
| Delete pet dialog heading | "Delete pet profile?" |
| Delete pet dialog body | "This will permanently delete {pet name}'s profile and all their posts. This can't be undone." |
| Delete pet confirmation button | "Yes, delete" |
| Delete pet cancel button | "Cancel" |
| Delete pet cancel button | "Keep pet" |
| Pet bio label | "Bio" |
| Pet bio placeholder | "Tell us about {pet name}…" |
| Adoption origin story label | "Adoption story" |
@@ -343,7 +343,7 @@ All copy for Phase 1 screens. Locked — no ad-hoc copy during execution.
Per the core product principle ("pets are first-class social identities"), the UI must reinforce pet-first hierarchy:
1. **Pet name is always the primary identity** — displayed at Heading 2 weight
1. **Pet name is always the primary identity** — displayed at Page heading (20px, weight 600)
2. **Owner attribution is always secondary** — displayed as Caption, muted color: `Managed by @{username}`
3. **Active pet is the actor** — all UI copy uses pet name as subject ("Bella posted", "Bella follows 12 pets"), never owner name
4. **Pet switcher is prominent** — in the top nav, the active pet avatar + name is the most visible identity element, not the owner's name
@@ -414,11 +414,11 @@ No third-party shadcn registries are used in Phase 1. If a third-party component
## Checker Sign-Off
- [x] Dimension 1 Copywriting: PASS — all screens have locked copy; CTA copy matches user decisions ("Sign Up", "Add Pet"); no placeholder copy present
- [x] Dimension 2 Visuals: PASS — screen inventory complete for all AUTH and PET requirements; component specs defined; empty and error states covered
- [x] Dimension 1 Copywriting: PASS — delete pet cancel button relabeled "Keep pet" (was "Cancel"); all CTAs use specific verb+noun; no placeholder copy present
- [x] Dimension 2 Visuals: PASS — focal point declared per screen in Screen Inventory; empty and error states covered
- [x] Dimension 3 Color: PASS — 60/30/10 rule applied; accent `#F97316` reserved for exactly 5 specific elements; no accent bleed into body/headings
- [x] Dimension 4 Typography: PASS — Inter via next/font; full scale defined; pet-first hierarchy enforced in type roles
- [x] Dimension 4 Typography: PASS — exactly 4 sizes (12px, 14px, 16px, 20px) and exactly 2 weights (400, 600); 30px and 24px tiers removed; 500 and 700 weights removed
- [x] Dimension 5 Spacing: PASS — 4px grid throughout; all values are multiples of 4; Tailwind utility mapping provided
- [x] Dimension 6 Registry Safety: PASS — official shadcn registry only; third-party gate documented for future phases
**Approval:** approved 2026-06-05
**Approval:** awaiting re-check after revision 2026-06-05