Commit graph

938 commits

Author SHA1 Message Date
David Larlet
23053a26fc Correct tests fixtures for options permissions 2023-05-26 14:12:08 -04:00
David Larlet
c5b19728f0 Fix sinon’s fakeServer’s URLs with /?date param
Since this commit 97e2df0a8d tests were broken because the URL has an extra date parameter to update the cache for datalayers. With the new regexp, we match these new URLs with the fakeServer from sinon.

Also update sinon to v15.
2023-05-26 13:39:58 -04:00
David Larlet
06a354730b Apply PrettierJS to tests files
Command: `make pretty filepath="umap/static/umap/test/*"`
2023-05-26 13:25:21 -04:00
David Larlet
7f85684d52
Merge pull request #1100 from umap-project/stats-view
Add a very basic `/stats/` JSON view
2023-05-23 13:05:11 -04:00
David Larlet
6f72df82b7 Improve stats view testing with another user 2023-05-23 12:09:10 -04:00
David Larlet
deb0ab09d3 Add one hour cache to the stats view 2023-05-23 11:51:54 -04:00
David Larlet
9d752ea306 Add a very basic /stats/ JSON view
Will be useful to feed munin for instance.
2023-05-22 17:47:04 -04:00
Yohan Boniface
b41a8cd39a
Merge pull request #1099 from umap-project/1090-followup
Follow up on #1090 for overlay’s opacity
2023-05-22 23:14:15 +02:00
David Larlet
b4b5497b09 Follow up on #1090 for overlay’s opacity
I missed that one and I fixed a bug in the meantime setting a correct label (vs. invisible placeholder for an input of type range).

I set a fallback on the datalist id in case no label is specified (which is probably not a good idea).
2023-05-22 14:41:45 -04:00
Yohan Boniface
32873b7fe3
Merge pull request #1092 from umap-project/713-better-anonymous-editing
Do not display an alert if the map is not created
2023-05-20 08:56:52 +02:00
Yohan Boniface
908dd7cc00
Merge pull request #1091 from umap-project/887-help-box-width
Max width for the help box (on small screens)
2023-05-19 18:27:40 +02:00
David Larlet
f83a666aa1 Do not display an alert if the map is not created
Refs #713, otherwise that first message is displayed and then override by the map creation one.
2023-05-19 11:32:40 -04:00
David Larlet
f604c12be3 Max width for the help box (on small screens)
Fix #887 as suggested by @esteban-em
2023-05-19 10:21:34 -04:00
Yohan Boniface
cd32b0eb3e
Merge pull request #1090 from umap-project/877-sliders-thickness
Display the steps for inputs of type range
2023-05-19 12:09:06 +02:00
Yohan Boniface
6348636324
Merge pull request #1089 from umap-project/lazy-load-tile-layers-thumbnails
Lazy load tile layers thumbnails
2023-05-19 11:24:25 +02:00
David Larlet
6156993536 Display the steps for inputs of type range
Fix #877
2023-05-18 14:20:46 -04:00
David Larlet
18cb5ba7c6 Lazy load tile layers thumbnails
The list can be pretty big (like on OSMfr).
2023-05-18 12:54:36 -04:00
David Larlet
d0f89c3be2
Merge pull request #1086 from umap-project/lebab-arrow
Install and apply Lebab for JS arrows’ conversions
2023-05-17 10:59:19 -04:00
David Larlet
d88eee9ca4 Manual lebab conversions 2023-05-16 16:19:14 -04:00
Yohan Boniface
ccea14bd56 Bump requests 2023-05-16 15:02:47 +02:00
Yohan Boniface
2794a018b7 Bump psycopg 2023-05-16 15:01:50 +02:00
Yohan Boniface
5938b87cfd Bump Pillow 2023-05-16 15:00:06 +02:00
Yohan Boniface
0229e5aebf Bump social-auth deps 2023-05-16 14:57:34 +02:00
Yohan Boniface
a6a9ff528a changelog 2023-05-16 10:34:43 +02:00
Yohan Boniface
317a8ba429
Merge pull request #683 from umap-project/fav
Allow to star maps and retrieve starred maps
2023-05-15 15:40:21 +02:00
Yohan Boniface
a2b1b7bc88 Refactor UserMaps and UserStars views 2023-05-15 14:50:18 +02:00
Yohan Boniface
40f40038f8 Fix url order for retrieving user stars
Since that initial PR, the username regex has been more gready.
2023-05-15 12:22:28 +02:00
Yohan Boniface
30f9612a12 Adapt star icon bg position after rebase 2023-05-15 12:22:28 +02:00
Yohan Boniface
8c113d9a19 Rename MapStar view in ToggleMapStarStatus 2023-05-15 12:22:28 +02:00
Yohan Boniface
1c5ffd8136 Update umap/views.py
Co-authored-by: David Larlet <3556+davidbgk@users.noreply.github.com>
2023-05-15 12:22:28 +02:00
Yohan Boniface
37b4d05da5 (WIP) Allow to star map and retrieve starred maps 2023-05-15 12:22:26 +02:00
David Larlet
70c74455b0
Merge pull request #1087 from umap-project/898-iframe-geolocation
Allow geolocation from iframe embeds, fix #898
2023-05-12 14:55:04 -04:00
David Larlet
ffeabb7d49
Merge pull request #1084 from umap-project/1025-no-limits
Remove the limit of visible maps in user’s view
2023-05-12 14:54:07 -04:00
David Larlet
d859b3f153 Allow geolocation from iframe embeds, fix #898 2023-05-12 14:12:56 -04:00
David Larlet
db2da8f407
Merge pull request #1085 from umap-project/prettierjs
Apply PrettierJS to the whole codebase
2023-05-12 14:10:07 -04:00
David Larlet
838bd73458 Install and apply Lebab for JS arrows’ conversions 2023-05-12 14:04:59 -04:00
David Larlet
f43742212b Apply PrettierJS to the whole codebase 2023-05-12 13:57:03 -04:00
David Larlet
da1e25be2a Remove the limit of visible maps in user’s view
It should not have any performance issue given that we paginate over the list anyway.

