Skip to content

Commit 0ed15f1

Browse files
authored
Merge pull request #469 from tidepool-org/WEB-3002-tooltip-label
WEB-3002 - Change wording on tooltip label
2 parents 4b174a7 + 79724a4 commit 0ed15f1

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"node": "20.8.0"
55
},
66
"packageManager": "[email protected]",
7-
"version": "1.45.0",
7+
"version": "1.46.0-override-tooltip.1",
88
"description": "Tidepool data visualization for diabetes device data.",
99
"keywords": [
1010
"data visualization"

src/utils/stat.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,11 @@ export const getStatAnnotations = (data, type, opts = {}) => {
365365

366366
case commonStats.timeInOverride:
367367
if (days > 1) {
368-
annotations.push(t('**Time In {{overrideLabel}}:** Daily average of the time spent in a {{overrideLabelLowerCase}}.', labels));
369-
annotations.push(t('**How we calculate this:**\n\n**(%)** is the duration in a {{overrideLabelLowerCase}} divided by the total duration for this time period.\n\n**(time)** is 24 hours multiplied by % in a {{overrideLabelLowerCase}}.', labels));
368+
annotations.push(t('**Time In {{overrideLabel}}:** Daily average of the time spent in {{overrideLabelLowerCase}}.', labels));
369+
annotations.push(t('**How we calculate this:**\n\n**(%)** is the duration in {{overrideLabelLowerCase}} divided by the total duration for this time period.\n\n**(time)** is 24 hours multiplied by % in {{overrideLabelLowerCase}}.', labels));
370370
} else {
371-
annotations.push(t('**Time In {{overrideLabel}}:** Time spent in a {{overrideLabelLowerCase}}.', labels));
372-
annotations.push(t('**How we calculate this:**\n\n**(%)** is the duration in a {{overrideLabelLowerCase}} divided by the total duration for this time period.\n\n**(time)** is total duration of time in a {{overrideLabelLowerCase}}.', labels));
371+
annotations.push(t('**Time In {{overrideLabel}}:** Time spent in {{overrideLabelLowerCase}}.', labels));
372+
annotations.push(t('**How we calculate this:**\n\n**(%)** is the duration in {{overrideLabelLowerCase}} divided by the total duration for this time period.\n\n**(time)** is total duration of time in {{overrideLabelLowerCase}}.', labels));
373373
}
374374
break;
375375

test/utils/stat.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,15 +1000,15 @@ describe('stat', () => {
10001000
describe('timeInOverride', () => {
10011001
it('should return annotations for `timeInOverride` stat when viewing a single day of data', () => {
10021002
expect(stat.getStatAnnotations(data, commonStats.timeInOverride, singleDayOpts)).to.have.ordered.members([
1003-
'**Time In Settings Override:** Time spent in a settings override.',
1004-
'**How we calculate this:**\n\n**(%)** is the duration in a settings override divided by the total duration for this time period.\n\n**(time)** is total duration of time in a settings override.',
1003+
'**Time In Settings Override:** Time spent in settings override.',
1004+
'**How we calculate this:**\n\n**(%)** is the duration in settings override divided by the total duration for this time period.\n\n**(time)** is total duration of time in settings override.',
10051005
]);
10061006
});
10071007

10081008
it('should return annotations for `timeInOverride` stat when viewing multiple days of data', () => {
10091009
expect(stat.getStatAnnotations(data, commonStats.timeInOverride, multiDayOpts)).to.have.ordered.members([
1010-
'**Time In Settings Override:** Daily average of the time spent in a settings override.',
1011-
'**How we calculate this:**\n\n**(%)** is the duration in a settings override divided by the total duration for this time period.\n\n**(time)** is 24 hours multiplied by % in a settings override.',
1010+
'**Time In Settings Override:** Daily average of the time spent in settings override.',
1011+
'**How we calculate this:**\n\n**(%)** is the duration in settings override divided by the total duration for this time period.\n\n**(time)** is 24 hours multiplied by % in settings override.',
10121012
]);
10131013
});
10141014
});

0 commit comments

Comments
 (0)