refactor: migrate account emails to dedicated api#1654
refactor: migrate account emails to dedicated api#1654arpitgupta1214 wants to merge 2 commits intotestfrom
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 19 minutes and 57 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ 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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
No issues found across 5 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: This PR migrates logic to a new API endpoint and removes an existing route, which is a high-impact architectural change requiring human verification of the new service dependency.
Summary
/api/account-emailsrouteaccount_idcontract from the frontenduseAccountEmailsso it owns its query keyTesting
fetchAccountEmailsSummary by cubic
Migrated account email lookups to the dedicated accounts API and removed the local route. Simplifies fetching with a new hook and aligns with the account-scoped
account_idcontract./api/account-emailsroute.lib/accounts/fetchAccountEmailsto call/api/accounts/emailswith a bearer token.hooks/useAccountEmails(owns its query key, handles auth viausePrivy).FileInfoDialogandTasksListto useuseAccountEmailsand simplify logic.Written for commit 130d00f. Summary will update on new commits.