-
Notifications
You must be signed in to change notification settings - Fork 33
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(orchestarator):Disable abort when workflow execution does not exist #381
base: main
Are you sure you want to change the base?
Conversation
Changed Packages
|
@@ -82,6 +82,9 @@ const useStyles = makeStyles((theme: Theme) => | |||
export type AbortConfirmationDialogActionsProps = { | |||
handleSubmit: () => void; | |||
handleCancel: () => void; | |||
isAborting: boolean; | |||
canAbort: boolean; | |||
classes: ReturnType<typeof useStyles>; |
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.
Can we use const classes = useStyles();
instead?
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 you mean we should take const classes = useStyles();
out of WorkflowInstancePage
instead of providing it as prop?
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, sort of:
const AbortConfirmationDialogActions = (
props: AbortConfirmationDialogActionsProps,
) => {
const classes = useStyles();
return (<><Button>....</>)
}
I know that the issue is exactly about disabling the "abort" button, and this PR matches the requirement. But in terms of user experience, i think it isn't clear why the abort is unavailable. I mean, this can be confusing for the user. |
@gciavarrini I agree with you that having the button disappears is a bit unexpected but I think it's obvious that the disappearance is caused by the abortion of the workflow so it cannot be aborted anymore My personal preference would have been to grey-out the button so the layer does not change, the button is still there but it is not actionable anymore. But I am no UX designer :)
Having a clickable button then upon the action showing a pop-up saying "No you can't do that, the workflow is not running" is a little not-nice to me: I hate pop-up as they are interrupting the browsing flow |
There are two "Abort" buttons: When an instance isn't abortable: In the video, the red "Abort" button becomes disabled because the process completes before the user clicks the button. |
Thank you, I have some comments: Two small comments:
|
@ShiranHi Thank you for the comments. |
@LiorSoffer go it! |
@ShiranHi So, the title has been changed, the text is bigger, padding has been added, and the information now appears when the instance isn't abortable. The button is in |
3bbc7a1
to
6869726
Compare
Thank you, could you please add a screenshot/screen recording of it? |
@ShiranHi updated |
Thank you @LiorSoffer We need to make two design adjustments:
![]() |
@mareklibra Am I allowed to change these? |
Of course you are. Just be prepared for more reviewers and opinions. |
Signed-off-by: Lior Soffer <[email protected]>
6869726
to
1031b05
Compare
|
@shiran I fixed the colors and padding plus aligned the icon with the text and action buttons |
Thank you! Could you please add a screenshot so I can see it? |
@ShiranHi the video is already updated :) |
Thank you! Looks good |
resolve FLPATH-1080
Screencast.from.2025-02-18.13-36-48.mp4