-
Notifications
You must be signed in to change notification settings - Fork 62
fix(ws): Implement dual scrolling for workspace kind wizard #484
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(ws): Implement dual scrolling for workspace kind wizard #484
Conversation
9f7c58e
to
53b6b0b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I've left only 2 minor comments.
workspaces/frontend/src/app/pages/Workspaces/Form/WorkspaceForm.tsx
Outdated
Show resolved
Hide resolved
@@ -82,6 +98,7 @@ const WorkspaceForm: React.FC = () => { | |||
|
|||
const nextStep = useCallback(() => { | |||
setCurrentStep(currentStep + 1); | |||
setDrawerExpanded(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to hide the drawer if users go back to the previous step as well (in the previousStep
callback above)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, great catch there @caponetto , updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jenny-s51 @caponetto Testing here, I see that the drawer is being hidden when the user goes to the previous step. As an user, I was expecting it would be kept open when I clicked the Previous
button. What behavior do we think is best here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second thought, maybe a general rule could be to keep the drawer open only if an item is selected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your feedback and I agree with you here @paulovmr - I will update the logic to reflect @caponetto's suggestion
/assign |
4c92ce1
to
59575ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/ok-to-test |
Signed-off-by: Jenny <[email protected]> fix(ws): remove extra DrawerPanelBody remove unused file Signed-off-by: Jenny <[email protected]> fix(ws): remove comment and hide drawer on previousStep callback Signed-off-by: Jenny <[email protected]> fix(ws): when navigating between wizard steps, show drawer for steps that have drawer content
c2ee143
to
d27a18a
Compare
@paulovmr @caponetto I've updated the drawer logic based on your latest feedback to keep the drawer open only if an item is selected. PTAL when you have a moment - thank you 🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ederign The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…#484) Signed-off-by: Jenny <[email protected]> fix(ws): remove extra DrawerPanelBody remove unused file Signed-off-by: Jenny <[email protected]> fix(ws): remove comment and hide drawer on previousStep callback Signed-off-by: Jenny <[email protected]> fix(ws): when navigating between wizard steps, show drawer for steps that have drawer content Signed-off-by: Yash Pal <[email protected]>
Closes #374
The workspace creation wizard had inconsistent scrolling behavior and lacked proper drawer component nesting, preventing users from scrolling through workspace options while also viewing information in the drawer panel. Dual scrolling is now supported.
Solution
Refactored the workspace form to use PatternFly
Drawer
component with proper nesting structure to support dual scrolling throughout the workspace kind creation wizard.Changes
DrawerContent
,DrawerContentBody
, andDrawerPanelContent
for consistent scrollingBefore:



After:


