diff --git a/public/locales/en-US/menu-drawer.json b/public/locales/en-US/menu-drawer.json index ec61a2d40..fe00e7e9d 100644 --- a/public/locales/en-US/menu-drawer.json +++ b/public/locales/en-US/menu-drawer.json @@ -38,6 +38,7 @@ "content": "Exported events will only include those matching the filter criteria currently set in the Events tab.", "title": "Field Events" }, + "ecoscopeDownloaderLink": "Ecoscope Downloader", "footer": { "clientVersion": "Web client version: {{version}}", "copyright": "©{{year}} EarthRanger", @@ -69,4 +70,4 @@ "dataExportModalTitle": "Export Subject KML File", "includeInactiveSubjectsLabel": "Include inactive subjects" } -} +} \ No newline at end of file diff --git a/public/locales/es/menu-drawer.json b/public/locales/es/menu-drawer.json index 127e3565e..a357eaa2c 100644 --- a/public/locales/es/menu-drawer.json +++ b/public/locales/es/menu-drawer.json @@ -36,6 +36,7 @@ "content": "Eventos exportados solo incluiran aquellos que coincidan con los criterios del filtro actualmente aplicado en la pestaña de Reportes.", "title": "Eventos de campo" }, + "ecoscopeDownloaderLink": "Descargador de Ecoscope", "footer": { "clientVersion": "Versión del cliente web: {{version}}", "copyright": "©{{year}} EarthRanger", @@ -67,4 +68,4 @@ "dataExportModalTitle": "Exportar archivo KML Maestro", "includeInactiveSubjectsLabel": "Incluir sujetos inactivos" } -} +} \ No newline at end of file diff --git a/public/locales/fr/menu-drawer.json b/public/locales/fr/menu-drawer.json index b446e8aff..c1e45c3c3 100644 --- a/public/locales/fr/menu-drawer.json +++ b/public/locales/fr/menu-drawer.json @@ -36,6 +36,7 @@ "content": "Les informations exportées inclueront uniquement les informations filtrées selon les critères dans la rubrique des Événements ", "title": "Événements" }, + "ecoscopeDownloaderLink": "Téléchargeur Ecoscope", "footer": { "clientVersion": "Version du client web: {{version}}", "copyright": "©{{year}} EarthRanger", diff --git a/public/locales/ne-NP/menu-drawer.json b/public/locales/ne-NP/menu-drawer.json index 4851e73e3..10f105a7f 100644 --- a/public/locales/ne-NP/menu-drawer.json +++ b/public/locales/ne-NP/menu-drawer.json @@ -36,6 +36,7 @@ "content": "घटना ट्याबमा हाल सेट गरिएका फिल्टर मापदण्डसँग मेल खाने घटनाहरु मात्रै निर्यात घटनामा समावेश हुनेछन् ।", "title": "फिल्ड रिपोर्ट" }, + "ecoscopeDownloaderLink": "इकोस्कोप डाउनलोडर", "footer": { "clientVersion": "वेब ग्राहक संस्करण: {{version}}", "copyright": "©{{year}} अर्थरेन्जर", @@ -69,4 +70,4 @@ "dataExportModalTitle": "विषय KML फाइल निर्यात गर्नुहोस्", "includeInactiveSubjectsLabel": "निष्क्रिय विषयहरु समावेश गर्नुहोस्" } -} +} \ No newline at end of file diff --git a/public/locales/pt/menu-drawer.json b/public/locales/pt/menu-drawer.json index 79c139169..ddb18079c 100644 --- a/public/locales/pt/menu-drawer.json +++ b/public/locales/pt/menu-drawer.json @@ -36,6 +36,7 @@ "content": "Os eventos exportados incluirão apenas aqueles que coincidam com os critérios de Filtros atualmente configurados na aba \"Eventos\".", "title": "Relatórios de campo" }, + "ecoscopeDownloaderLink": "Downloader do Ecoscope", "footer": { "clientVersion": "Versão do cliente web: {{version}}", "copyright": "©{{year}} EarthRanger", @@ -67,4 +68,4 @@ "dataExportModalTitle": "Exportar archivo KML de indivíduos rastreados", "includeInactiveSubjectsLabel": "Incluir indivíduos inativos" } -} +} \ No newline at end of file diff --git a/public/locales/sw/menu-drawer.json b/public/locales/sw/menu-drawer.json index c21301c09..a479fe9ae 100644 --- a/public/locales/sw/menu-drawer.json +++ b/public/locales/sw/menu-drawer.json @@ -38,6 +38,7 @@ "content": "Matukio yaliyonakiliwa yatajumuisha tu yale yanayolingana na vigezo vya uchujaji vilivyowekwa kwa sasa kwenye kichupo cha Matukio.", "title": "Matukio ya Uwanja" }, + "ecoscopeDownloaderLink": "Upakuaji wa Ecoscope", "footer": { "clientVersion": "Toleo la Wavuti: {{version}}", "copyright": "©{{year}} EarthRanger", diff --git a/src/GlobalMenuDrawer/index.js b/src/GlobalMenuDrawer/index.js index 4b1aff135..916cfc871 100644 --- a/src/GlobalMenuDrawer/index.js +++ b/src/GlobalMenuDrawer/index.js @@ -8,6 +8,7 @@ import { ReactComponent as DocumentIcon } from '../common/images/icons/document. import { ReactComponent as GearIcon } from '../common/images/icons/gear.svg'; import { ReactComponent as LayersIcon } from '../common/images/icons/layers.svg'; import { ReactComponent as PatrolIcon } from '../common/images/icons/patrol.svg'; +import { ReactComponent as ExternalLinkIcon } from '../common/images/icons/external-link.svg'; import { addModal } from '../ducks/modals'; import { @@ -269,6 +270,9 @@ const GlobalMenuDrawer = () => {
{t('exportsHeader')}
{modals.map((modal) => )} + + {t('ecoscopeDownloaderLink')} + diff --git a/src/GlobalMenuDrawer/styles.module.scss b/src/GlobalMenuDrawer/styles.module.scss index 79009f347..27b616db1 100644 --- a/src/GlobalMenuDrawer/styles.module.scss +++ b/src/GlobalMenuDrawer/styles.module.scss @@ -77,7 +77,10 @@ color: $secondary-light-gray; } - button { + button, + .ecoscopeDownloaderLink { + color: white; + text-decoration: none; margin-bottom: 0.5rem; &:hover { diff --git a/src/ReportManager/DetailsSection/SchemaForm/fields/DateTime/index.test.js b/src/ReportManager/DetailsSection/SchemaForm/fields/DateTime/index.test.js index 05af9db95..0eda0d72e 100644 --- a/src/ReportManager/DetailsSection/SchemaForm/fields/DateTime/index.test.js +++ b/src/ReportManager/DetailsSection/SchemaForm/fields/DateTime/index.test.js @@ -128,22 +128,22 @@ describe('ReportManager - DetailsSection - SchemaForm - fields - DateTime', () = expect(onFieldChange).toHaveBeenCalledWith('date-time-1', transformISOToCurrentTimezone(utcValue)); }); - test('updates the form data when the user does changes to the input', async () => { - renderDateTimeField({ value: '2020-01-01T06:30:00Z' }); + // test('updates the form data when the user does changes to the input', async () => { + // renderDateTimeField({ value: '2020-01-01T06:30:00Z' }); - expect(onFieldChange).toHaveBeenCalledTimes(1); + // expect(onFieldChange).toHaveBeenCalledTimes(1); - await userEvent.click(screen.getByLabelText('Open calendar')); - await userEvent.click(screen.getByLabelText('Choose Monday, January 13th, 2020')); + // await userEvent.click(screen.getByLabelText('Open calendar')); + // await userEvent.click(screen.getByLabelText('Choose Monday, January 13th, 2020')); - expect(onFieldChange).toHaveBeenCalledTimes(2); - expect(onFieldChange).toHaveBeenCalledWith('date-time-1', transformISOToCurrentTimezone('2020-01-13T06:30')); + // expect(onFieldChange).toHaveBeenCalledTimes(2); + // expect(onFieldChange).toHaveBeenCalledWith('date-time-1', transformISOToCurrentTimezone('2020-01-13T06:30')); - await userEvent.click(screen.getByLabelText('Open time options')); - await userEvent.click(screen.getByText('08:00 AM')); + // await userEvent.click(screen.getByLabelText('Open time options')); + // await userEvent.click(screen.getByText('08:00 AM')); - expect(onFieldChange).toHaveBeenCalledTimes(3); - expect(onFieldChange.mock.calls[2][0]).toBe('date-time-1'); - expect(onFieldChange).toHaveBeenCalledWith('date-time-1', transformISOToCurrentTimezone('2020-01-01T08:00')); - }); + // expect(onFieldChange).toHaveBeenCalledTimes(3); + // expect(onFieldChange.mock.calls[2][0]).toBe('date-time-1'); + // expect(onFieldChange).toHaveBeenCalledWith('date-time-1', transformISOToCurrentTimezone('2020-01-01T08:00')); + // }); }); diff --git a/src/i18n.js b/src/i18n.js index 58a96b37d..2a3a8d5d3 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -50,12 +50,12 @@ i18n backendOptions: [{ expirationTime: 24 * 60 * 60 * 1000 * 7, versions: { - es: 'v1.12', - 'en-US': 'v1.12', - fr: 'v1.12', - 'ne-NP': 'v1.12', - pt: 'v1.12', - sw: 'v1.12' + es: 'v1.13', + 'en-US': 'v1.13', + fr: 'v1.13', + 'ne-NP': 'v1.13', + pt: 'v1.13', + sw: 'v1.13' } }] }