Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Merge branch 'smart-handoffs' of https://github.com/nasa-gibs/worldview into smart-handoffs

Jason Kent89a82f1689e5
diff --git a/config/default/common/config/wv.json/conceptIds.json b/config/default/common/config/wv.json/conceptIds.json
index 86db76a28..dc5eee71e 100644
--- a/config/default/common/config/wv.json/conceptIds.json
+++ b/config/default/common/config/wv.json/conceptIds.json
@@ -1670,36 +1670,6 @@
"C1517101319-SEDAC"
]
},
- "Landsat_WELD_CorrectedReflectance_Bands157_Global_Annual": {
- "conceptId": [
- "C1517858238-LPDAAC_ECS"
- ]
- },
- "Landsat_WELD_CorrectedReflectance_Bands157_Global_Monthly": {
- "conceptId": [
- "C1517852891-LPDAAC_ECS"
- ]
- },
- "Landsat_WELD_CorrectedReflectance_Bands743_Global_Annual": {
- "conceptId": [
- "C1517858238-LPDAAC_ECS"
- ]
- },
- "Landsat_WELD_CorrectedReflectance_Bands743_Global_Monthly": {
- "conceptId": [
- "C1517852891-LPDAAC_ECS"
- ]
- },
- "Landsat_WELD_CorrectedReflectance_TrueColor_Global_Annual": {
- "conceptId": [
- "C1517858238-LPDAAC_ECS"
- ]
- },
- "Landsat_WELD_CorrectedReflectance_TrueColor_Global_Monthly": {
- "conceptId": [
- "C1517852891-LPDAAC_ECS"
- ]
- },
"Landsat_WELD_NDVI_Global_Annual": {
"conceptId": [
"C1517858238-LPDAAC_ECS"
@@ -2200,20 +2170,6 @@
"C1443536017-LAADS"
]
},
- "MODIS_Aqua_CorrectedReflectance_Bands721": {
- "conceptId": [
- "C1426616847-LANCEMODIS",
- "C1426617060-LANCEMODIS",
- "C1426621826-LANCEMODIS"
- ]
- },
- "MODIS_Aqua_CorrectedReflectance_TrueColor": {
- "conceptId": [
- "C1426616847-LANCEMODIS",
- "C1426617060-LANCEMODIS",
- "C1426621826-LANCEMODIS"
- ]
- },
"MODIS_Aqua_Data_No_Data": {
"conceptId": [
"C1426616847-LANCEMODIS",
@@ -2726,27 +2682,6 @@
"C1443535037-LAADS"
]
},
- "MODIS_Terra_CorrectedReflectance_Bands367": {
- "conceptId": [
- "C1426414410-LANCEMODIS",
- "C1426415307-LANCEMODIS",
- "C1426416980-LANCEMODIS"
- ]
- },
- "MODIS_Terra_CorrectedReflectance_Bands721": {
- "conceptId": [
- "C1426414410-LANCEMODIS",
- "C1426415307-LANCEMODIS",
- "C1426416980-LANCEMODIS"
- ]
- },
- "MODIS_Terra_CorrectedReflectance_TrueColor": {
- "conceptId": [
- "C1426414410-LANCEMODIS",
- "C1426415307-LANCEMODIS",
- "C1426416980-LANCEMODIS"
- ]
- },
"MODIS_Terra_Data_No_Data": {
"conceptId": [
"C1426414410-LANCEMODIS",
@@ -4279,21 +4214,6 @@
"C1607563719-ASIPS"
]
},
- "VIIRS_SNPP_CorrectedReflectance_BandsM11-I2-I1": {
- "conceptId": [
- "C1344298008-LANCEMODIS"
- ]
- },
- "VIIRS_SNPP_CorrectedReflectance_BandsM3-I3-M11": {
- "conceptId": [
- "C1344298008-LANCEMODIS"
- ]
- },
- "VIIRS_SNPP_CorrectedReflectance_TrueColor": {
- "conceptId": [
- "C1344298008-LANCEMODIS"
- ]
- },
"WELD_Alaska_Annual": {
"conceptId": [
"C1000000080-LPDAAC_ECS"
diff --git a/e2e/features/smart-handoff/smart-handoff-test.js b/e2e/features/smart-handoff/smart-handoff-test.js
new file mode 100644
index 000000000..6df902e36
--- /dev/null
+++ b/e2e/features/smart-handoff/smart-handoff-test.js
@@ -0,0 +1,157 @@
+const reuseables = require('../../reuseables/skip-tour.js');
+const {
+ addLayers,
+} = require('../../reuseables/selectors.js');
+
+const layersTab = '#layers-sidebar-tab';
+const dataTabButton = '#download-sidebar-tab';
+
+module.exports = {
+
+ 'Data tab is available and in default state when clicked': (client) => {
+ reuseables.loadAndSkipTour(client, client.globals.timeout);
+
+ // Verify Data tab is in sidebar
+ client.expect.element(dataTabButton).to.be.visible;
+
+ // Click Data Download tab to switch to Data with 'No Data Selected'
+ client.click(dataTabButton);
+ client.expect
+ .element('.smart-handoff-side-panel > h1')
+ .to.have.text.equal('None of your currently listed layers are available for downloading.');
+ },
+
+ 'Select layer with valid conceptId and check that it is available for download': (client) => {
+ client.click(layersTab);
+ client.click(addLayers);
+ },
+
+ after(client) {
+ client.end();
+ },
+};
+
+// 'No Results - No Data Available indicator displayed when no data': `${function(
+// client,
+// ) {
+// // December 31, 2022 no results
+// const queryString = '?now=2022-12-31T12&p=geographic&l=MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Terra_Aerosol,Coastlines&t=2022-12-31&v=-91.125,-53.3671875,82.40625,59.8359375&download=MOD04_L2';
+// client.url(client.globals.url + queryString);
+
+// // 'No Data Available' indicator present
+// client.expect
+// .element('#indicator')
+// .to.be.present.after(client.globals.timeout);
+// client.expect
+// .element('#indicator > span')
+// .to.have.text.equal('No Data Available')
+// .after(client.globals.timeout);
+
+// // On Valid Data Select, 'No Data Available' indicator disappears and data layer is in sidebar
+// // Click from year 2022 down to 2013
+// for (let i = 0; i <= 8; i += 1) {
+// client.click(downYearInputButton);
+// }
+// client.expect
+// .element('#indicator')
+// .to.not.be.visible.after(client.globals.timeout);
+// client.expect
+// .element('#wv-data-MOD04_L2MODIS_Terra_Aerosol')
+// .to.be.visible.after(client.globals.timeout);
+
+// // On Valid Data Select, 'No Data Available' indicator appears
+// // Click from year 2013 up to 2022
+// for (let i = 0; i <= 8; i += 1) {
+// client.click(upYearInputButton);
+// }
+// client.expect.element('#indicator').to.be.present;
+// client.expect
+// .element('#indicator > span')
+// .to.have.text.equal('No Data Available')
+// .after(client.globals.timeout);
+
+// // Click layers tab, indicator disappears
+// client.click(layersTab);
+// client.expect.element('#indicator').to.not.be.visible;
+
+// // Click data download tab, 'No Data Available' indicator appears
+// client.click(dataDownloadTabButton);
+// client.expect.element('#indicator').to.be.visible;
+// client.expect
+// .element('#indicator > span')
+// .to.have.text.equal('No Data Available')
+// .after(client.globals.timeout);
+// }}`,
+
+// 'No data in view - Zoom out or move map indicator displayed when no data in view': function(
+// client,
+// ) {
+// // zoomed in so no data in view
+// const queryString = '?p=geographic&l=MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Terra_Aerosol,Coastlines&t=2013-08-15&v=-115.09722044197,32.076037619082,-112.11113645759,34.018420431582&download=MOD04_L2';
+// client.url(client.globals.url + queryString);
+
+// // 'Zoom out or move map' indicator present
+// client.expect
+// .element('#indicator')
+// .to.be.present.after(client.globals.timeout);
+// client.expect
+// .element('#indicator > span')
+// .to.have.text.equal('Zoom out or move map')
+// .after(client.globals.timeout);
+
+// // Zoom out three times for a data point granule selection button to be visible and indicator disappears
+// client.click(zoomOutButton);
+// client.pause(750);
+// client.click(zoomOutButton);
+// client.pause(750);
+// client.click(zoomOutButton);
+// client.expect
+// .element('#indicator')
+// .to.not.be.visible.after(client.globals.timeout);
+
+// // Zoom in data point granule selection button is not visible and indicator reappears
+// client.click(zoomInButton);
+// client.pause(750);
+// client.click(zoomInButton);
+// client.pause(750);
+// client.click(zoomInButton);
+// client.expect
+// .element('#indicator')
+// .to.be.visible.after(client.globals.timeout);
+
+// // Click layers tab, indicator disappears
+// client.click(layersTab);
+// client.expect
+// .element('#indicator')
+// .to.not.be.visible.after(client.globals.timeout);
+
+// // Click data download tab, 'No Data Available' indicator appears
+// client.click(dataDownloadTabButton);
+// client.expect.element('#indicator').to.be.visible;
+// client.expect
+// .element('#indicator > span')
+// .to.have.text.equal('Zoom out or move map')
+// .after(client.globals.timeout);
+// },
+// 'Query Timeout - No results received yet dialog box displayed': `${function(
+// client,
+// ) {
+// // query timeout
+// const queryString = '?timeoutCMR=100&p=geographic&l=MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Terra_Aerosol,Coastlines&t=2013-09-29&v=-170.64093281444,-59.218903407221,20.468442185558,65.093596592779';
+// client.url(client.globals.url + queryString);
+
+// // Click Data Download tab and show 'No results received yet' dialog box
+// client.waitForElementVisible(
+// dataDownloadTabButton,
+// client.globals.timeout,
+// () => {
+// client.click(dataDownloadTabButton);
+// client.expect
+// .element('.wv-dialog')
+// .to.have.text.equal(
+// 'No results received yet. This may be due to a connectivity issue. Please try again later.',
+// )
+// .after(client.globals.timeout);
+// },
+// );
+// }}`,
diff --git a/package-lock.json b/package-lock.json
index c3e306650..45427ca79 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10314,28 +10314,28 @@
"dependencies": {
"abbrev": {
"version": "1.1.1",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
"dev": true,
"optional": true
},
"ansi-regex": {
"version": "2.1.1",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
"dev": true,
"optional": true
},
"aproba": {
"version": "1.2.0",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",
"dev": true,
"optional": true
},
"are-we-there-yet": {
"version": "1.1.5",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==",
"dev": true,
"optional": true,
@@ -10346,14 +10346,14 @@
},
"balanced-match": {
"version": "1.0.0",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
"dev": true,
"optional": true
},
"brace-expansion": {
"version": "1.1.11",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
"dev": true,
"optional": true,
@@ -10364,28 +10364,28 @@
},
"code-point-at": {
"version": "1.1.0",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
"dev": true,
"optional": true
},
"concat-map": {
"version": "0.0.1",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
"dev": true,
"optional": true
},
"console-control-strings": {
"version": "1.1.0",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
"dev": true,
"optional": true
},
"core-util-is": {
"version": "1.0.2",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
"dev": true,
"optional": true
@@ -10402,35 +10402,35 @@
},
"deep-extend": {
"version": "0.6.0",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
"dev": true,
"optional": true
},
"delegates": {
"version": "1.0.0",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=",
"dev": true,
"optional": true
},
"detect-libc": {
"version": "1.0.3",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=",
"dev": true,
"optional": true
},
"fs.realpath": {
"version": "1.0.0",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
"dev": true,
"optional": true
},
"gauge": {
"version": "2.7.4",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
"dev": true,
"optional": true,
@@ -10462,14 +10462,14 @@
},
"has-unicode": {
"version": "2.0.1",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=",
"dev": true,
"optional": true
},
"iconv-lite": {
"version": "0.4.24",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
"dev": true,
"optional": true,
@@ -10489,7 +10489,7 @@
},
"inflight": {
"version": "1.0.6",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
"dev": true,
"optional": true,
@@ -10507,14 +10507,14 @@
},
"ini": {
"version": "1.3.5",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==",
"dev": true,
"optional": true
},
"is-fullwidth-code-point": {
"version": "1.0.0",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
"dev": true,
"optional": true,
@@ -10524,14 +10524,14 @@
},
"isarray": {
"version": "1.0.0",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
"dev": true,
"optional": true
},
"minimatch": {
"version": "3.0.4",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
"dev": true,
"optional": true,
@@ -10625,7 +10625,7 @@
},
"npmlog": {
"version": "4.1.2",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",
"dev": true,
"optional": true,
@@ -10638,21 +10638,21 @@
},
"number-is-nan": {
"version": "1.0.1",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",
"dev": true,
"optional": true
},
"object-assign": {
"version": "4.1.1",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
"dev": true,
"optional": true
},
"once": {
"version": "1.4.0",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
"dev": true,
"optional": true,
@@ -10662,21 +10662,21 @@
},
"os-homedir": {
"version": "1.0.2",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
"dev": true,
"optional": true
},
"os-tmpdir": {
"version": "1.0.2",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
"dev": true,
"optional": true
},
"osenv": {
"version": "0.1.5",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
"dev": true,
"optional": true,
@@ -10687,7 +10687,7 @@
},
"path-is-absolute": {
"version": "1.0.1",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
"dev": true,
"optional": true
@@ -10701,7 +10701,7 @@
},
"rc": {
"version": "1.2.8",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
"dev": true,
"optional": true,
@@ -10749,21 +10749,21 @@
},
"safe-buffer": {
"version": "5.1.2",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
"dev": true,
"optional": true
},
"safer-buffer": {
"version": "2.1.2",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
"dev": true,
"optional": true
},
"sax": {
"version": "1.2.4",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==",
"dev": true,
"optional": true
@@ -10777,21 +10777,21 @@
},
"set-blocking": {
"version": "2.0.0",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
"dev": true,
"optional": true
},
"signal-exit": {
"version": "3.0.2",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
"dev": true,
"optional": true
},
"string-width": {
"version": "1.0.2",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
"dev": true,
"optional": true,
@@ -10803,7 +10803,7 @@
},
"string_decoder": {
"version": "1.1.1",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
"dev": true,
"optional": true,
@@ -10813,7 +10813,7 @@
},
"strip-ansi": {
"version": "3.0.1",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
"dev": true,
"optional": true,
@@ -10823,7 +10823,7 @@
},
"strip-json-comments": {
"version": "2.0.1",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
"dev": true,
"optional": true
@@ -10846,14 +10846,14 @@
},
"util-deprecate": {
"version": "1.0.2",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
"dev": true,
"optional": true
},
"wide-align": {
"version": "1.1.3",
- "resolved": false,
+ "resolved": "",
"integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==",
"dev": true,
"optional": true,
@@ -10863,7 +10863,7 @@
},
"wrappy": {
"version": "1.0.2",
- "resolved": false,
+ "resolved": "",
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
"dev": true,
"optional": true
diff --git a/web/css/smart-handoff.css b/web/css/smart-handoff.css
index 5d3075f3a..1055c9aee 100644
--- a/web/css/smart-handoff.css
+++ b/web/css/smart-handoff.css
@@ -1,33 +1,53 @@
-/** Smart handoff side panel **/
-#smart-handoff-side-panel h1 {
- margin-top: 10px;
- margin-left: 0;
+/* Smart handoff side panel */
+.smart-handoff-side-panel {
+ margin: 10px;
color: #bbb;
+}
+
+.smart-handoff-side-panel h1 {
+ margin: 15px 5px;
+ font-size: 13px;
+ line-height: 18px;
text-align: center;
}
-#smart-handoff-product-list {
+
+.smart-handoff-side-panel hr {
+ margin-top: 10px;
+ border-bottom: 1px solid #555;
+}
+
+.smart-handoff-side-panel h2 {
+ margin-top: 18px;
+ color: #eee;
+}
+
+.smart-handoff-side-panel p {
+ margin-top: 10px;
+}
+
+.smart-handoff-product-list {
color: #fff;
}
-.button-group {
+.smart-handoff-button-group {
text-align: center;
}
-#cancel-btn,
-#continue-btn {
+.cancel-btn,
+.continue-btn {
width: 200px;
margin: 5px;
}
-#download-btn {
+.download-btn {
display: block;
margin: 15px auto 10px;
}
-#esd-notification {
+.esd-notification {
display: block;
- margin: 10px 25px;
+ margin: 15px 20px;
font-size: 11px;
text-align: center;
color: #fff;
}
-#smart-handoff-layer-list {
+.smart-handoff-layer-list {
margin-top: 15px;
display: block;
color: #fff;
@@ -35,16 +55,16 @@
min-height: 40px;
max-height: calc(var(--vh, 1vh) * 100 - 500px);
}
-#smart-handoff-layer-list .layer-item {
+.smart-handoff-layer-list .layer-item {
padding: 10px 15px;
}
-#smart-handoff-layer-list .layer-item label {
+.smart-handoff-layer-list .layer-item label {
display: block;
margin-top: -20px;
margin-left: 25px;
}
-#smart-handoff-layer-list .layer-item span {
+.smart-handoff-layer-list .layer-item span {
color: #999;
display: block;
margin-left: 25px;
@@ -52,28 +72,28 @@
font-size: 11px;
}
-#smart-handoff-side-panel hr {
- border-top: 1px solid rgba(150, 150, 150, 0.25);
- margin: 0;
- padding: 0;
- margin-top: 15px;
-}
-
-#crop-toggle {
+.smart-handoff-crop-toggle {
display: inline-block;
- margin-top: 15px;
- margin-left: 65px;
+ margin: 5px 0;
+ margin-left: 52px;
}
label[for='chk-crop-toggle'] {
color: #fff;
}
-#granule-count {
+.granule-count {
margin: 15px auto;
margin-bottom: 0;
}
-#granule-count span {
+.granule-help-link {
+ color: #7bf !important;
+}
+.granule-help-link:hover {
+ color: #9df !important;
+ cursor: pointer;
+}
+.granule-count span {
color: #fff;
font-size: 16px;
font-weight: 900;
@@ -119,38 +139,39 @@ label[for='chk-crop-toggle'] {
-ms-animation: fadein ease 1s;
}
-/** Overrides react image crop component **/
+/* Overrides react image crop component */
.ReactCrop {
cursor: default !important;
z-index: 0 !important;
}
-/** Smart handoff modal */
-#smart-handoff-heading {
+/* Smart handoff modal */
+.smart-handoff-heading {
margin-bottom: 15px;
}
-#smart-handoff-heading h1 {
+.smart-handoff-heading h1 {
float: right;
font-size: 18px;
line-height: 32px;
color: #fff;
}
-#smart-handoff-message {
+.smart-handoff-message {
line-height: 1.25em;
+ margin: 15px 0;
text-align: left;
font-size: 17px;
color: #ddd;
}
-#smart-handoff-about hr {
+.smart-handoff-about hr {
border-bottom: 1px solid #333;
margin-top: 15px;
margin-bottom: -10px;
}
-#about-section {
+.about-section {
overflow-y: scroll;
height: 400px;
}
-#about-section p {
+.about-section p {
color: #bbb;
margin-bottom: 10px;
margin-right: 5px;
@@ -160,20 +181,20 @@ label[for='chk-crop-toggle'] {
color: #fff;
margin: 25px 0 10px;
}
-#earth-data-gif {
+.earth-data-gif {
padding-top: 10px;
display: block;
margin: 0 auto;
width: 92%;
}
-#earth-data-caption {
+.earth-data-caption {
font-style: italic;
margin: 20px;
padding-bottom: 25px;
width: 94%;
text-align: center;
}
-#layer-info {
+.smart-handoff-layer-info {
text-align: center;
background: #343434;
color: #fff;
@@ -182,35 +203,35 @@ label[for='chk-crop-toggle'] {
margin: 25px 0;
border-radius: 10px;
}
-#layer-info h1 {
+.smart-handoff-layer-info h1 {
font-size: 14px;
color: #fff;
margin: 0;
margin-bottom: 0.5em;
}
-#toggle-more-info {
+.toggle-more-info {
margin-top: 25px;
color: #7bf;
font-size: 17px;
text-align: center;
}
-#toggle-more-info:hover {
+.toggle-more-info:hover {
color: #9df;
cursor: pointer;
text-decoration: underline;
}
-#toggle-more-info h2 {
+.toggle-more-info h2 {
width: 100%;
text-align: center;
border-bottom: 1px solid #333;
line-height: 0.1em;
margin: 10px 0 20px;
}
-#toggle-more-info h2 span {
+.toggle-more-info h2 span {
background: #191a1b;
padding: 0 15px;
}
-#checkbox-footer {
+.checkbox-footer {
display: inline-block;
text-align: center;
width: 100%;
@@ -218,20 +239,55 @@ label[for='chk-crop-toggle'] {
padding-top: 15px;
border-top: 1px solid #333;
}
-#checkbox-footer-container {
+.checkbox-footer-container {
display: inline-block;
}
+/** Granule alert modal */
+.smart-handoff-granule-alert {
+ padding: 20px;
+}
+
+.smart-handoff-granule-alert hr {
+ border-color: #333;
+ margin: 25px 0;
+}
+
+.smart-handoff-granule-alert h1 {
+ font-weight: 900;
+ color: #fff;
+ font-size: 15px;
+ line-height: 20px;
+}
+
+.smart-handoff-granule-alert p {
+ line-height: 18px;
+ margin-top: 15px;
+ margin-bottom: 15px;
+ color: #ddd;
+}
+
+.smart-handoff-granule-alert ol {
+ margin: 15px 0;
+ color: #ddd;
+}
+
+.smart-handoff-granule-alert ol li {
+ margin-left: 30px;
+ margin-top: 10px;
+ line-height: 18px;
+}
+
/** Overrides the modal component styles */
-#transferring-to-earthdata-search.modal-dialog .modal-body {
+.transferring-to-earthdata-search.modal-dialog .modal-body {
background: #191a1b !important;
border: 1px solid #444 !important;
}
-#transferring-to-earthdata-search .modal-header {
+.transferring-to-earthdata-search .modal-header {
border-bottom: 1px solid #444 !important;
}
.constant-width {
display: inline-block;
- width: 60px;
+ width: 125px;
}
diff --git a/web/js/containers/sidebar/smart-handoff-granule-alert.js b/web/js/containers/sidebar/smart-handoff-granule-alert.js
new file mode 100644
index 000000000..7004566b2
--- /dev/null
+++ b/web/js/containers/sidebar/smart-handoff-granule-alert.js
@@ -0,0 +1,50 @@
+import React from 'react';
+
+const GranuleAlertModalBody = () => (
+ <div className="smart-handoff-granule-alert">
+
+ <h1 className="granule-unavailable-header">
+ Why am I seeing NONE when data is being shown?
+ </h1>
+
+ <p>
+ Many layers in Worldview are made available in
+ {' '}
+ <a href="https://earthdata.nasa.gov/earth-observation-data/near-real-time/near-real-time-versus-standard-products" target="_blank" rel="noopener noreferrer">Near Real-Time (NRT)</a>
+ {' '}
+ and then &quot;backfilled&quot; by the corresponding Standard product when it is available. Worldview displays them on a
+ <a href="https://wiki.earthdata.nasa.gov/display/GIBS/GIBS+API+for+Developers#GIBSAPIforDevelopers-%22BestAvailable%22Layers" target="_blank" rel="noopener noreferrer"> &quot;Best Available&quot; </a>
+ basis, showing Standard-quality imagery if it is available, NRT otherwise.
+ </p>
+ <p>
+ This initial release of the &quot;data download via Earthdata Search&quot; feature currently links to either
+ the NRT or Standard product but not to both; in most cases, it links to NRT. That may mean that if
+ you are looking at a date older than ~7 days, the NRT product may not be available and the listing of
+ granules will be set to &quot;NONE&quot; even though standard granules exist.
+ </p>
+ <p>
+ Please note that the next version of this feature will further enhance Worldview&apos;s downloading capabilities and
+ allow for standard products to be included in the listings.
+ </p>
+
+ <hr />
+
+ <h1 className="granule-unavailable-header">
+ Why am I seeing &quot;0 out of n&quot; granules when there is imagery displayed on the map?
+ </h1>
+
+ <ol>
+ <li>
+ The target area selection does not encompass any of the imagery displayed on the map.
+ </li>
+ <li>
+ The target area selection is encompassing imagery but the collection&apos;s metadata record does not contain the appropriate spatial
+ information for this feature to work. You can either uncheck the Target Area Selection box in Worldview or click Download Via
+ Earthdata Search and remove the spatial filter there.
+ </li>
+ </ol>
+
+
+ </div>
+);
+export default GranuleAlertModalBody;
diff --git a/web/js/containers/sidebar/smart-handoff-modal.js b/web/js/containers/sidebar/smart-handoff-modal.js
index d5115c9fa..23ed26abf 100644
--- a/web/js/containers/sidebar/smart-handoff-modal.js
+++ b/web/js/containers/sidebar/smart-handoff-modal.js
@@ -25,32 +25,32 @@ function SmartHandoffModal({
<div>
- <div id="smart-handoff-heading">
+ <div className="smart-handoff-heading">
<a href="https://search.earthdata.nasa.gov" target="_blank" rel="noopener noreferrer">
<img src="../../../images/earth-data-search-logo.jpg" />
<h1>search.earthdata.nasa.gov</h1>
</a>
</div>
- <div id="smart-handoff-message">
+ <div className="smart-handoff-message">
You are about to be transferred to the NASA Earthdata Search tool. This tool is used to download
data granules using the selected layer, area of interest, and current date.
</div>
{ showMoreInfo
&& (
- <div id="smart-handoff-about">
+ <div className="smart-handoff-about">
<hr />
<h1 className="about-heading">About Earthdata Search</h1>
- <div id="about-section">
+ <div className="about-section">
<p>
Earthdata Search provides the only means for data discovery, filtering, visualization, and
access across all of NASA Earth science data holdings. The current selected layer and the designated
viewport region in Worldview will be used to derive data granules within Earthdata Search.
</p>
- <img id="earth-data-gif" src="../../../images/earth-data-search-preview.gif" />
- <p id="earth-data-caption">
+ <img className="earth-data-gif" src="../../../images/earth-data-search-preview.gif" />
+ <p className="earth-data-caption">
Granules that are available to download will be listed in the white pull out menu. Each granule listed can be
downloaded individually or the entire set contained within the bounding box can be downloaded as a zip file.
</p>
@@ -75,20 +75,20 @@ function SmartHandoffModal({
</div>
)}
- <div id="toggle-more-info" onClick={() => toggleInfo(!showMoreInfo)}>
+ <div className="toggle-more-info" onClick={() => toggleInfo(!showMoreInfo)}>
<h2><span>{showMoreInfo ? 'Hide Info' : 'Show More Info'}</span></h2>
</div>
- <div id="layer-info">
+ <div className="smart-handoff-layer-info">
<h1> Selected layer to download: </h1>
<a href={cmrSearchDetailURL} target="_blank" rel="noopener noreferrer">
- <p id="layer-name">{`${title}`}</p>
- <p id="layer-mata-data">{`${subtitle} (${date})`}</p>
+ <p className="smart-handoff-layer-name">{`${title}`}</p>
+ <p className="smart-handoff-layer-mata-data">{`${subtitle} (${date})`}</p>
</a>
</div>
- <div className="button-group">
+ <div className="smart-handoff-button-group">
<Button
onClick={() => goToEarthDataSearch()} // Need to pass reference of current state of boundaries
id="continue-btn"
@@ -97,8 +97,8 @@ function SmartHandoffModal({
/>
</div>
- <div id="checkbox-footer">
- <div id="checkbox-footer-container">
+ <div className="checkbox-footer">
+ <div className="checkbox-footer-container">
<Checkbox
id="hide-eds-checkbox"
name="hide-eds"
diff --git a/web/js/containers/sidebar/smart-handoff.js b/web/js/containers/sidebar/smart-handoff.js
index 05ec43323..50fe9513c 100644
--- a/web/js/containers/sidebar/smart-handoff.js
+++ b/web/js/containers/sidebar/smart-handoff.js
@@ -9,7 +9,7 @@ import Button from '../../components/util/button';
import Checkbox from '../../components/util/checkbox';
import Crop from '../../components/util/image-crop';
import util from '../../util/util';
-import { getLayers } from '../../modules/layers/selectors';
+import GranuleAlertModalBody from './smart-handoff-granule-alert';
import { imageUtilGetCoordsFromPixelValues } from '../../modules/image-download/util';
import { onClose, openCustomContent } from '../../modules/modal/actions';
import getSelectedDate from '../../modules/date/selectors';
@@ -243,6 +243,7 @@ class SmartHandoff extends Component {
activeLayers,
isActive,
showWarningModal,
+ showGranuleHelpModal,
selectedDate,
} = this.props;
@@ -281,11 +282,11 @@ class SmartHandoff extends Component {
if (areThereLayersToDownload) {
return (
- <div id="smart-handoff-side-panel">
+ <div className="smart-handoff-side-panel">
<h1>Select an available layer to download:</h1>
- <div id="esd-notification">
+ <div className="esd-notification">
Downloading data will be performed using
{' '}
<a href="https://search.earthdata.nasa.gov" target="_blank" rel="noopener noreferrer">NASA&apos;s Earthdata Search</a>
@@ -295,7 +296,7 @@ class SmartHandoff extends Component {
<hr />
- <div id="smart-handoff-layer-list">
+ <div className="smart-handoff-layer-list">
{activeLayers.map((layer) => {
if (layer.conceptId) {
return (
@@ -319,10 +320,10 @@ class SmartHandoff extends Component {
<hr />
- <div id="crop-toggle">
+ <div className="smart-handoff-crop-toggle">
<Checkbox
id="chk-crop-toggle"
- label="Toggle Bounding Box"
+ label="Target Area Selection"
text="Toggle boundary selection."
color="gray"
checked={showBoundingBox}
@@ -336,28 +337,32 @@ class SmartHandoff extends Component {
<hr />
- <div id="granule-count">
- <h1>
- Granules available for
- {' '}
- {dateSelection}
- :
- {' '}
- { !isSearchingForGranules && totalGranules === 0 && (<span className="fade-in constant-width">NONE</span>)}
- { !showBoundingBox && !isSearchingForGranules && totalGranules !== 0 && (<span className="fade-in constant-width">{totalGranules}</span>)}
- { showBoundingBox && !isSearchingForGranules && totalGranules !== 0 && (<span className="fade-in constant-width">{`${selectedGranules} of ${totalGranules}`}</span>)}
- { isSearchingForGranules && (<span className="loading-granule-count fade-in constant-width" />)}
- </h1>
- </div>
+ {selectedLayer && selectedLayer.conceptId && (
+ <div className="granule-count">
+ <h1>
+ Available granules for
+ {' '}
+ {dateSelection}
+ :
+ {' '}
+ { !isSearchingForGranules && totalGranules === 0 && (<span className="fade-in constant-width">NONE</span>)}
+ { !showBoundingBox && !isSearchingForGranules && totalGranules !== 0 && (<span className="fade-in constant-width">{totalGranules}</span>)}
+ { showBoundingBox && !isSearchingForGranules && totalGranules !== 0 && (<span className="fade-in constant-width">{`${selectedGranules} of ${totalGranules}`}</span>)}
+ { isSearchingForGranules && (<span className="loading-granule-count fade-in constant-width" />)}
+
+ <span className="granule-help-link" onClick={() => showGranuleHelpModal()}>(?)</span>
+
+ </h1>
+ </div>
+ )}
<Button
onClick={() => {
- if (showModal) showWarningModal(selectedDate, selectedLayer, currentExtent, showBoundingBox);
+ if (!showModal) showWarningModal(selectedDate, selectedLayer, currentExtent, showBoundingBox);
else openEarthDataSearch(selectedDate, selectedLayer, currentExtent, showBoundingBox)();
}}
- id="download-btn"
text="DOWNLOAD VIA EARTHDATA SEARCH"
- className="red"
+ className="download-btn red"
valid={isValidDownload}
/>
@@ -391,8 +396,21 @@ class SmartHandoff extends Component {
);
}
return (
- <div id="smart-handoff-side-panel">
- <h1>None of your currently listed layers are available for data download.</h1>
+ <div className="smart-handoff-side-panel">
+ <h1>
+ None of your currently listed layers are available for downloading.
+ </h1>
+ <hr />
+ <h2>Why are my current layers not available?</h2>
+ <p>
+ Some layers in Worldview do not have corresponding source data products available for download.
+ </p>
+ <p>
+ These include National Boundaries, Orbit Tracks, Earth at Night, and MODIS Corrected Reflectance products.
+ </p>
+ <p>
+ If you would like to download only an image, please use the “camera” icon in the upper right.
+ </p>
</div>
);
}
@@ -443,6 +461,7 @@ SmartHandoff.propTypes = {
screenWidth: PropTypes.number,
selectedDate: PropTypes.instanceOf(Date),
showWarningModal: PropTypes.func,
+ showGranuleHelpModal: PropTypes.func,
};
/**
@@ -450,7 +469,6 @@ SmartHandoff.propTypes = {
* that the Smarthandoff component needs. This is called every time the
* store state changes.
* @param {*} state | Encapsulates the entire Redux store state.
- * @param {*} ownProps | Data from SmartHandoff that is used to retrieve data from the store.
*/
const mapStateToProps = (state) => {
const {
@@ -469,8 +487,7 @@ const mapStateToProps = (state) => {
} = browser;
const { activeString } = compare;
-
- const activeLayers = getLayers(layers[activeString], { proj: proj.id });
+ const activeLayers = layers[activeString].filter((layer) => layer.projections[proj.id]);
return {
activeLayers,
@@ -505,6 +522,15 @@ const mapDispatchToProps = (dispatch) => ({
}),
);
},
+ showGranuleHelpModal: () => {
+ dispatch(
+ openCustomContent('granule-help', {
+ headerText: 'Granule Availablilty',
+ bodyComponent: GranuleAlertModalBody,
+ size: 'lg',
+ }),
+ );
+ },
});
export default connect(