From b1f25aea78e608c5bea3ed4f71aff3acff82d64f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 27 Sep 2024 09:45:34 +0000 Subject: [PATCH 01/11] Bump rollup from 2.79.1 to 2.79.2 Bumps [rollup](https://github.com/rollup/rollup) from 2.79.1 to 2.79.2. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v2.79.1...v2.79.2) --- updated-dependencies: - dependency-name: rollup dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 437bf61649..cc4d9c3b71 100644 --- a/yarn.lock +++ b/yarn.lock @@ -25474,8 +25474,8 @@ __metadata: linkType: hard "rollup@npm:^2.43.1": - version: 2.79.1 - resolution: "rollup@npm:2.79.1" + version: 2.79.2 + resolution: "rollup@npm:2.79.2" dependencies: fsevents: "npm:~2.3.2" dependenciesMeta: @@ -25483,7 +25483,7 @@ __metadata: optional: true bin: rollup: dist/bin/rollup - checksum: 10/df087b701304432f30922bbee5f534ab189aa6938bd383b5686c03147e0d00cd1789ea10a462361326ce6b6ebe448ce272ad3f3cc40b82eeb3157df12f33663c + checksum: 10/095ba0a82811b1866a76d826987743278db0a87c45092656986bfff490326b66187d5f9ff0c24cf8d5682bc470aa00c36654e0044d6b6335ac0c1201b8280880 languageName: node linkType: hard From 075381db19072f76134b41eb29e973f9130460ad Mon Sep 17 00:00:00 2001 From: j8seangel Date: Fri, 27 Sep 2024 11:59:48 +0200 Subject: [PATCH 02/11] New translations translations.json (French) --- apps/fishing-map/public/locales/fr/translations.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/fishing-map/public/locales/fr/translations.json b/apps/fishing-map/public/locales/fr/translations.json index 9c20ef7370..641c643cc9 100644 --- a/apps/fishing-map/public/locales/fr/translations.json +++ b/apps/fishing-map/public/locales/fr/translations.json @@ -1054,6 +1054,8 @@ "saved": "La vue actuelle a été enregistrée et est disponible dans votre profil", "saveLogin": "Vous devez vous connecter pour enregistrer les vues (gratuit, 2 minutes)", "saveOwnerOnly": "Cet espace de travail ne peut être modifié que par l'utilisateur qui l'a créé", + "sharePrivateDisclaimer": "This workspace contains datasets that require special permissions", + "sharePrivatePermissionsRequired": "permissions required", "siteDescription": { "default": "La carte Global Fishing Watch est la première plate-forme libre d'accès pour la visualisation et l'analyse du trafic maritime et de l'activité humaine en mer.", "fishing-activity": "La carte Global Fishing Watch est la première plateforme libre d'accès pour la visualisation et l'analyse du trafic maritime et de l'activité humaine en mer.", From 057dd3901741f590ad9a9430b079654d9976c4ae Mon Sep 17 00:00:00 2001 From: j8seangel Date: Fri, 27 Sep 2024 11:59:49 +0200 Subject: [PATCH 03/11] New translations translations.json (Spanish) --- apps/fishing-map/public/locales/es/translations.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/fishing-map/public/locales/es/translations.json b/apps/fishing-map/public/locales/es/translations.json index 6508db2a04..4f4cada3f7 100644 --- a/apps/fishing-map/public/locales/es/translations.json +++ b/apps/fishing-map/public/locales/es/translations.json @@ -1054,6 +1054,8 @@ "saved": "La vista actual ha sido guardada y está disponible en tu perfil de usuario", "saveLogin": "Necesita iniciar sesión para guardar la vista actual (gratis y toma 2 minutos)", "saveOwnerOnly": "Esta área de trabajo solo puede ser editada por su creador", + "sharePrivateDisclaimer": "This workspace contains datasets that require special permissions", + "sharePrivatePermissionsRequired": "permissions required", "siteDescription": { "default": "El mapa Global Fishing Watch es la primera plataforma de acceso abierto para la visualización y el análisis del tráfico marítimo y de la actividad humana basada en el comercio marítimo.", "fishing-activity": "El mapa Global Fishing Watch es la primera plataforma de acceso abierto para la visualización y el análisis del tráfico marítimo y de la actividad humana basada en el comercio marítimo.", From b14c48a957156ea0451df0449a045b8ee8718bb1 Mon Sep 17 00:00:00 2001 From: j8seangel Date: Fri, 27 Sep 2024 11:59:51 +0200 Subject: [PATCH 04/11] New translations translations.json (Portuguese) --- apps/fishing-map/public/locales/pt/translations.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/fishing-map/public/locales/pt/translations.json b/apps/fishing-map/public/locales/pt/translations.json index 7f44efc840..0ab23cb41b 100644 --- a/apps/fishing-map/public/locales/pt/translations.json +++ b/apps/fishing-map/public/locales/pt/translations.json @@ -1054,6 +1054,8 @@ "saved": "A visualização atual foi salva e está disponível no seu perfil de usuário", "saveLogin": "Você precisa fazer login para salvar as visualizações", "saveOwnerOnly": "This workspace can only be edited by its creator", + "sharePrivateDisclaimer": "This workspace contains datasets that require special permissions", + "sharePrivatePermissionsRequired": "permissions required", "siteDescription": { "default": "O mapa do Global Fishing Watch é a primeira plataforma de acesso aberto para visualização e análise do tráfego marítimo e da atividade humana no mar.", "fishing-activity": "O mapa do Global Fishing Watch é a primeira plataforma de acesso aberto para visualização e análise do tráfego marítimo e da atividade humana no mar.", From 339f17c8d532852a6e871a566ae512b0362297c5 Mon Sep 17 00:00:00 2001 From: j8seangel Date: Fri, 27 Sep 2024 11:59:52 +0200 Subject: [PATCH 05/11] New translations translations.json (English) --- apps/fishing-map/public/locales/en/translations.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/fishing-map/public/locales/en/translations.json b/apps/fishing-map/public/locales/en/translations.json index 7c67984169..075921cde1 100644 --- a/apps/fishing-map/public/locales/en/translations.json +++ b/apps/fishing-map/public/locales/en/translations.json @@ -1054,6 +1054,8 @@ "saved": "The current workspace has been saved and it's available in your profile.", "saveLogin": "Register and log in to save workspaces (free, 2 minutes)", "saveOwnerOnly": "This workspace can only be edited by its creator", + "sharePrivateDisclaimer": "This workspace contains datasets that require special permissions", + "sharePrivatePermissionsRequired": "permissions required", "siteDescription": { "default": "The Global Fishing Watch map is the first open-access platform for visualization and analysis of marine traffic and vessel-based human activity at sea.", "fishing-activity": "The Global Fishing Watch map is the first open-access platform for visualization and analysis of marine traffic and vessel-based human activity at sea.", From dddab7d97546bb52f4c35d8b611723059a178248 Mon Sep 17 00:00:00 2001 From: j8seangel Date: Fri, 27 Sep 2024 11:59:53 +0200 Subject: [PATCH 06/11] New translations translations.json (Indonesian) --- apps/fishing-map/public/locales/id/translations.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/fishing-map/public/locales/id/translations.json b/apps/fishing-map/public/locales/id/translations.json index 43496f667e..afe92ecfe0 100644 --- a/apps/fishing-map/public/locales/id/translations.json +++ b/apps/fishing-map/public/locales/id/translations.json @@ -1054,6 +1054,8 @@ "saved": "Tampilan saat ini telah disimpan dan tersedia di profil Anda", "saveLogin": "Anda harus masuk untuk menyimpan tampilan (gratis, 2 menit)", "saveOwnerOnly": "This workspace can only be edited by its creator", + "sharePrivateDisclaimer": "This workspace contains datasets that require special permissions", + "sharePrivatePermissionsRequired": "permissions required", "siteDescription": { "default": "Peta Global Fishing Watch adalah platform akses terbuka pertama untuk visualisasi dan analisis lalu lintas laut dan aktivitas manusia berbasis kapal di laut.", "fishing-activity": "Peta Global Fishing Watch adalah platform akses terbuka pertama untuk visualisasi dan analisis lalu lintas laut dan aktivitas manusia berbasis kapal di laut.", From 9716bcdffc6911416d91bb4cc3d7e04d86e6e725 Mon Sep 17 00:00:00 2001 From: j8seangel Date: Fri, 27 Sep 2024 11:59:55 +0200 Subject: [PATCH 07/11] New translations translations.json (Valencian) --- apps/fishing-map/public/locales/val/translations.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/fishing-map/public/locales/val/translations.json b/apps/fishing-map/public/locales/val/translations.json index 21d3fff9a9..4814fa9763 100644 --- a/apps/fishing-map/public/locales/val/translations.json +++ b/apps/fishing-map/public/locales/val/translations.json @@ -1054,6 +1054,8 @@ "saved": "crwdns60733:0crwdne60733:0", "saveLogin": "crwdns60735:0crwdne60735:0", "saveOwnerOnly": "crwdns83254:0crwdne83254:0", + "sharePrivateDisclaimer": "crwdns83684:0crwdne83684:0", + "sharePrivatePermissionsRequired": "crwdns83686:0crwdne83686:0", "siteDescription": { "default": "crwdns60737:0crwdne60737:0", "fishing-activity": "crwdns60739:0crwdne60739:0", From 5b827f06bd33b48b062188d4ea5dfb31f2db5b42 Mon Sep 17 00:00:00 2001 From: j8seangel Date: Fri, 27 Sep 2024 13:33:25 +0200 Subject: [PATCH 08/11] Update source file translations.json --- apps/fishing-map/public/locales/source/translations.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/fishing-map/public/locales/source/translations.json b/apps/fishing-map/public/locales/source/translations.json index b609a37009..08117050cc 100644 --- a/apps/fishing-map/public/locales/source/translations.json +++ b/apps/fishing-map/public/locales/source/translations.json @@ -1054,6 +1054,8 @@ "saved": "Current view was saved and it's available in your user profile", "saveLogin": "You need to login to save views", "saveOwnerOnly": "This workspace can only be edited by its creator", + "sharePrivateDisclaimer": "This workspace contains datasets that require special permissions", + "sharePrivatePermissionsRequired": "permissions required", "siteDescription": { "default": "The Global Fishing Watch map is the first open-access platform for visualization and analysis of marine traffic and vessel-based human activity at sea.", "fishing-activity": "The Global Fishing Watch map is the first open-access platform for visualization and analysis of marine traffic and vessel-based human activity at sea.", From 4f0b19e459358e6cc64570dd8fdbceea2c229ea4 Mon Sep 17 00:00:00 2001 From: satellitestudiodesign Date: Mon, 23 Sep 2024 17:23:26 +0200 Subject: [PATCH 09/11] fix label and ruler sorting issue --- .../src/layers/fourwings/clusters/FourwingsClustersLayer.ts | 4 ++-- libs/deck-layers/src/utils/sort.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/deck-layers/src/layers/fourwings/clusters/FourwingsClustersLayer.ts b/libs/deck-layers/src/layers/fourwings/clusters/FourwingsClustersLayer.ts index 8eac2932dc..d17e290b7d 100644 --- a/libs/deck-layers/src/layers/fourwings/clusters/FourwingsClustersLayer.ts +++ b/libs/deck-layers/src/layers/fourwings/clusters/FourwingsClustersLayer.ts @@ -356,7 +356,7 @@ export class FourwingsClustersLayer extends CompositeLayer< getPolygonOffset: (params: any) => getLayerGroupOffset(LayerGroup.Cluster, params), stroked: true, getLineColor: DEFAULT_LINE_COLOR, - lineWidthMinPixels: 1, + lineWidthMinPixels: 0.2, pickable: true, updateTriggers: { getRadius: [radiusScale], @@ -369,7 +369,7 @@ export class FourwingsClustersLayer extends CompositeLayer< getPosition: this._getPosition, getColor: DEFAULT_BACKGROUND_COLOR, getSize: 12, - getPolygonOffset: (params: any) => getLayerGroupOffset(LayerGroup.Label, params), + getPolygonOffset: (params: any) => getLayerGroupOffset(LayerGroup.ClusterLabel, params), sizeUnits: 'pixels', getTextAnchor: 'middle', getAlignmentBaseline: 'center', diff --git a/libs/deck-layers/src/utils/sort.ts b/libs/deck-layers/src/utils/sort.ts index 7abec5cd78..510adaaf6e 100644 --- a/libs/deck-layers/src/utils/sort.ts +++ b/libs/deck-layers/src/utils/sort.ts @@ -22,6 +22,7 @@ export enum LayerGroup { Cluster = 'cluster', // Cluster circles Tool = 'tool', // Tools such as rulers, etc Label = 'label', // All non-basemap layers labels + ClusterLabel = 'clusterLabel', // Cluster labels Overlay = 'overlay', // Popups, ruler tool, etc } @@ -43,9 +44,10 @@ export const LAYER_GROUP_ORDER = [ LayerGroup.BasemapForeground, LayerGroup.CustomLayer, LayerGroup.OutlinePolygonsHighlighted, + LayerGroup.Label, LayerGroup.Cluster, + LayerGroup.ClusterLabel, LayerGroup.Tool, - LayerGroup.Label, LayerGroup.Overlay, ] From c2cd875da8008fd1e1e2202254be6ea8d590777a Mon Sep 17 00:00:00 2001 From: satellitestudiodesign Date: Tue, 1 Oct 2024 09:33:09 +0200 Subject: [PATCH 10/11] add message to explain users they can see more detailed tracks if they log in --- .../workspace/vessels/VesselsSection.tsx | 19 +++++++++++++------ .../public/locales/source/translations.json | 1 + 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/apps/fishing-map/features/workspace/vessels/VesselsSection.tsx b/apps/fishing-map/features/workspace/vessels/VesselsSection.tsx index 30a97c8d4d..c87fbe23bc 100644 --- a/apps/fishing-map/features/workspace/vessels/VesselsSection.tsx +++ b/apps/fishing-map/features/workspace/vessels/VesselsSection.tsx @@ -173,13 +173,20 @@ function VesselsSection(): React.ReactElement { )} - {hasVesselsWithNoTrack && guestUser && ( + {activeDataviews.length > 0 && guestUser && (

- - One of your selected sources requires you to - login to see - vessel tracks and events - + {hasVesselsWithNoTrack ? ( + + One of your selected sources requires you to + login to see + vessel tracks and events + + ) : ( + + Login to see + more detailed vessel tracks (free, 2 minutes) + + )}

)} diff --git a/apps/fishing-map/public/locales/source/translations.json b/apps/fishing-map/public/locales/source/translations.json index 08117050cc..84124dc4e9 100644 --- a/apps/fishing-map/public/locales/source/translations.json +++ b/apps/fishing-map/public/locales/source/translations.json @@ -428,6 +428,7 @@ "trackAction": "Download vessel track", "trackLimitExceeded": "You have already downloaded {{limit}} tracks today, please try again tomorrow", "trackLogin": "Register and login to download vessel tracks (free, 2 minutes)", + "trackResolution": "Login to see more detailed vessel tracks (free, 2 minutes)", "trackNotAllowed": "You don't have permissions to download tracks from this source", "trackRemaining_one": "You can download {{count}} more track today", "trackRemaining_other": "You can download {{count}} more tracks today", From 3a3f12fe5f41035c84f3be941c85e9fca257d053 Mon Sep 17 00:00:00 2001 From: satellitestudiodesign Date: Tue, 1 Oct 2024 09:44:58 +0200 Subject: [PATCH 11/11] add needed selector to VesselSection --- .../features/workspace/vessels/VesselsSection.tsx | 6 +++++- apps/fishing-map/next-env.d.ts | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/fishing-map/features/workspace/vessels/VesselsSection.tsx b/apps/fishing-map/features/workspace/vessels/VesselsSection.tsx index c87fbe23bc..eba6481134 100644 --- a/apps/fishing-map/features/workspace/vessels/VesselsSection.tsx +++ b/apps/fishing-map/features/workspace/vessels/VesselsSection.tsx @@ -13,7 +13,10 @@ import { WORKSPACE_SEARCH } from 'routes/routes' import { DEFAULT_WORKSPACE_CATEGORY, DEFAULT_WORKSPACE_ID } from 'data/workspaces' import { selectWorkspace } from 'features/workspace/workspace.selectors' import { useDataviewInstancesConnect } from 'features/workspace/workspace.hook' -import { selectVesselsDataviews } from 'features/dataviews/selectors/dataviews.instances.selectors' +import { + selectActiveVesselsDataviews, + selectVesselsDataviews, +} from 'features/dataviews/selectors/dataviews.instances.selectors' import { selectIsGuestUser } from 'features/user/selectors/user.selectors' import { hasTracksWithNoData, @@ -39,6 +42,7 @@ function VesselsSection(): React.ReactElement { const { t } = useTranslation() const { dispatchLocation } = useLocationConnect() const dataviews = useSelector(selectVesselsDataviews) + const activeDataviews = useSelector(selectActiveVesselsDataviews) const workspace = useSelector(selectWorkspace) const guestUser = useSelector(selectIsGuestUser) const { upsertDataviewInstance, deleteDataviewInstance } = useDataviewInstancesConnect() diff --git a/apps/fishing-map/next-env.d.ts b/apps/fishing-map/next-env.d.ts index 4f11a03dc6..a4a7b3f5cf 100644 --- a/apps/fishing-map/next-env.d.ts +++ b/apps/fishing-map/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. +// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.