Skip to content

Vcs/zoom rectangle 3 #2992

Vcs/zoom rectangle 3

Vcs/zoom rectangle 3 #2992

Triggered via pull request March 6, 2025 17:34
Status Failure
Total duration 1m 26s
Artifacts

osrd-ui-build.yml

on: pull_request
build
1m 18s
build
check_commits
4s
check_commits
Check final newline
11s
Check final newline
Check unit tests
32s
Check unit tests
Check REUSE Compliance
8s
Check REUSE Compliance
Check DCO
3s
Check DCO
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 10 warnings
Check DCO
Process completed with exit code 1.
src/manchette/useManchetteWithSpaceTimeChart/__tests__/helpers.spec.ts > computeWaypointsToDisplay > should return correct heights for proportional display: ui-charts/src/manchette/useManchetteWithSpaceTimeChart/__tests__/helpers.spec.ts#L58
AssertionError: expected 'NaNpx' to be '428px' // Object.is equality Expected: "428px" Received: "NaNpx" ❯ src/manchette/useManchetteWithSpaceTimeChart/__tests__/helpers.spec.ts:58:38
Check unit tests
Process completed with exit code 1.
build
Process completed with exit code 1.
build: ui-charts/src/manchette/useManchetteWithSpaceTimeChart/hooks/useManchetteWithSpaceTimeChart.ts#L123
React Hook useMemo has missing dependencies: 'maxZoomMillimetrePerPx' and 'minZoomMillimetrePerPx'. Either include them or remove the dependency array
build: ui-charts/src/manchette/useManchetteWithSpaceTimeChart/hooks/useManchetteWithSpaceTimeChart.ts#L145
React Hook useMemo has missing dependencies: 'maxZoomMillimetrePerPx' and 'minZoomMillimetrePerPx'. Either include them or remove the dependency array
build: ui-charts/src/manchette/useManchetteWithSpaceTimeChart/hooks/useManchetteWithSpaceTimeChart.ts#L201
React Hook useCallback has missing dependencies: 'maxZoomMillimetrePerPx', 'minZoomMillimetrePerPx', 'yOffset', and 'yZoom'. Either include them or remove the dependency array
build: ui-charts/src/manchette/useManchetteWithSpaceTimeChart/hooks/useManchetteWithSpaceTimeChart.ts#L242
React Hook useEffect has missing dependencies: 'drawingHeightWithoutTopPadding', 'isProportional', 'pixelRect', 'rect', 'spaceTimeChartRef', 'yOffset', 'yZoom', and 'zoomMode'. Either include them or remove the dependency array
build: ui-charts/src/manchette/useManchetteWithSpaceTimeChart/hooks/useManchetteWithSpaceTimeChart.ts#L370
'height' is already declared in the upper scope on line 67 column 3
build: ui-charts/src/manchette/useManchetteWithSpaceTimeChart/hooks/useManchetteWithSpaceTimeChart.ts#L437
React Hook useMemo has missing dependencies: 'isProportional', 'rect', 'spaceOrigin', and 'timeOrigin'. Either include them or remove the dependency array
build: ui-charts/src/manchette/useManchetteWithSpaceTimeChart/hooks/useManchetteWithSpaceTimeChart.ts#L453
Replace `()·=>·zoomValueToSpaceScale(minZoomMillimetrePerPx,·maxZoomMillimetrePerPx,·yZoom),·[yZoom,·minZoomMillimetrePerPx,·maxZoomMillimetrePerPx]` with `⏎····()·=>·zoomValueToSpaceScale(minZoomMillimetrePerPx,·maxZoomMillimetrePerPx,·yZoom),⏎····[yZoom,·minZoomMillimetrePerPx,·maxZoomMillimetrePerPx]⏎··`