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

Chore/dependencies update #2770

Merged
merged 8 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,4 @@ affected-apps
# local parquet files
*.parquet
.nx/cache
.nx/workspace-data
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/dist
/coverage

/.nx/cache
/.nx/cache
/.nx/workspace-data
894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.3.1.cjs

This file was deleted.

925 changes: 925 additions & 0 deletions .yarn/releases/yarn-4.4.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ supportedArchitectures:
- darwin
- linux

yarnPath: .yarn/releases/yarn-4.3.1.cjs
yarnPath: .yarn/releases/yarn-4.4.0.cjs
2 changes: 1 addition & 1 deletion apps/api-portal/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
waitFor: ['restore_cache']
name: node:21
script: |
yarn set version 4.3.1
yarn set version 4.4.0
yarn -v
yarn install --immutable

Expand Down
2 changes: 1 addition & 1 deletion apps/fishing-map-e2e/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ steps:
waitFor: ['restore_cache']
name: node:21
script: |
yarn set version 4.3.1
yarn set version 4.4.0
yarn -v
yarn install --immutable

Expand Down
2 changes: 1 addition & 1 deletion apps/fishing-map/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
waitFor: ['restore_cache']
name: node:21
script: |
yarn set version 4.3.1
yarn set version 4.4.0
yarn -v
yarn install --immutable

