From 215b748a537b5ec508e84d38672c7caaf6946289 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 4 Jul 2026 04:47:21 +0000 Subject: [PATCH 1/2] chore(deps): update actions/checkout action to v7 --- .github/workflows/backend-docker.yml | 2 +- .github/workflows/backend-test.yml | 2 +- .github/workflows/frontend-build.yml | 2 +- .github/workflows/frontend-docker.yml | 2 +- .github/workflows/frontend-pull-request.yml | 2 +- .github/workflows/frontend-push.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/backend-docker.yml b/.github/workflows/backend-docker.yml index 132ea671..233897c6 100644 --- a/.github/workflows/backend-docker.yml +++ b/.github/workflows/backend-docker.yml @@ -16,7 +16,7 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 with: persist-credentials: false diff --git a/.github/workflows/backend-test.yml b/.github/workflows/backend-test.yml index b9fc0df1..ebf1b440 100644 --- a/.github/workflows/backend-test.yml +++ b/.github/workflows/backend-test.yml @@ -20,7 +20,7 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 with: persist-credentials: false diff --git a/.github/workflows/frontend-build.yml b/.github/workflows/frontend-build.yml index d137e410..e861c232 100644 --- a/.github/workflows/frontend-build.yml +++ b/.github/workflows/frontend-build.yml @@ -9,7 +9,7 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 with: persist-credentials: false diff --git a/.github/workflows/frontend-docker.yml b/.github/workflows/frontend-docker.yml index 0bfaebb3..4ff99c5a 100644 --- a/.github/workflows/frontend-docker.yml +++ b/.github/workflows/frontend-docker.yml @@ -16,7 +16,7 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 with: persist-credentials: false - uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3 diff --git a/.github/workflows/frontend-pull-request.yml b/.github/workflows/frontend-pull-request.yml index 076c3d08..b89b0668 100644 --- a/.github/workflows/frontend-pull-request.yml +++ b/.github/workflows/frontend-pull-request.yml @@ -23,7 +23,7 @@ jobs: checks: write pull-requests: write steps: - - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 with: persist-credentials: false diff --git a/.github/workflows/frontend-push.yml b/.github/workflows/frontend-push.yml index 56c92119..666d0a45 100644 --- a/.github/workflows/frontend-push.yml +++ b/.github/workflows/frontend-push.yml @@ -22,7 +22,7 @@ jobs: contents: read deployments: write steps: - - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 with: persist-credentials: false From f0d6b061175c22e2a67dc44900d10397a4cff919 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 8 Jul 2026 15:13:57 +0000 Subject: [PATCH 2/2] fix(frontend): restore leaflet heat typings and harden renovate frontend updates --- frontend/src/types/leaflet.heat.d.ts | 26 +++++++++++++++++++++++++ frontend/src/util/layer-construction.ts | 4 ++-- renovate.json | 17 ++++++++++++++++ 3 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 frontend/src/types/leaflet.heat.d.ts diff --git a/frontend/src/types/leaflet.heat.d.ts b/frontend/src/types/leaflet.heat.d.ts new file mode 100644 index 00000000..db3a9428 --- /dev/null +++ b/frontend/src/types/leaflet.heat.d.ts @@ -0,0 +1,26 @@ +import "leaflet"; + +declare module "leaflet" { + export type HeatLatLngTuple = [number, number, number]; + + export interface ColorGradientConfig { + [key: number]: string; + } + + export interface HeatMapOptions { + minOpacity?: number | undefined; + maxZoom?: number | undefined; + max?: number | undefined; + radius?: number | undefined; + blur?: number | undefined; + gradient?: ColorGradientConfig | undefined; + } + + export interface HeatLayer extends TileLayer { + setOptions(options: HeatMapOptions): HeatLayer; + addLatLng(latlng: LatLng | HeatLatLngTuple): HeatLayer; + setLatLngs(latlngs: Array): HeatLayer; + } + + export function heatLayer(latlngs: Array, options: HeatMapOptions): HeatLayer; +} diff --git a/frontend/src/util/layer-construction.ts b/frontend/src/util/layer-construction.ts index 0440e1d1..d758eca7 100644 --- a/frontend/src/util/layer-construction.ts +++ b/frontend/src/util/layer-construction.ts @@ -3,12 +3,12 @@ import L, { CircleMarker, circleMarker, GeoJSON, - HeatLatLngTuple, Layer, LayerGroup, LeafletMouseEvent, PathOptions } from "leaflet"; +import "leaflet.heat"; import {Colors} from "../config"; import {RelayLocationDto} from "../dto/relay"; @@ -255,7 +255,7 @@ export const calculateFamilyColor = (familyId: number) => { } export const buildRelayHeatmapLayer = (relays: RelayLocationDto[]): LayerGroup => { - const coordinates = new Array() + const coordinates = new Array() relays.forEach(relay => coordinates.push([relay.lat, relay.long, 1])) return L.heatLayer(coordinates, { radius: 25, diff --git a/renovate.json b/renovate.json index 41723ebb..565c5529 100644 --- a/renovate.json +++ b/renovate.json @@ -32,6 +32,16 @@ "/leaflet/" ] }, + { + "description": "Require manual review for frontend dependency updates", + "matchManagers": [ + "npm" + ], + "matchFileNames": [ + "frontend/package.json" + ], + "automerge": false + }, { "description": "Limit react version to ensure compatibility with react-infinite-scroller", "matchPackageNames": [ @@ -49,6 +59,13 @@ ], "enabled": false }, + { + "description": "Limit @types/leaflet.heat version to ensure compatibility with leaflet heatmap", + "matchPackageNames": [ + "@types/leaflet.heat" + ], + "enabled": false + }, { "description": "Keep all @mui packages on major version 5", "matchPackageNames": [