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): Inject labware definitions into Error Recovery #17248

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

mjhuff
Copy link
Contributor

@mjhuff mjhuff commented Jan 10, 2025

Closes RQA-3814

Overview

Not too long ago, we implemented the /runs/runId/labware_definitions resource on the FE and started using it in Error Recovery. Because we now get labware definitions asynchronously (instead of the old command scanning synchronous behavior), we get blippy UX while the request is still loading.

This PR injects the labware definitions into Error Recovery, gating ER rendering while the request is ongoing.

Like 90% of the diff is type/variable name refactoring. See app/src/organisms/ErrorRecoveryFlows/index.tsx for the functional changes.

Current Behavior

Screen.Recording.2025-01-10.at.2.28.53.PM.mov

Fixed Behavior

Screen.Recording.2025-01-10.at.2.25.07.PM.mov

Test Plan and Hands on Testing

  • See videos.

Changelog

  • Fixed Error Recovery splash copy rendering while the recovery splash page is visible.

Risk assessment

low - mainly type stuff

…onsByUri

We currently build an empty dict if the network request has not yet completed, which isn't
incorrect, but doing so leads to confusing behavior using the hook API. By returning null, we more
accurately hint at loading state.
@mjhuff mjhuff requested a review from a team as a code owner January 10, 2025 19:49
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.

So hyped to get this going

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.

Exciting! nice job!

@mjhuff mjhuff merged commit ec49410 into chore_release-8.3.0 Jan 10, 2025
30 checks passed
@mjhuff mjhuff deleted the app_recovery-step-injection branch January 10, 2025 20:37
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