Skip to content

Conversation

@pakb
Copy link
Contributor

@pakb pakb commented Sep 26, 2025

@schtibe schtibe force-pushed the feat-PB-1383-pinia-store branch 5 times, most recently from 69171a7 to bdd5620 Compare October 3, 2025 14:20
@pakb pakb force-pushed the feat-PB-1383-pinia-store branch 2 times, most recently from 0e50331 to f3e9cae Compare October 15, 2025 07:03
this is it, no more JS 🎉
@pakb pakb force-pushed the feat-PB-1383-pinia-store branch from 448f1a4 to 2393419 Compare October 20, 2025 11:40
@cypress
Copy link

cypress bot commented Oct 20, 2025

web-mapviewer    Run #6122

Run Properties:  status check errored Errored #6122  •  git commit 40fc0b7b14: PB-2064: fix GPX drag&drop and Cesium artifacts
Project web-mapviewer
Branch Review feat-PB-1383-pinia-store
Run status status check errored Errored #6122
Run duration 21m 03s
Commit git commit 40fc0b7b14: PB-2064: fix GPX drag&drop and Cesium artifacts
Committer Pascal Barth
View all properties for this run ↗︎

Test results
Tests that failed  Failures 55
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 19
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 125
View all changes introduced in this branch ↗︎

Tests for review

Failed  drawing.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots
Failed  layers.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots
Failed  3d/layers.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots
Failed  legacyParamImport.cy.ts • 17 failed tests • e2e/chrome/mobile

View Output

Test Artifacts
Test on legacy param import > Coordinates import > transfers valid params to the hash part without changing them Test Replay Screenshots
Test on legacy param import > Coordinates import > reproject LV95 coordinates param to EPSG:4326 Test Replay Screenshots
Test on legacy param import > Coordinates import > center where expected when given a X, Y coordinate in LV95 Test Replay Screenshots
Test on legacy param import > Coordinates import > center where expected when given a X, Y coordinate in LV03 Test Replay Screenshots
Test on legacy param import > Layers import > Combines all old layers_*** params into the new one Test Replay Screenshots
Test on legacy param import > Layers import > is able to import an external KML from a legacy param Test Replay Screenshots
Test on legacy param import > Layers import > is able to import an external KML from a legacy adminId query param Test Replay Screenshots
Test on legacy param import > Layers import > don't keep KML adminId in URL after import Test Replay Screenshots
Test on legacy param import > Layers import > is able to import an external KML from a legacy adminId query param with other layers Test Replay Screenshots
Test on legacy param import > Layers import > doesn't show encoding in the search bar when serving a swisssearch legacy url Test Replay Screenshots
The first 10 failed tests are shown, see all 17 tests in Cypress Cloud.
Failed  changeLanguage.cy.ts • 3 failed tests • e2e/chrome/mobile

View Output

Test Artifacts
Change language > on startup > should show the correct language if we ask for it, even if the param is in uppercase Test Replay Screenshots
Change language > in mobile view > should change the language Test Replay Screenshots
Change language > in desktop view > should change the language Test Replay Screenshots

The first 5 failed specs are shown, see all 24 specs in Cypress Cloud.

pakb and others added 13 commits October 20, 2025 14:18
The idea was to have one action per file, and share the reference to the store anyway (through this).
I found this solution on Pinia GitHub tracker vuejs/pinia#983 (comment)

a bit verbose/boilerplate, but that makes it way clearer what is happening in an action, especially now that we want to move all the "complex interactions" the plugins were doing into the store itself.
PB-1979: re-arrange cesium store into multiple files
PB-1979: re-arrange debug store into multiple files
Make it returns the same function type/signature as the one given as input
@pakb pakb force-pushed the feat-PB-1383-pinia-store branch from fc5442f to 639f478 Compare October 21, 2025 14:15
pakb and others added 5 commits October 21, 2025 16:19
@pakb pakb changed the title PB-1383: WIP Pinia store PB-1383: Typescript+Pinia migration Nov 14, 2025
pakb and others added 17 commits November 14, 2025 10:05
and remove now obsolete Vite patch (the issue with Cypress+tsx+sass should be fixed in Vite 7.2.0)

moving our patch for OL in a proper patch, instead of shallow-copying the file in our codebase
Also keeping track of the last selected color/size, and re-applying it for future drawing feature added by the drawing module (if you've selected blue for your current feature, the next you draw will also be blue)
PB-2027: fix icon/text edit popup not working since refactor
Issue: When trying to access the app, if there were external layers, they wouldn't be taken into account and not loaded.

Fix: We remove a check that bypassed the addition of layers to the store at startup.
Issue: When parsing external layers, if we encountered a layer with a sublayer, and both had an identical name, we would enter an infinite loop as we would be finding the base layer over and over again when going through the child to get valid layers.

Temporary fix: If we have sublayers, we only go through the loop if those sublayers have sublayers.

Next step : A more elegant solution would be preferable, as this can still fail if the sublayer has the same name as the base layer and has sub layers of its own.
…irect-in-tests

PB-1383: infinite redirect when external layers have sublayers with the same name
and fix some TS error found in legacyParamImport.cy.ts
@sommerfe sommerfe force-pushed the feat-PB-1383-pinia-store branch 2 times, most recently from a1cccff to 9e6d8d7 Compare December 2, 2025 08:43
pakb added 3 commits December 3, 2025 14:25
while debugging a GPX file from a user, I fixed two issues regarding 3D and GPX:
 - 3D viewer had some artifacts on the terrain tiles, I disabled some post-processing operation and they were gone
 - the GPX file parser wasn't giving any "gpxFileUrl" for local files, and the creation of the layer was raising an error (failing the parsing)
and update the license/version to match our first attempt at publishing some code to npmjs.com 🎉
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants