hide update toast action while running and complete
What Changed
The update toast no longer shows the "Update" button while updating is in progress or complete. This is done by clearing the stale toast action props when the toast enters running/success state.
Why
Including this stale "Update" button can make it look like the update has failed to start. Fixing this cleans up the toast, making it clearer that the update is actually going through.
UI Changes
Before:
https://github.com/user-attachments/assets/a1702728-91dc-41f9-8533-ab23ecfe41ae
After:
https://github.com/user-attachments/assets/d69d9e45-184b-45fb-b519-373839e7998d
Checklist
- [x] This PR is small and focused
- [x] I explained what changed and why
- [x] I included before/after screenshots for any UI changes
- [x] I included a video for animation/interaction changes
[!NOTE]
Hide action button in provider update toast during loading and success states
In ProviderUpdateLaunchNotification.tsx,
updateProviderUpdateToastnow passesactionProps: undefinedwhen the view type isloadingorsuccess, removing the action button from the toast while an update is running or complete.Macroscope summarized bd48fa1.
[!NOTE] Low Risk Single-line UI toast behavior change with no auth, data, or API impact.
Overview When a provider update toast moves into loading or success,
updateProviderUpdateToastnow passesactionProps: undefinedso the prior Update / Settings action is removed instead of lingering on the toast.This keeps the in-progress and completed states from looking like the update never started.
Reviewed by Cursor Bugbot for commit 98c7035e55fc1035adea6c4302f402deca8517e3. Bugbot is set up for automated code reviews on this repo. Configure here.
[!IMPORTANT]
Review skipped
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
cdca1e79-1df4-4907-8cc3-3936026ae3f4You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
- [ ] 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
- [ ] Create PR with unit tests
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 @coderabbitai help to get the list of available commands.
Approvability
Verdict: Approved
Single-line UI fix that explicitly hides the toast action button during loading and success states. Low-risk, self-contained change with clear intent.
You can customize Macroscope's approvability policy. Learn more.