Skip to content

Commit 4365412

Browse files
Merge pull request #1600 from RedisInsight/feature/RI-4023_no-recommendations_message
#RI-4023 - update no recommendations message
2 parents 653fd01 + 03aada0 commit 4365412

File tree

5 files changed

+106
-16
lines changed

5 files changed

+106
-16
lines changed
Lines changed: 24 additions & 0 deletions
Loading
Lines changed: 24 additions & 0 deletions
Loading

redisinsight/ui/src/constants/dbAnalysisRecommendations.json

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -499,29 +499,42 @@
499499
"content": [
500500
{
501501
"id": "1",
502-
"type": "paragraph",
503-
"value": "If you are using sorted sets to work with time series data, consider using RedisTimeSeries to optimize the memory usage while having extraordinary query performance and small overhead during ingestion."
502+
"type": "span",
503+
"value": "If you are using sorted sets to work with time series data, consider using "
504504
},
505505
{
506506
"id": "2",
507+
"type": "link",
508+
"value": {
509+
"href": "https://redis.io/docs/stack/timeseries/",
510+
"name": "RedisTimeSeries"
511+
}
512+
},
513+
{
514+
"id": "3",
515+
"type": "span",
516+
"value": " to optimize the memory usage while having extraordinary query performance and small overhead during ingestion."
517+
},
518+
{
519+
"id": "4",
507520
"type": "spacer",
508521
"value": "l"
509522
},
510523
{
511-
"id": "3",
524+
"id": "5",
512525
"type": "span",
513526
"value": "Create a "
514527
},
515528
{
516-
"id": "4",
529+
"id": "6",
517530
"type": "link",
518531
"value": {
519532
"href": "https://redis.com/try-free/?utm_source=redis&utm_medium=app&utm_campaign=redisinsight_recommendations/",
520533
"name": "free Redis Stack database"
521534
}
522535
},
523536
{
524-
"id": "5",
537+
"id": "7",
525538
"type": "span",
526539
"value": " to use modern data models and processing engines."
527540
}
@@ -566,47 +579,55 @@
566579
},
567580
"redisSearch": {
568581
"id": "redisSearch",
569-
"title":"Optimize your search and query experience",
582+
"title":"Optimize your query and search experience",
570583
"redisStack": true,
571584
"content": [
572585
{
573586
"id": "1",
574-
"type": "span",
575-
"value": "RediSearch was designed to help address your query needs and support a better development experience when dealing with complex data scenarios. Take a look at the powerful API options here ("
587+
"type": "link",
588+
"value": {
589+
"href": "https://redis.io/docs/stack/search/",
590+
"name": "RediSearch"
591+
}
576592
},
577593
{
578594
"id": "2",
595+
"type": "span",
596+
"value": "was designed to help address your query needs and support a better development experience when dealing with complex data scenarios. Take a look at the "
597+
},
598+
{
599+
"id": "3",
579600
"type": "link",
580601
"value": {
581602
"href": "https://redis.io/commands/?name=Ft",
582-
"name": "Commands"
603+
"name": "powerful API options"
583604
}
584605
},
585606
{
586-
"id": "3",
607+
"id": "4",
587608
"type": "span",
588-
"value": ") and try it. Supports full-text search, wildcards, fuzzy logic, and more."
609+
"value": " and try them. Supports full-text search, wildcards, fuzzy logic, and more."
589610
},
590611
{
591-
"id": "4",
612+
"id": "5",
592613
"type": "spacer",
593614
"value": "l"
594615
},
595616
{
596-
"id": "5",
617+
"id": "6",
597618
"type": "span",
598619
"value": "Create a "
599620
},
600621
{
601-
"id": "6",
622+
"id": "7",
602623
"type": "link",
603624
"value": {
604625
"href": "https://redis.com/try-free/?utm_source=redis&utm_medium=app&utm_campaign=redisinsight_recommendations/",
605626
"name": "free Redis Stack database"
606627
}
607628
},
608629
{
609-
"id": "7",
630+
"id": "8",
610631
"type": "span",
611632
"value": " which extends the core capabilities of Redis OSS and uses modern data models and processing engines."
612633
}

redisinsight/ui/src/pages/databaseAnalysis/components/recommendations-view/Recommendations.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import { Theme } from 'uiSrc/constants'
1919
import { sendEventTelemetry, TelemetryEvent } from 'uiSrc/telemetry'
2020
import RediStackDarkMin from 'uiSrc/assets/img/modules/redistack/RediStackDark-min.svg'
2121
import RediStackLightMin from 'uiSrc/assets/img/modules/redistack/RediStackLight-min.svg'
22+
import NoRecommendationsDark from 'uiSrc/assets/img/icons/recommendations_dark.svg'
23+
import NoRecommendationsLight from 'uiSrc/assets/img/icons/recommendations_light.svg'
2224

2325
import { renderContent, renderBadges, renderBadgesLegend } from './utils'
2426
import styles from './styles.module.scss'
@@ -91,7 +93,15 @@ const Recommendations = () => {
9193
if (isNull(recommendations) || !recommendations.length) {
9294
return (
9395
<div className={styles.container} data-testid="empty-recommendations-message">
94-
<EuiText size="m">No Recommendations at the moment.</EuiText>
96+
<EuiIcon
97+
type={theme === Theme.Dark ? NoRecommendationsDark : NoRecommendationsLight}
98+
className={styles.noRecommendationsIcon}
99+
data-testid="no=recommendations-icon"
100+
/>
101+
<EuiText className={styles.bigText}>AMAZING JOB!</EuiText>
102+
<EuiText size="m">No Recommendations at the moment,</EuiText>
103+
<br />
104+
<EuiText size="m">keep up the good work!</EuiText>
95105
</div>
96106
)
97107
}

redisinsight/ui/src/pages/databaseAnalysis/components/recommendations-view/styles.module.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@
6868
flex-direction: column;
6969
align-items: center;
7070
height: 100%;
71+
padding-bottom: 162px;
72+
73+
.noRecommendationsIcon {
74+
width: 154px;
75+
height: 127px;
76+
}
77+
}
78+
79+
.bigText {
80+
font: normal normal 600 18px/22px Graphik, sans-serif !important;
81+
margin: 16px 0 12px;
7182
}
7283

7384
.loadingWrapper {

0 commit comments

Comments
 (0)