Skip to content

Commit

Permalink
Merge pull request #1651 from tidepool-org/pairing-links
Browse files Browse the repository at this point in the history
Add meter-specific pairing support links (UPLOAD-1299)
  • Loading branch information
gniezen authored Sep 12, 2024
2 parents fa47347 + 963eb03 commit 00d42ab
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/actions/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ export function doDeviceUpload(driverId, opts = {}, utc) {
let errorMessage = 'E_DEVICE_UPLOAD';
if (_.get(targetDevice, 'source.driverId', null) === 'Medtronic') {
errorMessage = 'E_MEDTRONIC_UPLOAD';
} else if (_.get(targetDevice, 'source.driverId', null) === 'BluetoothLE') {
} else if (_.get(targetDevice, 'source.driverId', null) === 'BluetoothLE' ||
_.get(targetDevice, 'source.driverId', null) === 'OneTouchVerioBLE') {
errorMessage = 'E_BLUETOOTH_PAIR';
}

Expand Down
16 changes: 15 additions & 1 deletion app/actions/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,22 @@ export function makeUploadCb(dispatch, getState, errCode, utc) {

if (errCode === 'E_BLUETOOTH_PAIR') {
displayErr.message = 'Couldn\'t connect to device.';
displayErr.link = 'https://support.tidepool.org/hc/en-us/articles/360035332972';
displayErr.linkText = 'Is it paired?';

switch(uploadTargetDevice) {
case 'foracareble':
displayErr.link = 'https://support.tidepool.org/hc/en-us/articles/14620487836564';
break;
case 'caresensble':
displayErr.link = 'https://support.tidepool.org/hc/en-us/articles/360035332972#h_01EDCWR70ZH3WMHY4RX3SC80NX';
break;
case 'onetouchverioble':
displayErr.link = 'https://support.tidepool.org/hc/en-us/articles/11554128490900';
break;
default:
displayErr.message += ' Is it paired?';
displayErr.linkText = null;
}
}

if (err.code === 'E_VERIO_WRITE') {
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tidepool-uploader",
"productName": "tidepool-uploader",
"version": "2.58.0-improve-desc.2",
"version": "2.58.0-pairing-links.1",
"description": "Tidepool Project Universal Uploader",
"main": "./main.prod.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tidepool-uploader",
"version": "2.58.0-improve-desc.2",
"version": "2.58.0-pairing-links.1",
"description": "Tidepool Project Universal Uploader",
"private": true,
"main": "main.prod.js",
Expand Down

0 comments on commit 00d42ab

Please sign in to comment.