Repository navigation
feat(web): refine design with tactile depth and editorial polish - #38
Conversation
Elevate the Peach & Sage palette with gradient buttons, warm layered shadows, spring-curve animations, and consistent visual hierarchy across all screens — while preserving the safe, ND-friendly character. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThis pull request updates component and screen styling across the web application, introducing refined gradient backgrounds, adjusted shadow definitions, modified opacity levels, and enhanced animation timings. Changes include new CSS utility classes for warm shadows, refined checkbox and scrollbar styling, and minor text styling adjustments throughout multiple screens, while maintaining existing control flow and component behavior. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
packages/web/src/index.css (1)
275-291:⚠️ Potential issue | 🟡 MinorPrefer fully disabling animations in reduced-motion mode.
Line 288 shortens animation duration, but infinite animations can still keep cycling. In
prefers-reduced-motion, setanimation: noneglobally to ensure no residual motion (including newly added keyframes likegentle-pulse).🔧 Proposed fix
`@media` (prefers-reduced-motion: reduce) { .animate-in, .stagger, .float-a, .float-b, .celebrate { animation: none !important; } *, *::before, *::after { - animation-duration: 0.01ms !important; + animation: none !important; transition-duration: 0.01ms !important; } }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/web/src/index.css` around lines 275 - 291, The prefers-reduced-motion rule currently only sets animation:none for specific classes and reduces durations for all elements, which can still allow infinite/added keyframe animations to run; update the media query so that all elements and pseudo-elements (targeting * , *::before, *::after) explicitly set animation: none !important (in addition to transition: none !important) to fully disable any existing or future animations — adjust selectors referenced (.animate-in, .stagger, .float-a, .float-b, .celebrate and the universal * selectors) to ensure a global override.
🧹 Nitpick comments (5)
packages/web/src/components/Button.tsx (1)
13-35: Consider extracting shared accent visual tokens to avoid style drift.
The same gradient/shadow recipe appears in multiple controls in this PR. Centralizing these class fragments would make future tweaks safer and faster.Possible local extraction
+const accentBase = "bg-gradient-to-b from-accent to-[`#c47048`] text-accent-fg"; +const accentShadow = + "shadow-[0_1px_2px_rgb(58_48_40/0.08),0_2px_8px_rgb(208_128_88/0.2),inset_0_1px_0_rgb(255_255_255/0.12)]"; +const accentShadowHover = + "hover:shadow-[0_2px_4px_rgb(58_48_40/0.1),0_4px_14px_rgb(208_128_88/0.28),inset_0_1px_0_rgb(255_255_255/0.12)]"; + const variantStyles: Record<Variant, string> = { accent: [ - "bg-gradient-to-b from-accent to-[`#c47048`] text-accent-fg", - "shadow-[0_1px_2px_rgb(58_48_40/0.08),0_2px_8px_rgb(208_128_88/0.2),inset_0_1px_0_rgb(255_255_255/0.12)]", - "hover:shadow-[0_2px_4px_rgb(58_48_40/0.1),0_4px_14px_rgb(208_128_88/0.28),inset_0_1px_0_rgb(255_255_255/0.12)]", + accentBase, + accentShadow, + accentShadowHover,🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/web/src/components/Button.tsx` around lines 13 - 35, The button variant definitions (symbols: accent, accent-light, neutral, outline, ghost) duplicate gradient and shadow class fragments across packages/web/src/components/Button.tsx; extract the shared gradient and shadow strings into well-named constants (e.g., ACCENT_GRADIENT, ACCENT_SHADOW, HOVER_SHADOW) and replace the repeated literals in the variant arrays with those constants so all variants reference the centralized tokens for future tweaks and to avoid style drift.packages/web/src/screens/Intro.tsx (1)
18-19: Prefer a stable key for step items instead of index.
Usingkey={i}can cause subtle DOM/state mismatches if steps are reordered or localized. A content-derived key is safer here.Proposed refactor
- {UI.intro.steps.map((step, i) => ( - <li key={i} className="flex items-center gap-3.5"> + {UI.intro.steps.map((step, i) => ( + <li key={step} className="flex items-center gap-3.5">🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/web/src/screens/Intro.tsx` around lines 18 - 19, The list item uses key={i} which is unstable; change the map to use a stable content-derived key (e.g., step.id or a deterministic string from step properties) instead of the index. Locate the map that renders the <li> in Intro.tsx and replace key={i} with key={step.id} (or key={`${step.title}-${step.name}` or another unique concatenation of step fields) and, if step objects lack an id, add a stable id to the step data source (e.g., `id` on each step) so the <li> rendering (the list items around the span) uses that stable identifier.packages/web/src/screens/QuestionCard.tsx (1)
18-41: Consider extracting sharedvariantStylesto reduce duplication.This
variantStylesobject is nearly identical to the one inButton.tsx(lines 12-35). If the design tokens evolve, both files need synchronized updates.Extracting to a shared module (e.g.,
lib/variant-styles.ts) would centralize maintenance. However, this may be intentional if the rating buttons need independent evolution.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/web/src/screens/QuestionCard.tsx` around lines 18 - 41, The variantStyles object in QuestionCard.tsx duplicates styles defined in Button.tsx (variantStyles), causing maintenance drift; extract the shared mapping into a new module (e.g., lib/variant-styles.ts) and import it from both QuestionCard.tsx and Button.tsx, keeping keys and string values (accent, accent-light, neutral, outline) intact so components consume the same source of truth; if any component needs divergent overrides, export the base object and apply local merges or overrides in QuestionCard (or Button) rather than maintaining separate copies.packages/web/src/screens/GroupSetup.tsx (1)
120-120: Consider extracting the hardcoded gradient endpoint color.The
#c47048color appears in multiple files (GroupSetup.tsx,Invite.tsx,Summary.tsx,Comparison.tsx,QuestionCard.tsx). If the accent palette evolves, this will require multi-file updates.A CSS custom property like
--color-accent-darkwould centralize this.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/web/src/screens/GroupSetup.tsx` at line 120, The gradient endpoint color `#c47048` is hardcoded in the className on the GroupSetup component (and repeated in Invite.tsx, Summary.tsx, Comparison.tsx, QuestionCard.tsx); add a CSS custom property like --color-accent-dark to your global/root stylesheet (or theme) and replace the literal color in the className strings (e.g., the "bg-gradient-to-b from-accent to-[`#c47048`]" usage) with the custom property (e.g., to-[var(--color-accent-dark)] or equivalent Tailwind-compatible token), and update the other files to use the same variable so future accent palette changes are centralized.packages/web/src/index.css (1)
84-90: Optional: centralize the repeated easing curve into a token.The same cubic-bezier appears in multiple places; extracting it improves consistency and future tuning.
♻️ Proposed refactor
`@theme` { --font-sans: "Lexend", sans-serif; + --ease-emphasized: cubic-bezier(0.22, 1, 0.36, 1); --radius-lg: 20px; --radius-md: 16px; --radius-sm: 12px; @@ .animate-in { - animation: fade-slide-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; + animation: fade-slide-in 0.4s var(--ease-emphasized) both; } @@ .stagger { - animation: fade-slide-in 0.5s calc(var(--stagger-index, 0) * 120ms + 80ms) cubic-bezier(0.22, 1, 0.36, 1) both; + animation: fade-slide-in 0.5s calc(var(--stagger-index, 0) * 120ms + 80ms) var(--ease-emphasized) both; } @@ transition: - background-color 0.2s cubic-bezier(0.22, 1, 0.36, 1), - border-color 0.2s cubic-bezier(0.22, 1, 0.36, 1), - box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1); + background-color 0.2s var(--ease-emphasized), + border-color 0.2s var(--ease-emphasized), + box-shadow 0.2s var(--ease-emphasized);Also applies to: 186-188
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/web/src/index.css` around lines 84 - 90, Extract the repeated cubic-bezier value into a reusable CSS custom property (e.g. --anim-ease) at the root and replace literal uses of cubic-bezier(0.22, 1, 0.36, 1) with var(--anim-ease) in the animation declarations (notably the fade-slide-in animation and the .stagger rule which uses fade-slide-in), ensuring any other occurrences (e.g. lines referenced around 186-188) are updated too so easing is centralized for consistent tuning.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@packages/web/src/index.css`:
- Around line 275-291: The prefers-reduced-motion rule currently only sets
animation:none for specific classes and reduces durations for all elements,
which can still allow infinite/added keyframe animations to run; update the
media query so that all elements and pseudo-elements (targeting * , *::before,
*::after) explicitly set animation: none !important (in addition to transition:
none !important) to fully disable any existing or future animations — adjust
selectors referenced (.animate-in, .stagger, .float-a, .float-b, .celebrate and
the universal * selectors) to ensure a global override.
---
Nitpick comments:
In `@packages/web/src/components/Button.tsx`:
- Around line 13-35: The button variant definitions (symbols: accent,
accent-light, neutral, outline, ghost) duplicate gradient and shadow class
fragments across packages/web/src/components/Button.tsx; extract the shared
gradient and shadow strings into well-named constants (e.g., ACCENT_GRADIENT,
ACCENT_SHADOW, HOVER_SHADOW) and replace the repeated literals in the variant
arrays with those constants so all variants reference the centralized tokens for
future tweaks and to avoid style drift.
In `@packages/web/src/index.css`:
- Around line 84-90: Extract the repeated cubic-bezier value into a reusable CSS
custom property (e.g. --anim-ease) at the root and replace literal uses of
cubic-bezier(0.22, 1, 0.36, 1) with var(--anim-ease) in the animation
declarations (notably the fade-slide-in animation and the .stagger rule which
uses fade-slide-in), ensuring any other occurrences (e.g. lines referenced
around 186-188) are updated too so easing is centralized for consistent tuning.
In `@packages/web/src/screens/GroupSetup.tsx`:
- Line 120: The gradient endpoint color `#c47048` is hardcoded in the className on
the GroupSetup component (and repeated in Invite.tsx, Summary.tsx,
Comparison.tsx, QuestionCard.tsx); add a CSS custom property like
--color-accent-dark to your global/root stylesheet (or theme) and replace the
literal color in the className strings (e.g., the "bg-gradient-to-b from-accent
to-[`#c47048`]" usage) with the custom property (e.g.,
to-[var(--color-accent-dark)] or equivalent Tailwind-compatible token), and
update the other files to use the same variable so future accent palette changes
are centralized.
In `@packages/web/src/screens/Intro.tsx`:
- Around line 18-19: The list item uses key={i} which is unstable; change the
map to use a stable content-derived key (e.g., step.id or a deterministic string
from step properties) instead of the index. Locate the map that renders the <li>
in Intro.tsx and replace key={i} with key={step.id} (or
key={`${step.title}-${step.name}` or another unique concatenation of step
fields) and, if step objects lack an id, add a stable id to the step data source
(e.g., `id` on each step) so the <li> rendering (the list items around the span)
uses that stable identifier.
In `@packages/web/src/screens/QuestionCard.tsx`:
- Around line 18-41: The variantStyles object in QuestionCard.tsx duplicates
styles defined in Button.tsx (variantStyles), causing maintenance drift; extract
the shared mapping into a new module (e.g., lib/variant-styles.ts) and import it
from both QuestionCard.tsx and Button.tsx, keeping keys and string values
(accent, accent-light, neutral, outline) intact so components consume the same
source of truth; if any component needs divergent overrides, export the base
object and apply local merges or overrides in QuestionCard (or Button) rather
than maintaining separate copies.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: f8507351-aae0-4b97-a5fd-e842ab4d93fc
📒 Files selected for processing (17)
packages/web/src/components/AnatomyPicker.tsxpackages/web/src/components/Button.tsxpackages/web/src/components/Card.tsxpackages/web/src/components/SyncIndicator.tsxpackages/web/src/components/ToggleGroup.tsxpackages/web/src/index.csspackages/web/src/main.tsxpackages/web/src/screens/Comparison.tsxpackages/web/src/screens/GroupSetup.tsxpackages/web/src/screens/Intro.tsxpackages/web/src/screens/Invite.tsxpackages/web/src/screens/Landing.tsxpackages/web/src/screens/PersonApp.tsxpackages/web/src/screens/QuestionCard.tsxpackages/web/src/screens/Review.tsxpackages/web/src/screens/Summary.tsxpackages/web/src/screens/WelcomeScreen.tsx
- Extract gradient colors to CSS tokens (--color-accent-dark, etc.)
- Centralize easing curve as --ease-spring CSS variable
- Extract shared variantStyles to lib/variant-styles.ts
- Use animation: none in prefers-reduced-motion (not just duration)
- Use stable key={step} instead of key={i} in Intro.tsx
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Adopt design polish for new elements from #37: gradient copy buttons, consistent border/radius tokens, surface/border opacity on new "Your link" card in GroupSetup. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…oise - Add shadow theme tokens (--shadow-accent-sm, --shadow-accent-md, --shadow-accent-light-sm) to replace 10+ inline arbitrary values - Add .shadow-accent-embossed for compound shadow + inset highlight - Add .progress-track, .progress-fill, .progress-glow CSS utilities replacing 6 inline style props across QuestionCard and Summary - Use cn() consistently for conditional classNames (not template literals) - Document cn() convention in CLAUDE.md Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Extract CopyLinkField component for the repeated link input + copy
button + sr-only pattern (3 instances across GroupSetup and Invite)
- Convert all 14 template-literal classNames to cn() across 8 files
- Zero `className={\`...\`}` patterns remaining in codebase
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Test changes (exhaustive truth table, mixed e2e, offset param) were accidentally bundled with this design-polish PR. Moved to dedicated PR #41 (test/exhaustive-match-classification). Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
All 60 screenshots updated to match the new design polish: gradient buttons, warm shadows, spring animations, refined typography. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 4
🧹 Nitpick comments (1)
packages/web/src/lib/variant-styles.ts (1)
20-33: ModelvariantStyleswith an explicit interface and exportedReadonlycontract.Line 20 currently infers the object shape from the literal. Please define a
VariantStylesinterface and type the export asReadonly<VariantStyles>so the public shape is explicit and guideline-aligned.Proposed refactor
+interface VariantStyles { + accent: string; + "accent-light": string; + neutral: string; + outline: string; + ghost: string; +} + -export const variantStyles = { +export const variantStyles: Readonly<VariantStyles> = Object.freeze({ accent: [ACCENT_GRADIENT, ACCENT_SHADOW, ACCENT_SHADOW_HOVER, "hover:brightness-[1.04]"].join(" "), "accent-light": [ ACCENT_LIGHT_GRADIENT, ACCENT_LIGHT_SHADOW, ACCENT_LIGHT_SHADOW_HOVER, "hover:brightness-[1.04]", ].join(" "), neutral: [NEUTRAL_GRADIENT, NEUTRAL_SHADOW, NEUTRAL_SHADOW_HOVER, "hover:brightness-[1.04]"].join(" "), outline: "bg-transparent text-neutral border-2 border-neutral/50 hover:border-neutral/70 hover:bg-neutral/5", ghost: "bg-transparent text-text-muted hover:text-accent hover:bg-accent/[0.04]", -} as const; +}); -export type Variant = keyof typeof variantStyles; +export type Variant = keyof VariantStyles;As per coding guidelines:
**/*.{ts,tsx}: Use interfaces for object shapes in TypeScript; and**/*.{ts,tsx}: Return defensive copies and useReadonly<T>where practical to avoid mutable state across boundaries.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/web/src/lib/variant-styles.ts` around lines 20 - 33, Define a VariantStyles interface describing the shape of the variantStyles object (keys like "accent", "accent-light", "neutral", "outline", "ghost" with string values), change the exported variantStyles declaration to be typed as Readonly<VariantStyles> and ensure the constant value implements that interface, and keep export type Variant = keyof VariantStyles (or keyof typeof variantStyles) to preserve the Variant type; this makes the public contract explicit and immutable while preserving existing symbols variantStyles and Variant.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/web/src/components/AnatomyPicker.tsx`:
- Around line 30-35: The selected-state class references a non-existent utility
"shadow-accent-sm"; update the class in AnatomyPicker's className ternary (the
block that applies when selected === a) to use the CSS variable instead, e.g.
replace "shadow-accent-sm" with an arbitrary shadow using the variable like
"shadow-[var(--shadow-accent-sm)]" (or alternatively add a corresponding utility
to index.css), so the intended shadow stored in --shadow-accent-sm is actually
applied.
In `@packages/web/src/index.css`:
- Around line 281-293: The stylesheet is missing the .shadow-accent-sm utility
that should apply the --shadow-accent-sm variable referenced by
AnatomyPicker.tsx and Summary.tsx; add a .shadow-accent-sm CSS rule that sets
box-shadow: var(--shadow-accent-sm) (and any fallback/stacking needed) so the
components using the class actually render the intended small accent shadow.
- Line 5: The CSS variable --ease-spring is self-referential and must be set to
a real easing value; replace the declaration `--ease-spring:
var(--ease-spring);` with the actual cubic-bezier easing (e.g. `--ease-spring:
cubic-bezier(0.22, 1, 0.36, 1);`) so any uses of --ease-spring resolve
correctly.
In `@packages/web/src/screens/Summary.tsx`:
- Around line 111-116: The selected-tier markup in the className ternary uses a
non-existent utility "shadow-accent-sm" (see the ternary on tier === t in
Summary.tsx), so add a CSS utility named .shadow-accent-sm in your global CSS to
apply the intended box-shadow (or replace the string with an existing shadow
utility); implement the class in your main stylesheet (index.css) with the
desired shadow color/offset/blur so the selected tier visually shows the accent
shadow.
---
Nitpick comments:
In `@packages/web/src/lib/variant-styles.ts`:
- Around line 20-33: Define a VariantStyles interface describing the shape of
the variantStyles object (keys like "accent", "accent-light", "neutral",
"outline", "ghost" with string values), change the exported variantStyles
declaration to be typed as Readonly<VariantStyles> and ensure the constant value
implements that interface, and keep export type Variant = keyof VariantStyles
(or keyof typeof variantStyles) to preserve the Variant type; this makes the
public contract explicit and immutable while preserving existing symbols
variantStyles and Variant.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 1686ca7b-2598-484c-acda-d0ecac60cc00
⛔ Files ignored due to path filters (58)
e2e/visual/admin-flow.spec.ts-snapshots/end-of-questions-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/end-of-questions-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/intro-no-timing-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/intro-no-timing-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/intro-with-timing-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/intro-with-timing-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/invite-members-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/invite-members-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/question-timing-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/question-timing-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/question-unanswered-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/question-unanswered-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/results-2p-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/results-2p-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/review-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/review-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/setup-form-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/setup-form-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/setup-links-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/setup-links-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/summary-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/summary-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/waiting-admin-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/waiting-admin-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/welcome-screen-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/admin-flow.spec.ts-snapshots/welcome-screen-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/landing.spec.ts-snapshots/create-group-all-options-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/landing.spec.ts-snapshots/create-group-all-options-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/landing.spec.ts-snapshots/create-group-all-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/landing.spec.ts-snapshots/create-group-all-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/landing.spec.ts-snapshots/create-group-filtered-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/landing.spec.ts-snapshots/create-group-filtered-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/landing.spec.ts-snapshots/landing-home-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/landing.spec.ts-snapshots/landing-home-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/partner-flow.spec.ts-snapshots/pending-waiting-anatomy-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/partner-flow.spec.ts-snapshots/pending-waiting-anatomy-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/partner-flow.spec.ts-snapshots/pick-anatomy-expanded-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/partner-flow.spec.ts-snapshots/pick-anatomy-expanded-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/partner-flow.spec.ts-snapshots/pick-anatomy-partner-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/partner-flow.spec.ts-snapshots/pick-anatomy-partner-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/partner-flow.spec.ts-snapshots/pick-anatomy-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/partner-flow.spec.ts-snapshots/pick-anatomy-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/partner-flow.spec.ts-snapshots/waiting-non-admin-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/partner-flow.spec.ts-snapshots/waiting-non-admin-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/results-edge.spec.ts-snapshots/results-empty-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/results-edge.spec.ts-snapshots/results-empty-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/results-edge.spec.ts-snapshots/results-with-timing-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/results-edge.spec.ts-snapshots/results-with-timing-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/three-person.spec.ts-snapshots/invite-3-members-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/three-person.spec.ts-snapshots/invite-3-members-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/three-person.spec.ts-snapshots/results-3p-first-tab-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/three-person.spec.ts-snapshots/results-3p-first-tab-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/three-person.spec.ts-snapshots/results-3p-second-tab-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/three-person.spec.ts-snapshots/results-3p-second-tab-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/three-person.spec.ts-snapshots/results-3p-third-tab-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/three-person.spec.ts-snapshots/results-3p-third-tab-visual-mobile-linux.pngis excluded by!**/*.pnge2e/visual/three-person.spec.ts-snapshots/waiting-3p-partial-visual-desktop-linux.pngis excluded by!**/*.pnge2e/visual/three-person.spec.ts-snapshots/waiting-3p-partial-visual-mobile-linux.pngis excluded by!**/*.png
📒 Files selected for processing (17)
CLAUDE.mdpackages/web/src/components/AnatomyPicker.tsxpackages/web/src/components/Button.tsxpackages/web/src/components/ToggleGroup.tsxpackages/web/src/components/copy-link-field.tsxpackages/web/src/components/copy-my-link.tsxpackages/web/src/index.csspackages/web/src/lib/variant-styles.tspackages/web/src/screens/Comparison.tsxpackages/web/src/screens/GroupSetup.tsxpackages/web/src/screens/Intro.tsxpackages/web/src/screens/Invite.tsxpackages/web/src/screens/Landing.tsxpackages/web/src/screens/PersonApp.tsxpackages/web/src/screens/QuestionCard.tsxpackages/web/src/screens/Review.tsxpackages/web/src/screens/Summary.tsx
✅ Files skipped from review due to trivial changes (2)
- CLAUDE.md
- packages/web/src/components/ToggleGroup.tsx
🚧 Files skipped from review as they are similar to previous changes (7)
- packages/web/src/components/Button.tsx
- packages/web/src/screens/GroupSetup.tsx
- packages/web/src/screens/Invite.tsx
- packages/web/src/screens/Comparison.tsx
- packages/web/src/screens/Landing.tsx
- packages/web/src/screens/QuestionCard.tsx
- packages/web/src/screens/PersonApp.tsx
| className={cn( | ||
| "flex-1 px-4 py-3 rounded-[var(--radius-sm)] border transition-all duration-200", | ||
| selected === a | ||
| ? "bg-gradient-to-b from-accent to-accent-dark text-accent-fg border-accent shadow-accent-sm" | ||
| : unselectedClass, | ||
| )} |
There was a problem hiding this comment.
shadow-accent-sm class is not defined.
The selected state styling references shadow-accent-sm (line 33), but this utility class does not exist in index.css. Only the CSS variable --shadow-accent-sm is defined. The shadow will not be applied until the utility class is added.
See the related fix in packages/web/src/index.css.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@packages/web/src/components/AnatomyPicker.tsx` around lines 30 - 35, The
selected-state class references a non-existent utility "shadow-accent-sm";
update the class in AnatomyPicker's className ternary (the block that applies
when selected === a) to use the CSS variable instead, e.g. replace
"shadow-accent-sm" with an arbitrary shadow using the variable like
"shadow-[var(--shadow-accent-sm)]" (or alternatively add a corresponding utility
to index.css), so the intended shadow stored in --shadow-accent-sm is actually
applied.
|
|
||
| @theme { | ||
| --font-sans: "Lexend", sans-serif; | ||
| --ease-spring: var(--ease-spring); |
There was a problem hiding this comment.
Self-referential CSS variable will not work.
--ease-spring: var(--ease-spring); creates a circular reference. This variable needs an actual cubic-bezier value. Based on the PR description mentioning "spring easing (cubic-bezier(0.22,1,0.36,1))", this should be:
🐛 Proposed fix
- --ease-spring: var(--ease-spring);
+ --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| --ease-spring: var(--ease-spring); | |
| --ease-spring: cubic-bezier(0.22, 1, 0.36, 1); |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@packages/web/src/index.css` at line 5, The CSS variable --ease-spring is
self-referential and must be set to a real easing value; replace the declaration
`--ease-spring: var(--ease-spring);` with the actual cubic-bezier easing (e.g.
`--ease-spring: cubic-bezier(0.22, 1, 0.36, 1);`) so any uses of --ease-spring
resolve correctly.
| /* Accent shadow + inset highlight — tactile emboss for selected controls */ | ||
| .shadow-accent-embossed { | ||
| box-shadow: | ||
| 0 1px 3px rgb(208 128 88 / 20%), | ||
| inset 0 1px 0 rgb(255 255 255 / 12%); | ||
| } | ||
|
|
||
| /* Accent glow — warm halo for highlighted elements */ | ||
| .shadow-accent-glow { | ||
| box-shadow: | ||
| 0 2px 8px rgb(208 128 88 / 12%), | ||
| 0 0 0 1px rgb(208 128 88 / 8%); | ||
| } |
There was a problem hiding this comment.
Missing .shadow-accent-sm utility class.
The CSS variable --shadow-accent-sm is defined at line 28, but no corresponding utility class exists. AnatomyPicker.tsx (line 33) and Summary.tsx (line 114) both reference shadow-accent-sm as a class, which will have no effect.
🐛 Proposed fix — add the missing utility class
.shadow-accent-glow {
box-shadow:
0 2px 8px rgb(208 128 88 / 12%),
0 0 0 1px rgb(208 128 88 / 8%);
}
+
+/* Accent shadow — small warm shadow for selected controls */
+.shadow-accent-sm {
+ box-shadow: var(--shadow-accent-sm);
+}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| /* Accent shadow + inset highlight — tactile emboss for selected controls */ | |
| .shadow-accent-embossed { | |
| box-shadow: | |
| 0 1px 3px rgb(208 128 88 / 20%), | |
| inset 0 1px 0 rgb(255 255 255 / 12%); | |
| } | |
| /* Accent glow — warm halo for highlighted elements */ | |
| .shadow-accent-glow { | |
| box-shadow: | |
| 0 2px 8px rgb(208 128 88 / 12%), | |
| 0 0 0 1px rgb(208 128 88 / 8%); | |
| } | |
| /* Accent shadow + inset highlight — tactile emboss for selected controls */ | |
| .shadow-accent-embossed { | |
| box-shadow: | |
| 0 1px 3px rgb(208 128 88 / 20%), | |
| inset 0 1px 0 rgb(255 255 255 / 12%); | |
| } | |
| /* Accent glow — warm halo for highlighted elements */ | |
| .shadow-accent-glow { | |
| box-shadow: | |
| 0 2px 8px rgb(208 128 88 / 12%), | |
| 0 0 0 1px rgb(208 128 88 / 8%); | |
| } | |
| /* Accent shadow — small warm shadow for selected controls */ | |
| .shadow-accent-sm { | |
| box-shadow: var(--shadow-accent-sm); | |
| } |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@packages/web/src/index.css` around lines 281 - 293, The stylesheet is missing
the .shadow-accent-sm utility that should apply the --shadow-accent-sm variable
referenced by AnatomyPicker.tsx and Summary.tsx; add a .shadow-accent-sm CSS
rule that sets box-shadow: var(--shadow-accent-sm) (and any fallback/stacking
needed) so the components using the class actually render the intended small
accent shadow.
| className={cn( | ||
| "flex-1 px-3 py-1.5 rounded-[10px] text-sm font-medium text-center cursor-pointer transition-all duration-200", | ||
| tier === t | ||
| ? "bg-gradient-to-b from-accent to-accent-dark text-white shadow-accent-sm" | ||
| : "text-text-muted hover:text-text", | ||
| )} |
There was a problem hiding this comment.
shadow-accent-sm class is not defined.
The tier selector's selected state (line 114) references shadow-accent-sm, which is not defined as a utility class in index.css. This shadow will not be applied.
See the related fix in packages/web/src/index.css.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@packages/web/src/screens/Summary.tsx` around lines 111 - 116, The
selected-tier markup in the className ternary uses a non-existent utility
"shadow-accent-sm" (see the ternary on tier === t in Summary.tsx), so add a CSS
utility named .shadow-accent-sm in your global CSS to apply the intended
box-shadow (or replace the string with an existing shadow utility); implement
the class in your main stylesheet (index.css) with the desired shadow
color/offset/blur so the selected tier visually shows the accent shadow.
Add copyLabel prop so GroupSetup can pass "Copy your link" matching the e2e test expectation, instead of deriving it from the input label. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
🎉 This PR is included in version 1.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Elevates the existing Peach & Sage design with more depth, tactile quality, and editorial precision across all 17 frontend files — while preserving the safe, warm, ND-friendly character.
CSS foundation (
index.css)ease-outwithcubic-bezier(0.22, 1, 0.36, 1)across all entrance animations for natural, springy motion.shadow-warm-sm,.shadow-warm,.shadow-warm-lg,.shadow-accent-glowusing warm brown tones instead of cold greygentle-pulsekeyframe — smoother 2.5s cycle for category status dotsButtons (
Button.tsx)bg-gradient-to-bwithinsettop highlight for tactile, embossed qualityCard (
Card.tsx)backdrop-saturate-[1.1]on desktop for richer glass effectshadow-lgwith layeredshadow-warm-lg/40to/30Components (
ToggleGroup,AnatomyPicker,SyncIndicator)All screens
-0.035em), gradient tagline dividers, uppercase trust badges with wider letter-spacingscale-[1.01]on selected answer for lift effect, refined progress bar glowfocus:ring-accent/20), gradient copy/anatomy buttonsDesign principles preserved
prefers-reduced-motionrespectedTest plan
pnpm -r typecheck— all 3 packages passpnpm test— 335/335 tests passpnpm lint— biome + stylelint clean🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Style
Documentation