Skip to content

Comments

Release new landing#953

Merged
elie222 merged 11 commits intomainfrom
feat/release-new-landing
Nov 12, 2025
Merged

Release new landing#953
elie222 merged 11 commits intomainfrom
feat/release-new-landing

Conversation

@elie222
Copy link
Owner

@elie222 elie222 commented Nov 12, 2025

Summary by CodeRabbit

  • New Features

    • Site-wide analytics for video, Get Started, Log in, Talk to Sales, and pricing CTAs
  • Improvements

    • CTA buttons behave as navigation links and consistently show two actions
    • Sections now support id anchors
    • Smoother transition timing for animations
  • UI Updates

    • Landing page content and final call-to-action reorganized and renamed
    • Removed "Extension" from header navigation
    • Pricing tier buttons now link directly to signup/sales
  • Chores

    • Version bumped to v2.18.21

@vercel
Copy link

vercel bot commented Nov 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
inbox-zero Ready Ready Preview Nov 12, 2025 0:09am

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 12, 2025

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

Removes the dedicated new-landing page, adds an archived old-landing page, reorganizes the main landing composition, introduces shared landingPageAnalytics helpers and wires them into CTAs and header/video triggers, updates Button to support asChild/Slot and spreads native button props, extends Pricing CTA model with href/target, small UI/timing tweaks, and bumps the version.

Changes

Cohort / File(s) Summary
Landing pages
apps/web/app/(landing)/page.tsx, apps/web/app/(landing)/new-landing/page.tsx, apps/web/app/(landing)/old-landing/page.tsx
Removed the dedicated new-landing page file; added old-landing/page.tsx; updated main (landing)/page.tsx composition and renamed its default export to NewLanding.
Call to action & header CTAs
apps/web/components/new-landing/CallToAction.tsx, apps/web/components/new-landing/sections/FinalCTA.tsx, apps/web/components/new-landing/sections/Header.tsx, apps/web/app/(landing)/home/CTAButtons.tsx, apps/web/app/(landing)/home/Header.tsx
CTAs and header/login buttons now use Link (via asChild) and call shared landingPageAnalytics helpers; removed includeSalesButton usage; BuyBackTime renamed to FinalCTA and its CallToAction invocation simplified.
Button core & Section API
apps/web/components/new-landing/common/Button.tsx, apps/web/components/new-landing/common/Section.tsx
Button API: removed icon, now extends native button attributes, adds asChild?: boolean, uses Radix Slot when asChild is true and spreads remaining props; Section accepts optional id and applies it to the <section>.
Pricing & data model
apps/web/components/new-landing/sections/Pricing.tsx
Pricing tier model extended: button now includes href and optional target; CTA buttons are wrapped with Link (asChild) and analytics are wired; Pricing section set to id="pricing".
Header links & animation
apps/web/components/new-landing/HeaderLinks.tsx, apps/web/components/new-landing/LiquidGlassButton.tsx, apps/web/tailwind.config.js
Removed "Extension" nav item and EXTENSION_URL import; timing function adjusted and new back-out easing added to Tailwind config.
Hero & video dialog analytics
apps/web/components/new-landing/sections/Hero.tsx, apps/web/components/HeroVideoDialog.tsx
Video CTA and Hero dialog now call landingPageAnalytics.videoClicked(posthog); dialog max width increased for video content.
Analytics helper
apps/web/hooks/useAnalytics.ts
Added exported landingPageAnalytics helpers (videoClicked, getStartedClicked, talkToSalesClicked, logInClicked, signUpClicked, pricingCtaClicked) that delegate to posthog.capture.
Layout & styling tweaks
apps/web/app/(landing)/layout.tsx, apps/web/components/new-landing/common/BasicLayout.tsx
Renamed AppLayoutLandingLayout; added font-geist class to BasicLayout root.
Miscellaneous
version.txt
Version bumped from v2.18.20v2.18.21.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ButtonComp as Button (asChild Slot)
    participant LinkComp as Link/Router
    participant Analytics as landingPageAnalytics
    Note over ButtonComp,Analytics: CTA click flow (Get Started / Talk to Sales / Pricing)
    User->>ButtonComp: click CTA
    ButtonComp->>Analytics: landingPageAnalytics.*Clicked(posthog, ...)
    alt external target (_blank)
        ButtonComp->>LinkComp: open href in new tab (target=_blank)
    else same-origin
        ButtonComp->>LinkComp: navigate to href (e.g. /login)
    end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

  • Pay extra attention to:
    • apps/web/components/new-landing/common/Button.tsx — asChild/Slot integration, prop spreading, default type, and variant rendering.
    • CTA wiring across CallToAction, Header, and Pricing — Link wrapping, target handling, and analytics parameters.
    • Removal/addition of landing page files and any canonical metadata changes.
    • apps/web/hooks/useAnalytics.ts — exported helpers signatures and callers' usage.

