Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThis pull request applies capitalization normalization across multiple UI components, converting CardTitle and DialogTitle text from title-case to sentence-case conventions. Changes affect approximately 15 component files without modifying functionality or control flow. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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: 0
🧹 Nitpick comments (2)
apps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsx (1)
121-142: Avoidkey={index}for toolCalls rendering. IftoolCallscan reorder/change, this may misrender; use a stable identifier (e.g., call id/name+hash).apps/web/app/(app)/early-access/EarlyAccessFeatures.tsx (1)
62-73: Avoid non-null assertions onfeature.flagKey. Guard/skip rows without aflagKeyrather than using!.Proposed patch
- {features.map((feature) => ( + {features + .filter((feature) => !!feature.flagKey) + .map((feature) => ( <TableRow key={feature.name}> <TableCell>{feature.name}</TableCell> <TableCell> <Toggle name={feature.name} - enabled={!!activeFlags?.includes(feature.flagKey!)} - onChange={() => toggleBeta(feature.flagKey!)} + enabled={!!activeFlags?.includes(feature.flagKey)} + onChange={() => toggleBeta(feature.flagKey)} /> </TableCell> </TableRow> - ))} + ))}
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (15)
apps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/components/ReferralDialog.tsx
🧰 Additional context used
📓 Path-based instructions (21)
**/*.{ts,tsx}
📄 CodeRabbit inference engine (.cursor/rules/data-fetching.mdc)
**/*.{ts,tsx}: For API GET requests to server, use theswrpackage
Useresult?.serverErrorwithtoastErrorfrom@/components/Toastfor error handling in async operations
**/*.{ts,tsx}: Use wrapper functions for Gmail message operations (get, list, batch, etc.) from @/utils/gmail/message.ts instead of direct API calls
Use wrapper functions for Gmail thread operations from @/utils/gmail/thread.ts instead of direct API calls
Use wrapper functions for Gmail label operations from @/utils/gmail/label.ts instead of direct API calls
**/*.{ts,tsx}: Don't use primitive type aliases or misleading types
Don't use empty type parameters in type aliases and interfaces
Don't use this and super in static contexts
Don't use any or unknown as type constraints
Don't use the TypeScript directive @ts-ignore
Don't use TypeScript enums
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 TypeScript namespaces
Don't use non-null assertions with the!postfix operator
Don't use parameter properties in class constructors
Don't use user-defined types
Useas constinstead of literal types and type annotations
Use eitherT[]orArray<T>consistently
Initialize each enum member value explicitly
Useexport typefor types
Useimport typefor types
Make sure all enum members are literal values
Don't use TypeScript const enum
Don't declare empty interfaces
Don't let variables evolve into any type through reassignments
Don't use the any type
Don't misuse the non-null assertion operator (!) in TypeScript files
Don't use implicit any type on variable declarations
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
Use consistent accessibility modifiers on class properties and methods
Use function types instead of object types wit...
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
**/*.{ts,tsx,js,jsx}
📄 CodeRabbit inference engine (.cursor/rules/prisma-enum-imports.mdc)
Always import Prisma enums from
@/generated/prisma/enumsinstead of@/generated/prisma/clientto avoid Next.js bundling errors in client componentsImport Prisma using the project's centralized utility:
import prisma from '@/utils/prisma'
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
apps/web/**/*.{ts,tsx}
📄 CodeRabbit inference engine (.cursor/rules/project-structure.mdc)
Import specific lodash functions rather than entire lodash library to minimize bundle size (e.g.,
import groupBy from 'lodash/groupBy')
apps/web/**/*.{ts,tsx}: Use TypeScript with strict null checks
Do not export types/interfaces that are only used within the same file. Export later if needed
Infer types from Zod schemas usingz.infer<typeof schema>instead of duplicating as separate interfaces
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
**/*.{tsx,ts}
📄 CodeRabbit inference engine (.cursor/rules/ui-components.mdc)
**/*.{tsx,ts}: Use Shadcn UI and Tailwind for components and styling
Usenext/imagepackage for images
For API GET requests to server, use theswrpackage with hooks likeuseSWRto fetch data
For text inputs, use theInputcomponent withregisterPropsfor form integration and error handling
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
**/*.{tsx,ts,css}
📄 CodeRabbit inference engine (.cursor/rules/ui-components.mdc)
Implement responsive design with Tailwind CSS using a mobile-first approach
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
**/*.tsx
📄 CodeRabbit inference engine (.cursor/rules/ui-components.mdc)
**/*.tsx: Use theLoadingContentcomponent to handle loading states instead of manual loading state management
For text areas, use theInputcomponent withtype='text',autosizeTextareaprop set to true, andregisterPropsfor form integration
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
**/*.{js,jsx,ts,tsx}
📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)
**/*.{js,jsx,ts,tsx}: Don't useaccessKeyattribute on any HTML element
Don't setaria-hidden="true"on focusable elements
Don't add ARIA roles, states, and properties to elements that don't support them
Don't use distracting elements like<marquee>or<blink>
Only use thescopeprop on<th>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 assigntabIndexto non-interactive HTML elements
Don't use positive integers fortabIndexproperty
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 atitleelement 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
AssigntabIndexto non-interactive HTML elements witharia-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 atypeattribute for button elements
Make elements with interactive roles and handlers focusable
Give heading elements content that's accessible to screen readers (not hidden witharia-hidden)
Always include alangattribute on the html element
Always include atitleattribute for iframe elements
AccompanyonClickwith at least one of:onKeyUp,onKeyDown, oronKeyPress
AccompanyonMouseOver/onMouseOutwithonFocus/onBlur
Include caption tracks for audio and video elements
Use semantic elements instead of role attributes in JSX
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 AR...
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
**/*.{jsx,tsx}
📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)
**/*.{jsx,tsx}: Don't use unnecessary fragments
Don't pass children as props
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 forget key props in iterators and collection literals
Don't define React components inside other components
Don't use event handlers on non-interactive elements
Don't assign to React component props
Don't use bothchildrenanddangerouslySetInnerHTMLprops on the same element
Don't use dangerous JSX props
Don't use Array index in keys
Don't insert comments as text nodes
Don't assign JSX properties multiple times
Don't add extra closing tags for components without children
Use<>...</>instead of<Fragment>...</Fragment>
Watch out for possible "wrong" semicolons inside JSX elements
Make sure void (self-closing) elements don't have children
Don't usetarget="_blank"withoutrel="noopener"
Don't use<img>elements in Next.js projects
Don't use<head>elements in Next.js projects
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
!(pages/_document).{jsx,tsx}
📄 CodeRabbit inference engine (.cursor/rules/ultracite.mdc)
Don't use the next/head module in pages/_document.js on Next.js projects
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
**/*.{js,ts,jsx,tsx}
📄 CodeRabbit inference engine (.cursor/rules/utilities.mdc)
**/*.{js,ts,jsx,tsx}: Use lodash utilities for common operations (arrays, objects, strings)
Import specific lodash functions to minimize bundle size (e.g.,import groupBy from 'lodash/groupBy')
**/*.{js,ts,jsx,tsx}: Add helper functions to the bottom of files, not the top!
All imports go at the top of files, no mid-file dynamic imports.
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
apps/web/**/*.{ts,tsx,js,jsx}
📄 CodeRabbit inference engine (apps/web/CLAUDE.md)
apps/web/**/*.{ts,tsx,js,jsx}: Use@/path aliases for imports from project root
Use proper error handling with try/catch blocks
Prefer self-documenting code over comments; use descriptive variable and function names instead of explaining intent with comments. Never add comments that just describe what the code does. Only add comments for 'why' not 'what'
Add helper functions to the bottom of files, not the top
All imports go at the top of files, no mid-file dynamic imports
UsegetActionErrorMessage(error.error)from@/utils/errorto extract user-friendly error messages
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
apps/web/**/*.{ts,tsx,css}
📄 CodeRabbit inference engine (apps/web/CLAUDE.md)
Follow tailwindcss patterns with prettier-plugin-tailwindcss
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
apps/web/**/*.{tsx,jsx}
📄 CodeRabbit inference engine (apps/web/CLAUDE.md)
apps/web/**/*.{tsx,jsx}: Prefer functional components with hooks
Use shadcn/ui components when available
Follow consistent naming conventions (PascalCase for components)
Use LoadingContent component for async data with loading and error states
Use React Hook Form with Zod validation for form handling
UseuseActionhook fromnext-safe-action/hookswithonSuccessandonErrorcallbacks for form submission
Use LoadingContent component to handle loading and error states consistently
Callmutate()after successful mutations to refresh SWR data
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
apps/web/**/*.{tsx,jsx,css}
📄 CodeRabbit inference engine (apps/web/CLAUDE.md)
Ensure responsive design with mobile-first approach
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
apps/web/**/*.{ts,tsx,js,jsx,json}
📄 CodeRabbit inference engine (apps/web/CLAUDE.md)
Client-side environment variables must be prefixed with
NEXT_PUBLIC_
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
**/*.{js,ts,jsx,tsx,py,java,cs,rb,go,php,rs,kt,swift,m}
📄 CodeRabbit inference engine (.cursor/rules/notes.mdc)
Prefer self-documenting code over comments; use descriptive variable and function names instead of explaining intent with comments. Never add comments that just describe what the code does - code should explain itself. Only add comments for 'why' not 'what'.
Files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
apps/web/app/(app)/**/*.{ts,tsx}
📄 CodeRabbit inference engine (.cursor/rules/page-structure.mdc)
apps/web/app/(app)/**/*.{ts,tsx}: Components for the page are either put inpage.tsx, or in theapps/web/app/(app)/PAGE_NAMEfolder
If we're in a deeply nested component we will useswrto fetch via API
If you need to useonClickin a component, that component is a client component and file must start withuse client
Files:
apps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
apps/web/app/(app)/*/page.tsx
📄 CodeRabbit inference engine (.cursor/rules/page-structure.mdc)
apps/web/app/(app)/*/page.tsx: Create new pages atapps/web/app/(app)/PAGE_NAME/page.tsx
Pages are Server components so you can load data into them directlyCreate new pages at
apps/web/app/(app)/PAGE_NAME/page.tsxwith components either colocated in the same folder or inpage.tsx
Files:
apps/web/app/(app)/early-access/page.tsx
**/*Form.{ts,tsx}
📄 CodeRabbit inference engine (.cursor/rules/form-handling.mdc)
**/*Form.{ts,tsx}: Use React Hook Form with Zod for validation in form components
Validate form inputs before submission
Show validation errors inline next to form fields
Files:
apps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsx
**/{pages,routes,components}/**/*.{ts,tsx}
📄 CodeRabbit inference engine (.cursor/rules/gmail-api.mdc)
Never call Gmail API directly from routes or components - always use wrapper functions from the utils folder
Files:
apps/web/components/ReferralDialog.tsx
apps/web/components/**/*.tsx
📄 CodeRabbit inference engine (.cursor/rules/project-structure.mdc)
Use PascalCase for component file names (e.g.,
components/Button.tsx)
apps/web/components/**/*.tsx: Use React Hook Form withzodResolverfor form validation, combining it withuseActionhook fromnext-safe-action/hooksfor server action execution
UseuseActionhook withonSuccessandonErrorcallbacks for handling server action responses in forms
UsegetActionErrorMessage(error.error)utility to extract user-friendly error messages from server actions, supporting optionalprefixparameter
UseLoadingContentcomponent to handle loading and error states, passingloading,error, andchildrenprops
Files:
apps/web/components/ReferralDialog.tsx
🧠 Learnings (27)
📓 Common learnings
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/project-structure.mdc:0-0
Timestamp: 2025-11-25T14:38:56.992Z
Learning: Applies to apps/web/components/**/*.tsx : Use PascalCase for component file names (e.g., `components/Button.tsx`)
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: apps/web/CLAUDE.md:0-0
Timestamp: 2026-01-09T21:51:15.182Z
Learning: Applies to apps/web/**/*.{tsx,jsx} : Follow consistent naming conventions (PascalCase for components)
📚 Learning: 2026-01-08T15:09:06.736Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/fullstack-workflow.mdc:0-0
Timestamp: 2026-01-08T15:09:06.736Z
Learning: Applies to apps/web/components/**/*.tsx : Use `getActionErrorMessage(error.error)` utility to extract user-friendly error messages from server actions, supporting optional `prefix` parameter
Applied to files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsx
📚 Learning: 2026-01-07T21:07:06.691Z
Learnt from: elie222
Repo: elie222/inbox-zero PR: 1230
File: apps/web/app/(app)/[emailAccountId]/drive/page.tsx:47-70
Timestamp: 2026-01-07T21:07:06.691Z
Learning: In TSX files across the codebase, prefer direct server action calls with manual error handling (e.g., check result?.serverError and handle errors explicitly). The useAction hook pattern is not required; you can call server actions directly and use try/finally to ensure cleanup (such as resetting loading states) regardless of the hook. Apply consistently for components that perform server interactions.
Applied to files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
📚 Learning: 2026-01-09T17:27:19.225Z
Learnt from: elie222
Repo: elie222/inbox-zero PR: 1234
File: apps/web/app/(app)/[emailAccountId]/assistant/settings/FollowUpRemindersSetting.tsx:65-83
Timestamp: 2026-01-09T17:27:19.225Z
Learning: In the elie222/inbox-zero repo, for React components using next-safe-action, using optimistic updates with mutate on success/error is an accepted approach to address race conditions in toggle handlers. It is acceptable for components not to guard rapid toggles with isExecuting (disable) when the optimistic UI state is reconciled by mutate. Apply this guidance to similar TSX components in the web app where appropriate.
Applied to files:
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsxapps/web/app/(app)/[emailAccountId]/smart-categories/page.tsxapps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/components/ReferralDialog.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsxapps/web/app/(app)/admin/GmailUrlConverter.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsxapps/web/app/(app)/admin/DebugLabels.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsxapps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsxapps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
📚 Learning: 2025-11-25T14:37:56.430Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm-test.mdc:0-0
Timestamp: 2025-11-25T14:37:56.430Z
Learning: Applies to apps/web/__tests__/**/*.test.ts : Prefer using existing helpers from `@/__tests__/helpers.ts` (`getEmailAccount`, `getEmail`, `getRule`, `getMockMessage`, `getMockExecutedRule`) instead of creating custom test data helpers
Applied to files:
apps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsxapps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsx
📚 Learning: 2026-01-01T10:42:29.775Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/testing.mdc:0-0
Timestamp: 2026-01-01T10:42:29.775Z
Learning: Applies to **/*.test.{ts,tsx} : Use test helper functions `getEmail`, `getEmailAccount`, and `getRule` from `@/__tests__/helpers` for creating mock data
Applied to files:
apps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsxapps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsx
📚 Learning: 2025-11-25T14:38:27.988Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/posthog-feature-flags.mdc:0-0
Timestamp: 2025-11-25T14:38:27.988Z
Learning: Early access features are automatically displayed on the Early Access page (`/early-access`) through the `EarlyAccessFeatures` component, requiring no manual configuration
Applied to files:
apps/web/app/(app)/early-access/page.tsxapps/web/app/(app)/early-access/EarlyAccessFeatures.tsx
📚 Learning: 2026-01-01T10:42:29.775Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/testing.mdc:0-0
Timestamp: 2026-01-01T10:42:29.775Z
Learning: Applies to **/*.test.{ts,tsx} : Use descriptive test names that clearly indicate what is being tested
Applied to files:
apps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsx
📚 Learning: 2025-11-25T14:37:22.660Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/gmail-api.mdc:0-0
Timestamp: 2025-11-25T14:37:22.660Z
Learning: Applies to **/*.{ts,tsx} : Use wrapper functions for Gmail message operations (get, list, batch, etc.) from @/utils/gmail/message.ts instead of direct API calls
Applied to files:
apps/web/app/(app)/admin/GmailUrlConverter.tsx
📚 Learning: 2025-11-25T14:37:22.660Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/gmail-api.mdc:0-0
Timestamp: 2025-11-25T14:37:22.660Z
Learning: Applies to **/*.{ts,tsx} : Use wrapper functions for Gmail label operations from @/utils/gmail/label.ts instead of direct API calls
Applied to files:
apps/web/app/(app)/admin/GmailUrlConverter.tsx
📚 Learning: 2025-11-25T14:37:22.660Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/gmail-api.mdc:0-0
Timestamp: 2025-11-25T14:37:22.660Z
Learning: Applies to **/*.{ts,tsx} : Use wrapper functions for Gmail thread operations from @/utils/gmail/thread.ts instead of direct API calls
Applied to files:
apps/web/app/(app)/admin/GmailUrlConverter.tsx
📚 Learning: 2025-11-25T14:37:22.660Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/gmail-api.mdc:0-0
Timestamp: 2025-11-25T14:37:22.660Z
Learning: Applies to apps/web/utils/gmail/**/*.{ts,tsx} : Always use wrapper functions from @/utils/gmail/ for Gmail API operations instead of direct provider API calls
Applied to files:
apps/web/app/(app)/admin/GmailUrlConverter.tsx
📚 Learning: 2025-11-25T14:37:22.660Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/gmail-api.mdc:0-0
Timestamp: 2025-11-25T14:37:22.660Z
Learning: Applies to apps/web/utils/gmail/**/*.{ts,tsx} : Keep Gmail provider-specific implementation details isolated within the apps/web/utils/gmail/ directory
Applied to files:
apps/web/app/(app)/admin/GmailUrlConverter.tsx
📚 Learning: 2025-07-08T13:14:07.449Z
Learnt from: elie222
Repo: elie222/inbox-zero PR: 537
File: apps/web/app/(app)/[emailAccountId]/clean/onboarding/page.tsx:30-34
Timestamp: 2025-07-08T13:14:07.449Z
Learning: The clean onboarding page in apps/web/app/(app)/[emailAccountId]/clean/onboarding/page.tsx is intentionally Gmail-specific and should show an error for non-Google email accounts rather than attempting to support multiple providers.
Applied to files:
apps/web/app/(app)/admin/GmailUrlConverter.tsx
📚 Learning: 2025-11-25T14:38:07.606Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm.mdc:0-0
Timestamp: 2025-11-25T14:38:07.606Z
Learning: Applies to apps/web/utils/ai/**/*.ts : Use XML-like tags to structure data in prompts, remove excessive whitespace and truncate long inputs, and format data consistently across similar LLM functions
Applied to files:
apps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsxapps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
📚 Learning: 2025-11-25T14:38:07.606Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm.mdc:0-0
Timestamp: 2025-11-25T14:38:07.606Z
Learning: Applies to apps/web/utils/ai/**/*.ts : System prompts must define the LLM's role and task specifications
Applied to files:
apps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsx
📚 Learning: 2025-11-25T14:42:08.869Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-11-25T14:42:08.869Z
Learning: Applies to **/*.{js,jsx,ts,tsx} : Don't have unused labels
Applied to files:
apps/web/app/(app)/admin/DebugLabels.tsx
📚 Learning: 2025-11-25T14:42:08.869Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-11-25T14:42:08.869Z
Learning: Applies to **/*.{js,jsx,ts,tsx} : Make sure label elements have text content and are associated with an input
Applied to files:
apps/web/app/(app)/admin/DebugLabels.tsx
📚 Learning: 2025-11-25T14:42:08.869Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-11-25T14:42:08.869Z
Learning: Applies to **/*.{js,jsx,ts,tsx} : Don't use unnecessary labels
Applied to files:
apps/web/app/(app)/admin/DebugLabels.tsx
📚 Learning: 2025-11-25T14:38:56.992Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/project-structure.mdc:0-0
Timestamp: 2025-11-25T14:38:56.992Z
Learning: Applies to apps/web/components/ui/**/*.tsx : Shadcn UI components are located in `components/ui` directory
Applied to files:
apps/web/app/(app)/admin/DebugLabels.tsx
📚 Learning: 2025-11-25T14:37:56.430Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm-test.mdc:0-0
Timestamp: 2025-11-25T14:37:56.430Z
Learning: Applies to apps/web/__tests__/**/*.test.ts : Use `console.debug()` for outputting generated LLM content in tests, e.g., `console.debug("Generated content:\n", result.content);`
Applied to files:
apps/web/app/(app)/admin/DebugLabels.tsx
📚 Learning: 2025-11-25T14:42:08.869Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/ultracite.mdc:0-0
Timestamp: 2025-11-25T14:42:08.869Z
Learning: Applies to **/*.{js,jsx,ts,tsx} : Don't use labels that share a name with a variable
Applied to files:
apps/web/app/(app)/admin/DebugLabels.tsx
📚 Learning: 2026-01-11T17:08:52.971Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/posthog-feature-flags.mdc:0-0
Timestamp: 2026-01-11T17:08:52.971Z
Learning: Applies to apps/web/hooks/useFeatureFlags.ts : Use kebab-case naming convention for feature flag keys (e.g., `inbox-cleaner`, `pricing-options-2`)
Applied to files:
apps/web/app/(app)/early-access/EarlyAccessFeatures.tsx
📚 Learning: 2026-01-11T17:08:52.971Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/posthog-feature-flags.mdc:0-0
Timestamp: 2026-01-11T17:08:52.971Z
Learning: Applies to apps/web/env.ts : For each early access feature, add the corresponding environment variable to the `env.ts` file by declaring it in both the schema definition and runtimeEnv object (e.g., `NEXT_PUBLIC_FEATURE_NAME_ENABLED`)
Applied to files:
apps/web/app/(app)/early-access/EarlyAccessFeatures.tsx
📚 Learning: 2025-11-25T14:38:27.988Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/posthog-feature-flags.mdc:0-0
Timestamp: 2025-11-25T14:38:27.988Z
Learning: Applies to apps/web/hooks/useFeatureFlags.ts : Use kebab-case for feature flag keys (e.g., `inbox-cleaner`, `pricing-options-2`)
Applied to files:
apps/web/app/(app)/early-access/EarlyAccessFeatures.tsx
📚 Learning: 2026-01-11T17:08:52.971Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/posthog-feature-flags.mdc:0-0
Timestamp: 2026-01-11T17:08:52.971Z
Learning: Feature flags are configured in the PostHog dashboard. The Early Access page automatically displays available features to users for them to opt into new features
Applied to files:
apps/web/app/(app)/early-access/EarlyAccessFeatures.tsx
📚 Learning: 2025-11-25T14:38:07.606Z
Learnt from: CR
Repo: elie222/inbox-zero PR: 0
File: .cursor/rules/llm.mdc:0-0
Timestamp: 2025-11-25T14:38:07.606Z
Learning: Applies to apps/web/utils/ai/**/*.ts : Keep related AI functions in the same file or directory, extract common patterns into utility functions, and document complex AI logic with clear comments
Applied to files:
apps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx
🧬 Code graph analysis (13)
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsx (1)
apps/web/components/ui/card.tsx (1)
CardTitle(202-202)
apps/web/app/(app)/[emailAccountId]/smart-categories/page.tsx (1)
apps/web/components/ui/card.tsx (1)
CardTitle(202-202)
apps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsx (1)
apps/web/components/ui/card.tsx (1)
CardTitle(202-202)
apps/web/app/(app)/early-access/page.tsx (1)
apps/web/components/ui/card.tsx (1)
CardTitle(202-202)
apps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsx (1)
apps/web/components/ui/card.tsx (1)
CardTitle(202-202)
apps/web/components/ReferralDialog.tsx (1)
apps/web/components/ui/card.tsx (1)
CardTitle(202-202)
apps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsx (1)
apps/web/components/ui/card.tsx (1)
CardTitle(202-202)
apps/web/app/(app)/admin/GmailUrlConverter.tsx (1)
apps/web/components/ui/card.tsx (1)
CardTitle(202-202)
apps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsx (1)
apps/web/components/Typography.tsx (1)
SectionHeader(124-124)
apps/web/app/(app)/admin/DebugLabels.tsx (1)
apps/web/components/ui/card.tsx (1)
CardTitle(202-202)
apps/web/app/(app)/early-access/EarlyAccessFeatures.tsx (1)
apps/web/components/ui/card.tsx (1)
CardTitle(202-202)
apps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsx (1)
apps/web/components/ui/card.tsx (1)
CardTitle(202-202)
apps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx (1)
apps/web/components/ui/dialog.tsx (1)
DialogTitle(124-124)
⏰ 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: Baz Reviewer
- GitHub Check: test
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (15)
apps/web/app/(app)/admin/DebugLabels.tsx (1)
54-54: Sentence-case title change looks good (no behavior impact).apps/web/app/(app)/[emailAccountId]/integrations/test/McpAgentTest.tsx (1)
62-62: Sentence-case title change looks good (no behavior impact).apps/web/app/(app)/[emailAccountId]/assistant/settings/SettingsTab.tsx (1)
24-24: Sentence-case header change looks good (no behavior impact).apps/web/app/(app)/early-access/EarlyAccessFeatures.tsx (1)
48-48: Sentence-case title change looks good (no behavior impact).apps/web/app/(app)/[emailAccountId]/smart-categories/page.tsx (1)
109-109: Sentence-case title change looks good (no behavior impact).apps/web/app/(app)/[emailAccountId]/assistant/TestCustomEmailForm.tsx (1)
67-67: LGTM! Sentence-case applied consistently.The CardTitle text change from "Test Result" to "Test result" aligns with the PR's objective to standardize UI text capitalization across the application.
apps/web/app/(app)/[emailAccountId]/cold-email-blocker/ColdEmailTest.tsx (1)
13-13: LGTM! Sentence-case applied consistently.The CardTitle text change from "Test Cold Email Blocker" to "Test cold email blocker" improves UI consistency.
apps/web/app/(app)/[emailAccountId]/assistant/group/LearnedPatterns.tsx (1)
79-79: LGTM! Sentence-case applied consistently.The DialogTitle text change from "Learned Patterns" to "Learned patterns" aligns with the PR's capitalization standardization objective.
apps/web/app/organizations/invitations/[invitationId]/accept/page.tsx (1)
85-85: LGTM! Sentence-case applied consistently to error states.The CardTitle text changes in error states ("Invalid Invitation" → "Invalid invitation" and "Invitation Error" → "Invitation error") maintain consistency with the PR's UI text standardization.
Also applies to: 112-112
apps/web/app/(app)/[emailAccountId]/calendars/CalendarConnections.tsx (1)
21-21: LGTM! Sentence-case applied consistently.The CardTitle text change from "Connected Calendars" to "Connected calendars" completes the UI text standardization across the calendar components.
apps/web/app/(app)/admin/GmailUrlConverter.tsx (1)
59-59: LGTM! Sentence case applied consistently.The CardTitle text change improves UI consistency by following sentence case conventions.
apps/web/app/(app)/[emailAccountId]/assistant/settings/WritingStyleSetting.tsx (1)
38-38: LGTM! Clearer and more concise description.The revised description is more action-oriented and easier to understand.
apps/web/app/(app)/early-access/page.tsx (1)
27-27: LGTM! Consistent sentence case applied across all titles.All CardTitle elements have been updated to follow sentence case conventions, improving UI consistency throughout the page.
Also applies to: 42-42, 56-56, 72-72
apps/web/components/ReferralDialog.tsx (1)
111-111: LGTM! Sentence case applied consistently.All CardTitle elements have been updated to sentence case, maintaining consistency with the rest of the application.
Also applies to: 158-158, 175-175
apps/web/app/(app)/[emailAccountId]/assistant/settings/PersonalSignatureSetting.tsx (1)
50-50: LGTM! Simplified button label.The static "Edit" label is clearer and works appropriately for both creating and editing signatures, reducing unnecessary UI complexity.
Generated description
Below is a concise technical summary of the changes proposed in this PR:
graph LR SettingsTab_("SettingsTab"):::modified WritingStyleSetting_("WritingStyleSetting"):::modified PersonalSignatureSetting_("PersonalSignatureSetting"):::modified SettingsTab_ -- "Updated header and clarified writing-style description." --> WritingStyleSetting_ SettingsTab_ -- "Always shows 'Edit' button; removed hasSignature conditional." --> PersonalSignatureSetting_ classDef added stroke:#15AA7A classDef removed stroke:#CD5270 classDef modified stroke:#EDAC4C linkStyle default stroke:#CBD5E1,font-size:13pxUpdates the casing of various UI card and dialog titles, section headers, and button labels across the application to sentence case for improved consistency. Refines the display text for several features, including administrative tools, early access features, AI assistant settings, and integration tests, to align with a standardized UI presentation.
Latest Contributors(1)
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.