Skip to content

fix(protocol-designer): align the overflow menus types the same over … #18852

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

Merged
merged 4 commits into from
Jul 11, 2025

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Jul 8, 2025

…timeline

closes RQA-4339

Overview

Check overflow menu alignment between the 3 overflow menu types - they should all be the same and match designs

Screenshot 2025-07-08 at 12 01 23 Screenshot 2025-07-08 at 12 01 34 Screenshot 2025-07-08 at 12 01 44

Test Plan and Hands on Testing

Review the screenshots and code and it should match designs

Changelog

  • adjust the overflow menu positioning

Risk assessment

low

@jerader jerader requested a review from a team as a code owner July 8, 2025 16:02
@@ -25,11 +25,6 @@ export function AddStepOverflowButton(
): JSX.Element {
const { onClick, stepType, isFirstStep = false, isLastStep = false } = props
const { t, i18n } = useTranslation(['tooltip', 'application'])
// TODO(ja): add or delete tooltips when designs are finalized
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is a left over TODO from October last year that we don't need

@jerader jerader requested review from koji and ncdiehl11 July 8, 2025 16:03
Copy link

codecov bot commented Jul 8, 2025

Codecov Report

Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 24.64%. Comparing base (0f51ada) to head (daefea3).
Report is 11 commits behind head on chore_release-pd-8.5.0.

Files with missing lines Patch % Lines
...components/organisms/LiquidsOverflowMenu/index.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                    Coverage Diff                     @@
##           chore_release-pd-8.5.0   #18852      +/-   ##
==========================================================
+ Coverage                   24.62%   24.64%   +0.02%     
==========================================================
  Files                        3263     3263              
  Lines                      282677   282927     +250     
  Branches                    30248    30313      +65     
==========================================================
+ Hits                        69601    69737     +136     
- Misses                     213056   213170     +114     
  Partials                       20       20              
Flag Coverage Δ
protocol-designer 19.13% <90.00%> (+0.02%) ⬆️

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

Files with missing lines Coverage Δ
protocol-designer/src/constants.ts 86.78% <100.00%> (ø)
.../Designer/ProtocolSteps/Timeline/AddStepButton.tsx 72.09% <100.00%> (+0.91%) ⬆️
...r/ProtocolSteps/Timeline/AddStepOverflowButton.tsx 77.08% <ø> (+4.53%) ⬆️
...signer/ProtocolSteps/Timeline/StepOverflowMenu.tsx 72.26% <100.00%> (+0.32%) ⬆️
...esigner/ProtocolSteps/Timeline/TimelineToolbox.tsx 66.46% <100.00%> (+0.40%) ⬆️
...components/organisms/LiquidsOverflowMenu/index.tsx 86.27% <0.00%> (ø)

... and 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@@ -205,7 +205,7 @@ export const OFFDECK: 'offDeck' = 'offDeck'
export const PROTOCOL_DESIGNER_SOURCE: 'Protocol Designer' = 'Protocol Designer' // protocolSource for tracking analytics in the app

export const DECK_SETUP_TOOLS_WIDTH_REM = 21.875
export const OVERFLOW_MENU_POSITION_ADJUSTMENT = 4
export const OVERFLOW_MENU_POSITION_ADJUSTMENT = 8
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit maybe add the units here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we only add the px on one occasion so i think its easier without adding px

@ncdiehl11
Copy link
Collaborator

Is this "Add step" menu positioning accurate?

Screenshot 2025-07-08 at 2 08 51 PM

@koji
Copy link
Contributor

koji commented Jul 8, 2025

Is this "Add step" menu positioning accurate?

Screenshot 2025-07-08 at 2 08 51 PM

@ncdiehl11
did you change the timeline width?

@jerader
Copy link
Collaborator Author

jerader commented Jul 8, 2025

Is this "Add step" menu positioning accurate?

Screenshot 2025-07-08 at 2 08 51 PM

ah i was changing the timeline width but didn't run into this issue - weird. i guess i need the dynamic width value that the other 2 overflow menus use

@jerader jerader requested a review from ncdiehl11 July 9, 2025 12:10
@ncdiehl11
Copy link
Collaborator

Still noticing that the "Add step" overflow menu is positioned inside the toolbox. Is this acceptable? If so I can approve!

Screenshot 2025-07-09 at 9 31 33 AM

@jerader
Copy link
Collaborator Author

jerader commented Jul 9, 2025

Still noticing that the "Add step" overflow menu is positioned inside the toolbox. Is this acceptable? If so I can approve!

Screenshot 2025-07-09 at 9 31 33 AM

can you explain how you got to that state @ncdiehl11? i tried smoke testing at different toolbox widths and never saw that 😢

@koji
Copy link
Contributor

koji commented Jul 9, 2025

the overflow menu is still overlapping with the Add Step button, regardless of the timeline toolbox width.

liquids button looks good.

Screenshot 2025-07-09 at 10 32 47 AM

@jerader
Copy link
Collaborator Author

jerader commented Jul 9, 2025

the overflow menu is still overlapping with the Add Step button, regardless of the timeline toolbox width.

liquids button looks good.

@koji thanks, no idea why my end wasn't reflecting that. i just reverted the logic back to how it is in the release branch for this button because design never mentioned it specifically being wrong lol. idk why on my end, it was looking okay.

@koji
Copy link
Contributor

koji commented Jul 11, 2025

the overflow menu is still overlapping with the Add Step button, regardless of the timeline toolbox width.
liquids button looks good.

@koji thanks, no idea why my end wasn't reflecting that. i just reverted the logic back to how it is in the release branch for this button because design never mentioned it specifically being wrong lol. idk why on my end, it was looking okay.

to be honest, i'm also not sure what the issue is.

i tested your branch locally (make -C protocol-designer dev) worked as expected
sandbox with/without incognito mode , it did show the same overlapping issue

@jerader jerader merged commit 4535c43 into chore_release-pd-8.5.0 Jul 11, 2025
16 checks passed
@jerader jerader deleted the pd_align-overflow-menus-timeline branch July 11, 2025 17:36
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