Possibly related PRs

Poem

🐰 I hopped through files with nimble feet,

swapped pages, links, and analytics neat.
Buttons now leap and metrics sing,
Links take flight — hear the router spring.
Version bumped, I nibbled a treat. 🥕

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ 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 'Release new landing' directly and clearly summarizes the main change: deploying a new landing page design throughout the codebase.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/release-new-landing

📜 Recent 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 3671f4d and 06382bd.

📒 Files selected for processing (3)
  • apps/web/app/(landing)/layout.tsx (1 hunks)
  • apps/web/components/new-landing/common/BasicLayout.tsx (1 hunks)
  • apps/web/components/new-landing/sections/Pricing.tsx (10 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/web/components/new-landing/sections/Pricing.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/components/new-landing/common/BasicLayout.tsx
  • apps/web/app/(landing)/layout.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/common/BasicLayout.tsx
  • apps/web/app/(landing)/layout.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/BasicLayout.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/common/BasicLayout.tsx
  • apps/web/app/(landing)/layout.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/common/BasicLayout.tsx
  • apps/web/app/(landing)/layout.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/common/BasicLayout.tsx
  • apps/web/app/(landing)/layout.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/BasicLayout.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/common/BasicLayout.tsx
  • apps/web/app/(landing)/layout.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/common/BasicLayout.tsx
  • apps/web/app/(landing)/layout.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/common/BasicLayout.tsx
  • apps/web/app/(landing)/layout.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/common/BasicLayout.tsx
  • apps/web/app/(landing)/layout.tsx
apps/web/app/**

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

NextJS app router structure with (app) directory

Files:

  • apps/web/app/(landing)/layout.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)/layout.tsx
🧠 Learnings (18)
📚 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 Shadcn UI and Tailwind for components and styling

Applied to files:

  • apps/web/components/new-landing/common/BasicLayout.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/BasicLayout.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/components/new-landing/common/BasicLayout.tsx
  • apps/web/app/(landing)/layout.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/BasicLayout.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 : Implement responsive design with Tailwind CSS using a mobile-first approach

Applied to files:

  • apps/web/components/new-landing/common/BasicLayout.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/common/BasicLayout.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/app/(landing)/layout.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} : Place main LLM feature implementations under apps/web/utils/ai/

Applied to files:

  • apps/web/app/(landing)/layout.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)/layout.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/llms/index.ts : Maintain core LLM functionality in apps/web/utils/llms/index.ts

Applied to files:

  • apps/web/app/(landing)/layout.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/app/(app)/*/page.tsx : Create new pages at: `apps/web/app/(app)/PAGE_NAME/page.tsx`

Applied to files:

  • apps/web/app/(landing)/layout.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/app/(app)/*/ : Components for the page are either in `page.tsx` or in the `apps/web/app/(app)/PAGE_NAME` folder

Applied to files:

  • apps/web/app/(landing)/layout.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/app/(landing)/layout.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} : Define clear interfaces for complex input/output structures in LLM features

Applied to files:

  • apps/web/app/(landing)/layout.tsx
📚 Learning: 2025-07-18T15:07:00.269Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/page-structure.mdc:0-0
Timestamp: 2025-07-18T15:07:00.269Z
Learning: Applies to apps/web/app/(app)/*/page.tsx : Create new pages at: apps/web/app/(app)/PAGE_NAME/page.tsx

Applied to files:

  • apps/web/app/(landing)/layout.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 for async data

Applied to files:

  • apps/web/app/(landing)/layout.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/app/(landing)/layout.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/app/(landing)/layout.tsx
⏰ 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). (1)
  • GitHub Check: cubic · AI code reviewer
🔇 Additional comments (2)
apps/web/components/new-landing/common/BasicLayout.tsx (1)

9-9: LGTM!

The font styling class is correctly applied to the root element, ensuring consistent typography across the landing layout.

apps/web/app/(landing)/layout.tsx (1)

3-3: LGTM!

The rename from AppLayout to LandingLayout improves clarity and aligns with the landing page context. Since this is a default export in a Next.js layout file, the rename has no external impact.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

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: 2

🧹 Nitpick comments (1)
apps/web/components/new-landing/common/Button.tsx (1)

24-98: Avoid forwarding button-only props when rendering as a link

When asChild is true, the Slot pushes type="button" (and any other button-only props) down onto the nested <Link>, producing invalid markup. Let’s strip type out of the forwarded props and only apply it when we actually render a <button>.

Apply this diff:

 export function Button({
   auto = false,
   children,
   variant = "primary",
   className,
   size = "md",
   asChild = false,
-  ...props
+  ...props
 }: ButtonProps) {
   const Comp = asChild ? Slot : "button";
-  const type = props.type ?? "button";
+  const { type: typeProp, ...restProps } = props;
+  const type = typeProp ?? "button";
 
   const buttonVariants = cva(
@@
-        <Comp
-          type={type}
+        <Comp
+          {...restProps}
+          {...(!asChild ? { type } : {})}
           className={buttonVariants({
             variant,
             size,
             className,
             auto,
           })}
-          {...props}
         >
@@
-    <Comp
-      type={type}
-      className={buttonVariants({ variant, size, className, auto })}
-      {...props}
+    <Comp
+      {...restProps}
+      {...(!asChild ? { type } : {})}
+      className={buttonVariants({ variant, size, className, auto })}
     >
📜 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 2d96da8 and 3fa9d60.

📒 Files selected for processing (12)
  • apps/web/app/(landing)/new-landing/page.tsx (0 hunks)
  • apps/web/app/(landing)/old-landing/page.tsx (1 hunks)
  • apps/web/app/(landing)/page.tsx (1 hunks)
  • apps/web/components/new-landing/CallToAction.tsx (3 hunks)
  • apps/web/components/new-landing/HeaderLinks.tsx (0 hunks)
  • apps/web/components/new-landing/LiquidGlassButton.tsx (1 hunks)
  • apps/web/components/new-landing/common/Button.tsx (4 hunks)
  • apps/web/components/new-landing/common/Section.tsx (1 hunks)
  • apps/web/components/new-landing/sections/Header.tsx (3 hunks)
  • apps/web/components/new-landing/sections/Pricing.tsx (7 hunks)
  • apps/web/tailwind.config.js (1 hunks)
  • version.txt (1 hunks)
💤 Files with no reviewable changes (2)
  • apps/web/app/(landing)/new-landing/page.tsx
  • apps/web/components/new-landing/HeaderLinks.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/components/new-landing/LiquidGlassButton.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/common/Section.tsx
  • apps/web/app/(landing)/page.tsx
  • apps/web/components/new-landing/common/Button.tsx
  • apps/web/components/new-landing/sections/Header.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/app/(landing)/old-landing/page.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/LiquidGlassButton.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/common/Section.tsx
  • apps/web/app/(landing)/page.tsx
  • apps/web/components/new-landing/common/Button.tsx
  • apps/web/components/new-landing/sections/Header.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/app/(landing)/old-landing/page.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/LiquidGlassButton.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/common/Section.tsx
  • apps/web/components/new-landing/common/Button.tsx
  • apps/web/components/new-landing/sections/Header.tsx
  • apps/web/components/new-landing/sections/Pricing.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/LiquidGlassButton.tsx
  • apps/web/tailwind.config.js
  • version.txt
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/common/Section.tsx
  • apps/web/app/(landing)/page.tsx
  • apps/web/components/new-landing/common/Button.tsx
  • apps/web/components/new-landing/sections/Header.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/app/(landing)/old-landing/page.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/LiquidGlassButton.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/common/Section.tsx
  • apps/web/app/(landing)/page.tsx
  • apps/web/components/new-landing/common/Button.tsx
  • apps/web/components/new-landing/sections/Header.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/app/(landing)/old-landing/page.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/LiquidGlassButton.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/common/Section.tsx
  • apps/web/app/(landing)/page.tsx
  • apps/web/components/new-landing/common/Button.tsx
  • apps/web/components/new-landing/sections/Header.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/app/(landing)/old-landing/page.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/LiquidGlassButton.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/common/Section.tsx
  • apps/web/components/new-landing/common/Button.tsx
  • apps/web/components/new-landing/sections/Header.tsx
  • apps/web/components/new-landing/sections/Pricing.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/LiquidGlassButton.tsx
  • apps/web/tailwind.config.js
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/common/Section.tsx
  • apps/web/app/(landing)/page.tsx
  • apps/web/components/new-landing/common/Button.tsx
  • apps/web/components/new-landing/sections/Header.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/app/(landing)/old-landing/page.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/LiquidGlassButton.tsx
  • apps/web/tailwind.config.js
  • version.txt
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/common/Section.tsx
  • apps/web/app/(landing)/page.tsx
  • apps/web/components/new-landing/common/Button.tsx
  • apps/web/components/new-landing/sections/Header.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/app/(landing)/old-landing/page.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/LiquidGlassButton.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/common/Section.tsx
  • apps/web/app/(landing)/page.tsx
  • apps/web/components/new-landing/common/Button.tsx
  • apps/web/components/new-landing/sections/Header.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/app/(landing)/old-landing/page.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/LiquidGlassButton.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/common/Section.tsx
  • apps/web/app/(landing)/page.tsx
  • apps/web/components/new-landing/common/Button.tsx
  • apps/web/components/new-landing/sections/Header.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
  • apps/web/app/(landing)/old-landing/page.tsx
apps/web/app/**

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

NextJS app router structure with (app) directory

Files:

  • apps/web/app/(landing)/page.tsx
  • apps/web/app/(landing)/old-landing/page.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)/page.tsx
  • apps/web/app/(landing)/old-landing/page.tsx
🧠 Learnings (27)
📚 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/LiquidGlassButton.tsx
📚 Learning: 2025-07-18T15:07:00.269Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/page-structure.mdc:0-0
Timestamp: 2025-07-18T15:07:00.269Z
Learning: Applies to apps/web/app/(app)/*/**/*.tsx : If you need to use onClick in a component, that component is a client component and file must start with 'use client'

Applied to files:

  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/sections/Header.tsx
  • 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/app/**/*.tsx : Components with `onClick` must be client components with `use client` directive

Applied to files:

  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/sections/Header.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-18T15:05:41.705Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/hooks.mdc:0-0
Timestamp: 2025-07-18T15:05:41.705Z
Learning: Applies to apps/web/hooks/use*.{js,jsx,ts,tsx} : Create dedicated hooks for specific data types (e.g., `useAccounts`, `useLabels`).

Applied to files:

  • apps/web/components/new-landing/CallToAction.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/app/(app)/*/ : Components for the page are either in `page.tsx` or in the `apps/web/app/(app)/PAGE_NAME` folder

Applied to files:

  • apps/web/app/(landing)/page.tsx
  • apps/web/app/(landing)/old-landing/page.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/app/(app)/*/page.tsx : Create new pages at: `apps/web/app/(app)/PAGE_NAME/page.tsx`

Applied to files:

  • apps/web/app/(landing)/page.tsx
  • apps/web/app/(landing)/old-landing/page.tsx
📚 Learning: 2025-07-18T15:07:00.269Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/page-structure.mdc:0-0
Timestamp: 2025-07-18T15:07:00.269Z
Learning: Applies to apps/web/app/(app)/*/** : Components for the page are either put in page.tsx, or in the apps/web/app/(app)/PAGE_NAME folder

Applied to files:

  • apps/web/app/(landing)/page.tsx
  • apps/web/app/(landing)/old-landing/page.tsx
📚 Learning: 2025-07-18T15:07:00.269Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/page-structure.mdc:0-0
Timestamp: 2025-07-18T15:07:00.269Z
Learning: Applies to apps/web/app/(app)/*/page.tsx : Create new pages at: apps/web/app/(app)/PAGE_NAME/page.tsx

Applied to files:

  • apps/web/app/(landing)/page.tsx
  • apps/web/app/(landing)/old-landing/page.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} : Place main LLM feature implementations under apps/web/utils/ai/

Applied to files:

  • apps/web/app/(landing)/page.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/app/(landing)/page.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)/page.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/app/(app)/*/page.tsx : Pages are Server components for direct data loading

Applied to files:

  • apps/web/app/(landing)/page.tsx
  • apps/web/app/(landing)/old-landing/page.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/llms/**/*.{ts,tsx} : Place core LLM utilities and configurations under apps/web/utils/llms/

Applied to files:

  • apps/web/app/(landing)/page.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/llms/index.ts : Maintain core LLM functionality in apps/web/utils/llms/index.ts

Applied to files:

  • apps/web/app/(landing)/page.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/app/(landing)/page.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 <head> elements in Next.js projects.

Applied to files:

  • apps/web/app/(landing)/page.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/common/Button.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/common/Button.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 Shadcn UI and Tailwind for components and styling

Applied to files:

  • apps/web/components/new-landing/common/Button.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} : Use semantic elements instead of role attributes in JSX.

Applied to files:

  • apps/web/components/new-landing/common/Button.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/common/Button.tsx
  • 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 : Prefer functional components with hooks

Applied to files:

  • apps/web/components/new-landing/common/Button.tsx
  • 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/components/**/*.tsx : Use React Hook Form with Zod validation for form handling

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-18T15:04:57.115Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/form-handling.mdc:0-0
Timestamp: 2025-07-18T15:04:57.115Z
Learning: Applies to **/*.tsx : Use React Hook Form with Zod for validation

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.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/**/*Form.tsx : Use React Hook Form with Zod resolver for form handling and validation.

Applied to files:

  • 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 the `Input` component for text inputs, passing `registerProps` and `error` props for form handling

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 dependencies are correctly specified in React hooks.

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
🧬 Code graph analysis (5)
apps/web/components/new-landing/CallToAction.tsx (1)
apps/web/components/new-landing/common/Button.tsx (1)
  • Button (15-99)
