-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PB-901: Modify name of KML file #1071
base: develop
Are you sure you want to change the base?
Conversation
web-mapviewer Run #3574
Run Properties:
|
Project |
web-mapviewer
|
Run status |
Failed #3574
|
Run duration | 04m 13s |
Commit |
30d5bb9b8e: WIP fix tests
|
Committer | Pascal Barth |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
1
|
Flaky |
0
|
Pending |
21
|
Skipped |
0
|
Passing |
210
|
Tests for review
tests/cypress/tests-e2e/drawing.cy.js • 1 failed test • e2e/electron/mobile
Test | Artifacts | |
---|---|---|
Drawing module tests > others > can export the drawing/profile in multiple formats |
Test Replay
Screenshots
|
d2006f0
to
912ebb1
Compare
065f160
to
bed4234
Compare
Apparently i made a mistake during the rebase so most of my changes are gone, so i have to insert the right code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't keep console.log
when pushing code.
If you feel this log could help us later down the line, you can use the logging utils from src/utils/logging
(there's a debug()
or error()
function that can be imported from this file)
f39f35e
to
04ce033
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the user's perspective it doesn't really make sense that they can't start by filling the name of what they want to draw and then start drawing.
As you've already used a ref
to store the name of the drawing (of the KML), I'd really want that we can edit this before the KML even exists. In the onSaveName
, we could check that the KML exists before dispatching the change, and watch the activeKmlLayer for initial creation to set the name correctly.
I think this would really be better for user experience, I'm betting on multiple question/helpdesk interactions with question like "Why can't I change the drawing name"
4699f9d
to
7100ce1
Compare
Adding all relevant i18n keys for this new input. Showing a tooltip (while disabling the input) telling the user it's not possible to change the drawing name while there is nothing drawn. This was the easiest way of dealing with this input, as storing the value before a KML was present, or creating an empty one, was really complicated to manage down the line. So by waiting for a KML (with at least a feature) to be present, we can safely change the KML name without having too much defensive code, or having to store the drawing name in Vuex (or move this part to the DrawingModule, changing a ton of things)
7100ce1
to
754c82b
Compare
When you change the name and then click on "Retour / Terminer Dessin" you are returned to the main menu but there is still the loading indication at the top so there might be an issue |
Test link