David Larlet
64ad6f0273
docs: faq entry for map permissions and translation
...
Co-authored-by: Yohan Boniface <yohanboniface@free.fr>
2024-12-23 11:40:31 -05:00
David Larlet
f69e8217cb
chore: better wording and style for the 403 page
2024-12-23 10:44:34 -05:00
David Larlet
e314fa18ad
chore: optimize logocyan’s SVG code
...
With https://jakearchibald.github.io/svgomg/
2024-12-23 10:33:15 -05:00
David Larlet
aedc26fe6d
docs: add English documentation for map statuses
...
Refs #2390
2024-12-23 10:28:24 -05:00
Yohan Boniface
ddddf4ece3
wip: add a 403.html template
2024-12-23 15:58:11 +01:00
Yohan Boniface
d4fb92ec56
Fix duplicated content during sync ( #2388 )
...
Test & Docs / lint (push) Waiting to run
Test & Docs / docs (push) Waiting to run
Test & Docs / tests (postgresql, 3.10) (push) Waiting to run
Test & Docs / tests (postgresql, 3.12) (push) Waiting to run
Here are the main fixes:
- mark a synched datalayer as loaded (so the peer does not try to get
data from the server)
- do not mark synched datalayers as dirty
- properly consume the lastKnownHLC, so to get an accurate list of
operations
fix #2219
2024-12-19 17:38:39 +01:00
Yohan Boniface
650110fe8a
feat: reconnect websocket on disconnection ( #2389 )
...
This is a port of this PR: #2235
(But it was easier to copy-paste than rebase, given the split of umap.js
and co.)
2024-12-19 17:38:02 +01:00
Yohan Boniface
36fdb8190c
chore: stringify sync payload before putting it in the console
...
This allow to have them displayed by playwright in the python
console.
Co-authored-by: David Larlet <david@larlet.fr>
2024-12-19 17:00:30 +01:00
Yohan Boniface
56f2d3d2f9
feat: reconnect websocket on disconnection
...
This is a port of this PR: #2235
(But it was easier to copy-paste than rebase, given the split of umap.js
and co.)
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
Co-authored-by: David Larlet <david@larlet.fr>
2024-12-19 16:51:10 +01:00
Yohan Boniface
80152bf4fb
fix: update star icon on star/unstar ( #2387 )
2024-12-19 15:23:36 +01:00
Yohan Boniface
9ddca50d21
fix: honour carriage returns in layer description (in caption panel) ( #2386 )
...
This could have been a four letters fix (adding class "text"), but I've
seen that `Caption` was still using `DomUtil` instead of `WithTemplate`,
so I made this little effort more…
2024-12-19 15:23:16 +01:00
Yohan Boniface
1996e315e4
chore: allow to create non dirty DataLayer
...
There are two situations where we want to create "non dirty" datalayers:
- at normal load, we create datalayers that already exist in DB
- at sync, we create datalayers that will be saved by other peer
2024-12-19 13:38:09 +01:00
Yohan Boniface
dd7641c92e
chore: mark synched datalayers as "loaded"
...
Otherwise, when they will get the "_referenceVersion" later, they
will call the server to fetch the data (while they already have
the data, from the sync itself)
2024-12-19 13:38:09 +01:00
Yohan Boniface
6caf4c3ed1
chore: properly consumme lastKnownHLC on list operations call
2024-12-19 13:38:09 +01:00
Yohan Boniface
471abe1f1b
chore: honour "sync" parameter in layer.setReferenceVersion
2024-12-19 13:38:09 +01:00
Yohan Boniface
4ea5a28f04
chore: no need to call layer.redraw in layer.render()
...
We already call hide/show, which is what redraw does
2024-12-19 13:38:09 +01:00
Yohan Boniface
d24f05907c
chore: add failing test for #2219
2024-12-19 13:38:09 +01:00
Yohan Boniface
0bc4900b16
fix(caption): honour carriage returns in datalayer description
...
fix #2385
2024-12-19 11:10:57 +01:00
Yohan Boniface
0e78d58c03
chore: use WithTemplate for Caption
2024-12-19 11:10:57 +01:00
Yohan Boniface
f93d0b5ca7
fix: update star icon on star/unstar
2024-12-19 10:44:32 +01:00
Yohan Boniface
24511d796d
chore(tests): use new_page fixture in login one
...
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
So to have the js console relayed in the terminal
2024-12-18 17:44:30 +01:00
Yohan Boniface
0eedc47079
2.8.0
Test & Docs / docs (push) Waiting to run
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
2024-12-18 12:16:58 +01:00
Yohan Boniface
9e418c2ab0
chore: escape backticks in Makefile printf
...
Otherwise they are executed by the shell as subcommands…
2024-12-18 12:05:13 +01:00
Yohan Boniface
631e3a7fd3
fix: do not unset map dirty status if it has not yet been saved once ( #2382 )
2024-12-18 11:45:43 +01:00
Yohan Boniface
7b59cf4afb
fix: do not try to restore a newly created layer on reset ( #2381 )
...
When asking for cancel, a layer that has not yet been saved to the
server should only be erased, no need to try to restore its previous
state.
2024-12-18 11:45:27 +01:00
Yohan Boniface
d00b4e1da9
fix: do not unset map dirty status if it has not yet been saved once
2024-12-18 11:36:54 +01:00
Yohan Boniface
1ead369487
fix: do not try to restore a newly created layer on reset
...
When asking for cancel, a layer that has not yet been saved to the
server should only be erased, no need to try to restore its previous
state.
2024-12-18 11:21:36 +01:00
Yohan Boniface
32acdc2070
feat: experimental popup template for wikipedia ( #2365 )
...
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
When the data contain a `wikipedia` attribute, like used in OSM data
(see https://wiki.openstreetmap.org/wiki/Key:wikipedia ), this template
will fetch the image and an extract for the given page.

fix #661
2024-12-17 20:29:28 +01:00
Yohan Boniface
a8ed8c0d3d
2.8.0b0
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-17 19:03:55 +01:00
Yohan Boniface
b444380daa
fix: store the "active" status of a feature ( #2378 )
...
Otherwise, when the marker is redrawn by Leaflet itself, it will lose
the status (the class we added manually will not be added by Leaflet).
Eg. if we click on a marker on the map border, this will move the map to
make the marker popup fit the screen, and thus this will redraw the
marker icon, which will then lose the "active" flag class.
2024-12-17 18:50:39 +01:00
Yohan Boniface
92df1d792a
fixup: escape Wikipedia HTML, just in case
2024-12-17 18:49:49 +01:00
Yohan Boniface
6e5540fe79
fixup: cache wikipedia calls and be a bit more defensive
2024-12-17 18:44:21 +01:00
Yohan Boniface
b7173d4629
fixup: allow to display asynchronous content in the panel too
2024-12-17 18:44:21 +01:00
Yohan Boniface
8a929d2352
fixup: allow aynchronous popups
2024-12-17 18:44:21 +01:00
Yohan Boniface
7670989798
fixup: bigger images from wikipedia
2024-12-17 18:44:21 +01:00
Yohan Boniface
573a065e05
wip
2024-12-17 18:44:21 +01:00
Yohan Boniface
dcaddef57c
feat: allow to edit datalayer name in datalayers list ( #2349 )
...
fix #1995
https://github.com/user-attachments/assets/b16d7d1b-eee1-4da2-93b9-2aac127051ba
2024-12-17 18:43:51 +01:00
Yohan Boniface
2bee0bf3d2
fix: store the "active" status of a feature
...
Otherwise, when the marker is redrawn by Leaflet itself, it will lose
the status (the class we added manually will not be added by Leaflet).
Eg. if we click on a marker on the map border, this will move the map
to make the marker popup fit the screen, and thus this will redraw the
marker icon, which will then lose the "active" flag class.
2024-12-17 18:41:37 +01:00
Yohan Boniface
8f3e9ee546
fix: do not autoescape static tag ( #2376 )
...
When using django-storage S3, this will escape the final static URL,
containing query string (so & will become &).
2024-12-17 18:30:06 +01:00
Yohan Boniface
df3adbc85e
fix: bring marker to front on highlight ( #2377 )
...
fix #2351
The actual zIndex of a marker is computed by Leaflet, not set in CSS.
2024-12-17 18:28:52 +01:00
Yohan Boniface
7c986e5aea
fix: teach FormBuilder where to look for default values ( #2374 )
...
UMap will look into the schema for default values, but untill now
FormBuilder wasn't.
This fix is not the real fix we want, but let's make this last until
then.
The real fix is to refactor schema and make obj.properties a Proxy
object that will then be consumed by FormBuilder as it is now.
2024-12-17 18:19:07 +01:00
Yohan Boniface
1be00ed8ca
fix: show private/draft maps in team maps for members ( #2373 )
2024-12-17 18:16:55 +01:00
Yohan Boniface
de9b686584
chore: try to make biome ignore vendors/ ( #2368 )
...
Seems to be working today, no damn idea why it is and it was not before.
2024-12-17 18:15:48 +01:00
Yohan Boniface
3eba27f6ea
fixup: fix tilelayer switch not saved anymore ( #2367 )
...
Since map split.
2024-12-17 18:14:48 +01:00
Yohan Boniface
82708b1e53
fix: bring marker to front on highlight
...
fix #2351
2024-12-17 15:29:55 +01:00
Yohan Boniface
064473c816
chore: add default_acl in S3 options in documentation
2024-12-17 13:19:25 +01:00
Yohan Boniface
6db3032bdb
fix: do not autoescape static tag
...
When using django-storage S3, this will escape the final static URL,
containing query string (so & will become &).
2024-12-17 13:07:46 +01:00
Yohan Boniface
9473a8552f
fix: teach FormBuilder where to look for default values
...
UMap will look into the schema for default values, but untill now
FormBuilder wasn't.
This fix is not the real fix we want, but let's make this last until
then.
The real fix is to refactor schema and make obj.properties a Proxy
object that will then be consumed by FormBuilder as it is now.
2024-12-17 11:19:03 +01:00
Yohan Boniface
8a38dd63c9
fix: show private/draft maps in team maps for members
2024-12-17 10:37:07 +01:00
Yohan Boniface
05c27aed98
feat: parse files in parallel at import when multiple ( #2372 )
...
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
cf https://github.com/umap-project/umap/pull/2363#discussion_r1882966275
2024-12-16 21:36:42 +01:00