Skip to content

Commit 14e26f1

Browse files
committed
127 Update tooltips
1 parent eb01cf8 commit 14e26f1

File tree

8 files changed

+70
-18
lines changed

8 files changed

+70
-18
lines changed

assets/css/ioda/sass/abstracts/_variables.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ $color-ucsd-nt: #ED9B40; // XXX Choose a new color
4848

4949
$color-table-datasource-bottom-border: #aaa;
5050

51+
$color-dark-grey: #595959;
52+
5153
// BOX SHADOW
5254
$box-shadow: 0 1px 2px #9F9D9D;
5355
$button-box-shadow: inset 0 0.2rem 0.1rem rgba(255, 255, 255, .2),
@@ -69,4 +71,3 @@ $color-rdrInputRangeInput-borderHover: #b4bfc4;
6971
$color-rdrDayNumber-span: #d5dce0;
7072
$color-rdrDayDisabled: #f8f8f8;
7173
$color-rdrDayDisabled-span: #aeb9bf;
72-

assets/css/ioda/sass/components/tooltip/_tooltip.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,21 @@
33
z-index: 10000000000;
44
.ant-popover-title {
55
color: #fff !important;
6+
font-size: 12px;
7+
font-weight: 500;
68
}
79
.ant-popover-inner-content {
810
color: #fff !important;
11+
font-size: 12px;
12+
font-weight: 400;
913
}
1014
}
15+
16+
div[role=tooltip] {
17+
padding: 16px !important;
18+
border-radius: 2px !important;
19+
}
20+
21+
.question-tooltip-button {
22+
color: $color-dark-grey !important;
23+
}

assets/css/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/Ioda/components/map/MapLegend.js

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import React, { Component } from "react";
22
import clsx from "clsx";
3+
import Tooltip from "../../components/tooltip/Tooltip";
4+
import T from "i18n-react";
35

46
const MapLegend = ({ lowThreshold, highThreshold, className, ...rest }) => {
57
const formatLocaleNumber = (value, precision = 0) => {
@@ -21,11 +23,24 @@ const MapLegend = ({ lowThreshold, highThreshold, className, ...rest }) => {
2123
const intervals = 4;
2224
const range = getRangeFromBounds(lowThreshold, highThreshold, intervals);
2325

26+
const outageSeverityScoreTooltipTitle = T.translate(
27+
"tooltip.outageSeverityScore.title"
28+
);
29+
const outageSeverityScoreTooltipText = T.translate(
30+
"tooltip.outageSeverityScore.text"
31+
);
32+
2433
return (
2534
<div className={clsx("card p-4 map-legend", className)} {...rest}>
2635
<div className="flex items-end gap-4">
27-
<div className="text-lg font-bold map-legend__title">
28-
Outage Severity Score:
36+
<div className="row items-center" style={{ margin: 0 }}>
37+
<div className="text-lg font-bold map-legend__title">
38+
Outage Severity Score:
39+
</div>
40+
<Tooltip
41+
title={outageSeverityScoreTooltipTitle}
42+
text={outageSeverityScoreTooltipText}
43+
/>
2944
</div>
3045
<div className="col">
3146
<div className="flex items-center map-legend__labels">

assets/js/Ioda/components/tooltip/Tooltip.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from "react";
22
import { Button, Popover } from "antd";
3-
import { QuestionCircleOutlined } from "@ant-design/icons";
3+
import { QuestionCircleFilled } from "@ant-design/icons";
44

55
const Tooltip = ({ title, text, customCode, className }) => {
66
return (
@@ -14,13 +14,14 @@ const Tooltip = ({ title, text, customCode, className }) => {
1414
}}
1515
overlayClassName="ioda-help-tooltip"
1616
color="rgba(0, 0, 0, 0.9)"
17+
borderRadius="2px"
1718
>
1819
<Button
19-
className={className}
20+
className={`${className} question-tooltip-button`}
2021
type="link"
21-
color="primary"
2222
shape="circle"
23-
icon={<QuestionCircleOutlined />}
23+
color="rgba(0, 0, 0, 0.9)"
24+
icon={<QuestionCircleFilled />}
2425
size="small"
2526
/>
2627
</Popover>

assets/js/Ioda/constants/strings/en/app.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
"tooltip": {
259259
"timeRange": {
260260
"title": "Time Range",
261-
"text": "This dropdown menu allows you to pick the time range for the data you want to inspect. Note that the dashboard limits the data to 60 days."
261+
"text": "This graph displays the historical trend of signal strength in your chosen location for the time period selected."
262262
},
263263
"searchBar": {
264264
"title": "Search",
@@ -272,21 +272,29 @@
272272
"title": "IODA Signals",
273273
"text": "This panel allows you to inspect the time series of IODA's three signals: active probing, BGP, and Telescope."
274274
},
275+
"xyPlotTimeSeriesTitleCountry": {
276+
"title": "IODA Signals",
277+
"text": "This graph displays the average signal strength across all regions within your chosen country."
278+
},
275279
"alertFeed": {
276280
"title": "Alert Feed",
277281
"text": "This table contains potential outages that IODA discovered. The cause of an outage can be manifold and includes misconfiguration, natural disasters, and shutdowns."
278282
},
279283
"entityRegionalSummaryMap": {
280284
"title": "Outage Severity Levels",
281-
"text": "This map shows potential regional outages by their relative severity. The more severe the outage, the more red the respective region overlay."
285+
"text": "This graph displays variations in signal strength across different regions within your chosen country. You can select up to 3 regions to compare signal strength simultaneously. Stronger signal strength is typically indicated by green, while weaker signal strength is represented by red."
282286
},
283287
"entityAsnSummaryTable": {
284288
"title": "Outage Severity Levels",
285-
"text": "This table shows potential ASN/ISP outages by their relative severity. The more severe the outage, the more red the respective table cell."
289+
"text": "This graph displays variations in signal strength across different networks within your chosen country. You can select up to 3 networks to compare signal strength simultaneously. Stronger signal strength is typically indicated by green, while weaker signal strength is represented by red."
286290
},
287291
"entityRawSignalsHeading": {
288292
"title": "Raw IODA Signals",
289293
"text": "This visualization shows IODA's signals over time. The \"Stacked Horizon Graph\" turns from dark green to white as a signal decreases."
294+
},
295+
"outageSeverityScore": {
296+
"title": "Outage Severity Score",
297+
"text": "This indicates the severity of the outage, ranging from \"minimal disruption\" to \"complete internet shutdown\"."
290298
}
291299
},
292300
"timestamp": {

assets/js/Ioda/pages/entity/Entity.js

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2769,6 +2769,14 @@ class Entity extends Component {
27692769
const tooltipXyPlotTimeSeriesText = T.translate(
27702770
"tooltip.xyPlotTimeSeriesTitle.text"
27712771
);
2772+
2773+
const tooltipXyPlotTimeSeriesTitleCountry = T.translate(
2774+
"tooltip.xyPlotTimeSeriesTitleCountry.title"
2775+
);
2776+
const tooltipXyPlotTimeSeriesTextCountry = T.translate(
2777+
"tooltip.xyPlotTimeSeriesTitleCountry.text"
2778+
);
2779+
27722780
const timeDurationTooHighErrorMessage = T.translate(
27732781
"dashboard.timeDurationTooHighErrorMessage"
27742782
);
@@ -2820,12 +2828,18 @@ class Entity extends Component {
28202828
{xyChartTitle}
28212829
{this.state.entityName}
28222830
</h3>
2823-
<CustomToolip
2824-
className="mr-auto"
2825-
title={tooltipXyPlotTimeSeriesTitle}
2826-
text={tooltipXyPlotTimeSeriesText}
2827-
/>
2828-
2831+
{this.state.entityType === "country" ?
2832+
<CustomToolip
2833+
className="mr-auto"
2834+
title={tooltipXyPlotTimeSeriesTitleCountry}
2835+
text={tooltipXyPlotTimeSeriesTextCountry}
2836+
/> :
2837+
<CustomToolip
2838+
className="mr-auto"
2839+
title={tooltipXyPlotTimeSeriesTitle}
2840+
text={tooltipXyPlotTimeSeriesText}
2841+
/>
2842+
}
28292843
{this.state.showResetZoomButton && (
28302844
<Tooltip title="Reset View">
28312845
<Button

0 commit comments

Comments
 (0)