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(protocol-designer): fix layout for ProtocolSteps #16959

Merged
merged 2 commits into from
Nov 22, 2024
Merged

Conversation

ncdiehl11
Copy link
Collaborator

@ncdiehl11 ncdiehl11 commented Nov 22, 2024

Overview

This PR fixes the layout for protocol steps, acocunting for TimelineAlerts. To maintain position
without flickering when hovering timeline steps, we align the center content to the top of the
container, and provide top padding dependent on the presence of timeline alerts. We also fix logic
to not show timeline alerts if a stepform toolbox is open. Lastly, we make the container scrollable
to handle timeline alerts and step summaries rendering at the same time, and set the timeline,
stepform, and substeps toolbox heights to fill the view height with padding.

closes RQA-3678

Screen.Recording.2024-11-22.at.3.00.08.PM.mov

Test Plan and Hands on Testing

  • upload attached protocol with timeline error full1.json.zip
  • verify that hovering timeline toolbox steps does not flicker the center content
  • verify that opening any stepform removes the timeline alert. Closing the stepform toolbox causes the timeline alert to show again
  • delete the step causing the timeline alert (last move step), and verify that content is padded on top by 24px

Changelog

  • adjust heights of ProtocolSteps and Toolbox instances

Review requests

see test plan

Risk assessment

low

This PR fixes the layout for protocol steps, acocunting for TimelineAlerts. To maintain position
without flickering when hovering timeline steps, we align the center content to the top of the
container, and provide top padding dependent on the presence of timeline alerts. We also fix logic
to not show timeline alerts if a stepform toolbox is open. Lastly, we make the container scrollable
to handle timeline alerts and step summaries rendering at the same time, and set the timeline,
stepform, and substeps toolbox heights to fill the view height with padding.
@ncdiehl11 ncdiehl11 self-assigned this Nov 22, 2024
@ncdiehl11 ncdiehl11 marked this pull request as ready for review November 22, 2024 20:07
@ncdiehl11 ncdiehl11 requested a review from a team as a code owner November 22, 2024 20:07
@ncdiehl11 ncdiehl11 removed the request for review from a team November 22, 2024 20:08
Copy link
Collaborator

@jerader jerader left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@koji koji left a comment

Choose a reason for hiding this comment

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

lgtm.
thank you for fixing this.

@ncdiehl11 ncdiehl11 merged commit 6297c7b into edge Nov 22, 2024
14 checks passed
@ncdiehl11 ncdiehl11 deleted the pd_fix-layout branch November 22, 2024 20:28
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.

3 participants