Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(app): fix terminal banner render state #17240

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

mjhuff
Copy link
Contributor

@mjhuff mjhuff commented Jan 10, 2025

Closes RQA-3840

Overview

This PR fixes conditional logic that causes the "run succeeded" banner to render momentarily when in actuality, an error banner should render. Checking if the commandErrorList is null is not sufficient to render the success banner appropriately, because the commandErrorList is null when the network request has not yet completed. Instead, we should check if the length of the list is 0.

A lower-latency solution would be to add the /runs/:runId/commandErrors resource to notifications, which would also simplify the conditional logic, see EXEC-1083.

Current Behavior

Screen.Recording.2025-01-10.at.9.39.41.AM.mov

Fixed Behavior

Screen.Recording.2025-01-10.at.9.33.08.AM.mov

Test Plan and Hands on Testing

  • See videos.

Changelog

  • Fixed the success banner sometimes flickering when a run fails on the desktop app.

Risk assessment

low - easy to validate.

@mjhuff mjhuff requested a review from a team as a code owner January 10, 2025 14:57
Copy link
Contributor

@TamarZanzouri TamarZanzouri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that looks appropriate.

@mjhuff mjhuff merged commit cf940fe into chore_release-8.3.0 Jan 10, 2025
36 checks passed
@mjhuff mjhuff deleted the app_fix-flickering-succeed-banner branch January 10, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants