Skip to content

Commit 344006d

Browse files
committed
#RI-5538 - remove HelpLinksMenu
1 parent e1e27da commit 344006d

File tree

8 files changed

+15
-272
lines changed

8 files changed

+15
-272
lines changed

redisinsight/ui/src/pages/home/components/capability-promotion/styles.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@
6868
}
6969
}
7070

71-
@include welcome-page(650px) {
71+
@include welcome-page-header(650px) {
7272
.guideItem:nth-child(3) {
7373
display: none;
7474
}
7575
}
7676

77-
@include welcome-page(850px) {
77+
@include welcome-page-header(850px) {
7878
.guideItem:nth-child(4) {
7979
display: none;
8080
}

redisinsight/ui/src/pages/home/components/help-links-menu/HelpLinksMenu.tsx

Lines changed: 0 additions & 104 deletions
This file was deleted.

redisinsight/ui/src/pages/home/components/help-links-menu/HelpLinskMenu.spec.tsx

Lines changed: 0 additions & 28 deletions
This file was deleted.

redisinsight/ui/src/pages/home/components/help-links-menu/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

redisinsight/ui/src/pages/home/components/help-links-menu/styles.module.scss

Lines changed: 0 additions & 74 deletions
This file was deleted.

redisinsight/ui/src/pages/home/components/home-header/HomeHeader.tsx

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { useSelector } from 'react-redux'
1212
import cx from 'classnames'
1313
import { ImportDatabasesDialog, OAuthSsoHandlerDialog } from 'uiSrc/components'
1414
import { sendEventTelemetry, TelemetryEvent } from 'uiSrc/telemetry'
15-
import HelpLinksMenu from 'uiSrc/pages/home/components/help-links-menu'
1615
import PromoLink from 'uiSrc/components/promo-link/PromoLink'
1716
import { ThemeContext } from 'uiSrc/contexts/themeContext'
1817
import { contentSelector } from 'uiSrc/slices/content/create-redis-buttons'
@@ -184,32 +183,15 @@ const HomeHeader = ({ onAddInstance, direction }: Props) => {
184183
<ImportDatabasesBtn />
185184
</EuiFlexItem>
186185
{!loading && !isEmpty(data) && (
187-
<>
188-
<EuiFlexItem grow={false} className={cx(styles.promo)}>
189-
<EuiFlexGroup alignItems="center" gutterSize="s">
190-
{promoData && (
191-
<EuiFlexItem grow={false}>
192-
<CreateBtn content={promoData} />
193-
</EuiFlexItem>
194-
)}
195-
</EuiFlexGroup>
196-
</EuiFlexItem>
197-
<EuiFlexItem grow={false} className={styles.fullGuides}>
198-
<HelpLinksMenu
199-
items={guides}
200-
buttonText={CREATE_DATABASE}
201-
onLinkClick={(link) => handleClickLink(HELP_LINKS[link as keyof typeof HELP_LINKS]?.event)}
202-
/>
203-
</EuiFlexItem>
204-
<EuiFlexItem grow={false} className={styles.smallGuides}>
205-
<HelpLinksMenu
206-
emptyAnchor
207-
items={guides.slice(1)}
208-
buttonText={THE_GUIDES}
209-
onLinkClick={(link) => handleClickLink(HELP_LINKS[link as keyof typeof HELP_LINKS]?.event)}
210-
/>
211-
</EuiFlexItem>
212-
</>
186+
<EuiFlexItem grow={false} className={cx(styles.promo)}>
187+
<EuiFlexGroup alignItems="center" gutterSize="s">
188+
{promoData && (
189+
<EuiFlexItem grow={false}>
190+
<CreateBtn content={promoData} />
191+
</EuiFlexItem>
192+
)}
193+
</EuiFlexGroup>
194+
</EuiFlexItem>
213195
)}
214196
{instances.length > 0 && (
215197
<EuiFlexItem grow={false} className={styles.searchContainer}>

redisinsight/ui/src/pages/home/components/home-header/styles.module.scss

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -95,32 +95,11 @@
9595

9696
.promo {
9797
display: flex !important;
98-
@media only screen and(max-width: 1100px) {
98+
@media only screen and(max-width: 1000px) {
9999
display: none !important;
100100
}
101101
}
102102

103-
.linkGuides {
104-
display: none !important;
105-
@media (min-width: 1250px) {
106-
display: flex !important;
107-
}
108-
}
109-
110-
.fullGuides {
111-
display: none !important;
112-
@media only screen and(max-width: 1100px) {
113-
display: flex !important;
114-
}
115-
}
116-
117-
.smallGuides {
118-
display: none !important;
119-
@media (min-width: 1101px) and (max-width: 1249px) {
120-
display: flex !important;
121-
}
122-
}
123-
124103
.cloudSsoPromoTooltip {
125104
display: flex;
126105
flex-direction: row;
@@ -133,18 +112,9 @@
133112
margin-right: 8px;
134113
}
135114

136-
@include insights-open(1712px) {
137-
.fullGuides {
138-
display: flex !important;
139-
}
140-
141-
.promo, .smallGuides {
115+
@include insights-open(1350px) {
116+
.promo {
142117
display: none !important;
143118
}
144119
}
145120

146-
@include insights-open(1200px) {
147-
.fullGuides {
148-
display: none !important;
149-
}
150-
}

redisinsight/ui/src/styles/mixins/_global.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}
77
}
88

9-
@mixin welcome-page($max-width: 1440px) {
9+
@mixin welcome-page-header($max-width: 1440px) {
1010
h4[data-testid="welcome-page-title"] ~ div {
1111
@media only screen and (max-width: $max-width) {
1212
@content;

0 commit comments

Comments
 (0)