Skip to content

Commit b88d18e

Browse files
authored
Merge pull request #3921 from RedisInsight/fe/feature/RI-6153-rdi-dry-run-text-changes
RI-6153 renamed and added tooltips to dry-run panel tabs
2 parents f153552 + 40624f4 commit b88d18e

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

redisinsight/ui/src/pages/rdi/pipeline-management/components/jobs-panel/Panel.tsx

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,37 @@ const DryRunJobPanel = (props: Props) => {
144144
className={styles.tab}
145145
data-testid="transformations-tab"
146146
>
147-
<span className={styles.tabName}>Transformations</span>
147+
<EuiToolTip
148+
content={(
149+
<EuiText color="subdued" size="s">
150+
Displays the results of the transformations you defined. The data is presented in JSON format.
151+
<br />
152+
No data is written to the target database.
153+
</EuiText>
154+
)}
155+
data-testid="transformation-output-tooltip"
156+
>
157+
<span className={styles.tabName}>Transformation output</span>
158+
</EuiToolTip>
148159
</EuiTab>
149160
<EuiTab
150161
isSelected={selectedTab === PipelineJobsTabs.Output}
151162
onClick={() => handleChangeTab(PipelineJobsTabs.Output)}
152163
className={styles.tab}
153164
data-testid="output-tab"
154165
>
155-
<>
156-
<span className={styles.tabName}>Output</span>
157-
</>
166+
<EuiToolTip
167+
content={(
168+
<EuiText color="subdued" size="s">
169+
Displays the list of Redis commands that will be generated based on your job details.
170+
<br />
171+
No data is written to the target database.
172+
</EuiText>
173+
)}
174+
data-testid="job-output-tooltip"
175+
>
176+
<span className={styles.tabName}>Job output</span>
177+
</EuiToolTip>
158178
</EuiTab>
159179
</EuiTabs>
160180
), [selectedTab, isFullScreen])
@@ -223,7 +243,6 @@ const DryRunJobPanel = (props: Props) => {
223243
</EuiFlexItem>
224244
</EuiFlexGroup>
225245
<div className={cx(styles.tabsWrapper, styles.codeLabel)}>
226-
<EuiText>Results</EuiText>
227246
{isSelectAvailable && (
228247
<EuiSuperSelect
229248
options={targetOptions}

redisinsight/ui/src/pages/rdi/pipeline-management/components/jobs-panel/styles.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ $animation-duration: 300ms;
5959

6060
.codeLabel {
6161
display: flex;
62-
justify-content: space-between;
62+
justify-content: flex-end;
6363
align-items: center;
6464
font: normal normal normal 14px/17px Graphik, sans-serif;
6565
height: 28px;

0 commit comments

Comments
 (0)