Yohan Boniface
1aaea0beb9
feat: introduce Map.share_status=DRAFT and DELETED
2024-12-10 15:14:12 +01:00
David Larlet
5b32e2ac03
fix( #2355 ): correctly reset Dialog’s returnValue
...
Fixes #2355
2024-12-09 18:16:41 -05:00
Yohan Boniface
d0156bc7a6
fixup: make sure to redraw tile after a .umap import ( #2347 )
...
Test & Docs / tests (postgresql, 3.10) (push) Waiting to run
Test & Docs / tests (postgresql, 3.12) (push) Waiting to run
Test & Docs / lint (push) Waiting to run
Test & Docs / docs (push) Waiting to run
Broken since
20b2290d00
Since started as a simple fix, but:
- I first thought my previous fix of the failing test
`test_import_umap_from_textarea` was not a real fix, so I changed a bit
the way we mock tiles URL in tests, but at the end the test was failing
for good reasons
- since 20b2290d00
the reset of tilelayer
was not called anymore after importing a umap file, so I first made a
quick fix for this
- then I decided to refactor a bit more render and propagate, so
`importRaw` would pass the exact imported properties (instead of trying
to blindly target with some properties), and to remove a call to
`propagate`, which at the end should disappear in favor of `render` with
better targeting
2024-12-09 13:12:56 +01:00
Yohan Boniface
f3c95bd13d
chore: refactor render and propagate to better target UI changes
2024-12-07 15:41:16 +01:00
Yohan Boniface
bf2ed185db
fix: make sure to redraw tile after a .umap import
...
Broken since 20b2290d00
2024-12-07 13:02:04 +01:00
Yohan Boniface
4070da392a
chore: catch all "tile*" URL in playwright
2024-12-07 13:01:41 +01:00
Yohan Boniface
42f74e1554
fix: disable for real dragging the map on mobile when scrollWheelZoom is false
...
Changing map options at this stage is too late.
cf #2340
2024-12-06 11:27:30 +01:00
Yohan Boniface
97ff26b6e8
fix: make that renderUI also recompute scrollWheelZoom
...
Test & Docs / tests (postgresql, 3.10) (push) Waiting to run
Test & Docs / tests (postgresql, 3.12) (push) Waiting to run
Test & Docs / lint (push) Waiting to run
Test & Docs / docs (push) Waiting to run
Otherwise it does not change the behaviour when changing the setting.
2024-12-05 18:39:40 +01:00
Yohan Boniface
b7649a5e47
fix: Avoid map-panning on mobile using two fingers navigation ( #2340 )
...
If scrollWheelZoom option is false we deactivate leaflet dragging
options only on mobile
2024-12-05 18:38:08 +01:00
Yohan Boniface
92431d3b83
fix: do not redraw tilelayers each time a map property is changed ( #2342 )
2024-12-05 18:32:47 +01:00
Yohan Boniface
20b2290d00
fix: do not redraw tilelayers each time a map property is changed
2024-12-05 18:32:05 +01:00
Yohan Boniface
b692cb0cd1
chore: rename Importer.isValid to Importer.canSubmit
...
We are not really checking the validity of the form.
2024-12-05 18:03:30 +01:00
Yohan Boniface
a9b13c709d
feat(importer): check "copy" as default action
...
Let's make it simpler for new comers, and advanced users will know
where to click to change the behaviour.
2024-12-05 18:00:34 +01:00
Yohan Boniface
50efbc25be
feat: add a disabled/active mode to the submit button of import panel
...
cf #2302
2024-12-05 18:00:26 +01:00
Yohan Boniface
d99fe70e36
feat: display importers in a dialog instead of direclty in the form
...
The goal is to keep the form smaller, specifically to keep the
submit button visible as much as possible.
2024-12-05 17:59:03 +01:00
Yohan Boniface
d64cdae987
chore: make that Importer extends WithTemplate
...
Another step is needed to use this.elements instead of this.qs
2024-12-05 17:59:03 +01:00
Yohan Boniface
da86020a0b
feat: add icon-magic in 16-white.svg
2024-12-05 17:59:03 +01:00
Yohan Boniface
7f3726ddd1
feat: display an image from Panoramax in OSM template when tag is defined ( #2338 )
...

I initially just wanted to work on that simple Panoramax feature, but
faced a bunch of bugs!
- one bad var remaining since whatever refactor (and no tests for this
popup template!)
- title was duplicated, since whatever refactor (and not tests for
this…)
- title text was in black on blue background
2024-12-05 17:36:07 +01:00
Yohan Boniface
2c601e483d
feat: allow to configure the default label keys per instance ( #2291 )
...
fix #2289
Let's add "nom" in OSM France and ANCT instances, then, to make users
experience smoother (a lot of imported data contains a "nom" column, and
no "name" nor "title").
2024-12-05 17:35:48 +01:00
Yohan Boniface
171aba6676
feat: add basic autocompletion on inputs expecting a field name ( #2281 )
...
Eg. the labelKey or filterKey input.
2024-12-05 17:32:27 +01:00
Yohan Boniface
82853f7ade
chore: add very minimal test for OSM popup template
2024-12-05 17:29:30 +01:00
Florent Triquet
acbdfda581
fix: Avoid map-panning on mobile using two fingers navigation
...
If scrollWheelZoom option is false we deactivate leaflet dragging options only on mobile
2024-12-05 14:11:05 +01:00
Yohan Boniface
e012d57e5c
feat: make expression persistent in the overpass importer
...
In other words: fill in the "tags" input with the latest
typed expression.
Otherwise, when making tries with overpass imports, one have to
type it again and again (it's available through the autocomplete,
though, but it's not obvious and it's less friendly IMHO).
2024-12-05 12:42:21 +01:00
Yohan Boniface
6a0bc9443b
feat: display an image from Panoramax in OSM template when tag is defined
2024-12-05 11:57:48 +01:00
Yohan Boniface
4949fcb4a4
feat: try to guess RGB from color name when element is not in DOM
...
We often need to compute the text/icon constrast color, but often
the element is not yet in the DOM, so we can't get the background
easily. Let's have a fallback for that instead of trying to have
"load" events everywhere.
2024-12-05 11:53:01 +01:00
Yohan Boniface
430dede0dd
fix: fix broken OSM template
2024-12-05 11:46:52 +01:00
Yohan Boniface
d9c04c7d0a
fix: do not render normal popup title in OSM template
2024-12-05 11:46:26 +01:00
Yohan Boniface
8f7e5c7252
chore: add missing import in cadastrefr
Test & Docs / docs (push) Has been cancelled
Test & Docs / tests (postgresql, 3.10) (push) Has been cancelled
Test & Docs / tests (postgresql, 3.12) (push) Has been cancelled
Test & Docs / lint (push) Has been cancelled
2024-12-03 18:07:26 +01:00
Yohan Boniface
c9d532508d
chore: change cadastrefr buttons ( #2333 )
...
We remove the cancel button and change the accept label.
2024-12-03 17:56:57 +01:00
Yohan Boniface
6221b709f4
fix: importer.map is undefined in geodatamine importer ( #2332 )
...
Broken since the map split I guess.
2024-12-03 17:54:20 +01:00
Yohan Boniface
26ff82e838
chore: change cadastrefr buttons
...
We remove the cancel button and change the accept label.
2024-12-03 16:24:30 +01:00
Yohan Boniface
8fa26a02a2
fix: importer.map is undefined
...
Broken this the map split I guess.
2024-12-03 16:21:37 +01:00
Yohan Boniface
9a900319af
feat: swap import and settings buttons in edit toolbar
...
fix #2297
2024-12-03 15:20:22 +01:00
Yohan Boniface
8569b827ca
fix: compute length of all shapes for MultiLineString (not only first) ( #2310 )
2024-12-02 19:46:45 +01:00
Yohan Boniface
666a92ec44
fix: compute length of all shapes for MultiLineString not only first
2024-12-02 19:39:57 +01:00
Yohan Boniface
2f776dab59
feat: highlight importer URL field when it is fulfilled ( #2323 )
...
Very small step of #2302

2024-12-02 19:04:04 +01:00
Yohan Boniface
bba9487847
feat: highlight importer URL field when it is fulfilled
...
cf #2302
2024-12-02 18:56:24 +01:00
Yohan Boniface
177a4edc1d
fix: broken ctrl+i and ctrl+o ( #2322 )
2024-12-02 17:19:53 +01:00
Yohan Boniface
31c8bf95ba
fix: broken ctrl+i and ctrl+o
2024-12-02 17:10:06 +01:00
Yohan Boniface
f6f42f5e6b
chore: move form css to a separate file
2024-12-02 17:07:06 +01:00
Yohan Boniface
d9998efc0f
Fix reordering of layers ( #2316 )
...
Broken in the map split I guess.
(Only the first line is the fix, the other are just naming, cf the two
commits.)
2024-12-02 15:43:14 +01:00
Yohan Boniface
30d9e43cd4
Add logo for social_core.backends.keycloak.KeycloakOAuth2 ( #2258 )
Test & Docs / tests (postgresql, 3.10) (push) Waiting to run
Test & Docs / tests (postgresql, 3.12) (push) Waiting to run
Test & Docs / lint (push) Waiting to run
Test & Docs / docs (push) Waiting to run
2024-12-02 13:14:06 +01:00
Yohan Boniface
1a88c11289
fix: don't show default label if another is found in features edit
2024-12-02 12:58:19 +01:00
Yohan Boniface
78d6699a81
feat: allow to configure the default label keys per instance
...
fix #2289
2024-12-02 12:58:19 +01:00
Yohan Boniface
35b541f200
chore: better naming in layer reordering
2024-12-02 12:55:57 +01:00
Yohan Boniface
8624209e1b
fix: iter on the right elements after reordering layers
2024-12-02 12:55:57 +01:00
Yohan Boniface
471de78ab3
chore: fix failing test
2024-12-02 12:46:09 +01:00
Yohan Boniface
e33fc787ab
fix: do not fail when navigating with popup arrows in cluster mode ( #2307 )
...
Test & Docs / tests (postgresql, 3.10) (push) Has been cancelled
Test & Docs / tests (postgresql, 3.12) (push) Has been cancelled
Test & Docs / lint (push) Has been cancelled
Test & Docs / docs (push) Has been cancelled
- make sure we have correct `this` in callback
- do not call anymatePan if icon is not added to map (because
clusterized)
2024-11-29 21:43:52 +01:00
Yohan Boniface
ca127c8c3c
fix: do not fail when navigating with popup arrows in cluster mode
...
- make sure we have correct `this` in callback
- do not call anymatePan if icon is not added to map (because clusterized)
2024-11-29 18:32:14 +01:00
David Larlet
b6229a05b7
Better login page styles and incentive ( #2293 )
...
Test & Docs / tests (postgresql, 3.10) (push) Has been cancelled
Test & Docs / tests (postgresql, 3.12) (push) Has been cancelled
Test & Docs / lint (push) Has been cancelled
Test & Docs / docs (push) Has been cancelled
Fixes https://github.com/umap-project/umap-dsfr/issues/21
Rel.
24f23874f7
2024-11-22 09:29:47 -05:00