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

feat(app): oDD labware setup map migration to using baseDeck #13858

Merged
merged 4 commits into from
Oct 27, 2023

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Oct 27, 2023

closes RAUT-822

Overview

Splits the modal into its own component and then updates the map render to use base deck.

Test Plan

Upload a protocol to the ODD and look at labware setup map view. See that the deck rendering correctly and clicking on the labware opens the correct labware details modal.

Changelog

  • extend baseDeck to have onLabwareClick prop
  • create new modal LabwareMapViewModal and create test
  • clean up ProtocolSetupLabware

Review requests

see test plan

Risk assessment

low

@jerader jerader marked this pull request as ready for review October 27, 2023 16:12
@jerader jerader requested review from a team as code owners October 27, 2023 16:12
@jerader jerader requested review from brenthagen, koji and a team and removed request for a team October 27, 2023 16:12
@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Merging #13858 (08761e4) into edge (861ebe8) will increase coverage by 0.00%.
Report is 4 commits behind head on edge.
The diff coverage is 70.83%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             edge   #13858   +/-   ##
=======================================
  Coverage   70.85%   70.85%           
=======================================
  Files        2496     2497    +1     
  Lines       70198    70225   +27     
  Branches     8568     8576    +8     
=======================================
+ Hits        49736    49761   +25     
- Misses      18381    18382    +1     
- Partials     2081     2082    +1     
Flag Coverage Δ
app 68.92% <70.83%> (+0.04%) ⬆️
components 63.53% <ø> (+0.01%) ⬆️
labware-library 49.17% <ø> (ø)
protocol-designer 45.45% <ø> (ø)
react-api-client 65.73% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
app/src/organisms/ProtocolSetupLabware/index.tsx 51.49% <100.00%> (+1.49%) ⬆️
components/src/hardware-sim/BaseDeck/BaseDeck.tsx 0.00% <ø> (ø)
...nisms/ProtocolSetupLabware/LabwareMapViewModal.tsx 69.56% <69.56%> (ø)

... and 2 files with indirect coverage changes

Copy link
Contributor

@brenthagen brenthagen left a comment

Choose a reason for hiding this comment

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

the deck map LGTM !

labwareLocations: mockLabwareLocations,
moduleLocations: mockModuleLocations,
})
.mockReturnValue(<div>mock base deck</div>)
Copy link
Contributor

Choose a reason for hiding this comment

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

not critical, a simple way to test the component logic would be to render something from mockProtocolModuleInfo in this base deck mock

@jerader jerader merged commit fd7857d into edge Oct 27, 2023
44 of 45 checks passed
@jerader jerader deleted the app_use-base-deck-in-odd-labware branch October 27, 2023 17:18
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