From 394d2f3f91a4f7a566e17a95f4df8abc66cabca8 Mon Sep 17 00:00:00 2001 From: Ruben Sibon Date: Mon, 19 Feb 2024 17:04:18 +0100 Subject: [PATCH 1/9] Azure into main (#92) Co-authored-by: Kris de Groot Co-authored-by: jjbeekman Co-authored-by: Jeroen Beekman Co-authored-by: jjbeekman <70761835+jjbeekman@users.noreply.github.com> Co-authored-by: dependabot-vakgroep-so[bot] <144998647+dependabot-vakgroep-so[bot]@users.noreply.github.com> Co-authored-by: github-merge-queue Co-authored-by: thomasbrockmeier-ams <86249927+thomasbrockmeier-ams@users.noreply.github.com> Co-authored-by: jjbeekman --- .github/workflows/dependabot.yml | 18 ++++++++---------- .../__snapshots__/MapLayers.test.tsx.snap | 4 ++-- .../ParkingSpaceDetails.test.tsx.snap | 4 ++-- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index ed0c57f7..ade3926c 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -7,18 +7,16 @@ on: - cron: '0 6 1,15 * *' workflow_dispatch: # Creates button on Github to trigger the workflow manually - jobs: dependabot: name: Dependabot uses: amsterdam/github-workflows/.github/workflows/dependabot.yml@v1 - secrets: inherit # Inherit secrets from the repository. You need to define "SLACK_TOKEN" in settings -> secrets -> actions! + secrets: inherit # Inherit secrets from the repository. You need to define "SLACK_TOKEN" in settings -> secrets -> actions! with: - check_diff: false # Create a list of major upgrades. Requires the Makefile target "diff" - slack_channel: 'opdrachten-dependabot' # Slack channel to post release steps to - timetell_code: 00000 # Timetell project id - acceptance_pipeline: "https://ci.secure.amsterdam.nl/job/Opdrachten/job/Bereikbaarheid/job/main/" - production_pipeline: "https://ci.secure.amsterdam.nl/job/Opdrachten/job/Bereikbaarheid/job/main/" - acceptance_urls: "https://acc.bereikbaarheid.amsterdam.nl/" - production_urls: "https://bereikbaarheid.amsterdam.nl/" - + check_diff: false # Create a list of major upgrades. Requires the Makefile target "diff" + slack_channel: 'opdrachten-dependabot' # Slack channel to post release steps to + timetell_code: 00000 # Timetell project id + acceptance_pipeline: 'https://ci.secure.amsterdam.nl/job/Opdrachten/job/Bereikbaarheid/job/main/' + production_pipeline: 'https://ci.secure.amsterdam.nl/job/Opdrachten/job/Bereikbaarheid/job/main/' + acceptance_urls: 'https://acc.bereikbaarheid.amsterdam.nl/' + production_urls: 'https://bereikbaarheid.amsterdam.nl/' diff --git a/src/pages/Touringcar/components/MapLayers/__snapshots__/MapLayers.test.tsx.snap b/src/pages/Touringcar/components/MapLayers/__snapshots__/MapLayers.test.tsx.snap index ac968880..3de82484 100644 --- a/src/pages/Touringcar/components/MapLayers/__snapshots__/MapLayers.test.tsx.snap +++ b/src/pages/Touringcar/components/MapLayers/__snapshots__/MapLayers.test.tsx.snap @@ -549,7 +549,7 @@ FAQ en contactgegevens" class="sc-hknOHE joUrDy" id="touringcarMessagesDatePicker" type="date" - value="2024-02-08" + value="2024-02-19" />

Date: Tue, 27 Feb 2024 09:05:59 +0100 Subject: [PATCH 2/9] TOUR-33: serves csv file with up to date stops and parking spaces (#88) ## Pull request Before opening a pull request, please ensure: - [ ] You have been following the guidelines, written in the [Contributing document](../CONTRIBUTING.md) - [ ] You have updated the [CHANGELOG.md unreleased sections](../CHANGELOG.md) Be kind to code reviewers, please try to keep pull requests as small and focused as possible :) --------- Co-authored-by: jjbeekman <70761835+jjbeekman@users.noreply.github.com> Co-authored-by: Ruben Sibon --- src/api/touringcar/download/index.ts | 16 + src/i18n/locales/nl/translations.json | 3 +- .../DataSourcesPage.test.tsx.snap | 66 + .../TouringcarPage.test.tsx.snap | 66 + .../components/MapLayers/MapLayers.test.tsx | 26 +- .../__snapshots__/MapLayers.test.tsx.snap | 2710 ----------------- .../MapPanel/ParkingSpaceDetails.test.tsx | 6 +- .../ParkingSpaceDetails.test.tsx.snap | 1400 +-------- src/pages/Touringcar/data/dataLinks.ts | 9 + 9 files changed, 234 insertions(+), 4068 deletions(-) create mode 100644 src/api/touringcar/download/index.ts delete mode 100644 src/pages/Touringcar/components/MapLayers/__snapshots__/MapLayers.test.tsx.snap diff --git a/src/api/touringcar/download/index.ts b/src/api/touringcar/download/index.ts new file mode 100644 index 00000000..4528bb54 --- /dev/null +++ b/src/api/touringcar/download/index.ts @@ -0,0 +1,16 @@ +import api from '../../data.amsterdam' + +const ENDPOINT = 'v1/touringcar/downloads/csv' + +function getTouringcarCsv(signal?: AbortSignal): Promise { + return api.get(ENDPOINT, { signal }).then(response => response.data) +} + +function getUrl() { + return api.getUri({ + url: ENDPOINT, + }) +} + +export { ENDPOINT, getTouringcarCsv, getUrl } +export default getTouringcarCsv diff --git a/src/i18n/locales/nl/translations.json b/src/i18n/locales/nl/translations.json index 4962ca29..3b263ef9 100644 --- a/src/i18n/locales/nl/translations.json +++ b/src/i18n/locales/nl/translations.json @@ -104,7 +104,8 @@ "recommendedRoutes": "Aanbevolen routes voor touringcars", "destinationTraffic": "Toegestane wegen >7,5 ton voor touringcars", "mandatoryRoutes": ">7,5 ton mét ontheffing voor touringcars", - "environmentalZone": "Milieuzone" + "environmentalZone": "Milieuzone", + "csv": "CSV file - Garmin/Mio/Navman format" } }, "_pageData": { diff --git a/src/pages/DataSources/__snapshots__/DataSourcesPage.test.tsx.snap b/src/pages/DataSources/__snapshots__/DataSourcesPage.test.tsx.snap index cb875939..a781bdac 100644 --- a/src/pages/DataSources/__snapshots__/DataSourcesPage.test.tsx.snap +++ b/src/pages/DataSources/__snapshots__/DataSourcesPage.test.tsx.snap @@ -818,6 +818,39 @@ FAQ en contactgegevens" * +
  • + + + + + + + + CSV file - Garmin/Mio/Navman format + + + + * + +
  • +

  • + + + + + + + + CSV file - Garmin/Mio/Navman format + + + + * + +
  • +

  • + + + + + + + + CSV file - Garmin/Mio/Navman format + + + + * + +
  • +

  • + + + + + + + + CSV file - Garmin/Mio/Navman format + + + + * + +
  • { - jest.setTimeout(15000) - jest.useRealTimers() - jest.setSystemTime(new Date('2023-10-01T10:00:00.000Z')) - - it('renders correctly', async () => { - await delay(1500) - - const pathToPage = getGeneratedPath(RouteIds.TOURINGCAR_PAGE) - const page = withApp(pathToPage) - - expect(page).toMatchSnapshot() - }) - it('has only "verplichte-routes" layer checked via search query', async () => { const pathToPage = `${getGeneratedPath(RouteIds.TOURINGCAR_PAGE)}?verplichte-routes` const page = withApp(pathToPage) @@ -52,7 +37,6 @@ describe('RoutesLayers', () => { it('has "haltes" layer checked and the layer and the list are visible', async () => { const pathToPage = `${getGeneratedPath(RouteIds.TOURINGCAR_PAGE)}?haltes&parkeren` const page = withApp(pathToPage) - const user = userEvent.setup() await waitFor(() => page.rerender) @@ -60,13 +44,5 @@ describe('RoutesLayers', () => { expect(await screen.findByLabelText('Haltes')).toBeChecked() expect(await screen.findByTestId('markercluster-stops')).toBeVisible() - - await act(async () => { - await user.click(await screen.findByLabelText('Haltes')) - await delay(500) - await user.click(await screen.findByLabelText('Haltes')) - }) - - expect(await screen.findByTestId('stops-list')).toBeVisible() }) }) diff --git a/src/pages/Touringcar/components/MapLayers/__snapshots__/MapLayers.test.tsx.snap b/src/pages/Touringcar/components/MapLayers/__snapshots__/MapLayers.test.tsx.snap deleted file mode 100644 index 3de82484..00000000 --- a/src/pages/Touringcar/components/MapLayers/__snapshots__/MapLayers.test.tsx.snap +++ /dev/null @@ -1,2710 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`RoutesLayers renders correctly 1`] = ` -Object { - "asFragment": [Function], - "baseElement": -

    -
    - -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - Leaflet - - - - VMA 4.00 2021-03 Arrow -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    - - - -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -
    - - - - - - - - -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    -
    -
    -
    - , - "container":
    -
    - -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - Leaflet - - - - VMA 4.00 2021-03 Arrow -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    - - - -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -
    - - - - - - - - -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    -
    -
    -
    , - "debug": [Function], - "findAllByAltText": [Function], - "findAllByDisplayValue": [Function], - "findAllByLabelText": [Function], - "findAllByPlaceholderText": [Function], - "findAllByRole": [Function], - "findAllByTestId": [Function], - "findAllByText": [Function], - "findAllByTitle": [Function], - "findByAltText": [Function], - "findByDisplayValue": [Function], - "findByLabelText": [Function], - "findByPlaceholderText": [Function], - "findByRole": [Function], - "findByTestId": [Function], - "findByText": [Function], - "findByTitle": [Function], - "getAllByAltText": [Function], - "getAllByDisplayValue": [Function], - "getAllByLabelText": [Function], - "getAllByPlaceholderText": [Function], - "getAllByRole": [Function], - "getAllByTestId": [Function], - "getAllByText": [Function], - "getAllByTitle": [Function], - "getByAltText": [Function], - "getByDisplayValue": [Function], - "getByLabelText": [Function], - "getByPlaceholderText": [Function], - "getByRole": [Function], - "getByTestId": [Function], - "getByText": [Function], - "getByTitle": [Function], - "queryAllByAltText": [Function], - "queryAllByDisplayValue": [Function], - "queryAllByLabelText": [Function], - "queryAllByPlaceholderText": [Function], - "queryAllByRole": [Function], - "queryAllByTestId": [Function], - "queryAllByText": [Function], - "queryAllByTitle": [Function], - "queryByAltText": [Function], - "queryByDisplayValue": [Function], - "queryByLabelText": [Function], - "queryByPlaceholderText": [Function], - "queryByRole": [Function], - "queryByTestId": [Function], - "queryByText": [Function], - "queryByTitle": [Function], - "rerender": [Function], - "unmount": [Function], -} -`; diff --git a/src/pages/Touringcar/components/MapPanel/ParkingSpaceDetails.test.tsx b/src/pages/Touringcar/components/MapPanel/ParkingSpaceDetails.test.tsx index c97fc00b..e8db156b 100644 --- a/src/pages/Touringcar/components/MapPanel/ParkingSpaceDetails.test.tsx +++ b/src/pages/Touringcar/components/MapPanel/ParkingSpaceDetails.test.tsx @@ -1,16 +1,14 @@ import { screen, waitFor } from '@testing-library/react' import { generatePath } from 'react-router-dom' import { RouteIds, getPathTo } from 'routes' -import delay from 'shared/utils/delay' import { withApp } from '../../../../../test/utils/withApp' describe('ParkingSpaceDetails', () => { - jest.setTimeout(15000) + jest.useFakeTimers({ legacyFakeTimers: false }) + jest.setSystemTime(new Date('2024-02-14T10:00:00.000Z')) it('renders correctly', async () => { - await delay(1500) - const pathToPage = generatePath(getPathTo(RouteIds.TOURINGCAR_PAGE), { legenda: ['haltes-parkeerplaatsen'], }) diff --git a/src/pages/Touringcar/components/MapPanel/__snapshots__/ParkingSpaceDetails.test.tsx.snap b/src/pages/Touringcar/components/MapPanel/__snapshots__/ParkingSpaceDetails.test.tsx.snap index bca22b49..8bf62f8b 100644 --- a/src/pages/Touringcar/components/MapPanel/__snapshots__/ParkingSpaceDetails.test.tsx.snap +++ b/src/pages/Touringcar/components/MapPanel/__snapshots__/ParkingSpaceDetails.test.tsx.snap @@ -417,446 +417,13 @@ FAQ en contactgegevens" class="leaflet-layer " style="z-index: 250;" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - -
    + />
    - Marker - Marker - Marker - Marker - Marker - Marker - Marker - Marker - Marker - Marker - Marker - Marker -
    + /> -
    @@ -2404,446 +1776,13 @@ FAQ en contactgegevens" class="leaflet-layer " style="z-index: 250;" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - -
    + />
    - Marker - Marker - Marker - Marker - Marker - Marker - Marker - Marker - Marker - Marker - Marker - Marker -
    + /> -
    , diff --git a/src/pages/Touringcar/data/dataLinks.ts b/src/pages/Touringcar/data/dataLinks.ts index 2843f937..2ce30ea6 100644 --- a/src/pages/Touringcar/data/dataLinks.ts +++ b/src/pages/Touringcar/data/dataLinks.ts @@ -1,3 +1,4 @@ +import { getUrl as getTouringcarCsv } from 'api/touringcar/download' import { getUrl as getTouringcarEnvironmentalZoneUrl } from 'api/touringcar/environmental-zone' import { getUrl as getTouringcarParkingSpacesUrl } from 'api/touringcar/parking-spaces' import { getUrl as getTouringcarRoutesDestinationTrafficUrl } from 'api/touringcar/routes-destination-traffic' @@ -48,6 +49,12 @@ const touringcarEnvironmentalZoneLink = { beta: true, } +const touringcarCsvLink = { + href: getTouringcarCsv(), + title: '_pageTouringcar._dataSources.csv', + beta: true, +} + const dataLinks = [ touringcarStopsLink, touringcarParkingSpacesLink, @@ -56,6 +63,7 @@ const dataLinks = [ touringcarRoutesRecommendedLink, touringcarRoutesMandatoryLink, touringcarEnvironmentalZoneLink, + touringcarCsvLink, ] export { @@ -66,6 +74,7 @@ export { touringcarRoutesRecommendedLink, touringcarRoutesMandatoryLink, touringcarEnvironmentalZoneLink, + touringcarCsvLink, } export default dataLinks From fe1aef032804d829a6454dcfeb3e45363b249663 Mon Sep 17 00:00:00 2001 From: "dependabot-vakgroep-so[bot]" <144998647+dependabot-vakgroep-so[bot]@users.noreply.github.com> Date: Tue, 5 Mar 2024 10:53:49 +0100 Subject: [PATCH 3/9] Maintenance run 2024-03-01 (#98) Auto generated PR to update dependencies. This PR is generated by the Vakgroep SO Dependabot Co-authored-by: github-merge-queue --- package-lock.json | 88 +++++++++++++++++++++++++---------------------- package.json | 16 ++++----- 2 files changed, 55 insertions(+), 49 deletions(-) diff --git a/package-lock.json b/package-lock.json index c3139ce5..bf1930d5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,8 +20,8 @@ "@tanstack/react-query-devtools": "^4.36.1", "axios": "^1.6", "date-fns": "^2.30.0", - "html-react-parser": "^5.1.1", - "i18next": "^23.8.2", + "html-react-parser": "^5.1.8", + "i18next": "^23.10.0", "i18next-browser-languagedetector": "^7.2.0", "leaflet": "^1.9.4", "leaflet.markercluster": "^1.5.3", @@ -29,10 +29,10 @@ "lodash": "^4.17.21", "react": "^17.0.2", "react-dom": "^17.0.2", - "react-hook-form": "^7.49.3", + "react-hook-form": "^7.50.1", "react-i18next": "^13.5.0", - "react-router": "^6.21.3", - "react-router-dom": "^6.21.3", + "react-router": "^6.22.2", + "react-router-dom": "^6.22.2", "react-scripts": "^5.0.1", "styled-components": "^5.3.11", "typescript": "^4.9.5", @@ -42,7 +42,7 @@ "@commitlint/cli": "^17.8.1", "@commitlint/config-conventional": "^17.8.1", "@testing-library/dom": "^9.3.4", - "@testing-library/jest-dom": "^6.4.1", + "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^12.1.5", "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^14.5.2", @@ -52,10 +52,10 @@ "@types/leaflet": "^1.9.8", "@types/leaflet.markercluster": "^1.5.4", "@types/lodash": "^4.14.202", - "@types/node": "^18.19.12", + "@types/node": "^18.19.21", "@types/react-is": "^18", "@types/styled-components": "^5.1.34", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-prettier": "^8.10.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jest-dom": "^5.1.0", @@ -3032,9 +3032,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.56.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", - "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } @@ -6022,9 +6022,9 @@ } }, "node_modules/@remix-run/router": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.15.0.tgz", - "integrity": "sha512-HOil5aFtme37dVQTB6M34G95kPM3MMuqSmIRVCC52eKV+Y/tGSqw9P3rWhlAx6A+mz+MoX+XxsGsNJbaI5qCgQ==", + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.15.2.tgz", + "integrity": "sha512-+Rnav+CaoTE5QJc4Jcwh5toUpnVLKYbpU6Ys0zqbakqbaLQHeglLVHPfxOiQqdNmUy5C2lXz5dwC6tQNX2JW2Q==", "engines": { "node": ">=14.0.0" } @@ -7171,9 +7171,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.19.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.14.tgz", - "integrity": "sha512-EnQ4Us2rmOS64nHDWr0XqAD8DsO6f3XR6lf9UIIrZQpUzPVdN/oPuEzfDWNHSyXLvoGgjuEm/sPwFGSSs35Wtg==", + "version": "18.19.21", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.21.tgz", + "integrity": "sha512-2Q2NeB6BmiTFQi4DHBzncSoq/cJMLDdhPaAoJFnFCyD9a8VPZRf7a1GAwp1Edb7ROaZc5Jz/tnZyL6EsWMRaqw==", "dependencies": { "undici-types": "~5.26.4" } @@ -11159,15 +11159,15 @@ } }, "node_modules/eslint": { - "version": "8.56.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", - "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.56.0", - "@humanwhocodes/config-array": "^0.11.13", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", "@ungap/structured-clone": "^1.2.0", @@ -13086,9 +13086,9 @@ } }, "node_modules/html-dom-parser": { - "version": "5.0.7", - "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-5.0.7.tgz", - "integrity": "sha512-2YD2/yB0QgrlkBIn0CsGaRXC89E1gtuPVpiOGC52NTzPCC83n0WMdGD+5q7lpcKqbCpnWValQbovuy/NI/0kag==", + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-5.0.8.tgz", + "integrity": "sha512-vuWiX9EXgu8CJ5m9EP5c7bvBmNSuQVnrY8tl0z0ZX96Uth1IPlYH/8W8VZ/hBajFf18EN+j2pukbCNd01HEd1w==", "dependencies": { "domhandler": "5.0.3", "htmlparser2": "9.1.0" @@ -13162,17 +13162,23 @@ } }, "node_modules/html-react-parser": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/html-react-parser/-/html-react-parser-5.1.2.tgz", - "integrity": "sha512-N9QBGQ/Zp1dEizz1+8FtqC+KbO+AJXoz2t5V5phE0dH8QqaOEnrRfw5mYk72yEMbZX0kmMYSJAu09dXKZmXenA==", + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/html-react-parser/-/html-react-parser-5.1.8.tgz", + "integrity": "sha512-oAXgUB4JYHFg4le3RQZtoge1TGMkwXSZPiWiexwdx3AuldgG+QEvbwMrscSViu90JNje3V4Zq5gCUSoTxa0W0A==", "dependencies": { "domhandler": "5.0.3", - "html-dom-parser": "5.0.7", + "html-dom-parser": "5.0.8", "react-property": "2.0.2", "style-to-js": "1.1.10" }, "peerDependencies": { + "@types/react": "17 || 18", "react": "0.14 || 15 || 16 || 17 || 18" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, "node_modules/html-webpack-plugin": { @@ -13334,9 +13340,9 @@ } }, "node_modules/i18next": { - "version": "23.8.2", - "resolved": "https://registry.npmjs.org/i18next/-/i18next-23.8.2.tgz", - "integrity": "sha512-Z84zyEangrlERm0ZugVy4bIt485e/H8VecGUZkZWrH7BDePG6jT73QdL9EA1tRTTVVMpry/MgWIP1FjEn0DRXA==", + "version": "23.10.0", + "resolved": "https://registry.npmjs.org/i18next/-/i18next-23.10.0.tgz", + "integrity": "sha512-/TgHOqsa7/9abUKJjdPeydoyDc0oTi/7u9F8lMSj6ufg4cbC1Oj3f/Jja7zj7WRIhEQKB7Q4eN6y68I9RDxxGQ==", "funding": [ { "type": "individual", @@ -23469,11 +23475,11 @@ } }, "node_modules/react-router": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.22.0.tgz", - "integrity": "sha512-q2yemJeg6gw/YixRlRnVx6IRJWZD6fonnfZhN1JIOhV2iJCPeRNSH3V1ISwHf+JWcESzLC3BOLD1T07tmO5dmg==", + "version": "6.22.2", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.22.2.tgz", + "integrity": "sha512-YD3Dzprzpcq+tBMHBS822tCjnWD3iIZbTeSXMY9LPSG541EfoBGyZ3bS25KEnaZjLcmQpw2AVLkFyfgXY8uvcw==", "dependencies": { - "@remix-run/router": "1.15.0" + "@remix-run/router": "1.15.2" }, "engines": { "node": ">=14.0.0" @@ -23483,12 +23489,12 @@ } }, "node_modules/react-router-dom": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.22.0.tgz", - "integrity": "sha512-z2w+M4tH5wlcLmH3BMMOMdrtrJ9T3oJJNsAlBJbwk+8Syxd5WFJ7J5dxMEW0/GEXD1BBis4uXRrNIz3mORr0ag==", + "version": "6.22.2", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.22.2.tgz", + "integrity": "sha512-WgqxD2qySEIBPZ3w0sHH+PUAiamDeszls9tzqMPBDA1YYVucTBXLU7+gtRfcSnhe92A3glPnvSxK2dhNoAVOIQ==", "dependencies": { - "@remix-run/router": "1.15.0", - "react-router": "6.22.0" + "@remix-run/router": "1.15.2", + "react-router": "6.22.2" }, "engines": { "node": ">=14.0.0" diff --git a/package.json b/package.json index dad1b669..eaf6fb5b 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "@tanstack/react-query-devtools": "^4.36.1", "axios": "^1.6", "date-fns": "^2.30.0", - "html-react-parser": "^5.1.1", - "i18next": "^23.8.2", + "html-react-parser": "^5.1.8", + "i18next": "^23.10.0", "i18next-browser-languagedetector": "^7.2.0", "leaflet": "^1.9.4", "leaflet.markercluster": "^1.5.3", @@ -34,10 +34,10 @@ "lodash": "^4.17.21", "react": "^17.0.2", "react-dom": "^17.0.2", - "react-hook-form": "^7.49.3", + "react-hook-form": "^7.50.1", "react-i18next": "^13.5.0", - "react-router": "^6.21.3", - "react-router-dom": "^6.21.3", + "react-router": "^6.22.2", + "react-router-dom": "^6.22.2", "react-scripts": "^5.0.1", "styled-components": "^5.3.11", "typescript": "^4.9.5", @@ -47,7 +47,7 @@ "@commitlint/cli": "^17.8.1", "@commitlint/config-conventional": "^17.8.1", "@testing-library/dom": "^9.3.4", - "@testing-library/jest-dom": "^6.4.1", + "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^12.1.5", "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^14.5.2", @@ -57,10 +57,10 @@ "@types/leaflet": "^1.9.8", "@types/leaflet.markercluster": "^1.5.4", "@types/lodash": "^4.14.202", - "@types/node": "^18.19.12", + "@types/node": "^18.19.21", "@types/react-is": "^18", "@types/styled-components": "^5.1.34", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-prettier": "^8.10.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jest-dom": "^5.1.0", From 2eac41f3f2b2ae41c5bc45395fb67167463af281 Mon Sep 17 00:00:00 2001 From: Ruben Sibon Date: Wed, 6 Mar 2024 11:20:05 +0100 Subject: [PATCH 4/9] feat(tour): enable touringcar messages --- src/__snapshots__/App.test.tsx.snap | 276 ++++++++--------- .../__snapshots__/ContactPage.test.tsx.snap | 12 +- .../DataSourcesPage.test.tsx.snap | 4 +- .../Home/__snapshots__/HomePage.test.tsx.snap | 268 ++++++++--------- .../LoadUnloadPage.test.tsx.snap | 76 ++--- .../TouringcarPage.test.tsx.snap | 278 ++++++++++++++++-- .../components/MapLayers/MessagesLayer.tsx | 2 +- .../Touringcar/components/MapLayers/index.tsx | 6 +- .../Touringcar/components/MapLegend/index.tsx | 9 +- .../components/MapSettingsDisplay.tsx | 10 +- 10 files changed, 575 insertions(+), 366 deletions(-) diff --git a/src/__snapshots__/App.test.tsx.snap b/src/__snapshots__/App.test.tsx.snap index 595e726f..33029b3b 100644 --- a/src/__snapshots__/App.test.tsx.snap +++ b/src/__snapshots__/App.test.tsx.snap @@ -378,19 +378,19 @@ FAQ en contactgegevens"
    Bereikbaarheid op kenteken

    Bereikbaarheid op kenteken

    Voer uw kenteken in en u ziet direct of u de gewenste bestemming in de stad kunt bereiken, rekening gehouden met de lengte, breedte, hoogte, aslast, en het gewicht van het voertuig. Leer ook over milieuzones, de toegankelijkheid via brede wegen, eventuele benodigde ontheffingen en verbodsborden voor specifieke voertuigcategorieën.

    @@ -456,15 +456,15 @@ FAQ en contactgegevens"
    Stremmingen

    Stremmingen

    Stremmingen die aanzienlijke invloed hebben op het verkeer en langere tijd duren, worden op deze kaart getoond. Houd er rekening mee dat dit niet alle stremmingen in de stad zijn, maar we tonen hier de belangrijkste en meest invloedrijke wijzigingen.

    @@ -530,15 +530,15 @@ FAQ en contactgegevens"
    Laden en lossen

    Laden en lossen

    Deze kaart biedt informatie voor logistiek planners en chauffeurs die in de stad goederen willen laden en lossen. U vindt de specifieke tijden waarop dit is toegestaan op de wegenkaart van de stad en waar de parkeervakken voor laden en lossen zijn.

    @@ -604,16 +604,16 @@ FAQ en contactgegevens"
    Touringcar

    Touringcar

    Overzicht met informatie specifiek voor touringcars, zoals halteerplekken en parkeren, berichten over stremmingen en events, touringcar verbodsborden, doorrijdhoogte, bestemmingsverkeer, verplichte en aanbevolen routes alsook milieuzone informatie.

    @@ -694,15 +694,15 @@ FAQ en contactgegevens"
    Databronnen

    Databronnen

    De databronnen uit de verschillende kaartlagen kunt u hier downloaden en zo gebruiken in eigen (plannings) software.

    @@ -768,15 +768,15 @@ FAQ en contactgegevens"
    Contact & help

    Contact & help

    Bereikbaarheid op kenteken

    Bereikbaarheid op kenteken

    Voer uw kenteken in en u ziet direct of u de gewenste bestemming in de stad kunt bereiken, rekening gehouden met de lengte, breedte, hoogte, aslast, en het gewicht van het voertuig. Leer ook over milieuzones, de toegankelijkheid via brede wegen, eventuele benodigde ontheffingen en verbodsborden voor specifieke voertuigcategorieën.

    @@ -1357,15 +1357,15 @@ FAQ en contactgegevens"
    Stremmingen

    Stremmingen

    Stremmingen die aanzienlijke invloed hebben op het verkeer en langere tijd duren, worden op deze kaart getoond. Houd er rekening mee dat dit niet alle stremmingen in de stad zijn, maar we tonen hier de belangrijkste en meest invloedrijke wijzigingen.

    @@ -1431,15 +1431,15 @@ FAQ en contactgegevens"
    Laden en lossen

    Laden en lossen

    Deze kaart biedt informatie voor logistiek planners en chauffeurs die in de stad goederen willen laden en lossen. U vindt de specifieke tijden waarop dit is toegestaan op de wegenkaart van de stad en waar de parkeervakken voor laden en lossen zijn.

    @@ -1505,16 +1505,16 @@ FAQ en contactgegevens"
    Touringcar

    Touringcar

    Overzicht met informatie specifiek voor touringcars, zoals halteerplekken en parkeren, berichten over stremmingen en events, touringcar verbodsborden, doorrijdhoogte, bestemmingsverkeer, verplichte en aanbevolen routes alsook milieuzone informatie.

    @@ -1595,15 +1595,15 @@ FAQ en contactgegevens"
    Databronnen

    Databronnen

    De databronnen uit de verschillende kaartlagen kunt u hier downloaden en zo gebruiken in eigen (plannings) software.

    @@ -1669,15 +1669,15 @@ FAQ en contactgegevens"
    Contact & help

    Contact & help

    Bereikbaarheid op kenteken

    Bereikbaarheid op kenteken

    Voer uw kenteken in en u ziet direct of u de gewenste bestemming in de stad kunt bereiken, rekening gehouden met de lengte, breedte, hoogte, aslast, en het gewicht van het voertuig. Leer ook over milieuzones, de toegankelijkheid via brede wegen, eventuele benodigde ontheffingen en verbodsborden voor specifieke voertuigcategorieën.

    @@ -456,15 +456,15 @@ FAQ en contactgegevens"
    Stremmingen

    Stremmingen

    Stremmingen die aanzienlijke invloed hebben op het verkeer en langere tijd duren, worden op deze kaart getoond. Houd er rekening mee dat dit niet alle stremmingen in de stad zijn, maar we tonen hier de belangrijkste en meest invloedrijke wijzigingen.

    @@ -530,15 +530,15 @@ FAQ en contactgegevens"
    Laden en lossen

    Laden en lossen

    Deze kaart biedt informatie voor logistiek planners en chauffeurs die in de stad goederen willen laden en lossen. U vindt de specifieke tijden waarop dit is toegestaan op de wegenkaart van de stad en waar de parkeervakken voor laden en lossen zijn.

    @@ -604,16 +604,16 @@ FAQ en contactgegevens"
    Touringcar

    Touringcar

    Overzicht met informatie specifiek voor touringcars, zoals halteerplekken en parkeren, berichten over stremmingen en events, touringcar verbodsborden, doorrijdhoogte, bestemmingsverkeer, verplichte en aanbevolen routes alsook milieuzone informatie.

    @@ -694,15 +694,15 @@ FAQ en contactgegevens"
    Databronnen

    Databronnen

    De databronnen uit de verschillende kaartlagen kunt u hier downloaden en zo gebruiken in eigen (plannings) software.

    @@ -768,15 +768,15 @@ FAQ en contactgegevens"
    Contact & help

    Contact & help

    FAQ en contactgegevens

    @@ -1219,19 +1219,19 @@ FAQ en contactgegevens"
    Bereikbaarheid op kenteken

    Bereikbaarheid op kenteken

    Voer uw kenteken in en u ziet direct of u de gewenste bestemming in de stad kunt bereiken, rekening gehouden met de lengte, breedte, hoogte, aslast, en het gewicht van het voertuig. Leer ook over milieuzones, de toegankelijkheid via brede wegen, eventuele benodigde ontheffingen en verbodsborden voor specifieke voertuigcategorieën.

    @@ -1297,15 +1297,15 @@ FAQ en contactgegevens"
    Stremmingen

    Stremmingen

    Stremmingen die aanzienlijke invloed hebben op het verkeer en langere tijd duren, worden op deze kaart getoond. Houd er rekening mee dat dit niet alle stremmingen in de stad zijn, maar we tonen hier de belangrijkste en meest invloedrijke wijzigingen.

    @@ -1371,15 +1371,15 @@ FAQ en contactgegevens"
    Laden en lossen

    Laden en lossen

    Deze kaart biedt informatie voor logistiek planners en chauffeurs die in de stad goederen willen laden en lossen. U vindt de specifieke tijden waarop dit is toegestaan op de wegenkaart van de stad en waar de parkeervakken voor laden en lossen zijn.

    @@ -1445,16 +1445,16 @@ FAQ en contactgegevens"
    Touringcar

    Touringcar

    Overzicht met informatie specifiek voor touringcars, zoals halteerplekken en parkeren, berichten over stremmingen en events, touringcar verbodsborden, doorrijdhoogte, bestemmingsverkeer, verplichte en aanbevolen routes alsook milieuzone informatie.

    @@ -1535,15 +1535,15 @@ FAQ en contactgegevens"
    Databronnen

    Databronnen

    De databronnen uit de verschillende kaartlagen kunt u hier downloaden en zo gebruiken in eigen (plannings) software.

    @@ -1609,15 +1609,15 @@ FAQ en contactgegevens"
    Contact & help

    Contact & help

    FAQ en contactgegevens

    diff --git a/src/pages/LoadUnload/__snapshots__/LoadUnloadPage.test.tsx.snap b/src/pages/LoadUnload/__snapshots__/LoadUnloadPage.test.tsx.snap index b78273fe..fdb7e650 100644 --- a/src/pages/LoadUnload/__snapshots__/LoadUnloadPage.test.tsx.snap +++ b/src/pages/LoadUnload/__snapshots__/LoadUnloadPage.test.tsx.snap @@ -383,7 +383,7 @@ FAQ en contactgegevens" data-testid="load-unload-page" >
    @@ -545,7 +545,7 @@ FAQ en contactgegevens" Adres
    @@ -794,7 +794,7 @@ FAQ en contactgegevens" data-testid="topRight" >
    @@ -1862,7 +1862,7 @@ FAQ en contactgegevens" data-testid="topRight" >
    + @@ -510,15 +520,76 @@ FAQ en contactgegevens" Brondata
    +