-
Notifications
You must be signed in to change notification settings - Fork 8
[MRF-9] PLU-520: MRF context and refactor #1349
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
base: mrf/mrf-approve-reject-select
Are you sure you want to change the base?
[MRF-9] PLU-520: MRF context and refactor #1349
Conversation
8ef3dc5 to
c27ebd0
Compare
^ Conflicts: ^ packages/frontend/src/components/EditorRightDrawer/Step.tsx
c27ebd0 to
3374fde
Compare
453b89b to
317e3d3
Compare
| isMobile, | ||
| isDrawerOpen, | ||
| ) | ||
| } = useStepMetadata(step, true) |
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.
if set to true, the drag handle will be shown for the for-each step. just a display issue, as its still not actually draggable
| } = useStepMetadata(step, true) | |
| } = useStepMetadata(step, allowReorder) |
| isNested={isNested} | ||
| // only allow reordering if there are more than 1 action steps | ||
| allowReorder={nonIfThenActionSteps.length > 1} | ||
| allowReorder={true} |
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.
| stepsBeforeGroup: IStep[] | ||
| groupedSteps: IStep[][] | ||
| showAddButton?: boolean | ||
| addButtonProps: { |
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.
| addButtonProps: { | |
| allowReorder?: boolean, | |
| addButtonProps: { |
| stepsBeforeGroup, | ||
| groupedSteps, | ||
| showAddButton = true, | ||
| addButtonProps: { |
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.
| addButtonProps: { | |
| allowReorder = true, | |
| addButtonProps: { |
| isLastStep={position === steps.length} | ||
| isNested={isNested} | ||
| stepsBeforeGroup={actionStepsBeforeGroup} | ||
| groupedSteps={groupedSteps} |
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.
| groupedSteps={groupedSteps} | |
| groupedSteps={groupedSteps} | |
| allowReorder={nonIfThenActionSteps.length > 1} |
kevinkim-ogp
left a comment
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, tested and verified that all functionalities remain!
small thing that we may want to fix is to hide the drag handle when there is only 1 draggable action step. does not affect any functionality, pure UI thing


Changes
These changes make the code more maintainable and prepare for future form approval functionality.