Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Note Other AI code review bot(s) detectedCodeRabbit 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. WalkthroughRemoves 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
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
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used📓 Path-based instructions (13)apps/web/**/*.{ts,tsx}📄 CodeRabbit inference engine (apps/web/CLAUDE.md)
Files:
apps/web/**/*.tsx📄 CodeRabbit inference engine (apps/web/CLAUDE.md)
Files:
apps/web/components/**/*.tsx📄 CodeRabbit inference engine (apps/web/CLAUDE.md)
Files:
!{.cursor/rules/*.mdc}📄 CodeRabbit inference engine (.cursor/rules/cursor-rules.mdc)
Files:
**/*.tsx📄 CodeRabbit inference engine (.cursor/rules/form-handling.mdc)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/logging.mdc)
Files:
apps/web/components/!(ui)/**📄 CodeRabbit inference engine (.cursor/rules/project-structure.mdc)
Files:
**/*.{js,jsx,ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)
Files:
!pages/_document.{js,jsx,ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)
Files:
**/*.{jsx,tsx}📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)
Files:
**/*.{html,jsx,tsx}📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)
|
There was a problem hiding this comment.
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 linkWhen
asChildis true, the Slot pushestype="button"(and any other button-only props) down onto the nested<Link>, producing invalid markup. Let’s striptypeout 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
📒 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.tsxapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/common/Section.tsxapps/web/app/(landing)/page.tsxapps/web/components/new-landing/common/Button.tsxapps/web/components/new-landing/sections/Header.tsxapps/web/components/new-landing/sections/Pricing.tsxapps/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
Useresult?.serverErrorwithtoastErrorandtoastSuccess
UseLoadingContentcomponent to handle loading and error states consistently
Passloading,error, and children props toLoadingContent
Files:
apps/web/components/new-landing/LiquidGlassButton.tsxapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/common/Section.tsxapps/web/app/(landing)/page.tsxapps/web/components/new-landing/common/Button.tsxapps/web/components/new-landing/sections/Header.tsxapps/web/components/new-landing/sections/Pricing.tsxapps/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
LoadingContentcomponent 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.tsxapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/common/Section.tsxapps/web/components/new-landing/common/Button.tsxapps/web/components/new-landing/sections/Header.tsxapps/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.tsxapps/web/tailwind.config.jsversion.txtapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/common/Section.tsxapps/web/app/(landing)/page.tsxapps/web/components/new-landing/common/Button.tsxapps/web/components/new-landing/sections/Header.tsxapps/web/components/new-landing/sections/Pricing.tsxapps/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.tsxapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/common/Section.tsxapps/web/app/(landing)/page.tsxapps/web/components/new-landing/common/Button.tsxapps/web/components/new-landing/sections/Header.tsxapps/web/components/new-landing/sections/Pricing.tsxapps/web/app/(landing)/old-landing/page.tsx
**/*.{ts,tsx}
📄 CodeRabbit inference engine (.cursor/rules/logging.mdc)
**/*.{ts,tsx}: UsecreateScopedLoggerfor logging in backend TypeScript files
Typically add the logger initialization at the top of the file when usingcreateScopedLogger
Only use.with()on a logger instance within a specific function, not for a global loggerImport 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.tsxapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/common/Section.tsxapps/web/app/(landing)/page.tsxapps/web/components/new-landing/common/Button.tsxapps/web/components/new-landing/sections/Header.tsxapps/web/components/new-landing/sections/Pricing.tsxapps/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.tsxapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/common/Section.tsxapps/web/components/new-landing/common/Button.tsxapps/web/components/new-landing/sections/Header.tsxapps/web/components/new-landing/sections/Pricing.tsx
**/*.{js,jsx,ts,tsx}
📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)
**/*.{js,jsx,ts,tsx}: Don't useelements 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.tsxapps/web/tailwind.config.jsapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/common/Section.tsxapps/web/app/(landing)/page.tsxapps/web/components/new-landing/common/Button.tsxapps/web/components/new-landing/sections/Header.tsxapps/web/components/new-landing/sections/Pricing.tsxapps/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.tsxapps/web/tailwind.config.jsversion.txtapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/common/Section.tsxapps/web/app/(landing)/page.tsxapps/web/components/new-landing/common/Button.tsxapps/web/components/new-landing/sections/Header.tsxapps/web/components/new-landing/sections/Pricing.tsxapps/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.tsxapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/common/Section.tsxapps/web/app/(landing)/page.tsxapps/web/components/new-landing/common/Button.tsxapps/web/components/new-landing/sections/Header.tsxapps/web/components/new-landing/sections/Pricing.tsxapps/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.tsxapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/common/Section.tsxapps/web/app/(landing)/page.tsxapps/web/components/new-landing/common/Button.tsxapps/web/components/new-landing/sections/Header.tsxapps/web/components/new-landing/sections/Pricing.tsxapps/web/app/(landing)/old-landing/page.tsxapps/web/app/**
📄 CodeRabbit inference engine (apps/web/CLAUDE.md)
NextJS app router structure with (app) directory
Files:
apps/web/app/(landing)/page.tsxapps/web/app/(landing)/old-landing/page.tsxapps/web/app/**/*.tsx
📄 CodeRabbit inference engine (.cursor/rules/project-structure.mdc)
Components with
onClickmust be client components withuse clientdirectiveFiles:
apps/web/app/(landing)/page.tsxapps/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.tsxapps/web/components/new-landing/sections/Header.tsxapps/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` directiveApplied to files:
apps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/sections/Header.tsxapps/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` folderApplied to files:
apps/web/app/(landing)/page.tsxapps/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.tsxapps/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 folderApplied to files:
apps/web/app/(landing)/page.tsxapps/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.tsxApplied to files:
apps/web/app/(landing)/page.tsxapps/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 commentsApplied 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 loadingApplied to files:
apps/web/app/(landing)/page.tsxapps/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.tsApplied 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 consistentlyApplied 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 stylingApplied to files:
apps/web/components/new-landing/common/Button.tsxapps/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 availableApplied to files:
apps/web/components/new-landing/common/Button.tsxapps/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 hooksApplied to files:
apps/web/components/new-landing/common/Button.tsxapps/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 handlingApplied 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 validationApplied 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 handlingApplied 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-bezierto the newease-back-oututility 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-outtiming 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.
There was a problem hiding this comment.
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 yieldundefinedon first paint or when the snippet is disabled. Dereferencingposthog.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 unusedincludeSalesButtonprop.
includeSalesButtonis still declared onCallToActionProps, 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
📒 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.tsxapps/web/components/new-landing/sections/FinalCTA.tsxapps/web/components/new-landing/CallToAction.tsxapps/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
Useresult?.serverErrorwithtoastErrorandtoastSuccess
UseLoadingContentcomponent to handle loading and error states consistently
Passloading,error, and children props toLoadingContent
Files:
apps/web/app/(landing)/page.tsxapps/web/components/new-landing/sections/FinalCTA.tsxapps/web/components/new-landing/CallToAction.tsxapps/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.tsxapps/web/components/new-landing/sections/FinalCTA.tsxapps/web/components/new-landing/CallToAction.tsxapps/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.tsxapps/web/components/new-landing/sections/FinalCTA.tsxapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/sections/Pricing.tsx
**/*.{ts,tsx}
📄 CodeRabbit inference engine (.cursor/rules/logging.mdc)
**/*.{ts,tsx}: UsecreateScopedLoggerfor logging in backend TypeScript files
Typically add the logger initialization at the top of the file when usingcreateScopedLogger
Only use.with()on a logger instance within a specific function, not for a global loggerImport 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.tsxapps/web/components/new-landing/sections/FinalCTA.tsxapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/sections/Pricing.tsx
apps/web/app/**/*.tsx
📄 CodeRabbit inference engine (.cursor/rules/project-structure.mdc)
Components with
onClickmust be client components withuse clientdirective
Files:
apps/web/app/(landing)/page.tsx
**/*.{js,jsx,ts,tsx}
📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)
**/*.{js,jsx,ts,tsx}: Don't useelements 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.tsxapps/web/components/new-landing/sections/FinalCTA.tsxapps/web/components/new-landing/CallToAction.tsxapps/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.tsxapps/web/components/new-landing/sections/FinalCTA.tsxapps/web/components/new-landing/CallToAction.tsxapps/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.tsxapps/web/components/new-landing/sections/FinalCTA.tsxapps/web/components/new-landing/CallToAction.tsxapps/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.tsxapps/web/components/new-landing/sections/FinalCTA.tsxapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/sections/Pricing.tsxapps/web/components/**/*.tsx
📄 CodeRabbit inference engine (apps/web/CLAUDE.md)
Use React Hook Form with Zod validation for form handling
Use the
LoadingContentcomponent 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.tsxapps/web/components/new-landing/CallToAction.tsxapps/web/components/new-landing/sections/Pricing.tsxapps/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.tsxapps/web/components/new-landing/CallToAction.tsxapps/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` folderApplied 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.tsxApplied 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 folderApplied 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 commentsApplied 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.tsxapps/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.tsApplied 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 featuresApplied 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 consistentlyApplied 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.tsxapps/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` directiveApplied to files:
apps/web/components/new-landing/CallToAction.tsxapps/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 handlingApplied 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 validationApplied 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 availableApplied 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 hooksApplied 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 stylingApplied 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 handlingApplied 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
There was a problem hiding this comment.
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="noopener noreferrer" 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 |
There was a problem hiding this comment.
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="noopener noreferrer" when opening the sales link in a new tab to prevent reverse tabnabbing.</comment>
<file context>
@@ -11,22 +15,38 @@ interface CallToActionProps {
- {includeSalesButton ? (
- <Button variant="secondary-two" size="xl" icon={<Chat />}>
+ <Button size="xl" asChild>
+ <Link
+ href="/login"
+ onClick={() => {
</file context>
Summary by CodeRabbit
New Features
Improvements
UI Updates
Chores