Conversation
Removed 'as any' type assertion that was bypassing TypeScript type safety in createUserProfile call. Also removed invalid properties (email, onboardingCompleted) that don't exist in the Profile type definition. The function accepts Partial<Profile>, so passing only valid fields like 'name' is sufficient and type-safe.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR tightens TypeScript type safety on the signup flow by removing an unsafe File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
📝 WalkthroughSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughRemoved custom Google fonts and simplified typography, added a persistent Toaster to the root layout, adjusted Tailwind font stacks to system fonts, and changed signup profile creation to send only the user's name to createUserProfile. Changes
Sequence Diagram(s)(omitted — changes do not introduce a new multi-component control flow requiring visualization) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Cache: Disabled due to Reviews > Disable Cache setting Knowledge base: Disabled due to ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🧰 Additional context used🪛 GitHub Check: Codacy Static Code Analysispackage.json[warning] 50-50: package.json#L50 ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (1)
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 |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
Codacy's Analysis Summary2 new issues (≤ 0 issue) Review Pull Request in Codacy →
|
Removed Poppins and PT Sans Google Fonts imports that were failing during build due to network restrictions. Replaced with system font stack that works offline and doesn't require external requests. Changes: - Removed next/font/google imports and font configurations - Updated Tailwind config to use system-ui font stack - Changed body className to use font-sans This ensures builds work in restricted network environments and improves page load performance by eliminating external font requests.
Updated Next.js from 15.4.0 to 15.5.9 to resolve critical security vulnerabilities including: - Cache Key Confusion for Image Optimization API Routes - Content Injection Vulnerability - SSRF via Improper Middleware Redirect Handling - RCE in React flight protocol - Server Actions Source Code Exposure - DoS with Server Components Also fixed other vulnerabilities in glob, brace-expansion, jws, node-forge, and qs packages via npm audit fix. All npm audit vulnerabilities are now resolved (0 vulnerabilities). Build verified to work with updated dependencies.
| return ( | ||
| <html lang="en" suppressHydrationWarning> | ||
| <body className={`${ptSans.variable} ${poppins.variable} font-body antialiased`} suppressHydrationWarning> | ||
| <body className="font-sans antialiased" suppressHydrationWarning> |
There was a problem hiding this comment.
Codacy found an issue: 'React' must be in scope when using JSX
|



Removed 'as any' type assertion that was bypassing TypeScript type safety in createUserProfile call. Also removed invalid properties (email, onboardingCompleted) that don't exist in the Profile type definition.
The function accepts Partial, so passing only valid fields like 'name' is sufficient and type-safe.
Summary by Sourcery
Bug Fixes: