File tree Expand file tree Collapse file tree 4 files changed +7
-19
lines changed
QueryCardCliResultWrapper Expand file tree Collapse file tree 4 files changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export interface Props {
29
29
isOpen : boolean
30
30
result : Maybe < CommandExecutionResult [ ] >
31
31
activeMode : RunQueryMode
32
- mode : RunQueryMode
32
+ mode ? : RunQueryMode
33
33
activeResultsMode ?: ResultsMode
34
34
resultsMode ?: ResultsMode
35
35
emptyCommand : boolean
Original file line number Diff line number Diff line change 34
34
}
35
35
36
36
.container .alert {
37
- font-size : 13 px !important ;
38
- line-height : 18 px !important ;
37
+ font-size : 14 px !important ;
38
+ line-height : 17 px !important ;
39
39
letter-spacing : -0.13px !important ;
40
40
color : var (--euiColorWarningLight ) !important ;
41
+ margin-bottom : 4px ;
41
42
}
42
43
43
44
.container .alertIcon {
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export interface Props {
39
39
createdAt ?: Date
40
40
summaryText ?: string
41
41
activeMode : RunQueryMode
42
- mode : RunQueryMode
42
+ mode ? : RunQueryMode
43
43
activeResultsMode ?: ResultsMode
44
44
summary ?: string
45
45
queryType : WBQueryType
Original file line number Diff line number Diff line change @@ -88,19 +88,6 @@ const wbSummaryCommand = (command: string) => (
88
88
</ span >
89
89
)
90
90
91
- const wbSummaryCommandResult = ( result : string , status : CommandExecutionStatus ) => (
92
- < span
93
- className = {
94
- status === CommandExecutionStatus . Success
95
- ? `${ CliPrefix . Cli } -output-response-success`
96
- : `${ CliPrefix . Cli } -output-response-fail`
97
- }
98
- data-testid = "wb-command-result"
99
- >
100
- { `${ result } \n` }
101
- </ span >
102
- )
103
-
104
91
const clearOutput = ( dispatch : any ) => {
105
92
dispatch ( resetOutput ( ) )
106
93
}
@@ -110,12 +97,12 @@ const cliParseCommandsGroupResult = (
110
97
index : number
111
98
) => {
112
99
const executionCommand = wbSummaryCommand ( result . command )
113
- const executionResult = wbSummaryCommandResult ( result . response || '(nil)' , result . status )
114
-
100
+ const executionResult = cliParseTextResponse ( result . response || '(nil)' , result . command , result . status )
115
101
return (
116
102
< Fragment key = { `group-result-${ index } ` } >
117
103
{ executionCommand }
118
104
{ executionResult }
105
+ { '\n' }
119
106
</ Fragment >
120
107
)
121
108
}
You can’t perform that action at this time.
0 commit comments