Skip to content

Conversation

@jshwrnr
Copy link
Contributor

@jshwrnr jshwrnr commented Nov 3, 2025

A new landing page for Inbox Zero!

Summary by CodeRabbit

  • New Features

    • Full landing redesign: new header/footer, playable hero video, Unicorn scene, brand marquee, pricing with billing toggle, many sections (Awards, Pricing, Testimonials, FAQs, Organized Inbox, Pre‑written Drafts, Started in Minutes, Bulk Unsubscribe, Buy Back Time, Everything Else), new UI primitives, animated word/blur reveals, liquid‑glass button, and CTAs with optional “Talk to sales”.
  • Chores

    • Enabled editor format‑on‑save, added new fonts and marquee animations, centralized public user count, tightened marketing copy spacing, and added motion/animation support.

Note

Introduces a new landing page with modular sections, shared UI components, icons, and images, wiring it into the web app layout.

  • Web App:
    • Landing Route: Add apps/web/app/(landing)/new-landing/page.tsx; update apps/web/app/layout.tsx integration.
    • Sections: Implement modular sections in components/new-landing/sections/* (Hero, Header, Pricing, Testimonials, FAQs, Organized Inbox, PreWrittenDrafts, StartedInMinutes, BulkUnsubscribe, BuyBackTime, EverythingElse, Awards, Footer).
    • Shared UI Primitives: Add components/new-landing/common/* (Button, Card, Typography, Layout, animations like BlurFade, WordReveal).
    • Feature Components: Add BrandScroller, UnicornScene, LiquidGlassButton, HeaderLinks, CallToAction, FooterLineLogo.
    • Icons: Add icon set under components/new-landing/icons/* (e.g., Analytics, Chat, Gmail, Outlook, Sparkle, Zap, etc.).
    • Assets: Add marketing images under apps/web/public/images/new-landing/*.
    • Testimonials: Add/update apps/web/app/(landing)/home/Testimonials.tsx.
    • Package: Update apps/web/package.json for new landing components/assets.

Written by Cursor Bugbot for commit 6ddbb9b. Configure here.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

4 issues found across 5 files (reviewed changes from recent commits).

4 issues found across 5 files

Prompt for AI agents (all 4 issues)

Understand the root cause of the following 4 issues and fix them.


<file name="apps/web/components/new-landing/sections/Footer.tsx">

<violation number="1" location="apps/web/components/new-landing/sections/Footer.tsx:139">
`opacity-15` is not a generated Tailwind utility here, so the UnicornScene stays fully opaque instead of the intended semi-transparent look. Use an arbitrary value class (e.g. `opacity-[0.15]`) or extend the opacity scale to include 15%.</violation>
</file>

<file name="apps/web/components/new-landing/common/Button.tsx">

<violation number="1" location="apps/web/components/new-landing/common/Button.tsx:26">
The new hover transform uses hover:scale-[104%], which generates transform: scale(104%). CSS scale() requires a unitless number, so the percentage makes the rule invalid and removes the hover grow effect. Please use a unitless value such as hover:scale-[1.04] instead.</violation>

<violation number="2" location="apps/web/components/new-landing/common/Button.tsx:39">
The hover background class hover:bg-gray-[#F5F5F5] doesn’t match Tailwind’s arbitrary color syntax, so the generated stylesheet won’t include it and the hover background stops changing. Please use hover:bg-[#F5F5F5] (or a named scale like hover:bg-gray-50).</violation>

<violation number="3" location="apps/web/components/new-landing/common/Button.tsx:70">
This wrapper now uses hover:scale-[104%], which compiles to transform: scale(104%). Since CSS scale() expects a unitless number, the hover transform becomes invalid, removing the intended hover enlargement. Switching to hover:scale-[1.04] preserves the design intent.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

♻️ Duplicate comments (2)
apps/web/components/new-landing/HeaderLinks.tsx (2)

135-143: Add rel="noopener noreferrer" to external links.

Links that open in a new tab (target="_blank") are missing the rel="noopener noreferrer" attribute, which exposes the application to window.opener hijacking. This security issue has been flagged in previous reviews.

Apply this diff to secure external navigation:

                <Link
                  href={item.href}
                  target={item.target}
+                 rel={item.target === "_blank" ? "noopener noreferrer" : undefined}
                  prefetch={item.target !== "_blank"}
                  className="text-sm font-semibold leading-6 text-gray-900"
                >

162-169: Replace forbidden any type with explicit SVG props.

The icon property uses React.ComponentType<any>, which violates the coding guidelines against using any. Use an explicit SVG prop signature for type safety. This issue has been flagged in previous reviews.

Apply this diff:

+import type { ComponentType, SVGProps } from "react";
+
 }: React.ComponentPropsWithoutRef<"li"> & {
   href: string;
-  icon: React.ComponentType<any>;
+  icon: ComponentType<SVGProps<SVGSVGElement>>;
   iconColor: string;
🧹 Nitpick comments (1)
apps/web/components/new-landing/HeaderLinks.tsx (1)

35-96: Well-structured use cases data.

The useCases array provides all necessary data for the Solutions dropdown. The inline styling values (colors, gradients) are readable in context, though you could optionally extract them to a theming constant if this pattern expands.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e372df6 and 967e599.

📒 Files selected for processing (1)
  • apps/web/components/new-landing/HeaderLinks.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (11)
apps/web/**/*.{ts,tsx}

📄 CodeRabbit inference engine (apps/web/CLAUDE.md)

apps/web/**/*.{ts,tsx}: Use TypeScript with strict null checks
Path aliases: Use @/ for imports from project root
Use proper error handling with try/catch blocks
Format code with Prettier
Leverage TypeScript inference for better DX

Files:

  • apps/web/components/new-landing/HeaderLinks.tsx
apps/web/**/*.tsx

📄 CodeRabbit inference engine (apps/web/CLAUDE.md)

apps/web/**/*.tsx: Follow tailwindcss patterns with prettier-plugin-tailwindcss
Prefer functional components with hooks
Use shadcn/ui components when available
Ensure responsive design with mobile-first approach
Follow consistent naming conventions (PascalCase for components)
Use LoadingContent component for async data
Use result?.serverError with toastError and toastSuccess
Use LoadingContent component to handle loading and error states consistently
Pass loading, error, and children props to LoadingContent

Files:

  • apps/web/components/new-landing/HeaderLinks.tsx
apps/web/components/**/*.tsx

📄 CodeRabbit inference engine (apps/web/CLAUDE.md)

Use React Hook Form with Zod validation for form handling

Use the LoadingContent component to handle loading and error states consistently in data-fetching components.

Use PascalCase for components (e.g. components/Button.tsx)

Files:

  • apps/web/components/new-landing/HeaderLinks.tsx
!{.cursor/rules/*.mdc}

📄 CodeRabbit inference engine (.cursor/rules/cursor-rules.mdc)

Never place rule files in the project root, in subdirectories outside .cursor/rules, or in any other location

Files:

  • apps/web/components/new-landing/HeaderLinks.tsx
**/*.tsx

📄 CodeRabbit inference engine (.cursor/rules/form-handling.mdc)

**/*.tsx: Use React Hook Form with Zod for validation
Validate form inputs before submission
Show validation errors inline next to form fields

Files:

  • apps/web/components/new-landing/HeaderLinks.tsx
**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/logging.mdc)

**/*.{ts,tsx}: Use createScopedLogger for logging in backend TypeScript files
Typically add the logger initialization at the top of the file when using createScopedLogger
Only use .with() on a logger instance within a specific function, not for a global logger

Import Prisma in the project using import prisma from "@/utils/prisma";

**/*.{ts,tsx}: Don't use TypeScript enums.
Don't use TypeScript const enum.
Don't use the TypeScript directive @ts-ignore.
Don't use primitive type aliases or misleading types.
Don't use empty type parameters in type aliases and interfaces.
Don't use any or unknown as type constraints.
Don't use implicit any type on variable declarations.
Don't let variables evolve into any type through reassignments.
Don't use non-null assertions with the ! postfix operator.
Don't misuse the non-null assertion operator (!) in TypeScript files.
Don't use user-defined types.
Use as const instead of literal types and type annotations.
Use export type for types.
Use import type for types.
Don't declare empty interfaces.
Don't merge interfaces and classes unsafely.
Don't use overload signatures that aren't next to each other.
Use the namespace keyword instead of the module keyword to declare TypeScript namespaces.
Don't use TypeScript namespaces.
Don't export imported variables.
Don't add type annotations to variables, parameters, and class properties that are initialized with literal expressions.
Don't use parameter properties in class constructors.
Use either T[] or Array consistently.
Initialize each enum member value explicitly.
Make sure all enum members are literal values.

Files:

  • apps/web/components/new-landing/HeaderLinks.tsx
apps/web/components/!(ui)/**

📄 CodeRabbit inference engine (.cursor/rules/project-structure.mdc)

All other components are in components/

Files:

  • apps/web/components/new-landing/HeaderLinks.tsx
**/*.{js,jsx,ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)

**/*.{js,jsx,ts,tsx}: Don't use elements in Next.js projects.
Don't use elements in Next.js projects.
Don't use namespace imports.
Don't access namespace imports dynamically.
Don't use global eval().
Don't use console.
Don't use debugger.
Don't use var.
Don't use with statements in non-strict contexts.
Don't use the arguments object.
Don't use consecutive spaces in regular expression literals.
Don't use the comma operator.
Don't use unnecessary boolean casts.
Don't use unnecessary callbacks with flatMap.
Use for...of statements instead of Array.forEach.
Don't create classes that only have static members (like a static namespace).
Don't use this and super in static contexts.
Don't use unnecessary catch clauses.
Don't use unnecessary constructors.
Don't use unnecessary continue statements.
Don't export empty modules that don't change anything.
Don't use unnecessary escape sequences in regular expression literals.
Don't use unnecessary labels.
Don't use unnecessary nested block statements.
Don't rename imports, exports, and destructured assignments to the same name.
Don't use unnecessary string or template literal concatenation.
Don't use String.raw in template literals when there are no escape sequences.
Don't use useless case statements in switch statements.
Don't use ternary operators when simpler alternatives exist.
Don't use useless this aliasing.
Don't initialize variables to undefined.
Don't use the void operators (they're not familiar).
Use arrow functions instead of function expressions.
Use Date.now() to get milliseconds since the Unix Epoch.
Use .flatMap() instead of map().flat() when possible.
Use literal property access instead of computed property access.
Don't use parseInt() or Number.parseInt() when binary, octal, or hexadecimal literals work.
Use concise optional chaining instead of chained logical expressions.
Use regular expression literals instead of the RegExp constructor when possible.
Don't use number literal object member names th...

Files:

  • apps/web/components/new-landing/HeaderLinks.tsx
!pages/_document.{js,jsx,ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)

!pages/_document.{js,jsx,ts,tsx}: Don't import next/document outside of pages/_document.jsx in Next.js projects.
Don't import next/document outside of pages/_document.jsx in Next.js projects.

Files:

  • apps/web/components/new-landing/HeaderLinks.tsx
**/*.{jsx,tsx}

📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)

**/*.{jsx,tsx}: Don't destructure props inside JSX components in Solid projects.
Don't use both children and dangerouslySetInnerHTML props on the same element.
Don't use Array index in keys.
Don't assign to React component props.
Don't define React components inside other components.
Don't use event handlers on non-interactive elements.
Don't assign JSX properties multiple times.
Don't add extra closing tags for components without children.
Use <>...</> instead of ....
Don't insert comments as text nodes.
Don't use the return value of React.render.
Make sure all dependencies are correctly specified in React hooks.
Make sure all React hooks are called from the top level of component functions.
Don't use unnecessary fragments.
Don't pass children as props.
Use semantic elements instead of role attributes in JSX.

Files:

  • apps/web/components/new-landing/HeaderLinks.tsx
**/*.{html,jsx,tsx}

📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)

**/*.{html,jsx,tsx}: Don't use or elements.
Don't use accessKey attribute on any HTML element.
Don't set aria-hidden="true" on focusable elements.
Don't add ARIA roles, states, and properties to elements that don't support them.
Only use the scope prop on elements.
Don't assign non-interactive ARIA roles to interactive HTML elements.
Make sure label elements have text content and are associated with an input.
Don't assign interactive ARIA roles to non-interactive HTML elements.
Don't assign tabIndex to non-interactive HTML elements.
Don't use positive integers for tabIndex property.
Don't include "image", "picture", or "photo" in img alt prop.
Don't use explicit role property that's the same as the implicit/default role.
Make static elements with click handlers use a valid role attribute.
Always include a title element for SVG elements.
Give all elements requiring alt text meaningful information for screen readers.
Make sure anchors have content that's accessible to screen readers.
Assign tabIndex to non-interactive HTML elements with aria-activedescendant.
Include all required ARIA attributes for elements with ARIA roles.
Make sure ARIA properties are valid for the element's supported roles.
Always include a type attribute for button elements.
Make elements with interactive roles and handlers focusable.
Give heading elements content that's accessible to screen readers (not hidden with aria-hidden).
Always include a lang attribute on the html element.
Always include a title attribute for iframe elements.
Accompany onClick with at least one of: onKeyUp, onKeyDown, or onKeyPress.
Accompany onMouseOver/onMouseOut with onFocus/onBlur.
Include caption tracks for audio and video elements.
Make sure all anchors are valid and navigable.
Ensure all ARIA properties (aria-*) are valid.
Use valid, non-abstract ARIA roles for elements with ARIA roles.
Use valid ARIA state and property values.
Use valid values for the autocomplete attribute on input eleme...

Files:

  • apps/web/components/new-landing/HeaderLinks.tsx
🧠 Learnings (14)
📓 Common learnings
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ui-components.mdc:0-0
Timestamp: 2025-07-19T17:50:22.078Z
Learning: Applies to components/**/*.tsx : Use Shadcn UI and Tailwind for components and styling
📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm.mdc:0-0
Timestamp: 2025-09-17T22:05:28.646Z
Learning: Applies to apps/web/utils/{ai,llms}/**/*.{ts,tsx} : Keep related AI functions co-located and extract common patterns into utilities; document complex AI logic with clear comments

Applied to files:

  • apps/web/components/new-landing/HeaderLinks.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Make sure all anchors are valid and navigable.

Applied to files:

  • apps/web/components/new-landing/HeaderLinks.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Make sure anchors have content that's accessible to screen readers.

Applied to files:

  • apps/web/components/new-landing/HeaderLinks.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Make static elements with click handlers use a valid role attribute.

Applied to files:

  • apps/web/components/new-landing/HeaderLinks.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{ts,tsx} : Don't use primitive type aliases or misleading types.

Applied to files:

  • apps/web/components/new-landing/HeaderLinks.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{ts,tsx} : Don't use implicit any type on variable declarations.

Applied to files:

  • apps/web/components/new-landing/HeaderLinks.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Make sure all dependencies are correctly specified in React hooks.

Applied to files:

  • apps/web/components/new-landing/HeaderLinks.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Always include a type attribute for button elements.

Applied to files:

  • apps/web/components/new-landing/HeaderLinks.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Use semantic elements instead of role attributes in JSX.

Applied to files:

  • apps/web/components/new-landing/HeaderLinks.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Don't destructure props inside JSX components in Solid projects.

Applied to files:

  • apps/web/components/new-landing/HeaderLinks.tsx
📚 Learning: 2025-07-18T15:04:30.467Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: apps/web/CLAUDE.md:0-0
Timestamp: 2025-07-18T15:04:30.467Z
Learning: Applies to apps/web/**/*.tsx : Follow consistent naming conventions (PascalCase for components)

Applied to files:

  • apps/web/components/new-landing/HeaderLinks.tsx
📚 Learning: 2025-07-20T09:00:16.505Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/project-structure.mdc:0-0
Timestamp: 2025-07-20T09:00:16.505Z
Learning: Applies to apps/web/components/**/*.tsx : Use PascalCase for components (e.g. `components/Button.tsx`)

Applied to files:

  • apps/web/components/new-landing/HeaderLinks.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Don't assign to React component props.

Applied to files:

  • apps/web/components/new-landing/HeaderLinks.tsx
🧬 Code graph analysis (1)
apps/web/components/new-landing/HeaderLinks.tsx (1)
apps/web/utils/config.ts (1)
  • EXTENSION_URL (25-25)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: cubic · AI code reviewer
  • GitHub Check: Jit Security
🔇 Additional comments (3)
apps/web/components/new-landing/HeaderLinks.tsx (3)

1-23: LGTM: Clean imports and proper client directive.

The "use client" directive is correctly placed, imports use path aliases properly, and React 19 with the modern JSX transform means no explicit React import is needed.


24-33: LGTM: Navigation array is well-structured.

The navigation items are cleanly defined with proper use of const assertions for the target property and good use of the EXTENSION_URL constant from config.


170-209: Solid implementation of the list item rendering.

The EnhancedListItem rendering is well-structured with proper use of NavigationMenuLink, clean gradient styling for visual hierarchy, and good hover/focus states. The component is accessible and follows React best practices.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/web/app/(landing)/home/Testimonials.tsx (1)

268-274: Apply consistent alt text to desktop testimonials.

The mobile testimonials (Line 192) now have meaningful alt text, but the desktop non-featured testimonials still use empty alt text. All author images should be accessible to screen readers.

Apply this diff to maintain consistency:

                       <Image
                         className="h-10 w-10 rounded-full bg-gray-50"
                         src={testimonial.author.imageUrl}
-                        alt=""
+                        alt={testimonial.author.name}
                         width={40}
                         height={40}
                       />

Based on learnings

♻️ Duplicate comments (8)
apps/web/components/new-landing/common/WordReveal.tsx (1)

20-27: Array index used as React key.

This violates the coding guideline "Don't use Array index in keys" and has already been flagged in previous review comments. Please refer to the existing review comment for the suggested fix.

As per coding guidelines.

apps/web/components/new-landing/common/BlurFade.tsx (1)

18-21: Incomplete variant prop type definition.

The variant prop type only specifies y properties, but defaultVariants (lines 46-49) also uses opacity and filter. This issue has already been flagged in previous review comments with suggested fixes.

apps/web/components/new-landing/sections/Pricing.tsx (3)

11-25: Separate type-only imports.

The inline type imports for ButtonVariant and BadgeVariant should use separate import type statements per coding guidelines.

As per coding guidelines.


1-45: Add missing ReactNode import.

The TierAddon type references React.ReactNode but React is not imported.


92-92: Fix malformed shadow opacity value.

The shadow contains 0.0.07 which is invalid—it should be 0.07.

Apply this diff:

-          className="w-fit rounded-full p-1.5 text-xs font-semibold leading-5 ring-1 ring-inset ring-gray-200 mb-6 shadow-[0_0_7px_0_rgba(0,0,0,0.0.07)]"
+          className="w-fit rounded-full p-1.5 text-xs font-semibold leading-5 ring-1 ring-inset ring-gray-200 mb-6 shadow-[0_0_7px_0_rgba(0,0,0,0.07)]"
apps/web/components/new-landing/common/Card.tsx (3)

1-18: Add missing ReactNode import.

The file references React.ReactNode in multiple interfaces but never imports React, causing a compilation error.


28-33: Fix header row conditional to include icon.

The header row only renders when title || addon exists, but icon is rendered inside that row. When only an icon is provided without title or addon, the entire row is skipped and the icon never appears.


34-43: Fix title margin logic.

The margin is applied when title || addon exists, but should apply when icon || addon exists to maintain consistent spacing from the header row above.

🧹 Nitpick comments (5)
apps/web/components/new-landing/common/WordReveal.tsx (2)

3-16: Consider stricter prop validation.

The component accepts both children and words as optional, but at least one should be provided for meaningful output. If neither is provided, wordsToReveal becomes an empty array and nothing renders.

Consider either:

  1. Making this explicit in the types (e.g., requiring at least one via union types)
  2. Adding a runtime check with a helpful error/warning
  3. Documenting the expected usage in a JSDoc comment

Additionally, React.ReactNode[] for words is very permissive—if this component is specifically for text reveal animations, consider using string[] instead.


23-25: Simplify spacing implementation.

The current approach adds an extra <span> element with Tailwind classes for spacing. Since you're already checking the index, you could simplify by rendering a plain space character instead:

          {word}
-         {index < wordsToReveal.length - 1 && (
-           <span className="inline-block w-3"> </span>
-         )}
+         {index < wordsToReveal.length - 1 && " "}
        </BlurFade>

This reduces the DOM node count and is simpler to maintain. If you need the specific width for visual spacing, the current approach is fine.

apps/web/components/new-landing/common/BlurFade.tsx (2)

38-45: Confusing prop naming and logic.

The inView prop and isInView variable have confusing semantics:

  • When inView={false} (the default), the animation is always visible (isInView = true)
  • When inView={true}, visibility depends on viewport intersection

The prop name inView suggests "is the element in the viewport?", but it actually means "enable viewport-based animation". Consider renaming for clarity:

- inView?: boolean;
+ useInViewAnimation?: boolean;
- const isInView = !inView || inViewResult;
+ const isInView = !useInViewAnimation || inViewResult;

This makes the logic more self-documenting: "if we're not using inView animation, always show; otherwise check the viewport."


54-70: Consider removing AnimatePresence wrapper.

AnimatePresence is typically used for components that mount/unmount, but this component remains in the DOM and only changes its animate state between "hidden" and "visible". The wrapper may be unnecessary overhead.

Unless you have a specific use case requiring exit animations when the component unmounts, you can simplify:

  return (
-   <AnimatePresence>
      <MotionComponent
        ref={ref}
        initial="hidden"
        animate={isInView ? "visible" : "hidden"}
-       exit="hidden"
        variants={combinedVariants}
        transition={{
          delay: 0.04 + delay,
          duration,
          ease: "easeOut",
        }}
        className={cx(className, as === "span" ? "inline-block" : "")}
      >
        {children}
      </MotionComponent>
-   </AnimatePresence>
  );
apps/web/components/new-landing/sections/Pricing.tsx (1)

138-138: Add defensive guard for tierAddons lookup to prevent fragile array coupling.

The tiers array (3 entries: businessTier, businessPlusTier, enterpriseTier) and tierAddons array (3 entries) are currently synchronized, but accessing tierAddons[tierIndex] without validation creates a fragile coupling. If tiers is extended in the future without updating tierAddons, this will crash at runtime.

Add a defensive check:

-  const { badges, button, icon } = tierAddons[tierIndex];
+  const addon = tierAddons[tierIndex];
+  if (!addon) {
+    throw new Error(`Missing tierAddon for tier index ${tierIndex}`);
+  }
+  const { badges, button, icon } = addon;

This prevents silent failures when the arrays drift out of sync.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 967e599 and e5f3ef6.

📒 Files selected for processing (9)
  • apps/web/app/(landing)/home/Testimonials.tsx (2 hunks)
  • apps/web/components/new-landing/common/BlurFade.tsx (1 hunks)
  • apps/web/components/new-landing/common/Card.tsx (1 hunks)
  • apps/web/components/new-landing/common/DisplayCard.tsx (1 hunks)
  • apps/web/components/new-landing/common/WordReveal.tsx (1 hunks)
  • apps/web/components/new-landing/icons/Sparkle.tsx (1 hunks)
  • apps/web/components/new-landing/sections/Awards.tsx (1 hunks)
  • apps/web/components/new-landing/sections/Hero.tsx (1 hunks)
  • apps/web/components/new-landing/sections/Pricing.tsx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (4)
  • apps/web/components/new-landing/sections/Awards.tsx
  • apps/web/components/new-landing/icons/Sparkle.tsx
  • apps/web/components/new-landing/common/DisplayCard.tsx
  • apps/web/components/new-landing/sections/Hero.tsx
🧰 Additional context used
📓 Path-based instructions (13)
apps/web/**/*.{ts,tsx}

📄 CodeRabbit inference engine (apps/web/CLAUDE.md)

apps/web/**/*.{ts,tsx}: Use TypeScript with strict null checks
Path aliases: Use @/ for imports from project root
Use proper error handling with try/catch blocks
Format code with Prettier
Leverage TypeScript inference for better DX

Files:

  • apps/web/app/(landing)/home/Testimonials.tsx
  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
apps/web/app/**

📄 CodeRabbit inference engine (apps/web/CLAUDE.md)

NextJS app router structure with (app) directory

Files:

  • apps/web/app/(landing)/home/Testimonials.tsx
apps/web/**/*.tsx

📄 CodeRabbit inference engine (apps/web/CLAUDE.md)

apps/web/**/*.tsx: Follow tailwindcss patterns with prettier-plugin-tailwindcss
Prefer functional components with hooks
Use shadcn/ui components when available
Ensure responsive design with mobile-first approach
Follow consistent naming conventions (PascalCase for components)
Use LoadingContent component for async data
Use result?.serverError with toastError and toastSuccess
Use LoadingContent component to handle loading and error states consistently
Pass loading, error, and children props to LoadingContent

Files:

  • apps/web/app/(landing)/home/Testimonials.tsx
  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
!{.cursor/rules/*.mdc}

📄 CodeRabbit inference engine (.cursor/rules/cursor-rules.mdc)

Never place rule files in the project root, in subdirectories outside .cursor/rules, or in any other location

Files:

  • apps/web/app/(landing)/home/Testimonials.tsx
  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
**/*.tsx

📄 CodeRabbit inference engine (.cursor/rules/form-handling.mdc)

**/*.tsx: Use React Hook Form with Zod for validation
Validate form inputs before submission
Show validation errors inline next to form fields

Files:

  • apps/web/app/(landing)/home/Testimonials.tsx
  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/logging.mdc)

**/*.{ts,tsx}: Use createScopedLogger for logging in backend TypeScript files
Typically add the logger initialization at the top of the file when using createScopedLogger
Only use .with() on a logger instance within a specific function, not for a global logger

Import Prisma in the project using import prisma from "@/utils/prisma";

**/*.{ts,tsx}: Don't use TypeScript enums.
Don't use TypeScript const enum.
Don't use the TypeScript directive @ts-ignore.
Don't use primitive type aliases or misleading types.
Don't use empty type parameters in type aliases and interfaces.
Don't use any or unknown as type constraints.
Don't use implicit any type on variable declarations.
Don't let variables evolve into any type through reassignments.
Don't use non-null assertions with the ! postfix operator.
Don't misuse the non-null assertion operator (!) in TypeScript files.
Don't use user-defined types.
Use as const instead of literal types and type annotations.
Use export type for types.
Use import type for types.
Don't declare empty interfaces.
Don't merge interfaces and classes unsafely.
Don't use overload signatures that aren't next to each other.
Use the namespace keyword instead of the module keyword to declare TypeScript namespaces.
Don't use TypeScript namespaces.
Don't export imported variables.
Don't add type annotations to variables, parameters, and class properties that are initialized with literal expressions.
Don't use parameter properties in class constructors.
Use either T[] or Array consistently.
Initialize each enum member value explicitly.
Make sure all enum members are literal values.

Files:

  • apps/web/app/(landing)/home/Testimonials.tsx
  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
apps/web/app/**/*.tsx

📄 CodeRabbit inference engine (.cursor/rules/project-structure.mdc)

Components with onClick must be client components with use client directive

Files:

  • apps/web/app/(landing)/home/Testimonials.tsx
**/*.{js,jsx,ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)

**/*.{js,jsx,ts,tsx}: Don't use elements in Next.js projects.
Don't use elements in Next.js projects.
Don't use namespace imports.
Don't access namespace imports dynamically.
Don't use global eval().
Don't use console.
Don't use debugger.
Don't use var.
Don't use with statements in non-strict contexts.
Don't use the arguments object.
Don't use consecutive spaces in regular expression literals.
Don't use the comma operator.
Don't use unnecessary boolean casts.
Don't use unnecessary callbacks with flatMap.
Use for...of statements instead of Array.forEach.
Don't create classes that only have static members (like a static namespace).
Don't use this and super in static contexts.
Don't use unnecessary catch clauses.
Don't use unnecessary constructors.
Don't use unnecessary continue statements.
Don't export empty modules that don't change anything.
Don't use unnecessary escape sequences in regular expression literals.
Don't use unnecessary labels.
Don't use unnecessary nested block statements.
Don't rename imports, exports, and destructured assignments to the same name.
Don't use unnecessary string or template literal concatenation.
Don't use String.raw in template literals when there are no escape sequences.
Don't use useless case statements in switch statements.
Don't use ternary operators when simpler alternatives exist.
Don't use useless this aliasing.
Don't initialize variables to undefined.
Don't use the void operators (they're not familiar).
Use arrow functions instead of function expressions.
Use Date.now() to get milliseconds since the Unix Epoch.
Use .flatMap() instead of map().flat() when possible.
Use literal property access instead of computed property access.
Don't use parseInt() or Number.parseInt() when binary, octal, or hexadecimal literals work.
Use concise optional chaining instead of chained logical expressions.
Use regular expression literals instead of the RegExp constructor when possible.
Don't use number literal object member names th...

Files:

  • apps/web/app/(landing)/home/Testimonials.tsx
  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
!pages/_document.{js,jsx,ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)

!pages/_document.{js,jsx,ts,tsx}: Don't import next/document outside of pages/_document.jsx in Next.js projects.
Don't import next/document outside of pages/_document.jsx in Next.js projects.

Files:

  • apps/web/app/(landing)/home/Testimonials.tsx
  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
**/*.{jsx,tsx}

📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)

**/*.{jsx,tsx}: Don't destructure props inside JSX components in Solid projects.
Don't use both children and dangerouslySetInnerHTML props on the same element.
Don't use Array index in keys.
Don't assign to React component props.
Don't define React components inside other components.
Don't use event handlers on non-interactive elements.
Don't assign JSX properties multiple times.
Don't add extra closing tags for components without children.
Use <>...</> instead of ....
Don't insert comments as text nodes.
Don't use the return value of React.render.
Make sure all dependencies are correctly specified in React hooks.
Make sure all React hooks are called from the top level of component functions.
Don't use unnecessary fragments.
Don't pass children as props.
Use semantic elements instead of role attributes in JSX.

Files:

  • apps/web/app/(landing)/home/Testimonials.tsx
  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
**/*.{html,jsx,tsx}

📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)

**/*.{html,jsx,tsx}: Don't use or elements.
Don't use accessKey attribute on any HTML element.
Don't set aria-hidden="true" on focusable elements.
Don't add ARIA roles, states, and properties to elements that don't support them.
Only use the scope prop on elements.
Don't assign non-interactive ARIA roles to interactive HTML elements.
Make sure label elements have text content and are associated with an input.
Don't assign interactive ARIA roles to non-interactive HTML elements.
Don't assign tabIndex to non-interactive HTML elements.
Don't use positive integers for tabIndex property.
Don't include "image", "picture", or "photo" in img alt prop.
Don't use explicit role property that's the same as the implicit/default role.
Make static elements with click handlers use a valid role attribute.
Always include a title element for SVG elements.
Give all elements requiring alt text meaningful information for screen readers.
Make sure anchors have content that's accessible to screen readers.
Assign tabIndex to non-interactive HTML elements with aria-activedescendant.
Include all required ARIA attributes for elements with ARIA roles.
Make sure ARIA properties are valid for the element's supported roles.
Always include a type attribute for button elements.
Make elements with interactive roles and handlers focusable.
Give heading elements content that's accessible to screen readers (not hidden with aria-hidden).
Always include a lang attribute on the html element.
Always include a title attribute for iframe elements.
Accompany onClick with at least one of: onKeyUp, onKeyDown, or onKeyPress.
Accompany onMouseOver/onMouseOut with onFocus/onBlur.
Include caption tracks for audio and video elements.
Make sure all anchors are valid and navigable.
Ensure all ARIA properties (aria-*) are valid.
Use valid, non-abstract ARIA roles for elements with ARIA roles.
Use valid ARIA state and property values.
Use valid values for the autocomplete attribute on input eleme...

Files:

  • apps/web/app/(landing)/home/Testimonials.tsx
  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
apps/web/components/**/*.tsx

📄 CodeRabbit inference engine (apps/web/CLAUDE.md)

Use React Hook Form with Zod validation for form handling

Use the LoadingContent component to handle loading and error states consistently in data-fetching components.

Use PascalCase for components (e.g. components/Button.tsx)

Files:

  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
apps/web/components/!(ui)/**

📄 CodeRabbit inference engine (.cursor/rules/project-structure.mdc)

All other components are in components/

Files:

  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
🧠 Learnings (54)
📓 Common learnings
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ui-components.mdc:0-0
Timestamp: 2025-07-19T17:50:22.078Z
Learning: Applies to components/**/*.tsx : Use Shadcn UI and Tailwind for components and styling
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Give all elements requiring alt text meaningful information for screen readers.

Applied to files:

  • apps/web/app/(landing)/home/Testimonials.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Don't include "image", "picture", or "photo" in img alt prop.

Applied to files:

  • apps/web/app/(landing)/home/Testimonials.tsx
