refactor(frontend): consolidate account-overrides prefetch helper (closes #198)#852
refactor(frontend): consolidate account-overrides prefetch helper (closes #198)#852cristim wants to merge 2 commits into
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 56 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds a shared helper for parallel account-override retrieval, uses it in both purchase modal flows, and updates fan-out tests to wait an additional microtask before asserting rendered DOM state. ChangesOverride Fetching Consolidation
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
Actionable comments posted: 0 |
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
|
@coderabbitai review |
Rate Limit Exceeded
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
…oses #198) Extract fetchOverridesForAccounts() into frontend/src/lib/overrides.ts, replacing two near-identical inline Promise.all blocks in openFanOutModal and openPurchaseModal. Update the mixed-SP DOM test for the extra async boundary introduced by the new function.
Summary
fetchOverridesForAccounts()intofrontend/src/lib/overrides.ts, replacing two near-identical inlinePromise.allprefetch blocks inopenFanOutModalandopenPurchaseModalawait Promise.resolve()tick in the mixed-SP DOM test to account for the extra async function boundary introduced by the new helperTest plan
npx tsc --noEmit-- cleannpm test-- 65 suites, 2142 passed, 1 pre-existing skip, 0 failuressrc/lib/overrides.tsshows 100% statement/branch/function/line coverageSummary by CodeRabbit