apps/web/app/(landing)/page.tsx (7)
apps/web/components/new-landing/common/BasicLayout.tsx (1)
  • BasicLayout (7-15)
apps/web/components/new-landing/sections/OrganizedInbox.tsx (1)
  • OrganizedInbox (11-41)
apps/web/components/new-landing/sections/PreWrittenDrafts.tsx (1)
  • PreWrittenDrafts (11-37)
apps/web/components/new-landing/sections/StartedInMinutes.tsx (1)
  • StartedInMinutes (29-136)
apps/web/components/new-landing/sections/EverythingElseSection.tsx (1)
  • EverythingElseSection (17-75)
apps/web/components/new-landing/sections/Awards.tsx (1)
  • Awards (55-103)
apps/web/components/new-landing/sections/BuyBackTime.tsx (1)
  • BuyBackTime (11-36)
apps/web/components/new-landing/sections/Header.tsx (1)
apps/web/components/new-landing/common/Button.tsx (1)
  • Button (15-99)
apps/web/components/new-landing/sections/Pricing.tsx (2)
apps/web/components/new-landing/common/Section.tsx (1)
  • Section (9-15)
apps/web/components/new-landing/common/Button.tsx (1)
  • Button (15-99)
apps/web/app/(landing)/old-landing/page.tsx (4)
apps/web/components/new-landing/common/BasicLayout.tsx (1)
  • BasicLayout (7-15)
apps/web/app/(landing)/home/Hero.tsx (1)
  • HeroHome (29-32)
apps/web/app/(landing)/home/Features.tsx (1)
  • FeaturesHome (20-30)
apps/web/app/(landing)/home/Privacy.tsx (1)
  • Privacy (3-48)
⏰ 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). (3)
  • GitHub Check: cubic · AI code reviewer
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: test
🔇 Additional comments (2)
apps/web/components/new-landing/LiquidGlassButton.tsx (1)

39-39: LGTM! Good refactor to use centralized timing function.

The change from inline cubic-bezier to the new ease-back-out utility class improves maintainability by centralizing the timing function definition in the Tailwind config. The animation behavior remains functionally equivalent.

apps/web/tailwind.config.js (1)

24-26: LGTM! Centralizes custom timing function.

Adding the back-out timing function to the Tailwind theme extension is a good practice. This allows the custom cubic-bezier easing to be reused across components and maintains consistency in animations throughout the application.

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 (1)
apps/web/components/new-landing/CallToAction.tsx (1)

31-44: Guard PostHog calls when analytics isn’t loaded.

usePostHog() can yield undefined on first paint or when the snippet is disabled. Dereferencing posthog.capture(...) will throw and block navigation from the CTA buttons. Wrap the calls with optional chaining (or a null check) so the buttons remain functional even without analytics.

-          onClick={() => {
-            posthog.capture("Clicked Get Started");
-          }}
+          onClick={() => {
+            posthog?.capture("Clicked Get Started");
+          }}
@@
-          onClick={() => {
-            posthog.capture("Clicked talk to sales");
-          }}
+          onClick={() => {
+            posthog?.capture("Clicked talk to sales");
+          }}
🧹 Nitpick comments (1)
apps/web/components/new-landing/CallToAction.tsx (1)

9-13: Drop the unused includeSalesButton prop.

includeSalesButton is still declared on CallToActionProps, but nothing reads it anymore. Keeping it around is misleading for consumers and risks someone passing it expecting the previous behaviour. Please remove the prop from the type (and any callers still supplying it).

📜 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 3fa9d60 and d19d467.

📒 Files selected for processing (4)
  • apps/web/app/(landing)/page.tsx (1 hunks)
  • apps/web/components/new-landing/CallToAction.tsx (2 hunks)
  • apps/web/components/new-landing/sections/FinalCTA.tsx (2 hunks)
  • apps/web/components/new-landing/sections/Pricing.tsx (7 hunks)
🧰 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)/page.tsx
  • apps/web/components/new-landing/sections/FinalCTA.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
apps/web/app/**

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

NextJS app router structure with (app) directory

Files:

  • apps/web/app/(landing)/page.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)/page.tsx
  • apps/web/components/new-landing/sections/FinalCTA.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/sections/Pricing.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)/page.tsx
  • apps/web/components/new-landing/sections/FinalCTA.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/sections/Pricing.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)/page.tsx
  • apps/web/components/new-landing/sections/FinalCTA.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/sections/Pricing.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)/page.tsx
  • apps/web/components/new-landing/sections/FinalCTA.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/sections/Pricing.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)/page.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)/page.tsx
  • apps/web/components/new-landing/sections/FinalCTA.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/sections/Pricing.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)/page.tsx
  • apps/web/components/new-landing/sections/FinalCTA.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/sections/Pricing.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)/page.tsx
  • apps/web/components/new-landing/sections/FinalCTA.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/sections/Pricing.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)/page.tsx
  • apps/web/components/new-landing/sections/FinalCTA.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/sections/Pricing.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/sections/FinalCTA.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/sections/Pricing.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/sections/FinalCTA.tsx
  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
🧠 Learnings (25)
📚 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/app/(app)/*/page.tsx : Create new pages at: `apps/web/app/(app)/PAGE_NAME/page.tsx`

Applied to files:

  • apps/web/app/(landing)/page.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/app/(app)/*/ : Components for the page are either in `page.tsx` or in the `apps/web/app/(app)/PAGE_NAME` folder

Applied to files:

  • apps/web/app/(landing)/page.tsx
📚 Learning: 2025-07-18T15:07:00.269Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/page-structure.mdc:0-0
Timestamp: 2025-07-18T15:07:00.269Z
Learning: Applies to apps/web/app/(app)/*/page.tsx : Create new pages at: apps/web/app/(app)/PAGE_NAME/page.tsx

Applied to files:

  • apps/web/app/(landing)/page.tsx
📚 Learning: 2025-07-18T15:07:00.269Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/page-structure.mdc:0-0
Timestamp: 2025-07-18T15:07:00.269Z
Learning: Applies to apps/web/app/(app)/*/** : Components for the page are either put in page.tsx, or in the apps/web/app/(app)/PAGE_NAME folder

Applied to files:

  • apps/web/app/(landing)/page.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} : Place main LLM feature implementations under apps/web/utils/ai/

Applied to files:

  • apps/web/app/(landing)/page.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)/page.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/app/(landing)/page.tsx
  • apps/web/components/new-landing/sections/FinalCTA.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/llms/**/*.{ts,tsx} : Place core LLM utilities and configurations under apps/web/utils/llms/

Applied to files:

  • apps/web/app/(landing)/page.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/llms/index.ts : Maintain core LLM functionality in apps/web/utils/llms/index.ts

Applied to files:

  • apps/web/app/(landing)/page.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} : Define clear interfaces for complex input/output structures in LLM features

Applied to files:

  • apps/web/app/(landing)/page.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/app/(landing)/page.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 <head> elements in Next.js projects.

Applied to files:

  • apps/web/app/(landing)/page.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/FinalCTA.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} : Use concise optional chaining instead of chained logical expressions.

Applied to files:

  • apps/web/components/new-landing/CallToAction.tsx
📚 Learning: 2025-07-18T15:07:00.269Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/page-structure.mdc:0-0
Timestamp: 2025-07-18T15:07:00.269Z
Learning: Applies to apps/web/app/(app)/*/**/*.tsx : If you need to use onClick in a component, that component is a client component and file must start with 'use client'

Applied to files:

  • apps/web/components/new-landing/CallToAction.tsx
  • 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/app/**/*.tsx : Components with `onClick` must be client components with `use client` directive

Applied to files:

  • apps/web/components/new-landing/CallToAction.tsx
  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-18T15:05:41.705Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/hooks.mdc:0-0
Timestamp: 2025-07-18T15:05:41.705Z
Learning: Applies to apps/web/hooks/use*.{js,jsx,ts,tsx} : Create dedicated hooks for specific data types (e.g., `useAccounts`, `useLabels`).

Applied to files:

  • apps/web/components/new-landing/CallToAction.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/components/**/*.tsx : Use React Hook Form with Zod validation for form handling

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
📚 Learning: 2025-07-18T15:04:57.115Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/form-handling.mdc:0-0
Timestamp: 2025-07-18T15:04:57.115Z
Learning: Applies to **/*.tsx : Use React Hook Form with Zod for validation

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-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 : Prefer functional components with hooks

Applied to files:

  • 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 Shadcn UI and Tailwind for components and styling

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.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/**/*Form.tsx : Use React Hook Form with Zod resolver for form handling and validation.

Applied to files:

  • 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 the `Input` component for text inputs, passing `registerProps` and `error` props for form handling

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 dependencies are correctly specified in React hooks.

Applied to files:

  • apps/web/components/new-landing/sections/Pricing.tsx
🧬 Code graph analysis (4)
apps/web/app/(landing)/page.tsx (7)
apps/web/components/new-landing/common/BasicLayout.tsx (1)
  • BasicLayout (7-15)
apps/web/components/new-landing/sections/OrganizedInbox.tsx (1)
  • OrganizedInbox (11-41)
apps/web/components/new-landing/sections/PreWrittenDrafts.tsx (1)
  • PreWrittenDrafts (11-37)
apps/web/components/new-landing/sections/StartedInMinutes.tsx (1)
  • StartedInMinutes (29-136)
apps/web/components/new-landing/sections/EverythingElseSection.tsx (1)
  • EverythingElseSection (17-75)
apps/web/components/new-landing/sections/Awards.tsx (1)
  • Awards (55-103)
apps/web/components/new-landing/sections/FinalCTA.tsx (1)
  • FinalCTA (11-32)
apps/web/components/new-landing/sections/FinalCTA.tsx (1)
apps/web/components/new-landing/CallToAction.tsx (1)
  • CallToAction (15-52)
apps/web/components/new-landing/CallToAction.tsx (2)
apps/web/components/new-landing/common/Button.tsx (1)
  • Button (15-99)
apps/web/components/new-landing/icons/Chat.tsx (1)
  • Chat (1-18)
apps/web/components/new-landing/sections/Pricing.tsx (2)
apps/web/components/new-landing/common/Section.tsx (1)
  • Section (9-15)
apps/web/components/new-landing/common/Button.tsx (1)
  • Button (15-99)
⏰ 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: test
  • GitHub Check: cubic · AI code reviewer

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.

1 issue found across 13 files

Prompt for AI agents (all 1 issues)

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


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

<violation number="1" location="apps/web/components/new-landing/CallToAction.tsx:29">
Add rel=&quot;noopener noreferrer&quot; when opening the sales link in a new tab to prevent reverse tabnabbing.</violation>
</file>

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

{includeSalesButton ? (
<Button variant="secondary-two" size="xl" icon={<Chat />}>
<Button size="xl" asChild>
<Link
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Nov 12, 2025

Choose a reason for hiding this comment

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

Add rel="noopener noreferrer" when opening the sales link in a new tab to prevent reverse tabnabbing.

Prompt for AI agents
Address the following comment on apps/web/components/new-landing/CallToAction.tsx at line 29:

<comment>Add rel=&quot;noopener noreferrer&quot; when opening the sales link in a new tab to prevent reverse tabnabbing.</comment>

<file context>
@@ -11,22 +15,38 @@ interface CallToActionProps {
-      {includeSalesButton ? (
-        &lt;Button variant=&quot;secondary-two&quot; size=&quot;xl&quot; icon={&lt;Chat /&gt;}&gt;
+      &lt;Button size=&quot;xl&quot; asChild&gt;
+        &lt;Link
+          href=&quot;/login&quot;
+          onClick={() =&gt; {
</file context>
Fix with Cubic

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

@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

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

@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 2 files

@elie222 elie222 merged commit d04f177 into main Nov 12, 2025
15 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Nov 12, 2025
@elie222 elie222 deleted the feat/release-new-landing branch November 13, 2025 11:17
@coderabbitai coderabbitai bot mentioned this pull request Nov 13, 2025
@coderabbitai coderabbitai bot mentioned this pull request Nov 23, 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.

1 participant