Skip to content

PB-419 : Add feedback indicating absence of layers when pressing 'compare'#1294

Merged
sami-nouidri-swisstopo merged 2 commits intodevelopfrom
bug-PB-419-user-feedback-compare-slider
Apr 14, 2025
Merged

PB-419 : Add feedback indicating absence of layers when pressing 'compare'#1294
sami-nouidri-swisstopo merged 2 commits intodevelopfrom
bug-PB-419-user-feedback-compare-slider

Conversation

@sami-nouidri-swisstopo
Copy link
Contributor

@sami-nouidri-swisstopo sami-nouidri-swisstopo commented Apr 11, 2025

Issue : When pressing 'compare' on a map with no active layers, the user had no feedback letting him know why the slider wasn't showing up.

Fix : Added a hint which is displayed when no layers are active

Here's a preview :
image

Note : translation keys are temporary, needs to be confirmed with @Luke252

Test link

@cypress
Copy link

cypress bot commented Apr 11, 2025

web-mapviewer    Run #5019

Run Properties:  status check passed Passed #5019  •  git commit c134955e2a: Merge pull request #1294 from geoadmin/bug-PB-419-user-feedback-compare-slider
Project web-mapviewer
Branch Review develop
Run status status check passed Passed #5019
Run duration 01m 39s
Commit git commit c134955e2a: Merge pull request #1294 from geoadmin/bug-PB-419-user-feedback-compare-slider
Committer Sami Nouidri
View all properties for this run ↗︎

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

@sami-nouidri-swisstopo sami-nouidri-swisstopo force-pushed the bug-PB-419-user-feedback-compare-slider branch from 9b99ccd to 3400f5b Compare April 11, 2025 15:10
Copy link
Contributor

@ltkum ltkum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few small modifications :)

@sami-nouidri-swisstopo sami-nouidri-swisstopo force-pushed the bug-PB-419-user-feedback-compare-slider branch 2 times, most recently from 6be27bd to 5c94acb Compare April 14, 2025 09:40
@sami-nouidri-swisstopo sami-nouidri-swisstopo force-pushed the bug-PB-419-user-feedback-compare-slider branch from 5c94acb to adcedb0 Compare April 14, 2025 09:41
"no_file": "Keine Datei",
"no_layer_found": "Keine Layer gefunden",
"no_layers_info": "Kein Layer auf der Karte",
"no_layers_info_compare" : "Sie benötigen mindestens eine sichtbare Layer, um das Vergleichstool zu verwenden.",
Copy link

@Luke252 Luke252 Apr 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Sie benötigen mindestens ein sichtbarer Datensatz, um das Vergleichen Werkzeug zu verwenden."
⚠️ IMPORTANT HERE -> TO use the compare tool, one needs to have 2 Layers activated, not only 1... What's the purpose of this Info?

"no_file": "Nagina datoteca",
"no_layer_found": "Nagut strato chattà",
"no_layers_info": "Nagin layer sin la charta",
"no_layers_info_compare": "Nagin layer chattà",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per utilisar l'instrument da cumparaziun basegni almain ina charta activada.

@sami-nouidri-swisstopo sami-nouidri-swisstopo force-pushed the bug-PB-419-user-feedback-compare-slider branch 2 times, most recently from 49f2376 to cd19365 Compare April 14, 2025 13:00
…pare'

Issue : When pressing 'compare' on a map with no active layers, the user had no
feedback letting him know why the slider wasn't showing up.

Fix : Added a hint which is displayed when no layers are active
@sami-nouidri-swisstopo sami-nouidri-swisstopo force-pushed the bug-PB-419-user-feedback-compare-slider branch from cd19365 to 4cdcf4c Compare April 14, 2025 13:00
@sami-nouidri-swisstopo sami-nouidri-swisstopo force-pushed the bug-PB-419-user-feedback-compare-slider branch from a6f941a to 540eb4c Compare April 14, 2025 14:02
@sami-nouidri-swisstopo sami-nouidri-swisstopo merged commit c134955 into develop Apr 14, 2025
6 checks passed
@sami-nouidri-swisstopo sami-nouidri-swisstopo deleted the bug-PB-419-user-feedback-compare-slider branch April 14, 2025 14:22
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.

3 participants