fix(studio): extend downgrade error toast duration - #47780
Conversation
The toast shown when a Free tier downgrade is blocked (e.g. active branch) auto-dismissed after the default 4s, making the failure easy to miss. Match the duration/dismissible pattern used elsewhere in the billing error flow.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe downgrade mutation's error handler in ExitSurveyModal now calls toast.error with additional options: a 10-second duration and dismissible flag, replacing the previous default toast.error invocation. ChangesToast Error Options
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
🎭 Playwright Test ResultsDetails
Flaky testsFeatures › queue-table-operations.spec.ts › Queue Table Operations › pending changes persist when switching between tables Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
Braintrust eval report
|
Summary
ExitSurveyModal.tsxused the default 4s toast duration, making it easy to miss.duration: 10_000, dismissible: true, matching the pattern already used for other important billing error toasts (org-subscription-update-mutation.ts,NewOrgForm.tsx).Fixes FE-3882
Test plan
Summary by CodeRabbit