Fix #1025
2023-05-12 13:51:39 -04:00
Yohan Boniface
7dda4a6da0
Merge pull request #1082 from umap-project/mutable-search
Allow to create search index without changing unaccent mutability
2023-05-12 16:42:14 +02:00
Yohan Boniface
e956dc7ede
Merge pull request #1083 from umap-project/locate-flyTo
Use flyTo option in locate if map settings aks for it
2023-05-11 19:53:52 +02:00
Yohan Boniface
2bcac67dec Use flyTo option in locate if map settings aks for it 2023-05-11 12:34:39 +02:00
Yohan Boniface
e3d5bd794f black is a colour 2023-05-11 11:33:30 +02:00
Yohan Boniface
1038836a72 Use Django full text instead of custom SQL 2023-05-11 11:33:08 +02:00
Yohan Boniface
005a759b81
Update umap/views.py
Co-authored-by: Adrien nayrat <adrien.nayrat@gmail.com>
2023-05-10 19:24:33 +02:00
Yohan Boniface
7384fda61a Allow to create search index without changing unaccent mutability
cf #519
2023-05-10 11:47:29 +02:00
Yohan Boniface
1fce475e41 i18n 2023-05-10 10:25:14 +02:00
David Larlet
37bca27734
Add issue templates 2023-05-09 15:03:31 -04:00
Yohan Boniface
2ec83fbe36
Merge pull request #1079 from umap-project/965-security-policy
Create SECURITY.md to report security issues
2023-05-05 22:03:50 +02:00
Yohan Boniface
15010f2f24
Merge pull request #1078 from umap-project/963-flexibility-in-requirements
Allow versions of Django >= 4.1
2023-05-05 22:03:04 +02:00
Yohan Boniface
21cd86a217
Merge pull request #1077 from umap-project/missing-caracter
Typo: missing `h` in character’s string
2023-05-05 21:59:44 +02:00