Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion redisinsight/ui/src/components/query-card/QueryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface Props {
isOpen: boolean
result: Maybe<CommandExecutionResult[]>
activeMode: RunQueryMode
mode: RunQueryMode
mode?: RunQueryMode
activeResultsMode?: ResultsMode
resultsMode?: ResultsMode
emptyCommand: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@
}

.container .alert {
font-size: 13px !important;
line-height: 18px !important;
font-size: 14px !important;
line-height: 17px !important;
letter-spacing: -0.13px !important;
color: var(--euiColorWarningLight) !important;
margin-bottom: 4px;
}

.container .alertIcon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface Props {
createdAt?: Date
summaryText?: string
activeMode: RunQueryMode
mode: RunQueryMode
mode?: RunQueryMode
activeResultsMode?: ResultsMode
summary?: string
queryType: WBQueryType
Expand Down
17 changes: 2 additions & 15 deletions redisinsight/ui/src/utils/cliHelper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,6 @@ const wbSummaryCommand = (command: string) => (
</span>
)

const wbSummaryCommandResult = (result: string, status: CommandExecutionStatus) => (
<span
className={
status === CommandExecutionStatus.Success
? `${CliPrefix.Cli}-output-response-success`
: `${CliPrefix.Cli}-output-response-fail`
}
data-testid="wb-command-result"
>
{`${result} \n`}
</span>
)

const clearOutput = (dispatch: any) => {
dispatch(resetOutput())
}
Expand All @@ -110,12 +97,12 @@ const cliParseCommandsGroupResult = (
index: number
) => {
const executionCommand = wbSummaryCommand(result.command)
const executionResult = wbSummaryCommandResult(result.response || '(nil)', result.status)

const executionResult = cliParseTextResponse(result.response || '(nil)', result.command, result.status)
return (
<Fragment key={`group-result-${index}`}>
{executionCommand}
{executionResult}
{'\n'}
</Fragment>
)
}
Expand Down