Skip to content

Conversation

kchepikava
Copy link
Contributor

No description provided.

export interface PipelineButtonProps {
onClick: () => void;
disabled: boolean;
loading: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

please, remove semicolons

// font-weight: 400 !important;
// font-size: 14px !important;
// line-height: 16.8px !important;
// }
Copy link
Contributor

Choose a reason for hiding this comment

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

please, remove commented code

// font-weight: 400 !important;
// font-size: 14px !important;
// line-height: 16.8px !important;
// }
Copy link
Contributor

Choose a reason for hiding this comment

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

please, remove commented code

// font-weight: 400 !important;
// font-size: 14px !important;
// line-height: 16.8px !important;
// }
Copy link
Contributor

Choose a reason for hiding this comment

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

the same

@@ -0,0 +1,26 @@
.stopPipelineBtn {
Copy link
Contributor

Choose a reason for hiding this comment

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

if we use the same styles for several buttons, we can move it to one file

{pageLoading && (
<div className={styles.cover}>
<EuiLoadingSpinner size="xl" />
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

please, add tabulation


export function stopPipelineAction(
rdiInstanceId: string,
callback: (result: IActionPipelineResultProps) => void,
Copy link
Contributor

Choose a reason for hiding this comment

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

it's better to split to onSuccess and onFinish


export function startPipelineAction(
rdiInstanceId: string,
callback: (result: IActionPipelineResultProps) => void,
Copy link
Contributor

Choose a reason for hiding this comment

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

the same


export function resetPipelineAction(
rdiInstanceId: string,
callback: (result: IActionPipelineResultProps) => void,
Copy link
Contributor

Choose a reason for hiding this comment

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

the same

resetPipelineFailure: (state, { payload }: PayloadAction<string>) => {
state.reset.loading = false
state.reset.error = payload
},
Copy link
Contributor

Choose a reason for hiding this comment

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

a lot similar actions, could you think how to have one? Maybe add some variables (isStarted)? Do we use all these errors at the same time?

rsergeenko
rsergeenko previously approved these changes Sep 20, 2024
Copy link
Contributor

@rsergeenko rsergeenko left a comment

Choose a reason for hiding this comment

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

approve FE

@egor-zalenski
Copy link
Contributor

approve BE

egor-zalenski
egor-zalenski previously approved these changes Sep 20, 2024
@mariasergeenko mariasergeenko merged commit 845d9f2 into main Sep 24, 2024
4 of 6 checks passed
@mariasergeenko mariasergeenko deleted the feature/RI-6067-reset-rdi-pipelines branch September 24, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants