fix(web): remove duplicate provider update progress - #7761
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
There was a problem hiding this comment.
One finding on the removed running-state toast — see the inline comment.
Posted via Macroscope — UI Consistency
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a straightforward UI bug fix that removes duplicate toast notifications during provider updates. The changes are self-contained to toast notification logic with tests added, clear intent, and no impact on security or data handling. You can add or adjust custom eligibility rules. Learn more. |
Problem
Starting a one-click provider update kept the initial toast visible as a persistent
Updating providerstatus while the sidebar pill showed the same running update. This duplicated progress in two UI locations.Fixes #7425.
What changed
UI changes
Before
The running update appears in both a persistent toast and the sidebar pill.
After
Only the sidebar pill shows the running update.
Verification
vp test run apps/web/src/components/ProviderUpdateLaunchNotification.logic.test.ts— 47 passedvp lint apps/web/src/components/ProviderUpdatePrimaryNotification.tsx apps/web/src/components/ProviderUpdateLaunchNotification.logic.ts apps/web/src/components/ProviderUpdateLaunchNotification.logic.test.tsvp fmt --check apps/web/src/components/ProviderUpdatePrimaryNotification.tsx apps/web/src/components/ProviderUpdateLaunchNotification.logic.ts apps/web/src/components/ProviderUpdateLaunchNotification.logic.test.tsvp run --filter @t3tools/web typecheckCreated by gpt-5.6-sol using the Codex harness in T3 Code.
Note
Remove duplicate provider update running toast in
ProviderUpdatePrimaryNotificationshouldShowPrimaryProviderUpdateToastto gate toast display by phase, returning false whenview.phaseis'running'.addProviderUpdateToast, which always creates a new toast and ensures the Settings action closes the specific clicked toast.updateProviderUpdateToast,isTerminalProviderUpdateToastView, and activetoastIdtracking for the update flow.ProviderUpdatePrimaryNotificationno longer displays progress while updates run; callers expecting a visible running toast will not see one.Macroscope summarized ab1816a.
Note
Low Risk
UI-only toast lifecycle change for provider updates; no auth, data, or backend behavior is affected.
Overview
Stops duplicating one-click provider update progress: the prompt toast is closed when an update starts, and running-phase toasts are no longer shown so the sidebar pill is the only in-flight status.
Terminal success, failure, and unchanged outcomes still appear as new toasts (not in-place updates).
shouldShowPrimaryProviderUpdateToastgates that, and cleanup only closes prompt toasts.Reviewed by Cursor Bugbot for commit ab1816a. Bugbot is set up for automated code reviews on this repo. Configure here.