t3code icon indicating copy to clipboard operation
t3code copied to clipboard

hide update toast action while running and complete

Open flamboh opened this issue 6 months ago • 2 comments

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:

image

https://github.com/user-attachments/assets/a1702728-91dc-41f9-8533-ab23ecfe41ae

After:

image

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, updateProviderUpdateToast now passes actionProps: undefined when the view type is loading or success, 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, updateProviderUpdateToast now passes actionProps: undefined so 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.

flamboh avatar May 12 '26 04:05 flamboh

[!IMPORTANT]

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: cdca1e79-1df4-4907-8cc3-3936026ae3f4

You can disable this status message by setting the reviews.review_status to false in 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

coderabbitai[bot] avatar May 12 '26 04:05 coderabbitai[bot]

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.

macroscopeapp[bot] avatar May 12 '26 04:05 macroscopeapp[bot]