Repository navigation
ux(settings): toast-undo for Reset on override rows (closes #113) - #834
Conversation
After confirming delete, snapshot all override fields before calling the API. On success, show a 5-second info toast with an Undo action; clicking Undo re-PUTs the snapshot and reloads the panel. No changes to toast.ts -- actions[] already supported.
|
@coderabbitai review |
|
Warning Review limit reached
More reviews will be available in 62 minutes and 34 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, 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 include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
✅ Actions performedReview triggered.
|
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
|
pr-iterate: CR appears to be blocked by org-level usage limits (most recent CR comment includes "Your organization has run out of usage credits"; subsequent |
|
🧠 Learnings used✅ Action performedFull review finished. |
Summary
term,payment,coverage,enabled,ramp_schedule, include/exclude arrays) before the API call.infotoast: "Override for aws/rds deleted." with an Undo button.saveAccountServiceOverride, reloads the panel, and refreshes recommendations -- restoring the row exactly as it was.toast.ts--actions[]already existed.Test plan
settings-accounts.test.ts: "Delete shows info toast with Undo action and clears row (click-Undo path)" -- verifies toast shape, 5s TTL, andsaveAccountServiceOverridecalled with original values on Undo.settings-accounts.test.ts: "let-it-expire path: override is permanently gone after toast timeout" -- verifiessaveAccountServiceOverrideis NOT called when Undo is not clicked.npx tsc --noEmitclean.