Yohan Boniface
82b8564520
chore: refine undo/redo buttons
...
Co-authored-by: David Larlet <david@larlet.fr>
Co-authored-by: Aurélie Jallut <aurelie.jallut@beta.gouv.fr>
2025-04-07 18:16:37 +02:00
Yohan Boniface
5070a5e5b4
chore: refine main search form
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-07 18:11:49 +02:00
Yohan Boniface
06baeb718e
fix: fix Textarea trying to clear this.input
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-07 18:09:35 +02:00
Yohan Boniface
f186d3266c
chore: refine map list card CSS
...
Co-authored-by: David Larlet <david@larlet.fr>
Co-authored-by: Aurélie Jallut <aurelie.jallut@beta.gouv.fr>
2025-04-07 16:34:09 +02:00
Yohan Boniface
f4ae51ae7e
fix: give priority to small usernames when query is small
...
Basically, when the search is "joe" we first try to search for
an exact account named "joe", and fallback to normal flow when
nothing matches.
fix #2591
2025-04-07 15:24:44 +02:00
Yohan Boniface
49bba24b90
feat: remove confirm for feature delete
2025-04-07 10:48:34 +02:00
Yohan Boniface
a2749ce805
feat: remove confirm for datalayer delete
...
Now that we have granular undo, no needs for this I'd say.
2025-04-07 10:35:39 +02:00
Yohan Boniface
190cac3105
i18n
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
2025-04-04 18:54:51 +02:00
Yohan Boniface
50e354cb18
fix: explicit batch instead of blindly on add data ( #2601 )
2025-04-04 18:54:31 +02:00
Yohan Boniface
34e4955891
fix: use the multichoices for ttl in remote data form ( #2599 )
2025-04-04 18:49:23 +02:00
Yohan Boniface
91c3b098df
wip: return data in DataLayer.importRaw
2025-04-04 18:45:31 +02:00
Yohan Boniface
2967c023f3
fix: do not add auto zoom and center in undo stack ( #2602 )
2025-04-04 18:23:31 +02:00
David Larlet
862f19ee43
fix: use the multichoices for ttl in remote data form
2025-04-04 18:22:51 +02:00
David Larlet
02d3e19450
fix: do not add auto zoom and center in undo stack
...
Co-authored-by: Yohan Boniface <yohanboniface@free.fr>
2025-04-04 11:54:00 -04:00
David Larlet
b342480f3b
fix: explicit batch instead of blindly on add data
...
Co-authored-by: Yohan Boniface <yohanboniface@free.fr>
2025-04-04 11:45:26 -04:00
David Larlet
c5c352cfac
fix: do not export layer ids in umap backup
2025-04-04 11:26:10 -04:00
David Larlet
d6f591b365
fix: remote data loading on import from umap backup ( #2598 )
2025-04-04 11:15:23 -04:00
David Larlet
90bbc72320
fix: restore width and height for default marker icon
...
Co-authored-by: Yohan Boniface <yohanboniface@free.fr>
2025-04-04 11:15:03 -04:00
David Larlet
b05e6ec28c
fix: remote data loading on import from umap backup
2025-04-04 11:05:33 -04:00
David Larlet
0e56e71e87
fix: Minimize the default svg icon for marker
...
Co-authored-by: Yohan Boniface <yohanboniface@free.fr>
2025-04-04 10:28:43 -04:00
Yohan Boniface
5c51a7a735
feat: add keyboard shortcut for redo (ctrl+shift+z) ( #2596 )
...
I've reworked a bit the shortcut handling, as it was only dealing with
ctrl/meta only ones (no shift).
2025-04-04 16:25:04 +02:00
Yohan Boniface
563aee81e1
feat: add keyboard shortcut for redo (ctrl+shift+z)
2025-04-04 16:14:04 +02:00
Yohan Boniface
9e5c985d6c
feat: add minimal "raw" icon shape
2025-04-04 12:02:46 +02:00
Yohan Boniface
32b9217bd2
feat: add Map.tags and allow to edit from client ( #2530 )
...
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
cf #2283
Note: this PR uses ArrayField, which is Postgres only, so this would
officially remove the support of spatialite as it is. I'm not sure at
all uMap still works with spatialite, so maybe that the opportunity to
either add spatialite in the CI and make sure we support it, or remove
it and only target Postgres/PostGIS.
2025-04-03 18:52:17 +02:00
Yohan Boniface
4fd57e0c11
chore: remove tag icons for now
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-03 18:29:39 +02:00
Yohan Boniface
54420568af
chore: refine map fragment card CSS
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-03 18:20:50 +02:00
Yohan Boniface
8c90535105
chore: better CSS for tags in maps list
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-03 17:51:37 +02:00
Yohan Boniface
80a969917a
chore: simplify search form CSS and HTML
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-03 17:51:20 +02:00
Yohan Boniface
6582e85f18
Update the Dockerfile to expose websockets ( #2576 )
...
The Dockerfile now uses ASGI by default (via uvicorn).
2025-04-03 17:16:56 +02:00
Yohan Boniface
023645a160
wip: make Redis service optional in Docker image
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-03 17:12:12 +02:00
Yohan Boniface
e24695b68c
wip: display tags in maps list
2025-04-03 14:51:04 +02:00
Yohan Boniface
db72bfad8d
wip: sort tags by label, not by value
2025-04-03 11:10:36 +02:00
Yohan Boniface
738af24dfc
chore: fix tags related test
2025-04-03 11:10:36 +02:00
Yohan Boniface
06f963c07f
chore: align search form elements
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-03 11:10:36 +02:00
Yohan Boniface
c6ed896a6d
feat: associate icons to tags
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-03 11:10:36 +02:00
Yohan Boniface
1344fe6b46
feat: basic filtering by tags
2025-04-03 11:10:36 +02:00
Yohan Boniface
39f38a9cdf
feat: add Map.tags and allow to edit from client
...
cf #2283
2025-04-03 11:10:33 +02:00
Yohan Boniface
5259cab027
chore: remove saving.js import added by mistake during rebase
2025-03-28 18:00:14 +01:00
Yohan Boniface
7ede27bf0f
chore: top edit bar responsiveness
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-28 18:00:14 +01:00
Yohan Boniface
5807cfbbcd
wip: move undo/redo buttons to the left
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-28 18:00:14 +01:00
Yohan Boniface
e41ad4e069
wip: allow to sync version restore
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-28 18:00:14 +01:00
Yohan Boniface
c933df585c
wip: add test to make sure saving also save remote dirty datalayers
2025-03-28 18:00:14 +01:00
Yohan Boniface
50f2c08ecb
wip: do not call document during JS unittests
2025-03-28 18:00:14 +01:00
Yohan Boniface
d61e045903
wip: allow to sync/undo filter added/removed from table editor
2025-03-28 18:00:14 +01:00
Yohan Boniface
6b2038e83e
wip: permissions does not inherit from ServerStored anymore
2025-03-28 18:00:14 +01:00
Yohan Boniface
0389e9a185
wip: allow to undo/sync rules
...
When editing Rule(s), we are not editing the map data itself, but a
sort of proxy objects. This was done mainly because map.properties.rules
is an array of object, and at this time Leaflet.FormBuilder did not know
how to edit an array (something like properties.rules.0.condition).
Now that we integrated FormBuilder, it still does not know how to do this
but we could teach it, or find another way (real Proxy or use reference
to the original object in the Rule).
2025-03-28 18:00:14 +01:00
Yohan Boniface
a2e864ad73
wip: uncreated map should always appear as dirty
2025-03-28 18:00:14 +01:00
Yohan Boniface
d0fb85d552
wip: DataLayer does not inherit anymore from ServerStored
2025-03-28 18:00:14 +01:00
Yohan Boniface
fa83764c8b
wip: allow DataLayer.clear to be sync and undone
2025-03-28 18:00:14 +01:00
Yohan Boniface
d438a007e4
wip: uMap does not inherit anymore from ServerStored
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-28 18:00:14 +01:00
Yohan Boniface
be52e7ca2f
wip: remove not effective code
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-28 18:00:14 +01:00
Yohan Boniface
172de0e2d0
wip: add permissions related fields in schema
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-28 18:00:14 +01:00
Yohan Boniface
77da6425c2
wip: allow to mark an operation as not undoable
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-28 18:00:14 +01:00
Yohan Boniface
093ed061c1
wip: tests pass
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-28 18:00:14 +01:00
Yohan Boniface
5cb7cb2738
fixup: make sure to toggle remote client state at save too
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-28 18:00:14 +01:00
Yohan Boniface
dfdfae0080
wip: derive the dirty status from the undoManager
...
This should pave the way for removing the SaveManager.
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-28 18:00:14 +01:00
Yohan Boniface
4fd066387d
Update the tests and remove cancel edits
...
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
2025-03-28 18:00:14 +01:00
fa3ba46ca8
Add integration test for batch undo/redo
2025-03-28 18:00:14 +01:00
Yohan Boniface
cb46a5f875
Batch operations
...
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-28 18:00:14 +01:00
Yohan Boniface
cc2625bfac
wip: undo redo
...
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
2025-03-28 18:00:14 +01:00
Yohan Boniface
8292608365
chore: fix HLC comparison
...
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
This change was made by biome, but it breaks unittests, not
sure why but let's revert for now.
2025-03-28 17:59:35 +01:00
Yohan Boniface
ae8cbf39ad
feat: display maps list as a grid now ( #2590 )
...

2025-03-28 16:15:51 +01:00
Yohan Boniface
7c5d821ec8
feat: layers selector in bottom bar ( #2579 )
2025-03-28 16:15:20 +01:00
Yohan Boniface
4e9e828c8f
feat: display maps list as a grid now
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-28 16:05:11 +01:00
Yohan Boniface
79d60d0995
fix: update datalayers switcher when datalayer visibility changes
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-28 15:56:28 +01:00
Yohan Boniface
75457b6d5c
fix: do not fail when trying to read metadata of a missing geojson ( #2592 )
...
Some geojson have been removed by mistake time ago (cf #1003 ), when
someone tries to load a map referencing them, it was until recently just
showing an error message, but since recently we try to get the metadata
from it, and this will crash.
2025-03-28 15:28:13 +01:00
Yohan Boniface
8538db278d
feat: add titles in the text formatting dialog ( #2584 )
...

fix #813
2025-03-28 15:27:30 +01:00
Yohan Boniface
ba9e8ffe9b
chore: apply Biome check ( #2588 )
...
This is mostly imports ordering but there are a couple of subtleties 🐉
There are still 9 errors before we can automatize the check with the CI!
2025-03-28 15:26:52 +01:00
Yohan Boniface
dcf5f1a763
fix: make sure umap.properties.slideshow is defined ( #2583 )
2025-03-28 15:25:19 +01:00
Yohan Boniface
41264e740f
fix: do not fail when trying to read metadata of a missing geojson
...
Some geojson have been removed by mistake time ago (cf #1003 ), when someone
tries to load a map referencing them, it was until recently just
showing an error message, but since recently we try to get the
metadata from it, and this will crash.
2025-03-28 12:58:07 +01:00
Yohan Boniface
953b37a181
fixup: fix tests
2025-03-27 13:14:20 +01:00
Yohan Boniface
9eaf33c118
wip: only show layer selector if there are at least two layers
2025-03-27 13:11:24 +01:00
David Larlet
f2cde6af4e
fixup: positionning of caption bar elements
2025-03-27 13:11:24 +01:00
Yohan Boniface
a4abecbd2c
fixup: only show datalayers with inCaption=true in switcher
2025-03-27 13:11:24 +01:00
Yohan Boniface
254a2018f5
chore: use toggle to switch visibility in datalayer switcher
2025-03-27 13:11:24 +01:00
Yohan Boniface
3df52e002d
wip
2025-03-27 13:11:24 +01:00
David Larlet
82208d618a
chore: apply Biome check
2025-03-26 14:37:56 -04:00
Yohan Boniface
64c7fe1ec9
fix: fix icon and button for version restore
...
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
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-26 18:05:01 +01:00
Yohan Boniface
47c5c0a2f0
chore: remove old JS tests
...
Those are not ran since more than one year, so let's trash.
fix #2260
2025-03-19 08:16:38 +01:00
Yohan Boniface
ecca66ccc2
feat: add titles in the text formatting dialog
...
fix #813
2025-03-19 08:14:33 +01:00
Yohan Boniface
360ca100ba
fix: make sure umap.properties.slideshow is defined
2025-03-18 07:35:10 +01:00
Yohan Boniface
54a3aae912
chore: order importers by name instead of id ( #2578 )
2025-03-17 16:46:22 +01:00
Yohan Boniface
9d4069d9ae
chore: order importers by name instead of id
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-17 16:44:23 +01:00
Yohan Boniface
167bab70c5
feat: add experimental BAN importer ( #2565 )
...
This importer takes a CSV as input, sends it to the BAN API, and then
paste it into the import textarea, so it can be imported as usual.
https://github.com/user-attachments/assets/c13f8580-5c09-4b35-b092-baac664a57a1
2025-03-17 16:39:55 +01:00
Yohan Boniface
d3ed46356d
feat: add experimental BAN importer
...
This importer takes a CSV as input, sends it to the BAN API, and
then paste it into the import textarea, so it can be imported as usual.
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-17 16:20:57 +01:00
Yohan Boniface
f26536bff3
fix: iconUrl field was broken on older browsers
...
fix #2554
2025-03-14 14:50:47 +01:00
Yohan Boniface
1b058ce862
fixup: hide home button in edit mode ( #2562 )
...
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
The button is already on the edit bar.
Would be nicer to have a css transition (like for the bar itself), but
at least with this change it is not duplicated.
2025-03-13 16:52:41 +01:00
Yohan Boniface
a46430c420
fix: import iconUrl as absolute when possible ( #2563 )
...
This will only cover the cases where the icon is set at the map or at
the layer level, not the one of the marker itself.
cf #2552
2025-03-13 16:52:19 +01:00
Yohan Boniface
05e3f5ce3d
fix: use real redraw for datalayer, instead of hide/show ( #2568 )
...
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
The problem we've tried to fix is, during sync:
- peer A is editing a feature
- peer B changes the datalayer of this feature
- edit panel is closed for peer A
2025-03-12 17:41:18 +01:00
Yohan Boniface
c417e94698
fix(sync): fix tilelayer change not synced ( #2569 )
2025-03-12 17:39:19 +01:00
Yohan Boniface
e20648104b
fix: fix tilelayer change not synced
...
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
2025-03-12 13:01:26 +01:00
Yohan Boniface
0c9d5325ba
fix: use real redraw for datalayer, instead of hide/show
...
The problem we've tried to fix is, during sync:
- peer A is editing a feature
- peer B changes the datalayer of this feature
- edit panel is closed for peer A
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
2025-03-12 12:23:54 +01:00
Yohan Boniface
90be14ae89
fix: cast value to string before calling trim
...
fix #2566
2025-03-11 21:43:21 +01:00
Yohan Boniface
003b25d5e0
fix: import iconUrl as absolute when possible
...
This will only cover the cases where the icon is set at the map or
at the layer level, not the one of the marker itself.
cf #2552
2025-03-11 16:20:58 +01:00
Yohan Boniface
ef80396784
fixup: hide home button in edit mode
...
The button is already on the edit bar.
Would be nicer to have a css transition, but at least with this
change it is not duplicated.
2025-03-11 15:32:01 +01:00
Yohan Boniface
d85fc648b1
feat: add new "Back to home" icon ( #2551 )
...
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

2025-03-10 22:31:42 +01:00
Yohan Boniface
bfb17788a4
chore: new icon, colors and title for search buttons
2025-03-10 19:06:39 +01:00
Yohan Boniface
8599199afa
feat: add more users counts in /stats/
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-10 16:38:53 +01:00
Yohan Boniface
7a2bf9fc4c
fixup: let the importer deal with getting the OSM url in search
...
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
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-07 17:58:56 +01:00
Yohan Boniface
b3e39bf654
fixup: square buttons in search results
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-03-07 17:40:16 +01:00