📚 Learning: 2025-10-02T23:23:48.064Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm-test.mdc:0-0
Timestamp: 2025-10-02T23:23:48.064Z
Learning: Applies to apps/web/__tests__/**/*.test.ts : Test both AI and non-AI paths, including cases where no AI processing is required

Applied to files:

  • apps/web/app/(landing)/home/Testimonials.tsx
📚 Learning: 2025-07-18T15:04:30.467Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: apps/web/CLAUDE.md:0-0
Timestamp: 2025-07-18T15:04:30.467Z
Learning: Applies to apps/web/**/*.tsx : Ensure responsive design with mobile-first approach

Applied to files:

  • apps/web/app/(landing)/home/Testimonials.tsx
  • apps/web/components/new-landing/common/Card.tsx
📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm.mdc:0-0
Timestamp: 2025-09-17T22:05:28.646Z
Learning: Applies to apps/web/utils/{ai,llms}/**/*.{ts,tsx} : Keep related AI functions co-located and extract common patterns into utilities; document complex AI logic with clear comments

Applied to files:

  • apps/web/app/(landing)/home/Testimonials.tsx
  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-19T17:50:22.078Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ui-components.mdc:0-0
Timestamp: 2025-07-19T17:50:22.078Z
Learning: Applies to components/**/*.tsx : Use `next/image` package for images

Applied to files:

  • apps/web/app/(landing)/home/Testimonials.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Make sure anchors have content that's accessible to screen readers.

Applied to files:

  • apps/web/app/(landing)/home/Testimonials.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Use semantic elements instead of role attributes in JSX.

Applied to files:

  • apps/web/app/(landing)/home/Testimonials.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Accompany onMouseOver/onMouseOut with onFocus/onBlur.

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
📚 Learning: 2025-07-18T15:07:12.415Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/posthog-feature-flags.mdc:0-0
Timestamp: 2025-07-18T15:07:12.415Z
Learning: Applies to apps/web/hooks/useFeatureFlags.ts : Always define types for variant flags

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{ts,tsx} : Don't use primitive type aliases or misleading types.

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-18T15:07:12.415Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/posthog-feature-flags.mdc:0-0
Timestamp: 2025-07-18T15:07:12.415Z
Learning: Applies to apps/web/hooks/useFeatureFlags.ts : Always provide a default/control fallback for variant flags

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{ts,tsx} : Don't use implicit any type on variable declarations.

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{ts,tsx} : Don't use empty type parameters in type aliases and interfaces.

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Don't use explicit role property that's the same as the implicit/default role.

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{ts,tsx} : Don't use any or unknown as type constraints.

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Use <>...</> instead of <Fragment>...</Fragment>.

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm.mdc:0-0
Timestamp: 2025-09-17T22:05:28.646Z
Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : Remove excessive whitespace and truncate long inputs in prompts

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm.mdc:0-0
Timestamp: 2025-09-17T22:05:28.646Z
Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : User prompt should contain the actual data and context

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm.mdc:0-0
Timestamp: 2025-09-17T22:05:28.646Z
Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : System prompt should define the LLM's role and task specifications

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm.mdc:0-0
Timestamp: 2025-09-17T22:05:28.646Z
Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : Keep system prompts and user prompts separate

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Use valid ARIA state and property values.

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Don't set aria-hidden="true" on focusable elements.

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm.mdc:0-0
Timestamp: 2025-09-17T22:05:28.646Z
Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : Format prompt data consistently across similar functions

Applied to files:

  • apps/web/components/new-landing/common/BlurFade.tsx
  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm.mdc:0-0
Timestamp: 2025-09-17T22:05:28.646Z
Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : LLM feature functions should follow the provided TypeScript pattern (separate system/user prompts, use createGenerateObject, Zod schema validation, early validation, return result.object)

Applied to files:

  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm.mdc:0-0
Timestamp: 2025-09-17T22:05:28.646Z
Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : Use XML-like tags to structure data in prompts

Applied to files:

  • apps/web/components/new-landing/common/Card.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Make sure all dependencies are correctly specified in React hooks.

Applied to files:

  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Don't destructure props inside JSX components in Solid projects.

Applied to files:

  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Don't assign to React component props.

Applied to files:

  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Don't define React components inside other components.

Applied to files:

  • apps/web/components/new-landing/common/Card.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/components/new-landing/common/WordReveal.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Don't use both children and dangerouslySetInnerHTML props on the same element.

Applied to files:

  • apps/web/components/new-landing/common/Card.tsx
📚 Learning: 2025-07-18T15:04:30.467Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: apps/web/CLAUDE.md:0-0
Timestamp: 2025-07-18T15:04:30.467Z
Learning: Applies to apps/web/**/*.tsx : Pass `loading`, `error`, and children props to `LoadingContent`

Applied to files:

  • apps/web/components/new-landing/common/Card.tsx
📚 Learning: 2025-07-18T15:05:16.146Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/fullstack-workflow.mdc:0-0
Timestamp: 2025-07-18T15:05:16.146Z
Learning: Applies to apps/web/components/**/*.tsx : Use the `LoadingContent` component to handle loading and error states consistently in data-fetching components.

Applied to files:

  • apps/web/components/new-landing/common/Card.tsx
📚 Learning: 2025-07-18T15:04:30.467Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: apps/web/CLAUDE.md:0-0
Timestamp: 2025-07-18T15:04:30.467Z
Learning: Applies to apps/web/**/*.tsx : Use `LoadingContent` component to handle loading and error states consistently

Applied to files:

  • apps/web/components/new-landing/common/Card.tsx
📚 Learning: 2025-07-19T17:50:22.078Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ui-components.mdc:0-0
Timestamp: 2025-07-19T17:50:22.078Z
Learning: Applies to components/**/*.tsx : Use the `LoadingContent` component to handle loading states

Applied to files:

  • apps/web/components/new-landing/common/Card.tsx
📚 Learning: 2025-07-18T15:04:30.467Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: apps/web/CLAUDE.md:0-0
Timestamp: 2025-07-18T15:04:30.467Z
Learning: Applies to apps/web/**/*.tsx : Follow consistent naming conventions (PascalCase for components)

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-20T09:00:16.505Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/project-structure.mdc:0-0
Timestamp: 2025-07-20T09:00:16.505Z
Learning: Applies to apps/web/components/**/*.tsx : Use PascalCase for components (e.g. `components/Button.tsx`)

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{js,jsx,ts,tsx} : Don't use consecutive spaces in regular expression literals.

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{js,jsx,ts,tsx} : Don't use duplicate class members.

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2024-08-23T11:37:26.779Z
Learnt from: aryanprince
Repo: elie222/inbox-zero PR: 210
File: apps/web/app/(app)/stats/NewsletterModal.tsx:2-4
Timestamp: 2024-08-23T11:37:26.779Z
Learning: `MoreDropdown` is a React component and `useUnsubscribeButton` is a custom React hook, and they should not be imported using `import type`.

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{ts,tsx} : Use import type for types.

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Make sure all React hooks are called from the top level of component functions.

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-06-23T12:26:53.882Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/prisma.mdc:0-0
Timestamp: 2025-06-23T12:26:53.882Z
Learning: In this project, Prisma should be imported using 'import prisma from "@/utils/prisma";' in TypeScript files.

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-18T15:04:30.467Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: apps/web/CLAUDE.md:0-0
Timestamp: 2025-07-18T15:04:30.467Z
Learning: Applies to apps/web/**/*.tsx : Use shadcn/ui components when available

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Always include a type attribute for button elements.

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm.mdc:0-0
Timestamp: 2025-09-17T22:05:28.646Z
Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : Use TypeScript types for all parameters and return values in LLM features

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{ts,tsx} : Don't misuse the non-null assertion operator (!) in TypeScript files.

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-18T15:07:12.415Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/posthog-feature-flags.mdc:0-0
Timestamp: 2025-07-18T15:07:12.415Z
Learning: Applies to apps/web/hooks/useFeatureFlags.ts : Use kebab-case for feature flag keys (e.g., 'inbox-cleaner', 'pricing-options-2')

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Don't use Array index in keys.

Applied to files:

  • apps/web/components/new-landing/common/WordReveal.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Don't assign JSX properties multiple times.

Applied to files:

  • apps/web/components/new-landing/common/WordReveal.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Don't use positive integers for tabIndex property.

Applied to files:

  • apps/web/components/new-landing/common/WordReveal.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{jsx,tsx} : Don't use unnecessary fragments.

Applied to files:

  • apps/web/components/new-landing/common/WordReveal.tsx
📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Don't use accessKey attribute on any HTML element.

Applied to files:

  • apps/web/components/new-landing/common/WordReveal.tsx
🧬 Code graph analysis (3)
apps/web/components/new-landing/common/Card.tsx (1)
apps/web/components/new-landing/common/Typography.tsx (1)
  • Paragraph (80-116)
apps/web/components/new-landing/sections/Pricing.tsx (8)
apps/web/components/new-landing/common/Badge.tsx (2)
  • BadgeVariant (3-15)
  • Badge (24-99)
apps/web/components/new-landing/common/Button.tsx (2)
  • ButtonVariant (3-3)
  • Button (14-103)
apps/web/components/new-landing/common/Section.tsx (2)
  • Section (8-14)
  • SectionContent (22-32)
apps/web/components/new-landing/common/Typography.tsx (4)
  • SectionHeading (34-40)
  • SectionSubtitle (46-52)
  • Subheading (59-70)
  • Paragraph (80-116)
apps/web/app/(app)/premium/config.ts (2)
  • tiers (242-242)
  • Tier (6-17)
apps/web/components/new-landing/common/CardWrapper.tsx (1)
  • CardWrapper (11-51)
apps/web/components/new-landing/common/Card.tsx (2)
  • Card (63-99)
  • CardContent (9-11)
apps/web/components/new-landing/icons/Check.tsx (1)
  • Check (1-19)
apps/web/components/new-landing/common/WordReveal.tsx (1)
apps/web/components/new-landing/common/BlurFade.tsx (1)
  • BlurFade (31-72)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: cubic · AI code reviewer
  • GitHub Check: Jit Security
🔇 Additional comments (1)
apps/web/app/(landing)/home/Testimonials.tsx (1)

192-192: LGTM! Good accessibility improvement.

The alt text now provides meaningful information for screen readers, helping users understand whose testimonial photo is being displayed.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 8 files

Comment on lines +11 to +12
export function Anchor({ href, newTab, className, children }: AnchorProps) {
return (
Copy link
Owner

Choose a reason for hiding this comment

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

no need to put these in their own file in general. if it's used in just one place im happy for it to be colocated in the file it's used

Copy link
Owner

Choose a reason for hiding this comment

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

no need to change, but just for the future

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, will move it to the FAQs file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wait, I feel like this will potentially be used in other place though. It's a pretty general component. There won't be a use for underlined links anywhere else?

@elie222 elie222 changed the title [WIP] Feat/new landing Feat/new landing Nov 11, 2025
@elie222 elie222 changed the title Feat/new landing New landing page Nov 11, 2025
@elie222 elie222 merged commit a2d04ac into elie222:main Nov 11, 2025
9 of 11 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants