Skip to content

Commit 222e386

Browse files
authored
RI-7731: adjust rdi modals text (#5223)
* update text on actions modal * update text on rdi menu options * update download from server modal text * reverse unneeded formatting to the pipeline modal tests * remove unused imports in tests
1 parent d77f05e commit 222e386

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

redisinsight/ui/src/pages/rdi/instance/components/header/components/rdi-config-file-action-menu/RdiConfigFileActionMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const RdiConfigFileActionMenu = () => {
3434
onClose={closeMenu}
3535
trigger={
3636
<Menu.Content.Item
37-
text="Download from server"
37+
text="Download deployed pipeline"
3838
icon={DownloadIcon}
3939
onClick={(e) => e.preventDefault()}
4040
aria-labelledby="Upload pipeline button"
@@ -46,7 +46,7 @@ const RdiConfigFileActionMenu = () => {
4646
onClose={closeMenu}
4747
trigger={
4848
<Menu.Content.Item
49-
text="Upload from file"
49+
text="Import pipeline from ZIP file"
5050
icon={UploadIcon}
5151
onClick={(e) => e.preventDefault()}
5252
aria-labelledby="Upload file button"
@@ -57,7 +57,7 @@ const RdiConfigFileActionMenu = () => {
5757
<Download
5858
trigger={
5959
<Menu.Content.Item
60-
text="Save to file"
60+
text="Save pipeline to ZIP file"
6161
icon={SaveIcon}
6262
aria-labelledby="Download pipeline button"
6363
data-testid="download-pipeline-btn"

redisinsight/ui/src/pages/rdi/pipeline-management/components/download-from-server-modal/DownloadFromServerModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ const DownloadFromServerModal = (props: Props) => {
7272
<Modal.Content.Close />
7373
<Modal.Content.Header title="Download a pipeline from the server" />
7474
<Modal.Content.Body.Compose>
75-
When downloading a new pipeline from the server, it will overwrite the
76-
existing one displayed in Redis Insight.
75+
When downloading the pipeline configuration from the server, it will
76+
overwrite the existing one displayed in Redis Insight.
7777
</Modal.Content.Body.Compose>
7878
<Modal.Content.Footer.Compose>
7979
<Download

redisinsight/ui/src/pages/rdi/pipeline-management/components/source-pipeline-dialog/SourcePipelineModal.spec.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react'
2-
import { cloneDeep } from 'lodash'
32
import {
43
cleanup,
54
mockedStore,
@@ -10,7 +9,6 @@ import {
109
createMockedStore,
1110
} from 'uiSrc/utils/test-utils'
1211
import {
13-
getPipeline,
1412
rdiPipelineSelector,
1513
setChangedFile,
1614
} from 'uiSrc/slices/rdi/pipeline'

redisinsight/ui/src/pages/rdi/pipeline-management/components/source-pipeline-dialog/SourcePipelineModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const SourcePipelineDialog = () => {
125125
>
126126
<UploadIcon size="XL" />
127127
<Text color="primary" size="S" textAlign="center">
128-
Upload from file
128+
Import pipeline from ZIP file
129129
</Text>
130130
</ButtonWrapper>
131131
<ButtonWrapper

0 commit comments

Comments
 (0)