File tree Expand file tree Collapse file tree 3 files changed +38
-14
lines changed Expand file tree Collapse file tree 3 files changed +38
-14
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,16 @@ $marginIcon: 12px;
41
41
42
42
.titleWrapper {
43
43
width : calc (100% - 490px );
44
+ min-width : calc (100% - 490px );
44
45
45
- @media (min-width : $breakpoint-s ) {
46
- width : calc (100% - 529px );
46
+ @media (min-width : $breakpoint-m ) {
47
+ width : calc (100% - 582px );
48
+ min-width : calc (100% - 582px );
47
49
}
48
50
49
- @media (min-width : $breakpoint-m ) {
50
- width : calc (100% - 651px );
51
+ @media (min-width : $breakpoint-l ) {
52
+ width : calc (100% - 633px );
53
+ min-width : calc (100% - 633px );
51
54
}
52
55
}
53
56
@@ -146,21 +149,16 @@ $marginIcon: 12px;
146
149
min-width : 13px ;
147
150
width : 13px ;
148
151
149
- @media (min-width : $breakpoint-s ) {
152
+ @media (min-width : $breakpoint-l ) {
150
153
min-width : 58px ;
151
154
width : 58px ;
152
155
}
153
-
154
- @media (min-width : $breakpoint-m ) {
155
- min-width : 70px ;
156
- width : 70px ;
157
- }
158
156
}
159
157
160
158
.executionTimeValue {
161
159
display : none ;
162
160
163
- @media (min-width : $breakpoint-s ) {
161
+ @media (min-width : $breakpoint-l ) {
164
162
display : initial ;
165
163
overflow : hidden ;
166
164
text-overflow : ellipsis ;
Original file line number Diff line number Diff line change 2
2
@import " @elastic/eui/src/components/table/mixins" ;
3
3
@import " @elastic/eui/src/global_styling/index" ;
4
4
5
+ $breakpoint-l : 1300px ;
6
+ $breakpoint-m : 1050px ;
7
+
5
8
.containerWrapper {
6
- min-width : 590px ;
9
+ min-width : 560px ;
10
+ @media (min-width : $breakpoint-m ) {
11
+ min-width : 650px ;
12
+ }
13
+ @media (min-width : $breakpoint-l ) {
14
+ min-width : 720px ;
15
+ }
7
16
& :nth-of-type (even ) {
8
17
background-color : var (--euiColorEmptyShade ) !important ;
9
18
}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
13
13
isStatusSuccessful ,
14
14
} from 'uiSrc/utils'
15
15
import { WORKBENCH_HISTORY_MAX_LENGTH } from 'uiSrc/pages/workbench/constants'
16
+ import { CommandExecutionStatus } from 'uiSrc/slices/interfaces/cli'
16
17
import { CreateCommandExecutionsDto } from 'apiSrc/modules/workbench/dto/create-command-executions.dto'
17
18
18
19
import { AppDispatch , RootState } from '../store'
@@ -63,9 +64,25 @@ const workbenchResultsSlice = createSlice({
63
64
} )
64
65
} ,
65
66
66
- // temporary solution, need improve on BE how we handle errors
67
67
processWBCommandsFailure : ( state , { payload } : { payload : { commandsId : string [ ] , error : string } } ) => {
68
- state . items = [ ...state . items ] . filter ( ( item ) => payload . commandsId . indexOf ( item ?. id as string ) === - 1 )
68
+ state . items = [ ...state . items ] . map ( ( item ) => {
69
+ let newItem = item
70
+ payload . commandsId . forEach ( ( ) => {
71
+ if ( payload . commandsId . indexOf ( item ?. id as string ) !== - 1 ) {
72
+ newItem = {
73
+ ...item ,
74
+ result : [ {
75
+ response : payload . error ,
76
+ status : CommandExecutionStatus . Fail ,
77
+ } ] ,
78
+ loading : false ,
79
+ isOpen : true ,
80
+ error : '' ,
81
+ }
82
+ }
83
+ } )
84
+ return newItem
85
+ } )
69
86
state . loading = false
70
87
state . processing = false
71
88
} ,
You can’t perform that action at this time.
0 commit comments