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

refactor(app): Add move animations to manual gripper move during Error Recovery #16567

Merged
merged 5 commits into from
Oct 22, 2024

Conversation

mjhuff
Copy link
Contributor

@mjhuff mjhuff commented Oct 22, 2024

Closes RQA-3392

Overview

Per design, when manually moving labware during a gripper error recovery flow, we should show the labware moving instead of stationary in the initial slot . While there exists a move labware deck view, it does require some legwork to wire up the props necessary to render the component, MoveLabwareOnDeck. There's room to make MoveLabwareOnDeck better and not make use of utils internal to the component, see EXEC-788.

e551948 - We need actual labware locations for MoveLabwareOnDeck, since we're doing more than just rendering their display equivalent now.

f8ed107 - Turns out we have another O(n) util that does almost the same thing as getLabwareDefinitionsFromCommands, and it turns out we are also misusing it in the app. I've corrected the one misuse of this in Error Recovery. There's already a sustaining ticket for auditing our usage of these utils.

19ad1d6 - Fixes a bug that's obvious when nesting labware on top of a module.

d6110fa - Wires up the new props to an appropriate deck map.

48ff3a0 - Tests, etc.

Screen.Recording.2024-10-22.at.1.21.06.PM.mov

Test Plan and Hands on Testing

  • See video.
  • Smoke tested some other ER runs. Behavior is as expected.

Changelog

  • Manually moving labware during a failed gripper recovery shows the "move labware" animation on the deck view.

Risk assessment

low

Certain keying by labwareId was not working correctly because we use the run command for a few
things and protocol analysis for other things. To key by id properly, use the run record for
everything.
@mjhuff mjhuff requested a review from a team October 22, 2024 18:27
@mjhuff mjhuff requested a review from a team as a code owner October 22, 2024 18:27
@mjhuff mjhuff requested review from brenthagen and removed request for a team and brenthagen October 22, 2024 18:27
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.

Nice. Annoying fix to have to do

@mjhuff mjhuff merged commit 93aac9b into edge Oct 22, 2024
12 checks passed
@mjhuff mjhuff deleted the app_move-lw-deck-view-er branch October 22, 2024 19:02
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.

2 participants