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(labware-library): fix ssr hydration bug, module product links, nest lw links, armadillo clone #13083

Merged
merged 14 commits into from
Jul 13, 2023

Conversation

b-cooper
Copy link
Contributor

@b-cooper b-cooper commented Jul 11, 2023

Overview

Fix bug where in the rehydration step of conditionally rendered react children would replace server
rendered elements with the wrong client rendered elements. Fix product links to opentrons module
pages in nav. Replace all broken nest labware product links . duplicate armadillo pcr plate
definition in favor of opentrons branded and retire old def

Closes RLAB-334, RLAB-330, RLAB-277, RLAB-230

Review requests

  • confirm breadcrumbs render properly on the nest pcr plate aluminum block adapter labware detail page
  • confirm nest labware link out to correct product pages
  • confirm presence of new opentrons clone of armadillo labware
  • confirm absence of armadillo plate from LL
  • confirm hardware module links in product navigation menu lead to the correct location

Risk assessment

med, these changes touch a number of definitions and fixtures across the app

…st lw links, armadillo clone

Fix bug where in the rehydration step of conditionally rendered react children would replace server
rendered elements with the wrong client rendered elements. Fix product links to opentrons module
pages in nav. Replace all broken nest labware productlinks . duplicate armadillo pcr plate
definition in favor of opentrons branded and retire old def

Closes RLAB-334, RLAB-330, RLAB-277, RLAB-230
@b-cooper b-cooper requested review from a team as code owners July 11, 2023 21:45
@b-cooper b-cooper requested review from koji and removed request for a team July 11, 2023 21:45
@codecov
Copy link

codecov bot commented Jul 11, 2023

Codecov Report

Merging #13083 (9cb8e38) into edge (5394203) will increase coverage by 0.36%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #13083      +/-   ##
==========================================
+ Coverage   72.20%   72.57%   +0.36%     
==========================================
  Files        1559     2382     +823     
  Lines       51750    66272   +14522     
  Branches     3229     7388    +4159     
==========================================
+ Hits        37366    48096   +10730     
- Misses      13875    16412    +2537     
- Partials      509     1764    +1255     
Flag Coverage Δ
app 71.25% <ø> (+27.55%) ⬆️
g-code-testing 96.44% <ø> (ø)
labware-library 49.51% <50.00%> (-0.10%) ⬇️
protocol-designer 45.84% <ø> (ø)
shared-data 78.29% <ø> (ø)
step-generation 87.17% <ø> (ø)

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

Impacted Files Coverage Δ
labware-library/src/components/Nav/Breadcrumbs.tsx 0.00% <0.00%> (ø)
...rary/src/components/website-navigation/nav-data.ts 100.00% <ø> (ø)
shared-data/js/getLabware.ts 25.92% <ø> (ø)
shared-data/js/helpers/index.ts 78.15% <ø> (ø)
labware-library/src/components/App/Page.tsx 100.00% <100.00%> (ø)
labware-library/src/components/App/index.tsx 72.72% <100.00%> (-2.28%) ⬇️

... and 826 files with indirect coverage changes

@b-cooper b-cooper requested review from SyntaxColoring, shlokamin and a team and removed request for koji July 11, 2023 21:52
Copy link
Contributor

@SyntaxColoring SyntaxColoring left a comment

Choose a reason for hiding this comment

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

Thank you! Reviewed changes in shared-data and robot-server. Mostly looks good to me, just a few nitpicks:

Copy link
Contributor

@SyntaxColoring SyntaxColoring left a comment

Choose a reason for hiding this comment

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

Changes for my prior feedback look great. robot-server and shared-data LGTM. Thanks!

shared-data/js/getLabware.ts Show resolved Hide resolved
@b-cooper b-cooper merged commit 3b743c0 into edge Jul 13, 2023
63 of 64 checks passed
@b-cooper b-cooper deleted the ll_fix-server-render-hydration-diff-bug branch July 13, 2023 18:29
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.

None yet

2 participants