Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughThis PR standardizes typography: replaces many Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
apps/web/styles/CalSans-SemiBold.woff2is excluded by!**/*.woff2
📒 Files selected for processing (30)
apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsx(1 hunks)apps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsx(2 hunks)apps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsx(1 hunks)apps/web/app/(app)/layout.tsx(3 hunks)apps/web/app/(app)/premium/Pricing.tsx(2 hunks)apps/web/app/(landing)/home/CTA.tsx(1 hunks)apps/web/app/(landing)/home/FAQs.tsx(1 hunks)apps/web/app/(landing)/home/Features.tsx(1 hunks)apps/web/app/(landing)/home/Hero.tsx(1 hunks)apps/web/app/(landing)/home/LogoCloud.tsx(1 hunks)apps/web/app/(landing)/home/Privacy.tsx(1 hunks)apps/web/app/(landing)/login/page.tsx(1 hunks)apps/web/app/(landing)/login/sso/page.tsx(1 hunks)apps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsx(1 hunks)apps/web/app/(marketing)(1 hunks)apps/web/app/layout.tsx(3 hunks)apps/web/components/Celebration.tsx(1 hunks)apps/web/components/Typography.tsx(4 hunks)apps/web/components/assistant-chat/tools.tsx(1 hunks)apps/web/components/editor/SimpleRichTextEditor.tsx(1 hunks)apps/web/components/email-list/EmailList.tsx(1 hunks)apps/web/components/new-landing/common/BasicLayout.tsx(1 hunks)apps/web/components/new-landing/common/Button.tsx(1 hunks)apps/web/components/new-landing/common/Card.tsx(1 hunks)apps/web/components/new-landing/common/Typography.tsx(3 hunks)apps/web/components/new-landing/sections/FAQs.tsx(0 hunks)apps/web/components/new-landing/sections/Pricing.tsx(1 hunks)apps/web/components/ui/alert.tsx(1 hunks)apps/web/env.ts(2 hunks)apps/web/tailwind.config.js(1 hunks)
💤 Files with no reviewable changes (1)
- apps/web/components/new-landing/sections/FAQs.tsx
🧰 Additional context used
📓 Path-based instructions (21)
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.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/components/Typography.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/components/email-list/EmailList.tsxapps/web/app/layout.tsxapps/web/app/(landing)/home/FAQs.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/env.tsapps/web/app/(app)/premium/Pricing.tsxapps/web/components/assistant-chat/tools.tsxapps/web/components/Celebration.tsxapps/web/app/(app)/layout.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/Features.tsxapps/web/components/new-landing/common/Button.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/sso/page.tsxapps/web/components/new-landing/common/Typography.tsxapps/web/app/(landing)/login/page.tsxapps/web/components/ui/alert.tsxapps/web/app/(landing)/home/LogoCloud.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsxapps/web/components/new-landing/sections/Pricing.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/common/BasicLayout.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/components/Typography.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/components/email-list/EmailList.tsxapps/web/app/layout.tsxapps/web/app/(landing)/home/FAQs.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/app/(app)/premium/Pricing.tsxapps/web/components/assistant-chat/tools.tsxapps/web/components/Celebration.tsxapps/web/app/(app)/layout.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/Features.tsxapps/web/components/new-landing/common/Button.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/sso/page.tsxapps/web/components/new-landing/common/Typography.tsxapps/web/app/(landing)/login/page.tsxapps/web/components/ui/alert.tsxapps/web/app/(landing)/home/LogoCloud.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsxapps/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
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/common/BasicLayout.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/components/Typography.tsxapps/web/components/email-list/EmailList.tsxapps/web/components/assistant-chat/tools.tsxapps/web/components/Celebration.tsxapps/web/components/new-landing/common/Card.tsxapps/web/components/new-landing/common/Button.tsxapps/web/components/new-landing/common/Typography.tsxapps/web/components/ui/alert.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/common/BasicLayout.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/components/Typography.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/components/email-list/EmailList.tsxapps/web/app/(marketing)apps/web/app/layout.tsxapps/web/app/(landing)/home/FAQs.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/env.tsapps/web/app/(app)/premium/Pricing.tsxapps/web/components/assistant-chat/tools.tsxapps/web/components/Celebration.tsxapps/web/app/(app)/layout.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/Features.tsxapps/web/components/new-landing/common/Button.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/sso/page.tsxapps/web/components/new-landing/common/Typography.tsxapps/web/app/(landing)/login/page.tsxapps/web/components/ui/alert.tsxapps/web/app/(landing)/home/LogoCloud.tsxapps/web/tailwind.config.jsapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.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/components/new-landing/common/BasicLayout.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/components/Typography.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/components/email-list/EmailList.tsxapps/web/app/layout.tsxapps/web/app/(landing)/home/FAQs.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/app/(app)/premium/Pricing.tsxapps/web/components/assistant-chat/tools.tsxapps/web/components/Celebration.tsxapps/web/app/(app)/layout.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/Features.tsxapps/web/components/new-landing/common/Button.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/sso/page.tsxapps/web/components/new-landing/common/Typography.tsxapps/web/app/(landing)/login/page.tsxapps/web/components/ui/alert.tsxapps/web/app/(landing)/home/LogoCloud.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.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/components/new-landing/common/BasicLayout.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/components/Typography.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/components/email-list/EmailList.tsxapps/web/app/layout.tsxapps/web/app/(landing)/home/FAQs.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/env.tsapps/web/app/(app)/premium/Pricing.tsxapps/web/components/assistant-chat/tools.tsxapps/web/components/Celebration.tsxapps/web/app/(app)/layout.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/Features.tsxapps/web/components/new-landing/common/Button.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/sso/page.tsxapps/web/components/new-landing/common/Typography.tsxapps/web/app/(landing)/login/page.tsxapps/web/components/ui/alert.tsxapps/web/app/(landing)/home/LogoCloud.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsxapps/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/common/BasicLayout.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/components/email-list/EmailList.tsxapps/web/components/assistant-chat/tools.tsxapps/web/components/new-landing/common/Card.tsxapps/web/components/new-landing/common/Button.tsxapps/web/components/new-landing/common/Typography.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/common/BasicLayout.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/components/Typography.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/components/email-list/EmailList.tsxapps/web/app/layout.tsxapps/web/app/(landing)/home/FAQs.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/env.tsapps/web/app/(app)/premium/Pricing.tsxapps/web/components/assistant-chat/tools.tsxapps/web/components/Celebration.tsxapps/web/app/(app)/layout.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/Features.tsxapps/web/components/new-landing/common/Button.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/sso/page.tsxapps/web/components/new-landing/common/Typography.tsxapps/web/app/(landing)/login/page.tsxapps/web/components/ui/alert.tsxapps/web/app/(landing)/home/LogoCloud.tsxapps/web/tailwind.config.jsapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.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/components/new-landing/common/BasicLayout.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/components/Typography.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/components/email-list/EmailList.tsxapps/web/app/(marketing)apps/web/app/layout.tsxapps/web/app/(landing)/home/FAQs.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/env.tsapps/web/app/(app)/premium/Pricing.tsxapps/web/components/assistant-chat/tools.tsxapps/web/components/Celebration.tsxapps/web/app/(app)/layout.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/Features.tsxapps/web/components/new-landing/common/Button.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/sso/page.tsxapps/web/components/new-landing/common/Typography.tsxapps/web/app/(landing)/login/page.tsxapps/web/components/ui/alert.tsxapps/web/app/(landing)/home/LogoCloud.tsxapps/web/tailwind.config.jsapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.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/components/new-landing/common/BasicLayout.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/components/Typography.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/components/email-list/EmailList.tsxapps/web/app/layout.tsxapps/web/app/(landing)/home/FAQs.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/app/(app)/premium/Pricing.tsxapps/web/components/assistant-chat/tools.tsxapps/web/components/Celebration.tsxapps/web/app/(app)/layout.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/Features.tsxapps/web/components/new-landing/common/Button.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/sso/page.tsxapps/web/components/new-landing/common/Typography.tsxapps/web/app/(landing)/login/page.tsxapps/web/components/ui/alert.tsxapps/web/app/(landing)/home/LogoCloud.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.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/components/new-landing/common/BasicLayout.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/components/Typography.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/components/email-list/EmailList.tsxapps/web/app/layout.tsxapps/web/app/(landing)/home/FAQs.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/app/(app)/premium/Pricing.tsxapps/web/components/assistant-chat/tools.tsxapps/web/components/Celebration.tsxapps/web/app/(app)/layout.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/Features.tsxapps/web/components/new-landing/common/Button.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/sso/page.tsxapps/web/components/new-landing/common/Typography.tsxapps/web/app/(landing)/login/page.tsxapps/web/components/ui/alert.tsxapps/web/app/(landing)/home/LogoCloud.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsxapps/web/components/new-landing/sections/Pricing.tsxapps/web/app/**
📄 CodeRabbit inference engine (apps/web/CLAUDE.md)
NextJS app router structure with (app) directory
Files:
apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/app/(marketing)apps/web/app/layout.tsxapps/web/app/(landing)/home/FAQs.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/app/(app)/premium/Pricing.tsxapps/web/app/(app)/layout.tsxapps/web/app/(landing)/home/Features.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/sso/page.tsxapps/web/app/(landing)/login/page.tsxapps/web/app/(landing)/home/LogoCloud.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsxapps/web/app/(app)/*/**
📄 CodeRabbit inference engine (.cursor/rules/page-structure.mdc)
Components for the page are either put in page.tsx, or in the apps/web/app/(app)/PAGE_NAME folder
Files:
apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/app/(app)/premium/Pricing.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsxapps/web/app/(app)/*/**/*.tsx
📄 CodeRabbit inference engine (.cursor/rules/page-structure.mdc)
If you need to use onClick in a component, that component is a client component and file must start with 'use client'
Files:
apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/app/(app)/premium/Pricing.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsxapps/web/app/(app)/*/**/**/*.tsx
📄 CodeRabbit inference engine (.cursor/rules/page-structure.mdc)
If we're in a deeply nested component we will use swr to fetch via API
Files:
apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/app/(app)/premium/Pricing.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsxapps/web/app/**/*.tsx
📄 CodeRabbit inference engine (.cursor/rules/project-structure.mdc)
Components with
onClickmust be client components withuse clientdirectiveFiles:
apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/app/layout.tsxapps/web/app/(landing)/home/FAQs.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/app/(app)/premium/Pricing.tsxapps/web/app/(app)/layout.tsxapps/web/app/(landing)/home/Features.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/sso/page.tsxapps/web/app/(landing)/login/page.tsxapps/web/app/(landing)/home/LogoCloud.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsxapps/web/**/{.env.example,env.ts,turbo.json}
📄 CodeRabbit inference engine (apps/web/CLAUDE.md)
Add environment variables to
.env.example,env.ts, andturbo.jsonFiles:
apps/web/env.tsapps/web/**/{.env.example,env.ts}
📄 CodeRabbit inference engine (apps/web/CLAUDE.md)
Client-side environment variables: Prefix with
NEXT_PUBLIC_Files:
apps/web/env.tsapps/web/env.ts
📄 CodeRabbit inference engine (.cursor/rules/environment-variables.mdc)
apps/web/env.ts: When adding a new environment variable, add it toapps/web/env.tsin the appropriate section: useserverfor server-only variables, and for client-side variables, use theclientsection and also add toexperimental__runtimeEnv.
Client-side environment variables must be prefixed withNEXT_PUBLIC_and added to both theclientandexperimental__runtimeEnvsections inapps/web/env.ts.Files:
apps/web/env.ts**/*.ts
📄 CodeRabbit inference engine (.cursor/rules/form-handling.mdc)
**/*.ts: The same validation should be done in the server action too
Define validation schemas using ZodFiles:
apps/web/env.tsapps/web/components/ui/**
📄 CodeRabbit inference engine (.cursor/rules/project-structure.mdc)
Shadcn components are in
components/uiFiles:
apps/web/components/ui/alert.tsx🧠 Learnings (41)
📓 Common learnings
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/ultracite.mdc:0-0 Timestamp: 2025-07-20T09:03:06.318Z Learning: Applies to **/*.{html,jsx,tsx} : Use a recommended display strategy with Google Fonts.📚 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.tsxapps/web/app/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} : Don't pass children as props.Applied to files:
apps/web/components/new-landing/common/BasicLayout.tsx📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/llm.mdc:0-0 Timestamp: 2025-09-17T22:05:28.646Z Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : System prompt should define the LLM's role and task specificationsApplied to files:
apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsx📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/llm.mdc:0-0 Timestamp: 2025-09-17T22:05:28.646Z Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : Use XML-like tags to structure data in promptsApplied to files:
apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsx📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/llm.mdc:0-0 Timestamp: 2025-09-17T22:05:28.646Z Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : Format prompt data consistently across similar functionsApplied to files:
apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsx📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/llm.mdc:0-0 Timestamp: 2025-09-17T22:05:28.646Z Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : Keep system prompts and user prompts separateApplied to files:
apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/components/ui/alert.tsx📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/llm.mdc:0-0 Timestamp: 2025-09-17T22:05:28.646Z Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : User prompt should contain the actual data and contextApplied to files:
apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.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/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/components/Typography.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/app/(landing)/home/FAQs.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/app/(app)/premium/Pricing.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/Features.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/sso/page.tsxapps/web/app/(landing)/login/page.tsxapps/web/components/ui/alert.tsxapps/web/app/(landing)/home/LogoCloud.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsx📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/llm.mdc:0-0 Timestamp: 2025-09-17T22:05:28.646Z Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : Remove excessive whitespace and truncate long inputs in promptsApplied to files:
apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.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/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/components/Typography.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/app/(app)/premium/Pricing.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/Features.tsxapps/web/components/new-landing/common/Button.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/sso/page.tsxapps/web/app/(landing)/login/page.tsxapps/web/components/ui/alert.tsxapps/web/app/(landing)/home/LogoCloud.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsx📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/llm.mdc:0-0 Timestamp: 2025-09-17T22:05:28.646Z Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : LLM feature functions should follow the provided TypeScript pattern (separate system/user prompts, use createGenerateObject, Zod schema validation, early validation, return result.object)Applied to files:
apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.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 unnecessary labels.Applied to files:
apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsx📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/ultracite.mdc:0-0 Timestamp: 2025-07-20T09:03:06.318Z Learning: Applies to **/*.{jsx,tsx} : Use semantic elements instead of role attributes in JSX.Applied to files:
apps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/components/Typography.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/Features.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.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} : Give heading elements content that's accessible to screen readers (not hidden with aria-hidden).Applied to files:
apps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsxapps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/components/Typography.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/Features.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/sso/page.tsxapps/web/app/(landing)/home/LogoCloud.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 tailwindcss patterns with prettier-plugin-tailwindcssApplied to files:
apps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/layout.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/editor/SimpleRichTextEditor.tsxapps/web/components/Typography.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/app/layout.tsxapps/web/components/Celebration.tsxapps/web/app/(app)/layout.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/page.tsxapps/web/components/ui/alert.tsxapps/web/app/(landing)/home/LogoCloud.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 **/*.{html,jsx,tsx} : Don't use explicit role property that's the same as the implicit/default role.Applied to files:
apps/web/components/editor/SimpleRichTextEditor.tsxapps/web/app/(landing)/home/Privacy.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.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/components/editor/SimpleRichTextEditor.tsxapps/web/app/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 **/*.{html,jsx,tsx} : Use a recommended display strategy with Google Fonts.Applied to files:
apps/web/app/(landing)/home/Privacy.tsxapps/web/components/Typography.tsxapps/web/app/(landing)/home/Hero.tsxapps/web/app/layout.tsxapps/web/app/(app)/layout.tsxapps/web/app/(landing)/home/Features.tsxapps/web/components/new-landing/common/Typography.tsxapps/web/tailwind.config.js📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/ultracite.mdc:0-0 Timestamp: 2025-07-20T09:03:06.318Z Learning: Applies to **/*.{html,jsx,tsx} : Give all elements requiring alt text meaningful information for screen readers.Applied to files:
apps/web/app/(landing)/home/Privacy.tsxapps/web/app/(landing)/home/CTA.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 title element for SVG elements.Applied to files:
apps/web/app/(landing)/home/Privacy.tsxapps/web/components/new-landing/common/Card.tsxapps/web/app/(landing)/home/Features.tsxapps/web/app/(landing)/home/CTA.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)/home/Hero.tsxapps/web/app/layout.tsxapps/web/app/(app)/premium/Pricing.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/page.tsxapps/web/app/(landing)/home/LogoCloud.tsxapps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.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/app/(landing)/home/Hero.tsxapps/web/app/(app)/layout.tsxapps/web/app/(landing)/home/CTA.tsxapps/web/app/(landing)/login/page.tsxapps/web/app/(landing)/home/LogoCloud.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)/home/Hero.tsxapps/web/app/(landing)/home/LogoCloud.tsx📚 Learning: 2025-09-17T22:05:28.646Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/llm.mdc:0-0 Timestamp: 2025-09-17T22:05:28.646Z Learning: Applies to apps/web/utils/ai/**/*.{ts,tsx} : Use TypeScript types for all parameters and return values in LLM featuresApplied to files:
apps/web/app/(landing)/home/Hero.tsxapps/web/app/(landing)/home/Features.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 approachApplied to files:
apps/web/app/layout.tsxapps/web/app/(landing)/login/page.tsxapps/web/app/(landing)/home/LogoCloud.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 !pages/_document.{js,jsx,ts,tsx} : Don't import next/document outside of pages/_document.jsx in Next.js projects.Applied to files:
apps/web/app/layout.tsxapps/web/app/(app)/layout.tsx📚 Learning: 2025-07-18T15:04:50.520Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/environment-variables.mdc:0-0 Timestamp: 2025-07-18T15:04:50.520Z Learning: Applies to apps/web/env.ts : Client-side environment variables must be prefixed with `NEXT_PUBLIC_` and added to both the `client` and `experimental__runtimeEnv` sections in `apps/web/env.ts`.Applied to files:
apps/web/env.ts📚 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/**/{.env.example,env.ts} : Client-side environment variables: Prefix with `NEXT_PUBLIC_`Applied to files:
apps/web/env.ts📚 Learning: 2025-07-18T15:04:50.520Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/environment-variables.mdc:0-0 Timestamp: 2025-07-18T15:04:50.520Z Learning: Applies to apps/web/env.ts : When adding a new environment variable, add it to `apps/web/env.ts` in the appropriate section: use `server` for server-only variables, and for client-side variables, use the `client` section and also add to `experimental__runtimeEnv`.Applied to files:
apps/web/env.ts📚 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/**/{.env.example,env.ts,turbo.json} : Add environment variables to `.env.example`, `env.ts`, and `turbo.json`Applied to files:
apps/web/env.ts📚 Learning: 2025-07-18T15:04:50.520Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/environment-variables.mdc:0-0 Timestamp: 2025-07-18T15:04:50.520Z Learning: Applies to apps/web/.env.example : When adding a new environment variable, add it to `.env.example` with an example value (e.g., NEW_VARIABLE=value_example).Applied to files:
apps/web/env.ts📚 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/app/(app)/layout.tsx📚 Learning: 2025-07-19T17:50:28.270Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/utilities.mdc:0-0 Timestamp: 2025-07-19T17:50:28.270Z Learning: The `utils` folder also contains core app logic such as Next.js Server Actions and Gmail API requests.Applied to files:
apps/web/app/(app)/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 **/*.{html,jsx,tsx} : Always include a title attribute for iframe elements.Applied to files:
apps/web/components/new-landing/common/Card.tsx📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/ultracite.mdc:0-0 Timestamp: 2025-07-20T09:03:06.318Z Learning: Applies to **/*.{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-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)/login/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)/login/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)/home/LogoCloud.tsx📚 Learning: 2025-07-20T09:03:06.318Z
Learnt from: CR Repo: elie222/inbox-zero PR: 0 File: .cursor/rules/ultracite.mdc:0-0 Timestamp: 2025-07-20T09:03:06.318Z Learning: Applies to **/*.{html,jsx,tsx} : Don't assign interactive ARIA roles to non-interactive HTML elements.Applied to files:
apps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsx🧬 Code graph analysis (4)
apps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsx (1)
apps/web/utils/config.ts (1)
userCount(8-8)apps/web/app/layout.tsx (1)
apps/web/env.ts (1)
env(16-244)apps/web/app/(app)/layout.tsx (6)
apps/web/providers/AppProviders.tsx (1)
AppProviders(10-20)apps/web/components/SideNavWithTopNav.tsx (1)
SideNavWithTopNav(46-73)apps/web/components/EmailViewer.tsx (1)
EmailViewer(13-47)apps/web/providers/PostHogProvider.tsx (1)
PostHogIdentify(32-63)apps/web/components/CommandK.tsx (1)
CommandK(23-138)apps/web/app/(app)/[emailAccountId]/assess.tsx (1)
AssessUser(13-44)apps/web/components/new-landing/sections/Pricing.tsx (1)
apps/web/components/new-landing/common/Typography.tsx (1)
Subheading(59-70)⏰ 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: Jit Security
- GitHub Check: test
🔇 Additional comments (34)
apps/web/components/ui/alert.tsx (1)
44-44: LGTM! Typography refactor is complete and properly configured.The change from
font-caltofont-titlealigns with the PR objectives. Verification confirms thatfont-titleis properly defined in the Tailwind configuration and allfont-calusages have been replaced across the codebase.apps/web/app/(marketing) (1)
1-1: The review comment is based on an incorrect premise and should be disregarded.
apps/web/app/(marketing)is not a git submodule—it is a regular, empty Next.js route group directory (the parentheses denote a route group in Next.js app router). No.gitmodulesfile exists in the repository, and no submodule pointer updates are present. The commit references in the review comment do not apply to this path.Likely an incorrect or invalid review comment.
apps/web/components/new-landing/common/Button.tsx (1)
29-29: Approve font class removal; inheritance verified.The removal of
font-geistfrom the Button component is correct and properly integrated. The Button will inheritfont-sansfrom the root layout (verified in apps/web/app/layout.tsx line 133, which appliesfont-sans antialiasedto the body element). Thefont-mediumclass correctly remains to control font weight. All Button usages in new-landing components (Header, CallToAction, Pricing) will render with consistent font inheritance.apps/web/app/(landing)/login/page.tsx (1)
36-36: LGTM! Typography update aligned with system-wide refactoring.The font class update from
font-caltofont-titleis consistent with the broader typography migration described in the PR objectives.apps/web/app/(landing)/home/Privacy.tsx (1)
28-31: LGTM! Consistent typography updates.Both the heading and subheading now use the new
font-titleclass, maintaining consistency with the system-wide font refactoring.apps/web/components/email-list/EmailList.tsx (1)
136-136: LGTM! Empty state typography updated.The empty state message now uses
font-title, consistent with the typography system refactoring.apps/web/app/(landing)/home/LogoCloud.tsx (1)
6-6: LGTM! Typography update applied.The heading now uses
font-title, aligning with the typography system refactoring.apps/web/app/(landing)/home/CTA.tsx (1)
20-20: LGTM! CTA heading typography updated.The heading now uses
font-title, consistent with the system-wide typography refactoring.apps/web/app/(landing)/login/sso/page.tsx (1)
89-89: LGTM! SSO page heading typography updated.The heading now uses
font-title, maintaining consistency with the regular login page and broader typography refactoring.apps/web/components/new-landing/sections/Pricing.tsx (1)
183-183: LGTM! Removed unnecessary font weight override.Removing
font-lightallows theSubheadingcomponent's default styling (which now includesfont-title) to apply, maintaining consistency with the typography system refactoring.apps/web/components/Typography.tsx (1)
12-87: LGTM! Core typography components updated.All heading components (
PageHeading,SectionHeader,TypographyH3,TypographyH4) now usefont-titleinstead offont-cal. This ensures consistent typography across all components that import and use these typography utilities.apps/web/app/(landing)/home/Features.tsx (1)
64-67: LGTM! Typography update is consistent.The transition from
font-caltofont-titlefor headings and subtitles aligns with the broader typography system overhaul across the codebase.apps/web/components/Celebration.tsx (1)
18-18: LGTM! Heading typography updated.The
font-titleclass correctly replacesfont-calfor the celebration heading.apps/web/components/assistant-chat/tools.tsx (1)
441-441: LGTM! Card header typography updated.The
font-titleclass correctly replacesfont-calin the tool card header.apps/web/components/editor/SimpleRichTextEditor.tsx (1)
94-94: LGTM! Editor heading typography updated.The prose utility correctly updates to
prose-headings:font-titlefor consistent typography in the rich text editor.apps/web/components/new-landing/common/BasicLayout.tsx (1)
9-9: LGTM! Font class removal aligns with centralized font handling.The removal of
font-geistis consistent with the new centralized font approach implemented in the root layout, as indicated by the PR context.apps/web/app/(landing)/home/Hero.tsx (1)
19-19: LGTM! Hero text typography updated.The
font-titleclass correctly replacesfont-calfor the main hero heading.apps/web/app/(app)/premium/Pricing.tsx (2)
59-62: LGTM! Pricing header typography updated.The header correctly transitions to
font-titlefor both the title and subtitle, maintaining consistency with the broader typography system changes.
213-213: LGTM! Tier name typography updated.The tier name correctly uses
font-title, consistent with the typography overhaul.apps/web/app/(app)/layout.tsx (2)
24-30: LGTM! Font loading follows best practices.The Inter font configuration correctly uses
display: "swap"to prevent FOIT (Flash of Invisible Text), as recommended in the learnings. The preload option will improve initial load performance.
70-88: Clean font application pattern.The two-layer wrapper approach (CSS variable on outer div, font class on inner div) is a clean pattern for applying custom fonts while maintaining proper cascading.
apps/web/tailwind.config.js (1)
48-50: Font family mappings align with layout changes.The updated font configuration correctly maps:
sans→ Geist (default body font)inter→ Inter (alternate body font)title→ Custom title font (for headings)This supports the typography refactor across the application.
apps/web/app/(landing)/home/FAQs.tsx (1)
80-82: Typography update aligns with system-wide refactor.The change from
font-caltofont-titleis consistent with the broader typography migration across the application.apps/web/app/(app)/[emailAccountId]/assistant/RulesTabNew.tsx (1)
8-8: Typography update aligns with system-wide refactor.The change from
font-caltofont-titleis consistent with the broader typography migration.apps/web/app/layout.tsx (3)
26-31: Geist font configuration looks good.The Geist font is correctly configured with
display: "swap"and appropriate weight selections. This follows Google Fonts best practices.
133-133: Clarify the conditional font loading behavior.The conditional application of
aeonikFont.variablebased onenv.NEXT_PUBLIC_USE_AEONIK_FONTcreates a runtime toggle. When this flag isfalse, the--font-titleCSS variable won't be set on the body element.Please verify:
- What is the intended fallback behavior when the flag is
false?- Should there be a default
--font-titledefinition pointing to another font (e.g., Geist or system fonts) when Aeonik is disabled?
20-25: No changes required—the code handles the conditional font safely.The
--font-titleCSS variable is only applied to the<body>whenNEXT_PUBLIC_USE_AEONIK_FONTistrue. When the flag isfalse(the default), the variable is not defined. However, this is not a problem because the Tailwind config defines a proper fallback:title: ["var(--font-title)", ...fontFamily.sans]. When the CSS variable is undefined, Tailwind automatically falls back to the defaultfontFamily.sans, so all components using thefont-titleclass will gracefully degrade to the standard font stack.apps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeHeader.tsx (1)
13-30: Typography updates are consistent across all headings.All heading elements (h1 and h2) have been consistently updated from
font-caltofont-title, aligning with the system-wide typography refactor.apps/web/components/new-landing/common/Card.tsx (1)
37-44: Typography update aligns with system-wide refactor.The CardHeader title now uses
font-titleinstead offont-aeonik, consistent with the broader typography migration across the application.apps/web/app/(app)/[emailAccountId]/assistant/RulesPrompt.tsx (1)
216-218: Typography update aligns with system-wide refactor.The Label component now uses
font-titleinstead offont-cal, consistent with the broader typography migration for headings and prominent text elements.apps/web/app/(app)/[emailAccountId]/assistant/RulesPromptNew.tsx (1)
161-163: LGTM! Typography update aligns with PR objectives.The font class changes from
font-caltofont-titleare consistent with the broader typography refactor described in the PR objectives.Also applies to: 213-213
apps/web/components/new-landing/common/Typography.tsx (3)
12-12: LGTM! Font class update aligns with typography refactor.The change from
font-aeoniktofont-titlein the Heading component is consistent with the PR objectives.
63-63: LGTM! Font class update aligns with typography refactor.The change from
font-aeoniktofont-titlein the Subheading component is consistent with the PR objectives.
72-113: No issues found—thefamilyprop removal is safe.Verification confirms the
familyprop is not used anywhere in the codebase. All existing<Paragraph>component usages in FAQs.tsx, Testimonials.tsx, Hero.tsx, Footer.tsx, Awards.tsx, and Typography.tsx use onlycolor,size,className, andasprops, making this a safe cleanup with no breaking changes.
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
turbo.json(1 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
!{.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:
turbo.json
turbo.json
📄 CodeRabbit inference engine (.cursor/rules/environment-variables.mdc)
When adding a new environment variable, add it to
turbo.jsonundertasks.build.envto ensure it is included in the build process.
Files:
turbo.json
!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:
turbo.json
🧠 Learnings (5)
📓 Common learnings
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-07-20T09:03:06.318Z
Learning: Applies to **/*.{html,jsx,tsx} : Use a recommended display strategy with Google Fonts.
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 tailwindcss patterns with prettier-plugin-tailwindcss
📚 Learning: 2025-07-18T15:04:50.520Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/environment-variables.mdc:0-0
Timestamp: 2025-07-18T15:04:50.520Z
Learning: Applies to turbo.json : When adding a new environment variable, add it to `turbo.json` under `tasks.build.env` to ensure it is included in the build process.
Applied to files:
turbo.json
📚 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/**/{.env.example,env.ts,turbo.json} : Add environment variables to `.env.example`, `env.ts`, and `turbo.json`
Applied to files:
turbo.json
📚 Learning: 2025-07-18T15:04:50.520Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/environment-variables.mdc:0-0
Timestamp: 2025-07-18T15:04:50.520Z
Learning: Applies to apps/web/env.ts : Client-side environment variables must be prefixed with `NEXT_PUBLIC_` and added to both the `client` and `experimental__runtimeEnv` sections in `apps/web/env.ts`.
Applied to files:
turbo.json
📚 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/**/{.env.example,env.ts} : Client-side environment variables: Prefix with `NEXT_PUBLIC_`
Applied to files:
turbo.json
⏰ 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). (4)
- GitHub Check: Analyze (javascript-typescript)
- GitHub Check: cubic · AI code reviewer
- GitHub Check: Jit Security
- GitHub Check: test
Summary by CodeRabbit