Skip to content

Commit 5c312a4

Browse files
committed
#RI-3329 - add survey link
1 parent 8372080 commit 5c312a4

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed
Lines changed: 9 additions & 0 deletions
Loading

redisinsight/ui/src/components/bottom-group-components/components/bottom-group-minimized/BottomGroupMinimized.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
} from 'uiSrc/slices/cli/cli-settings'
1515
import { sendEventTelemetry, TelemetryEvent } from 'uiSrc/telemetry'
1616
import { monitorSelector, toggleHideMonitor, toggleMonitor } from 'uiSrc/slices/cli/monitor'
17+
import SurveyIcon from 'uiSrc/assets/img/survey_icon.svg'
1718

1819
import styles from '../../styles.module.scss'
1920

@@ -67,6 +68,12 @@ const BottomGroupMinimized = () => {
6768
dispatch(toggleMonitor())
6869
}
6970

71+
const onClickSurvey = () => {
72+
sendEventTelemetry({
73+
event: TelemetryEvent.USER_SURVEY_LINK_CLICKED
74+
})
75+
}
76+
7077
return (
7178
<div className={styles.containerMinimized}>
7279
<EuiFlexGroup
@@ -117,6 +124,18 @@ const BottomGroupMinimized = () => {
117124
</EuiBadge>
118125
</EuiFlexItem>
119126
</EuiFlexGroup>
127+
<a
128+
className={styles.link}
129+
target="_blank"
130+
rel="noreferrer"
131+
href="#"
132+
onClick={onClickSurvey}
133+
>
134+
<>
135+
<EuiIcon type={SurveyIcon} className={styles.surveyIcon} />
136+
<span>We need your opinion, take a survey!</span>
137+
</>
138+
</a>
120139
</div>
121140
)
122141
}

redisinsight/ui/src/components/bottom-group-components/styles.module.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,33 @@
1111
}
1212

1313
.containerMinimized {
14+
display: flex;
15+
align-items: center;
1416
height: 26px;
1517
line-height: 26px;
1618
border: 1px solid var(--euiColorLightShade);
19+
20+
.link {
21+
display: flex;
22+
align-items: center;
23+
height: 100%;
24+
background: #F6F7F9;
25+
padding: 0 12px;
26+
border-radius: 4px 4px 0 0;
27+
28+
color: #010101 !important;
29+
font: normal normal normal 12px/18px Graphik;
30+
31+
&:hover {
32+
text-decoration: underline;
33+
}
34+
}
35+
36+
.surveyIcon {
37+
margin-right: 8px;
38+
width: 20px;
39+
height: 20px;
40+
}
1741
}
1842

1943
.componentBadgeItem {

redisinsight/ui/src/telemetry/events.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,6 @@ export enum TelemetryEvent {
179179
BULK_ACTIONS_OPENED = 'BULK_ACTIONS_OPENED',
180180
BULK_ACTIONS_WARNING = 'BULK_ACTIONS_WARNING',
181181
BULK_ACTIONS_CANCELLED = 'BULK_ACTIONS_CANCELLED',
182+
183+
USER_SURVEY_LINK_CLICKED = 'USER_SURVEY_LINK_CLICKED'
182184
}

0 commit comments

Comments
 (0)