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): add resolve button for location conflicts with modules #14134

Merged
merged 3 commits into from
Dec 8, 2023

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Dec 7, 2023

closes RQA-2017

Overview

This PR updates the update_deck button in the app for a module location conflict to say "resolve". And then for the ODD, tweaks some things to add a button that says "resolve". See the ticket's image for details and refer to Rob's comment which is linked in the ticket.

Test Plan

Test on the desktop app and the odd, use a protocol with a module and a fixture in the module slot.

Changelog

  • change text to resolve
  • refactor the ODD components a bit to adjust the spacing to allow for the button next to the location conflict text and wire up the button instead of using the icon

Review requests

see test plan

Risk assessment

low

@jerader jerader requested a review from a team as a code owner December 7, 2023 18:07
@jerader jerader requested review from shlokamin and a team and removed request for a team December 7, 2023 18:07
Copy link

codecov bot commented Dec 7, 2023

Codecov Report

Merging #14134 (0c675b1) into chore_release-7.1.0 (93c879a) will decrease coverage by 0.10%.
Report is 12 commits behind head on chore_release-7.1.0.
The diff coverage is 66.66%.

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                   @@
##           chore_release-7.1.0   #14134      +/-   ##
=======================================================
- Coverage                70.44%   70.35%   -0.10%     
=======================================================
  Files                     2512     2512              
  Lines                    71201    71429     +228     
  Branches                  8964     9074     +110     
=======================================================
+ Hits                     50161    50252      +91     
- Misses                   18849    18960     +111     
- Partials                  2191     2217      +26     
Flag Coverage Δ
app 67.26% <66.66%> (-0.38%) ⬇️

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

Files Coverage Δ
...rotocolRun/SetupModuleAndDeck/SetupModulesList.tsx 82.35% <ø> (ø)
...nisms/ProtocolSetupModulesAndDeck/FixtureTable.tsx 44.44% <ø> (ø)
...rc/organisms/ProtocolSetupModulesAndDeck/index.tsx 69.13% <66.66%> (-0.38%) ⬇️

... and 8 files with indirect coverage changes

}: RenderModuleStatusProps): JSX.Element {
const { makeSnackbar } = useToaster()
const { i18n, t } = useTranslation(['protocol_setup', 'module_setup_wizard'])
const { i18n, t } = useTranslation(['protocol_setup', 'module_wizard_flows'])
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

apparently module_setup_wizard doesn't exist 😅

@jerader jerader changed the title refactor(app): add resolve button for location conflicts with modules fix(app): add resolve button for location conflicts with modules Dec 8, 2023
@jerader jerader requested review from mjhuff and koji December 8, 2023 16:16
@brenthagen
Copy link
Contributor

we need to be sure the module row columns stay aligned for all modules, otherwise looks good!

Screen Shot 2023-12-08 at 11 24 05 AM

)
} else if (
isModuleReady &&
module.attachedModuleMatch?.moduleOffset?.last_modified != null
) {
moduleStatus = (
<>
<Flex onClick={() => setShowLocationConflictModal(true)}>
Copy link
Contributor

Choose a reason for hiding this comment

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

why add this location conflict modal click for a ready module?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oops good catch! fixing now!

@jerader jerader merged commit 6b8f9b3 into chore_release-7.1.0 Dec 8, 2023
21 of 22 checks passed
@jerader jerader deleted the app_resolve-dqa branch December 8, 2023 17:59
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