Expand Down
10 changes: 7 additions & 3 deletions apps/fishing-map/features/timebar/TimebarSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next'
import { IconButton, Radio } from '@globalfishingwatch/ui-components'
import { DatasetTypes } from '@globalfishingwatch/api-types'
import { useGetDeckLayers } from '@globalfishingwatch/deck-layer-composer'
import { VesselLayer } from '@globalfishingwatch/deck-layers'
import { UserTracksLayer, VesselLayer } from '@globalfishingwatch/deck-layers'
import useClickedOutside from 'hooks/use-clicked-outside'
import { TimebarGraphs, TimebarVisualisations } from 'types'
import {
Expand Down Expand Up @@ -69,8 +69,12 @@ const TimebarSettings = ({ loading = false }: { loading: boolean }) => {
const activeTrackDataviews = useSelector(selectActiveTrackDataviews)
const isStandaloneVesselLocation = useSelector(selectIsVesselLocation)
const vesselIds = activeTrackDataviews.map((v) => v.id)
const vesselLayers = useGetDeckLayers<VesselLayer>(vesselIds)
const hasTracksData = vesselLayers?.some((layer) => layer?.instance.getVesselTracksLayersLoaded())
const vesselLayers = useGetDeckLayers<VesselLayer | UserTracksLayer>(vesselIds)
const hasTracksData = vesselLayers?.some((layer) =>
layer.instance instanceof VesselLayer
? layer.instance?.getVesselTracksLayersLoaded()
: layer.instance?.isLoaded
)
const activeVesselsDataviews = useSelector(selectActiveVesselsDataviews)
const { timebarVisualisation, dispatchTimebarVisualisation } = useTimebarVisualisationConnect()
const { timebarSelectedEnvId, dispatchTimebarSelectedEnvId } = useTimebarEnvironmentConnect()
Expand Down
2 changes: 1 addition & 1 deletion apps/fishing-map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"analyze": "source-map-explorer 'build/static/js/*.js'"
},
"devDependencies": {
"i18next-parser": "8.13.0",
"i18next-parser": "9.0.1",
"source-map-explorer": "2.5.3"
},
"browserslist": [
Expand Down
3 changes: 2 additions & 1 deletion apps/fishing-map/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"commands": [
"nx dist:workers deck-loaders",
"mkdir -p apps/fishing-map/public/workers",
"cp dist/libs/deck-loaders/workers/* apps/fishing-map/public/workers/"
"cp -R dist/libs/deck-loaders/workers/* apps/fishing-map/public/workers/",
"rm -rf apps/fishing-map/public/workers/libs"
],
"parallel": false
}
Expand Down
10 changes: 5 additions & 5 deletions apps/fishing-map/public/locales/source/layer-library.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
"moreInfoLink": "https://data.marine.copernicus.eu/product/GLOBAL_ANALYSISFORECAST_BGC_001_028/description",
"name": "Nitrate concentration (NO3)"
},
"offshore-fixed-infrastructure": {
"description": "Offshore fixed infrastructure is a global dataset that uses AI and machine learning to detect and classify structures throughout the world’s oceans. Classification labels (oil, wind, and unknown) are provided, as well as confidence levels (high, medium, or low) reflecting our certainty in the assigned label. Detections can be filtered and colored on the map using both label and confidence level. The data is updated on a monthly basis, and new classified detections are added at the beginning of every month. Viewing change using the timebar is simple, and allows anyone to recognize the rapid industrialization of the world’s oceans.",
"moreInfoLink": "",
"name": "Offshore Fixed Infrastructure (SAR, Optical)"
},
"oxygen": {
"description": "Dissolved oxygen is the amount of oxygen present in water and is crucial for the growth and survival of marine organisms. Warming ocean temperatures can lead to an expansion of low oxygen zones, which can impact the distribution and abundance of marine life. This dataset is comprised of biogeochemical parameters, including dissolved oxygen, over the global ocean displayed with a 1/4 degree horizontal resolution. ",
"moreInfoLink": "https://data.marine.copernicus.eu/product/GLOBAL_ANALYSISFORECAST_BGC_001_028/description",
Expand Down Expand Up @@ -148,10 +153,5 @@
"description": "The night lights vessel detections layer, known as visible infrared imaging radiometer suite or VIIRS, shows vessels at sea that satellites have detected by the light they emit at night. Though not exclusively associated with fishing vessels, this activity layer is likely to show vessels associated with activities like squid fishing, which use bright lights and fish at night.",
"moreInfoLink": "",
"name": "Night light detections (VIIRS)"
},
"offshore-fixed-infrastructure": {
"description": "Offshore fixed infrastructure is a global dataset that uses AI and machine learning to detect and classify structures throughout the world’s oceans. Classification labels (oil, wind, and unknown) are provided, as well as confidence levels (high, medium, or low) reflecting our certainty in the assigned label. Detections can be filtered and colored on the map using both label and confidence level. The data is updated on a monthly basis, and new classified detections are added at the beginning of every month. Viewing change using the timebar is simple, and allows anyone to recognize the rapid industrialization of the world’s oceans.",
"moreInfoLink": "",
"name": "Offshore Fixed Infrastructure (SAR, Optical)"
}
}
22 changes: 13 additions & 9 deletions apps/fishing-map/public/locales/source/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
"statsDisclaimerStatic": "The average value for your area is {{mean}} {{unit}}. The minimum and maximum are {{min}} {{unit}} and {{max}} {{unit}}.",
"summary": "<strong>{{vessels}} vessels{{sources}} </strong> had <strong>{{activityQuantity}} {{activityUnit}}</strong> of <strong>{{activityType}}</strong> in the area between <strong>{{start}}</strong> and <strong>{{end}}</strong>",
"summaryNoVessels": "<strong>{{sources}} {{activityQuantity}}</strong> {{activityUnit}} <strong>{{activityType}}</strong> in the area between <strong>{{start}}</strong> and <strong>{{end}}</strong>",
"timeRangeTooLong": "Reports are only allowed for time ranges up to one year",
"timeoutError": "This is taking more than expected, please wait",
"timeRangeTooLong": "Reports are only allowed for time ranges up to one year",
"title": "Analysis",
"unknown": "Unknown"
},
Expand Down Expand Up @@ -202,22 +202,22 @@
"seeDefault": "See default view",
"seeMore": "See more",
"send": "Send",
"since": "since",
"setNewPassword": "Set a new password",
"share": "Share the current view",
"since": "since",
"sources": "Sources",
"summary": "Summary",
"timerange": "Time range",
"timerangeStatic": "Static ({{start}} - {{end}})",
"timerangeDaysFromLatest": "Days from latest data update (1-100)",
"timerangeDescription": "From {{start}} to {{end}}",
"timerangeDynamic": "Dynamic",
"timerangeDaysFromLatest": "Days from latest data update (1-100)",
"timerangeStatic": "Static ({{start}} - {{end}})",
"timestamp": "Timestamp",
"to": "to",
"toggleVisibility": "Toggle visibility",
"tutorials": "Tutorials",
"unit": "unit",
"unionOf": "Union of",
"unit": "unit",
"unknown": "Unknown",
"unknownVessel": "Unknown vessel",
"update": "Update",
Expand All @@ -226,6 +226,7 @@
"value": "value",
"vessel": "Vessel",
"vessel_one": "Vessel",
"vessel_many": "common.vessel",
"vessel_other": "Vessels",
"vesselId": "Vessel id",
"vessels": "Vessels",
Expand Down Expand Up @@ -304,6 +305,7 @@
"geoJSON": {
"noValidFeatures": "No valid feature types found in the geoJSON file"
},
"invalidDatesFeatures": "Some of your {{featureType}} don't contain a valid date. They won't appear on the map regardless of time filter.",
"kml": {
"invalidData": "KML data does not have a valid geometry type",
"noLineData": "No line data found in the KML",
Expand Down Expand Up @@ -440,8 +442,8 @@
"generic": "Something went wrong, try again or contact:",
"genericShort": "Something went wrong",
"invalidRange": "Min has to be lower than max value",
"layerLoading": "There was an error loading the layer",
"latestCarrierNotFound": "Latest carrier dataset not found",
"layerLoading": "There was an error loading the layer",
"missingLatLng": "No latitude or longitude fields found",
"pageNotFound": "Page not found",
"privateProfile": "Your account doesn't have permission to see this vessel",
Expand Down Expand Up @@ -587,6 +589,7 @@
},
"areasOnScreen": "Areas on screen",
"color_change": "Change color",
"drawPoints": "Draw points",
"drawPolygon": "Draw a layer",
"drawPolygonLogin": "Register and login to draw a layer (free, 2 minutes)",
"editDraw": "Edit draw",
Expand Down Expand Up @@ -648,8 +651,8 @@
"errorAction": "Log an issue at a specific location",
"errorLabel": "Please describe the error as detailed as possible",
"errorPlaceholder": "Please describe the error as detailed as possible",
"legend_help": "Approximated grid cell area at the Equator",
"highRes": "See high resolution heatmaps",
"legend_help": "Approximated grid cell area at the Equator",
"loading": "Loading",
"lowRes": "See low resolution heatmaps",
"mapLoadingWait": "Please wait until map loads",
Expand Down Expand Up @@ -918,8 +921,8 @@
"noTrackAvailable": "There is no track available",
"noVoyagesinTimeRange": "There are no voyages fully contained in your timerange.",
"noVoyagesWithoutPorts": "Please turn on port visits visibility",
"origin": "Origin",
"onScreen": "Vessels on screen",
"origin": "Origin",
"owner": "Owner",
"owners": "Owners",
"registeredGearType": "Registered Gear Type",
Expand All @@ -944,8 +947,8 @@
"target_species": "Target species",
"targetSpecies": "Target species",
"title": "Vessel profile",
"tonnageGt": "Tonnage (Gt)",
"toggleAllVessels": "Toggle all vessels visibility",
"tonnageGt": "Tonnage (Gt)",
"trackLogin": "One of your selected sources requires you to <1>login</1> to see vessel tracks and events",
"transmission_other": "Transmissions",
"transmissionDates": "Transmission dates",
Expand Down Expand Up @@ -1016,6 +1019,7 @@
"emptyStateVessels": "The vessels selected in the search or by clicking on activity grid cells will appear here.",
"migrationDisclaimer": "Update your workspace to view the latest data and features.",
"migrationDisclaimerNote": "Note, some vessel identity and activity information may change. <a target='_blank' href='https://globalfishingwatch.org/faqs/2024-aug-new-release-in-our-ais-data-pipeline-version-3'> Learn more.</a>",
"migrationMaintain": "Skip",
"migrationSkip": "Skip",
"migrationUpdate": "Update",
"nameInput": "Workspace name",
Expand Down
6 changes: 2 additions & 4 deletions apps/fishing-map/queries/stats-api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { createApi } from '@reduxjs/toolkit/query/react'
import { createApi, FetchBaseQueryArgs, SerializeQueryArgs } from '@reduxjs/toolkit/query/react'
import { stringify } from 'qs'
import type { BaseQueryArg, BaseQueryFn } from '@reduxjs/toolkit/dist/query/baseQueryTypes'
import type { SerializeQueryArgs } from '@reduxjs/toolkit/dist/query/defaultSerializeQueryArgs'
import { gfwBaseQuery } from 'queries/base'
import { uniq } from 'es-toolkit'
import { DateTime } from 'luxon'
Expand All @@ -16,7 +14,7 @@ type FetchDataviewStatsParams = {
fields?: StatField[]
}

interface CustomBaseQueryArg extends BaseQueryArg<BaseQueryFn> {
interface CustomBaseQueryArg extends FetchBaseQueryArgs {
dataview: UrlDataviewInstance
timerange: TimeRange
}
Expand Down
6 changes: 4 additions & 2 deletions apps/fourwings-explorer/features/timebar/Timebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import TimebarActivityGraph from './TimebarActivityGraph'
import TimebarSettings from './TimebarSettings'
import styles from './Timebar.module.css'

const TimebarComponent = Timebar as any

const TimebarHighlighterWrapper = () => {
const [highlightTimerange] = useHighlightTimerange()
// const metadata = useMapInstanceStyle()?.metadata?.generatorsMetadata
Expand Down Expand Up @@ -89,7 +91,7 @@ const TimebarWrapper = () => {
if (!timerange?.start || !timerange?.end) return null
return (
<div className={styles.timebarWrapper}>
<Timebar
<TimebarComponent
enablePlayback={true}
start={timerange?.start}
end={timerange?.end}
Expand All @@ -101,7 +103,7 @@ const TimebarWrapper = () => {
>
<TimebarActivityGraph />
<TimebarHighlighterWrapper />
</Timebar>
</TimebarComponent>
<TimebarSettings />
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion apps/image-labeler/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
waitFor: ['restore_cache']
name: node:21
script: |
yarn set version 4.3.1
yarn set version 4.4.0
yarn -v
yarn install --immutable

Expand Down
2 changes: 1 addition & 1 deletion apps/real-time-prototype/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
waitFor: ['restore_cache']
name: node:21
script: |
yarn set version 4.3.1
yarn set version 4.4.0
yarn -v
yarn install --immutable

Expand Down
2 changes: 1 addition & 1 deletion apps/user-groups-admin/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
waitFor: ['restore_cache']
name: node:21
script: |
yarn set version 4.3.1
yarn set version 4.4.0
yarn -v
yarn install --immutable

Expand Down
2 changes: 1 addition & 1 deletion apps/vessel-history/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Production image, copy all the files and run next
FROM node:21-alpine AS production
ENV YARN_VERSION 4.3.1
ENV YARN_VERSION 4.4.0

RUN yarn set version $YARN_VERSION
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion apps/vessel-history/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
waitFor: ['restore_cache']
name: node:21
script: |
yarn set version 4.3.1
yarn set version 4.4.0
yarn -v
yarn install --immutable

Expand Down
2 changes: 1 addition & 1 deletion apps/vessel-history/cloudbuild_PR_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
waitFor: ['restore_cache']
name: node:21
script: |
yarn set version 4.3.1
yarn set version 4.4.0
yarn -v
yarn install --immutable

Expand Down
2 changes: 1 addition & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ steps:
waitFor: ['restore_cache']
name: node:21
script: |
yarn set version 4.3.1
yarn set version 4.4.0
yarn -v
yarn install --immutable

Expand Down
3 changes: 2 additions & 1 deletion libs/deck-layers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"main": "./index.cjs",
"module": "./index.js",
"dependencies": {
"@deck.gl-community/editable-layers": "^9.0.0-alpha.1",
"@deck.gl-community/editable-layers": "^9.0.2",
"@deck.gl-community/layers": "^9.0.2",
"@deck.gl/core": "^9.0.20",
"@deck.gl/extensions": "^9.0.20",
"@deck.gl/geo-layers": "^9.0.20",
Expand Down
2 changes: 1 addition & 1 deletion libs/i18n-labels/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
waitFor: ['restore_cache']
name: node:21
script: |
yarn set version 4.3.1
yarn set version 4.4.0
yarn -v
yarn install --immutable

Expand Down
Loading
Loading