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

[pending]feat(protocol-designer): introduce alias to avoid using ../../../ #17539

Draft
wants to merge 5 commits into
base: edge
Choose a base branch
from

Conversation

koji
Copy link
Contributor

@koji koji commented Feb 14, 2025

Overview

introduce alias to avoid using ../../../

close AUTH-

pending

there are many typing issues after updating import paths

@ncdiehl11 @syao1226
target files are ↓
https://docs.google.com/spreadsheets/d/1PRPFkcfreqQRhDXdD_WCKXbX_xlzkrYPUW0yhOLW6zQ/edit?usp=sharing

step 1

check out branch

step 2

change the above files status from yet to wip
please do this to avoid editing the same file.

step 3

update the path like below.
if an import statement using ../../ or more, using /protocol-designer/
I think we can keep ./ and ../ since it's easy to track.

please see https://github.com/Opentrons/opentrons/pull/17539/files.
I updated Settings/index.tsx and its test as a sample.

if you have any questions about this, feel free to reach out to me.

Test Plan and Hands on Testing

Changelog

Review requests

Risk assessment

introduce alias to avoid using ../../../

close AUTH-
@koji koji requested review from ncdiehl11 and syao1226 February 14, 2025 22:09
Copy link

codecov bot commented Feb 14, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 26.16%. Comparing base (41e0f6f) to head (7eeac49).
Report is 1 commits behind head on edge.

Files with missing lines Patch % Lines
.eslintrc.js 0.00% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #17539      +/-   ##
==========================================
- Coverage   26.16%   26.16%   -0.01%     
==========================================
  Files        2838     2838              
  Lines      217729   217733       +4     
  Branches     9280     9280              
==========================================
  Hits        56970    56970              
- Misses     160742   160746       +4     
  Partials       17       17              
Flag Coverage Δ
protocol-designer 18.85% <0.00%> (-0.01%) ⬇️

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

Files with missing lines Coverage Δ
protocol-designer/src/pages/Settings/index.tsx 96.26% <ø> (ø)
protocol-designer/vite.config.mts 0.00% <ø> (ø)
vite.config.mts 0.00% <ø> (ø)
.eslintrc.js 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

@koji koji changed the title feat(protocol-designer): introduce alias to avoid using ../../../ [pending]feat(protocol-designer): introduce alias to avoid using ../../../ Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant