Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.45.0 to master #438

Open
wants to merge 141 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
ea4dd8f
Provide additional hours and minutes data to `formatTimeAgo` util output
clintonium-119 Dec 4, 2024
03bd8aa
Update minutesText output for < 1 minute in timeAgo util
clintonium-119 Dec 5, 2024
e262314
Merge branch 'develop' into WEB-3272-patient-data-linking-after-creation
clintonium-119 Dec 5, 2024
c1e871f
Update tests
clintonium-119 Dec 23, 2024
4291ba6
Add .codegpt to .gitignore
clintonium-119 Jan 6, 2025
249fb02
v1.44.0-web-3272-patient-data-linking-after-creation.1
clintonium-119 Jan 6, 2025
ff6e586
Merge pull request #431 from tidepool-org/release-1.44.0
clintonium-119 Jan 8, 2025
15669b9
[WEB-3179] update victory charts to v32
krystophv Jan 8, 2025
40a5277
[WEB-3179] update victory charts to v33
krystophv Jan 8, 2025
cca050b
[WEB-3179] bump victory to v37.3.5 (latest)
krystophv Jan 9, 2025
1c5da32
export methods used for AGP
henry-tp Jan 9, 2025
1d9bae9
Merge branch 'develop' into WEB-3346-summary-accuracy
henry-tp Jan 9, 2025
69257d9
export bankersRound
henry-tp Jan 10, 2025
4bf9515
v1.44.0-web-3272-patient-data-linking-after-creation.2
clintonium-119 Jan 10, 2025
fa5f630
add formatPercentage to exports
henry-tp Jan 13, 2025
e9c5b4a
create new function for agpCGM text
henry-tp Jan 13, 2025
4634dff
escape characters for proper text copy
henry-tp Jan 13, 2025
693c5bc
add durations to copy text
henry-tp Jan 13, 2025
b1c20e1
move test from blip to viz
henry-tp Jan 13, 2025
673cb91
[WEB-3179] bump victory to v37.3.5 (latest)
krystophv Jan 9, 2025
28670d7
v1.44.0-web-3179-dep-updates.2
krystophv Jan 14, 2025
7bca073
[WEB-3179] clean up merge
krystophv Jan 14, 2025
ce636f5
v1.44.0-web-3179-dep-updates.3
krystophv Jan 14, 2025
77eaa45
fix test and lint
henry-tp Jan 14, 2025
9d9d309
v1.45.0-web-3346-summary-accuracy.1
henry-tp Jan 14, 2025
1be6fcf
Merge pull request #433 from tidepool-org/WEB-3179-dep-updates
krystophv Jan 15, 2025
5e65b1c
Update therapy settings header text
clintonium-119 Jan 15, 2025
bb2b121
Merge branch 'develop' into WEB-3346-summary-accuracy
henry-tp Jan 16, 2025
776cf2c
v1.45.0-web-3346-summary-accuracy.2
henry-tp Jan 16, 2025
c9e3862
Update unit tests
clintonium-119 Jan 16, 2025
11bc39d
Merge branch 'WEB-3272-patient-data-linking-after-creation' into WEB-…
clintonium-119 Jan 17, 2025
b41431f
v1.45.0-web-3274-device-settings-data-sources.1
clintonium-119 Jan 17, 2025
0a551b3
Merge branch 'develop' into WEB-3272-patient-data-linking-after-creation
clintonium-119 Jan 21, 2025
aa886e3
Merge branches 'WEB-3272-patient-data-linking-after-creation' and 'WE…
clintonium-119 Jan 21, 2025
9b22de3
v1.45.0-web-3274-device-settings-data-sources.2
clintonium-119 Jan 21, 2025
23b36fc
change agpCGMText function signature to decrease object scope
henry-tp Jan 21, 2025
8bd2644
v1.45.0-web-3346-summary-accuracy.3
henry-tp Jan 21, 2025
64e7701
fix test
henry-tp Jan 21, 2025
ae73e26
Merge pull request #429 from tidepool-org/WEB-3272-patient-data-linki…
clintonium-119 Jan 23, 2025
1864fb2
Merge branch 'develop' into WEB-3346-summary-accuracy
henry-tp Jan 23, 2025
6aff04b
v1.45.0-web-3346-summary-accuracy.4
henry-tp Jan 23, 2025
3e47cad
Merge pull request #432 from tidepool-org/WEB-3346-summary-accuracy
henry-tp Jan 23, 2025
48013b7
Merge branch 'develop' into WEB-3274-device-settings-data-sources
clintonium-119 Jan 27, 2025
086fb39
v1.45.0-web-3274-device-settings-data-sources.3
clintonium-119 Jan 27, 2025
c0d1a0d
Merge pull request #434 from tidepool-org/WEB-3274-device-settings-da…
clintonium-119 Jan 27, 2025
1bb45e4
v1.45.0-rc.1
clintonium-119 Feb 27, 2025
3a4d2ba
Remove nodejs stable job from travis
clintonium-119 Feb 28, 2025
6bf2081
Merge pull request #439 from tidepool-org/remove-travis-nodejs-stable
clintonium-119 Mar 3, 2025
8213913
Initial work to get twiist recognized as an automated Loop device
clintonium-119 Feb 18, 2025
078bed8
Update isTwiistLoop client.name regex
clintonium-119 Feb 18, 2025
05164ac
Update twiist upload and datum loop checks and tagging
clintonium-119 Mar 4, 2025
b923e5a
Update "Abbott" device label to "LibreView" for continous data sets
clintonium-119 Mar 4, 2025
ab3e308
Add tests for custom dexcom and abbot continous data set device labels
clintonium-119 Mar 5, 2025
f2a7981
v1.45.0-rc.2
clintonium-119 Mar 5, 2025
689bee1
Merge pull request #440 from tidepool-org/WEB-3465-abbott-device-id
clintonium-119 Mar 5, 2025
6f11c3b
Add twiist loop pump vocabulary
clintonium-119 Mar 7, 2025
daea2ff
Add twiist site changes
clintonium-119 Mar 7, 2025
adeef3a
Make site change sources consistently use Noun then Verb format
clintonium-119 Mar 7, 2025
42ef5fc
Manage Twiist Loop detection and site change rendering
clintonium-119 Mar 10, 2025
a83b733
v1.44.1-web-3428-twiist-loop.1
clintonium-119 Mar 10, 2025
1b122f5
Fix unit test that wasn't testing the intended functionality.
clintonium-119 Mar 11, 2025
c930765
v1.44.1-web-3428-twiist-loop.2
clintonium-119 Mar 11, 2025
d89b4ae
Merge pull request #441 from tidepool-org/WEB-3428-twiist-loop
clintonium-119 Mar 11, 2025
636b050
v1.44.1-rc.1
clintonium-119 Mar 11, 2025
7ffab55
WEB-2965 in getCarbsData(), only count days with carb data
henry-tp Mar 13, 2025
505dd7a
WEB-2965 in getBasalBolusData(), only count days with insulin data
henry-tp Mar 13, 2025
7e611b3
WEB-2965 revert accidental logger removal
henry-tp Mar 13, 2025
7a89397
WEB-2965 format stat times using timePrefs
henry-tp Mar 14, 2025
5fe5d36
WEB-2695 exclude overlapping dates
henry-tp Mar 14, 2025
0095266
WEB-2965 add comment re: rawBasalData
henry-tp Mar 14, 2025
a249233
fix: update isTwiistLoop function to identify non-upload data
Mar 14, 2025
e1038d8
v1.44.1-web-3428-twiist-update.1
krystophv Mar 14, 2025
c3cc534
lintfix
krystophv Mar 14, 2025
71b19a6
v1.44.1-web-3428-twiist-update.2
krystophv Mar 14, 2025
366f7ca
WEB-2965 adjust tooltip copy
henry-tp Mar 14, 2025
c33c134
WEB-2965 remove excludeDaysWithoutBolus where pertinent
henry-tp Mar 14, 2025
2904356
Add visualization for twiist loop
darinkrauss Mar 14, 2025
3e261ec
v1.44.1-web-3428-twiist-update.3
darinkrauss Mar 15, 2025
22b4de0
WEB-2965 use initial Set constructor instead of Set.add() to shorten …
henry-tp Mar 17, 2025
cec33b9
WEB-2965 comment typo
henry-tp Mar 17, 2025
20ca352
WEB-2965 remove unused this.bolusDays
henry-tp Mar 17, 2025
36e230d
Use correct twiist loop indicator
darinkrauss Mar 17, 2025
0fa326f
v1.44.1-web-3428-twiist-update.4
darinkrauss Mar 17, 2025
6d1605c
WEB-2965 fix tests
henry-tp Mar 17, 2025
70115af
WEB-2965 create test cases where activeDays is modified
henry-tp Mar 17, 2025
b1e8849
v1.45.0-web-2965-exclude-days
henry-tp Mar 17, 2025
562ddd5
WEB-2965 fix lint
henry-tp Mar 17, 2025
e03b87c
v1.45.0-web-2965-exclude-days.1
henry-tp Mar 17, 2025
c096a01
Fallback to carb ratio and isf from wizard data
darinkrauss Mar 19, 2025
a67eb89
v1.44.1-web-3428-twiist-update.5
darinkrauss Mar 19, 2025
9be8255
v1.44.1-WEB-3474-hide-twiist-wizard-bolus-filters.1
clintonium-119 Mar 20, 2025
f929fe7
Update isTwiistLoop to handle any datum type
clintonium-119 Mar 21, 2025
2079f27
Hide twiist bolus calculator filters if empty
clintonium-119 Mar 21, 2025
ebaff7a
Update tests
clintonium-119 Mar 21, 2025
639b656
v1.44.1-rc.2
clintonium-119 Mar 21, 2025
1fc6f04
Merge pull request #444 from tidepool-org/WEB-3428-twiist-update
clintonium-119 Mar 21, 2025
21fc04b
Merge branch 'release-1.44.1' into WEB-3474-hide-twiist-wizard-bolus-…
clintonium-119 Mar 21, 2025
79421b9
v1.83.2-rc.3
clintonium-119 Mar 21, 2025
a202ee6
v1.44.1-rc.3
clintonium-119 Mar 21, 2025
c042c90
WEB-3411 swap icons for pngs
henry-tp Mar 24, 2025
f7b6cfd
v1.45.0-web-3418-redirect-oauth.1
henry-tp Mar 24, 2025
6938540
Merge pull request #446 from tidepool-org/WEB-3474-hide-twiist-wizard…
clintonium-119 Mar 24, 2025
e52823b
Only convert pumpsettings overrides durations for DIY and Tidepool Loop
clintonium-119 Mar 25, 2025
7ac84d3
Fix to avoid stripping out bolus filters from Twiist that are only me…
clintonium-119 Mar 25, 2025
efdf24b
v1.44.1-rc.4
clintonium-119 Mar 25, 2025
ab850bf
Merge pull request #448 from tidepool-org/WEB-3030-loop-override-dura…
clintonium-119 Mar 25, 2025
9369b4f
WEB-3418 remove unused svgs
henry-tp Mar 25, 2025
a5d4feb
v1.45.0-web-3418-redirect-oauth.2
henry-tp Mar 25, 2025
db988a5
Merge pull request #447 from tidepool-org/WEB-3418-redirect-oauth
henry-tp Mar 25, 2025
e2d4714
Merge branch 'develop' into release-1.45.0
henry-tp Mar 27, 2025
799094e
v1.45.0-rc.3
henry-tp Mar 27, 2025
b619acb
Use cgm sampleInterval when available
clintonium-119 Mar 27, 2025
0718a91
v1.44.1-rc.5
clintonium-119 Mar 27, 2025
265c1ad
Merge pull request #451 from tidepool-org/WEB-3396-use-cgm-sample-fre…
clintonium-119 Mar 27, 2025
b5235d9
Merge branch 'develop' into WEB-2965-exclude-days
henry-tp Mar 27, 2025
0327547
v1.45.0-web-2965-exclude-days.2
henry-tp Mar 27, 2025
fcf4260
Change FSL LibreView device filter label
clintonium-119 Mar 31, 2025
cba40d9
v1.45.0-rc.4
clintonium-119 Mar 31, 2025
96b74d4
Merge pull request #453 from tidepool-org/WEB-3516-implement-abbott-d…
clintonium-119 Apr 1, 2025
efed4c4
Merge pull request #443 from tidepool-org/WEB-2965-exclude-days
henry-tp Apr 2, 2025
301c216
Fix basal dose calculations when a basal datum encompasses an entire …
clintonium-119 Apr 4, 2025
c8762ca
v1.44.1-rc.6
clintonium-119 Apr 4, 2025
937f7ae
Merge pull request #455 from tidepool-org/WEB-3526-basals-gt-24-hrs-s…
clintonium-119 Apr 4, 2025
c3c3e01
Ensure basal durations calculated within a range are correct for time…
clintonium-119 Apr 4, 2025
981d21d
v1.44.1-rc.7
clintonium-119 Apr 4, 2025
473318a
Merge pull request #456 from tidepool-org/WEB-3526-time-in-auto-durat…
clintonium-119 Apr 7, 2025
3d21675
Merge branch 'develop' into release-1.45.0
henry-tp Apr 7, 2025
a5f05d5
v1.45.0-rc.5
henry-tp Apr 7, 2025
03539ff
Small fix for potential typeError
clintonium-119 Apr 9, 2025
a93c05a
v1.44.1-rc.8
clintonium-119 Apr 9, 2025
2217a0d
Merge pull request #458 from tidepool-org/WEB-3547-sampleInterval-err…
clintonium-119 Apr 9, 2025
47c1d33
[WEB-3564] Update all cgm copy to refer to Glucose instead of BG
clintonium-119 Apr 11, 2025
4466480
v1.44.1-rc.9
clintonium-119 Apr 11, 2025
5e5b52a
Fix lint error
clintonium-119 Apr 11, 2025
a1324d5
Small copy update for annotation message
clintonium-119 Apr 11, 2025
179b329
v1.44.1-rc.10
clintonium-119 Apr 11, 2025
a2b276b
Merge pull request #459 from tidepool-org/WEB-3564-blood-glucose-to-g…
clintonium-119 Apr 11, 2025
76addab
v1.44.1
clintonium-119 Apr 11, 2025
cc43a4f
Merge branch 'release-1.45.0' into release-1.44.1
clintonium-119 Apr 11, 2025
1d8e82e
Merge pull request #460 from tidepool-org/release-1.44.1
clintonium-119 Apr 11, 2025
27e586d
v1.45.0-rc.6
clintonium-119 Apr 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ package-lock.json
!.yarn/releases
!.yarn/sdks
!.yarn/versions

.codegpt
11 changes: 2 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
sudo: false

language: node_js

os: linux
dist: jammy
language: node_js

node_js:
- "20.8.0"
- "stable"

cache:
yarn: true
Expand All @@ -31,7 +28,3 @@ services:
script:
- npm test
- ./artifact.sh

matrix:
allow_failures:
- node_js: "stable"
1 change: 0 additions & 1 deletion data/print/fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export const basicsData = {
timePrefs,
bgPrefs,
metaData,
query: { excludeDaysWithoutBolus: true },
data: {
current: {
endpoints: {
Expand Down
2 changes: 2 additions & 0 deletions data/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ export class Upload extends Common {
this.deviceManufacturers = opts.deviceManufacturers;
this.deviceSerialNumber = opts.deviceSerialNumber;
this.dataSetType = opts.dataSetType;
this.origin = opts.origin;
this.client = opts.client;

this.time = this.makeTime();
this.timezone = opts.timezone;
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"node": "20.8.0"
},
"packageManager": "[email protected]",
"version": "1.44.0",
"version": "1.45.0-rc.6",
"description": "Tidepool data visualization for diabetes device data.",
"keywords": [
"data visualization"
Expand Down Expand Up @@ -88,8 +88,8 @@
"text-table": "0.2.0",
"translate-svg-path": "0.0.1",
"util": "0.12.5",
"victory": "31.3.0",
"victory-core": "31.2.0",
"victory": "37.3.5",
"victory-core": "37.3.5",
"voilab-pdf-table": "0.5.1"
},
"devDependencies": {
Expand Down Expand Up @@ -166,7 +166,7 @@
"babel-core": "6.x || ^7.0.0-bridge.0",
"classnames": "2.x",
"react": "16.x",
"react-addons-update": "16.x",
"react-addons-update": "15.6.x",
"react-dom": "16.x",
"react-redux": "8.x",
"redux": "4.x"
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/stat/BgBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const BgBar = props => {
const widths = {
low: scale.y(bgBounds.targetLowerBound) * widthCorrection,
target: scale.y(bgBounds.targetUpperBound - bgBounds.targetLowerBound) * widthCorrection,
high: scale.y(domain.x[1] - bgBounds.targetUpperBound) * widthCorrection,
high: scale.y(domain.y[1] - bgBounds.targetUpperBound) * widthCorrection,
};

const barRadius = barWidth / 2;
Expand Down
3 changes: 2 additions & 1 deletion src/components/common/stat/BgBarLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export const BgBarLabel = props => {
textAnchor="end"
verticalAnchor="middle"
dy={-(barWidth / 2 - 1)}
x={scale.y(domain.x[1])}
x={scale.y(domain.y[1])}
dx={0}
/>
</g>
);
Expand Down
9 changes: 5 additions & 4 deletions src/components/common/stat/HoverBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const HoverBar = props => {
y: _.noop,
},
width,
y,
x
} = props;

const barGridWidth = barWidth / 6;
Expand All @@ -34,12 +34,13 @@ export const HoverBar = props => {
y={scale.x(index + 1) - (barWidth / 2) - (barSpacing / 2)}
rx={barGridRadius}
ry={barGridRadius}
width={scale.y(domain.x[1])}
width={scale.y(domain.y[1])}
height={barWidth + barSpacing}
style={{
stroke: 'transparent',
fill: 'transparent',
}}
{...props.events}
/>
</g>
<g className="barBg" pointerEvents="none">
Expand All @@ -49,7 +50,7 @@ export const HoverBar = props => {
y={scale.x(index + 1) - (barGridWidth / 2)}
rx={barGridRadius}
ry={barGridRadius}
width={scale.y(domain.x[1]) - chartLabelWidth}
width={scale.y(domain.y[1]) - chartLabelWidth}
height={barGridWidth}
style={{
stroke: 'transparent',
Expand All @@ -61,7 +62,7 @@ export const HoverBar = props => {
<Bar
{...props}
width={scale.y(domain.x[1]) - chartLabelWidth}
y={y * widthCorrection}
x={x * widthCorrection}
/>
</g>
</g>
Expand Down
20 changes: 15 additions & 5 deletions src/components/common/stat/HoverBarLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ export const HoverBarLabel = props => {
style = {},
text,
tooltipText,
// Victory animate sometimes passes undefined to the y prop which errors out the label rendering
// but eventually settles on the correct value for the final render, but we default to 15 (the lowest
// common observed value) to avoid the error
// There's a lot of strange behavior with animate and it's being completely rewritten
// see: https://github.com/FormidableLabs/victory/issues/2104
y = 15,
} = props;

const tooltipFontSize = _.min([barWidth / 2, 12]);
Expand Down Expand Up @@ -63,7 +69,8 @@ export const HoverBarLabel = props => {
style={labelStyle}
textAnchor="end"
verticalAnchor="middle"
x={scale.y(domain.x[1])}
x={scale.y(domain.y[1])}
y={y}
dx={-(labelUnitsTextSize.width * 1.9)}
/>
<VictoryLabel
Expand All @@ -73,23 +80,26 @@ export const HoverBarLabel = props => {
style={labelUnitsStyle}
textAnchor="end"
verticalAnchor="middle"
x={scale.y(domain.x[1])}
x={scale.y(domain.y[1])}
y={y}
dx={0}
/>
{tooltipTextSize.width > 0 && (
<VictoryTooltip
{...props}
cornerRadius={tooltipRadius}
datum={tooltipDatum}
x={scale.y(domain.x[1]) - style.paddingLeft - tooltipTextSize.width - (tooltipRadius * 2)}
x={scale.y(domain.y[1]) - style.paddingLeft - tooltipTextSize.width - (tooltipRadius * 2)}
y={y}
dx={0}
flyoutStyle={{
display: disabled ? 'none' : 'inherit',
stroke: colors.axis,
strokeWidth: 2,
fill: colors.white,
}}
width={tooltipTextSize.width + (tooltipRadius * 2)}
height={tooltipHeight}
flyoutWidth={tooltipTextSize.width + (tooltipRadius * 2)}
flyoutHeight={tooltipHeight}
pointerLength={0}
pointerWidth={0}
renderInPortal={false}
Expand Down
26 changes: 13 additions & 13 deletions src/components/common/stat/Stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import BgBar from './BgBar';
import BgBarLabel from './BgBarLabel';
import StatTooltip from '../tooltips/StatTooltip';
import StatLegend from './StatLegend';
import CollapseIconOpen from './assets/expand-more-24-px.svg';
import CollapseIconClose from './assets/chevron-right-24-px.svg';
import InfoIcon from './assets/info-outline-24-px.svg';
import CollapseIconOpen from './assets/expand-more-24-px.png';
import CollapseIconClose from './assets/chevron-right-24-px.png';
import InfoIcon from './assets/info-outline-24-px.png';
import InputGroup from '../controls/InputGroup';

/* global document */
Expand Down Expand Up @@ -465,8 +465,8 @@ class Stat extends PureComponent {
height = chartProps.height || barWidth * 6;

domain = {
x: [0, bgUnits === MGDL_UNITS ? MGDL_CLAMP_TOP : MMOLL_CLAMP_TOP],
y: [0, 1],
x: [0, 1],
y: [0, bgUnits === MGDL_UNITS ? MGDL_CLAMP_TOP : MMOLL_CLAMP_TOP],
};

padding = {
Expand Down Expand Up @@ -502,7 +502,7 @@ class Stat extends PureComponent {
barWidth={barWidth}
bgPrefs={props.bgPrefs}
domain={domain}
text={(datum = {}) => {
text={({ datum = {} }) => {
const datumRef = _.get(chartData, datum.index, datum);
const { value } = formatDatum(
_.get(datumRef, 'deviation', datumRef),
Expand All @@ -511,7 +511,7 @@ class Stat extends PureComponent {
);
return `${value}`;
}}
tooltipText={(datum = {}) => {
tooltipText={({ datum = {} }) => {
const { value, suffix } = formatDatum(
_.get(chartData, datum.index, datum),
props.dataFormat.tooltip,
Expand All @@ -525,11 +525,11 @@ class Stat extends PureComponent {
renderer: VictoryBar,
style: {
data: {
fill: datum => this.getDatumColor(datum),
fill: ({ datum }) => this.getDatumColor(datum),
width: () => barWidth,
},
labels: {
fill: datum => this.getDatumColor(_.assign({}, datum, formatDatum(
fill: ({ datum }) => this.getDatumColor(_.assign({}, datum, formatDatum(
datum,
props.dataFormat.label,
props
Expand Down Expand Up @@ -557,8 +557,8 @@ class Stat extends PureComponent {
}

domain = {
x: [0, 1],
y: [0, chartData.length],
x: [0, chartData.length],
y: [0, 1],
};

padding = {
Expand Down Expand Up @@ -647,11 +647,11 @@ class Stat extends PureComponent {
renderer: VictoryBar,
style: {
data: {
fill: datum => (datum._y === 0 ? 'transparent' : this.getDatumColor(datum)),
fill: ({ datum }) => (datum._y === 0 ? 'transparent' : this.getDatumColor(datum)),
width: () => barWidth,
},
labels: {
fill: datum => this.getDatumColor(_.assign({}, datum, formatDatum(
fill: ({ datum }) => this.getDatumColor(_.assign({}, datum, formatDatum(
datum,
props.dataFormat.label,
props
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions src/components/common/stat/assets/chevron-right-24-px.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions src/components/common/stat/assets/expand-more-24-px.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions src/components/common/stat/assets/info-outline-24-px.svg

This file was deleted.

6 changes: 3 additions & 3 deletions src/components/daily/bolustooltip/BolusTooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ class BolusTooltip extends PureComponent {

if (this.isLoop) {
const { activeSchedule, carbRatios, insulinSensitivities } = _.get(wizard, 'dosingDecision.pumpSettings', {});
carbRatio = _.findLast(_.sortBy(carbRatios?.[activeSchedule] || [], 'start'), ({ start }) => start < this.msPer24)?.amount || null;
isf = _.findLast(_.sortBy(insulinSensitivities?.[activeSchedule] || [], 'start'), ({ start }) => start < this.msPer24)?.amount || null;
carbRatio = _.findLast(_.sortBy(carbRatios?.[activeSchedule] || [], 'start'), ({ start }) => start < this.msPer24)?.amount || carbRatio;
isf = _.findLast(_.sortBy(insulinSensitivities?.[activeSchedule] || [], 'start'), ({ start }) => start < this.msPer24)?.amount || isf;
}

const delivered = bolusUtils.getDelivered(wizard);
Expand Down Expand Up @@ -284,7 +284,7 @@ class BolusTooltip extends PureComponent {
);
const bgLine = !!bg && (
<div className={styles.bg}>
<div className={styles.label}>{t('BG')} ({this.bgUnits})</div>
<div className={styles.label}>{t('Glucose')} ({this.bgUnits})</div>
<div className={styles.value}>{this.formatBgValue(bg)}</div>
<div className={this.unitStyles} />
</div>
Expand Down
10 changes: 9 additions & 1 deletion src/components/daily/cbgtooltip/CBGTooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import PropTypes from 'prop-types';
import React, { PureComponent } from 'react';
import _ from 'lodash';
import i18next from 'i18next';
import {
classifyBgValue,
reshapeBgClassesToBgBounds,
Expand All @@ -30,13 +31,20 @@ import Tooltip from '../../common/tooltips/Tooltip';
import colors from '../../../styles/colors.css';
import styles from './CBGTooltip.css';

const t = i18next.t.bind(i18next);

class CBGTooltip extends PureComponent {
constructor(props) {
super(props);
this.bgUnits = this.props.bgPrefs?.bgUnits || '';
}

renderCBG() {
const cbg = this.props.cbg;
const outOfRangeMessage = getOutOfRangeAnnotationMessage(cbg);
const rows = [
<div key={'bg'} className={styles.bg}>
<div className={styles.label}>BG</div>
<div className={styles.label}>{t('Glucose')} ({this.bgUnits})</div>
<div className={styles.value}>
{`${formatBgValue(cbg.value, this.props.bgPrefs, getOutOfRangeThreshold(cbg))}`}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/NonTandem.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ const NonTandem = (props) => {
NonTandem.propTypes = {
bgUnits: PropTypes.oneOf([MMOLL_UNITS, MGDL_UNITS]).isRequired,
copySettingsClicked: PropTypes.func.isRequired,
deviceKey: PropTypes.oneOf(['animas', 'carelink', 'insulet', 'medtronic', 'microtech', 'diy loop', 'tidepool loop']).isRequired,
deviceKey: PropTypes.oneOf(['animas', 'carelink', 'insulet', 'medtronic', 'microtech', 'diy loop', 'tidepool loop', 'twiist']).isRequired,
openedSections: PropTypes.object.isRequired,
pumpSettings: PropTypes.shape({
activeSchedule: PropTypes.string.isRequired,
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/common/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Header extends PureComponent {
<ul className={`${styles.header} ${styles.headerExpanded}`}>
<li className={styles.headerOuter}>
<span className={styles.headerInner}>
{t('Therapy Settings - Active at Upload on')} {this.props.deviceMeta.uploaded}
{t('Active at Upload on')} {this.props.deviceMeta.uploaded}
</span>
</li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions src/components/settings/common/PumpSettingsContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class PumpSettingsContainer extends PureComponent {
bgUnits: PropTypes.oneOf([MGDL_UNITS, MMOLL_UNITS]).isRequired,
copySettingsClicked: PropTypes.func.isRequired,
manufacturerKey: PropTypes.oneOf(
['animas', 'carelink', 'insulet', 'medtronic', 'tandem', 'microtech', 'diy loop', 'tidepool loop']
['animas', 'carelink', 'insulet', 'medtronic', 'tandem', 'microtech', 'diy loop', 'tidepool loop', 'twiist']
).isRequired,
// see more specific schema in NonTandem and Tandem components!
pumpSettings: PropTypes.shape({
Expand Down Expand Up @@ -52,7 +52,7 @@ export class PumpSettingsContainer extends PureComponent {
timePrefs,
toggleSettingsSection,
} = this.props;
const supportedNonTandemPumps = ['animas', 'carelink', 'insulet', 'medtronic', 'microtech', 'diy loop', 'tidepool loop'];
const supportedNonTandemPumps = ['animas', 'carelink', 'insulet', 'medtronic', 'microtech', 'diy loop', 'tidepool loop', 'twiist'];
const toggleFn = _.partial(toggleSettingsSection, manufacturerKey);

if (manufacturerKey === 'tandem') {
Expand Down
Loading