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): update LegacyModalHeader for new designs #15914

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

ncdiehl11
Copy link
Collaborator

@ncdiehl11 ncdiehl11 commented Aug 7, 2024

Overview

Update LegacyModalHeader according to new designs to accept up to 2 elements ahead of title text.
Add props to LegacyModal that are passed down to header, and implement at LabwareStackRender
Screenshot 2024-08-07 at 11 57 09 AM

Closes PLAT-395

Test Plan and Hands on Testing

  • begin a protocol run for a protocol containing stacked labware/adapeters/modules (example)

  • select Labware setup step -> map view

  • click a stack

  • verify that modal title matches designs specified in linked ticket

  • smoke test other instances of LegacyModal (module calibration, robot update, etc.) to ensure title is unaffected if optional titleElement props are not passed

Changelog

  • add optional titleElement props to LegacyModal and LegacyModalHeader
  • implement at LabwraeStackModal

Review requests

Risk assessment

low-medium. Minor change adding optional props, but LegacyModal is used extensively in our app

Update `LegacyModalHeader` according to new designs to accept up to 2 elements ahead of title text.
Add props to `LegacyModal` that are passed down to header, and implement at `LabwareStackRender`

Closes PLAT-395
@ncdiehl11 ncdiehl11 changed the title Fix app legacy modal style feat(app): update LegacyModalHeader for new designs Aug 7, 2024
@ncdiehl11 ncdiehl11 self-assigned this Aug 7, 2024
@ncdiehl11 ncdiehl11 marked this pull request as ready for review August 7, 2024 15:58
@ncdiehl11 ncdiehl11 requested a review from a team as a code owner August 7, 2024 15:58
@ncdiehl11 ncdiehl11 requested review from TamarZanzouri, shlokamin and jerader and removed request for a team August 7, 2024 15:58
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, good workaround!

@ncdiehl11 ncdiehl11 merged commit 09e3fa9 into chore_release-8.0.0 Aug 7, 2024
36 checks passed
@ncdiehl11 ncdiehl11 deleted the fix_app-legacy-modal-style branch August 7, 2024 17:09
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