Skip to content

feat(web): refine design with tactile depth and editorial polish - #38

Merged
iskhakovt merged 8 commits into
mainfrom
feat/design-polish
Apr 13, 2026
Merged

iskhakovt merged 8 commits into
mainfrom
feat/design-polish

Conversation

@iskhakovt

@iskhakovt iskhakovt commented Apr 12, 2026 •

Copy link
Copy Markdown
Owner

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)

  • Richer background — added a third radial gradient layer (subtle sage center wash) for atmospheric depth
  • Spring-curve animations — replaced generic ease-out with cubic-bezier(0.22, 1, 0.36, 1) across all entrance animations for natural, springy motion
  • Stagger timing — increased intervals from 100ms→120ms with 80ms base delay for more deliberate rhythm
  • Warm shadow utilities — new .shadow-warm-sm, .shadow-warm, .shadow-warm-lg, .shadow-accent-glow using warm brown tones instead of cold grey
  • Refined grain texture — doubled resolution (512px), slightly reduced opacity
  • Better checkbox hover — subtle accent ring on hover
  • Thinner scrollbar — 5px with semi-transparent thumb + hover state
  • New gentle-pulse keyframe — smoother 2.5s cycle for category status dots

Buttons (Button.tsx)

  • Gradient treatment — all filled variants use subtle bg-gradient-to-b with inset top highlight for tactile, embossed quality
  • Layered shadows — combined structural shadow + colored glow + inner highlight
  • Better hover — shadow lift + brightness instead of brightness alone
  • Refined disabled — lower opacity (40%), no shadow

Card (Card.tsx)

  • Glass morphism — backdrop-saturate-[1.1] on desktop for richer glass effect
  • Warm shadows — replaced generic shadow-lg with layered shadow-warm-lg
  • Softer borders — reduced opacity from /40 to /30

Components (ToggleGroup, AnatomyPicker, SyncIndicator)

  • Gradient active states matching Button treatment
  • Consistent border/background opacities across all interactive elements
  • Smoother transition durations

All screens

  • Landing — tighter heading tracking (-0.035em), gradient tagline dividers, uppercase trust badges with wider letter-spacing
  • QuestionCard — SVG chevron for description toggle (replaces unicode triangles), scale-[1.01] on selected answer for lift effect, refined progress bar glow
  • WelcomeScreen — larger category heading (2.5rem), tighter eyebrow tracking
  • Comparison/Results — gradient match badges with shadow, warm summary strip, green sage blob in background
  • Summary — gradient tier selector, per-category progress bars with completion color change, inset shadow on progress track
  • Review — accent dot category headers with tracking
  • Intro — circle badges with border, refined tier picker border treatment
  • Invite/GroupSetup — consistent input styling (focus:ring-accent/20), gradient copy/anatomy buttons
  • Waiting/Pending — refined member rows with borders, Button component for "View results" CTA

Design principles preserved

  • Lexend font throughout (unchanged)
  • Peach & Sage palette (enriched, not replaced)
  • 20px border radius convention
  • Light mode only
  • All accessibility attributes intact (ARIA, keyboard nav, focus-visible, screen reader text)
  • prefers-reduced-motion respected

Test plan

  • pnpm -r typecheck — all 3 packages pass
  • pnpm test — 335/335 tests pass
  • pnpm lint — biome + stylelint clean
  • Visual verification in Chrome: Landing, Create Group, Group Setup, "You're all set", Intro, WelcomeScreen, QuestionCard, Summary, Review, Invite (mobile + desktop)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added a reusable copy-link field for invite/share flows
    • Introduced shared variant styles for button/controls to ensure consistent filled/gradient looks
  • Style

    • Enhanced gradients, shadows, muted opacities and hover/press feedback across many UI components
    • Refined animations, transitions, progress bars and typography for smoother, more consistent visuals
  • Documentation

    • Updated contribution guidance for conditional class composition in component markup

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]>
@coderabbitai

coderabbitai Bot commented Apr 12, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5d7d3b93-0363-4bdd-949c-011a4807ca6e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This 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

Cohort / File(s) Summary
Interactive Component Styling
packages/web/src/components/Button.tsx, AnatomyPicker.tsx, Card.tsx, SyncIndicator.tsx, ToggleGroup.tsx
Updated button and component variants to use gradient backgrounds with explicit shadow definitions, adjusted opacity levels for borders/backgrounds, refined hover states, and replaced single-color backgrounds with multi-part gradients. Modified disabled and active states with updated opacity and brightness transitions.
Screen UI Refinement
packages/web/src/screens/Comparison.tsx, GroupSetup.tsx, Intro.tsx, Invite.tsx, Landing.tsx, PersonApp.tsx, QuestionCard.tsx, Review.tsx, WelcomeScreen.tsx
Applied consistent styling updates across screens including reduced opacity backgrounds/borders, enhanced typography spacing/tracking, adjusted transition durations, refined container styling with gradient/shadow treatments, and minor component replacements (native button → Button component in PersonApp).
Progress Visualization
packages/web/src/screens/Summary.tsx
Added overallPct computation based on answered/total questions ratio; refactored progress bar styling to use inline gradients and conditional glow effects; updated tier selector with gradient/shadow-based visual treatment and adjusted category progress rendering with computed percentages per category.
Global CSS System
packages/web/src/index.css
Expanded background gradients, updated animation keyframes (fade-slide-in, float-a, float-b, celebrate) with adjusted timing/easing; added new shadow utility classes (.shadow-warm-sm, .shadow-warm, .shadow-warm-lg, .shadow-accent-glow); added @keyframes gentle-pulse animation; refined checkbox/scrollbar styling with updated transitions, opacity, and hover states.
Loading State
packages/web/src/main.tsx
Reduced loading text opacity from text-text-muted to text-text-muted/60 for visual hierarchy adjustment.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Poem

🐰 With gradients soft and shadows warm,
The buttons now take softer form,
Animations pulse with gentle grace,
Opacities find their perfect place!
A springtime refresh, smooth and bright,
Where every component shines just right. ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 9.09% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main design-focused changes: 'tactile depth' refers to the new gradients and shadows, 'editorial polish' aligns with typographic refinements and refined spacing across 17 frontend files.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 | 🟡 Minor

Prefer fully disabling animations in reduced-motion mode.

Line 288 shortens animation duration, but infinite animations can still keep cycling. In prefers-reduced-motion, set animation: none globally to ensure no residual motion (including newly added keyframes like gentle-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.
Using key={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 shared variantStyles to reduce duplication.

This variantStyles object is nearly identical to the one in Button.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 #c47048 color 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-dark would 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

📥 Commits

Reviewing files that changed from the base of the PR and between deb3441 and 88398d7.

📒 Files selected for processing (17)
  • packages/web/src/components/AnatomyPicker.tsx
  • packages/web/src/components/Button.tsx
  • packages/web/src/components/Card.tsx
  • packages/web/src/components/SyncIndicator.tsx
  • packages/web/src/components/ToggleGroup.tsx
  • packages/web/src/index.css
  • packages/web/src/main.tsx
  • packages/web/src/screens/Comparison.tsx
  • packages/web/src/screens/GroupSetup.tsx
  • packages/web/src/screens/Intro.tsx
  • packages/web/src/screens/Invite.tsx
  • packages/web/src/screens/Landing.tsx
  • packages/web/src/screens/PersonApp.tsx
  • packages/web/src/screens/QuestionCard.tsx
  • packages/web/src/screens/Review.tsx
  • packages/web/src/screens/Summary.tsx
  • packages/web/src/screens/WelcomeScreen.tsx

iskhakovt and others added 6 commits April 13, 2026 11:48
- 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]>
@iskhakovt
iskhakovt enabled auto-merge (squash) April 13, 2026 11:47

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🧹 Nitpick comments (1)
packages/web/src/lib/variant-styles.ts (1)

20-33: Model variantStyles with an explicit interface and exported Readonly contract.

Line 20 currently infers the object shape from the literal. Please define a VariantStyles interface and type the export as Readonly<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 use Readonly<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

📥 Commits

Reviewing files that changed from the base of the PR and between 88398d7 and 4ebb1a9.

⛔ Files ignored due to path filters (58)
  • e2e/visual/admin-flow.spec.ts-snapshots/end-of-questions-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/end-of-questions-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/intro-no-timing-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/intro-no-timing-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/intro-with-timing-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/intro-with-timing-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/invite-members-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/invite-members-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/question-timing-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/question-timing-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/question-unanswered-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/question-unanswered-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/results-2p-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/results-2p-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/review-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/review-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/setup-form-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/setup-form-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/setup-links-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/setup-links-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/summary-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/summary-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/waiting-admin-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/waiting-admin-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/welcome-screen-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/admin-flow.spec.ts-snapshots/welcome-screen-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/landing.spec.ts-snapshots/create-group-all-options-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/landing.spec.ts-snapshots/create-group-all-options-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/landing.spec.ts-snapshots/create-group-all-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/landing.spec.ts-snapshots/create-group-all-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/landing.spec.ts-snapshots/create-group-filtered-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/landing.spec.ts-snapshots/create-group-filtered-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/landing.spec.ts-snapshots/landing-home-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/landing.spec.ts-snapshots/landing-home-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/partner-flow.spec.ts-snapshots/pending-waiting-anatomy-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/partner-flow.spec.ts-snapshots/pending-waiting-anatomy-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/partner-flow.spec.ts-snapshots/pick-anatomy-expanded-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/partner-flow.spec.ts-snapshots/pick-anatomy-expanded-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/partner-flow.spec.ts-snapshots/pick-anatomy-partner-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/partner-flow.spec.ts-snapshots/pick-anatomy-partner-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/partner-flow.spec.ts-snapshots/pick-anatomy-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/partner-flow.spec.ts-snapshots/pick-anatomy-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/partner-flow.spec.ts-snapshots/waiting-non-admin-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/partner-flow.spec.ts-snapshots/waiting-non-admin-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/results-edge.spec.ts-snapshots/results-empty-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/results-edge.spec.ts-snapshots/results-empty-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/results-edge.spec.ts-snapshots/results-with-timing-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/results-edge.spec.ts-snapshots/results-with-timing-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/three-person.spec.ts-snapshots/invite-3-members-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/three-person.spec.ts-snapshots/invite-3-members-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/three-person.spec.ts-snapshots/results-3p-first-tab-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/three-person.spec.ts-snapshots/results-3p-first-tab-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/three-person.spec.ts-snapshots/results-3p-second-tab-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/three-person.spec.ts-snapshots/results-3p-second-tab-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/three-person.spec.ts-snapshots/results-3p-third-tab-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/three-person.spec.ts-snapshots/results-3p-third-tab-visual-mobile-linux.png is excluded by !**/*.png
  • e2e/visual/three-person.spec.ts-snapshots/waiting-3p-partial-visual-desktop-linux.png is excluded by !**/*.png
  • e2e/visual/three-person.spec.ts-snapshots/waiting-3p-partial-visual-mobile-linux.png is excluded by !**/*.png
📒 Files selected for processing (17)
  • CLAUDE.md
  • packages/web/src/components/AnatomyPicker.tsx
  • packages/web/src/components/Button.tsx
  • packages/web/src/components/ToggleGroup.tsx
  • packages/web/src/components/copy-link-field.tsx
  • packages/web/src/components/copy-my-link.tsx
  • packages/web/src/index.css
  • packages/web/src/lib/variant-styles.ts
  • packages/web/src/screens/Comparison.tsx
  • packages/web/src/screens/GroupSetup.tsx
  • packages/web/src/screens/Intro.tsx
  • packages/web/src/screens/Invite.tsx
  • packages/web/src/screens/Landing.tsx
  • packages/web/src/screens/PersonApp.tsx
  • packages/web/src/screens/QuestionCard.tsx
  • packages/web/src/screens/Review.tsx
  • packages/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

Comment on lines +30 to +35
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,
)}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

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.

Suggested change
--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.

Comment on lines +281 to +293
/* 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%);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

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.

Suggested change
/* 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.

Comment on lines +111 to +116
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",
)}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

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]>
@iskhakovt
iskhakovt merged commit 5c391b7 into main Apr 13, 2026
8 checks passed
@iskhakovt
iskhakovt deleted the feat/design-polish branch April 13, 2026 12:01
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant