Commit graph

2534 commits

Author SHA1 Message Date
Yohan Boniface
b3ce523ba2 fix: star control was using old post method
Also, only display it if the user is already logged in, given
we do not deal anymore with login during ajax calls.
2024-02-16 10:59:25 +01:00
Yohan Boniface
3f3392952c 2.0.0a3 2024-02-15 15:10:27 +01:00
Yohan Boniface
97a54b898c changelog 2024-02-15 15:01:58 +01:00
Yohan Boniface
c2853e289f i18n 2024-02-15 14:56:39 +01:00
Yohan Boniface
6c70f80a37
Merge pull request #1610 from umap-project/tableeditor-set-properties
fix: reset table editor properties after creating a new one
2024-02-15 14:53:38 +01:00
Yohan Boniface
a8e37500dd fix: reset table editor properties after creating a new one 2024-02-15 11:50:44 +01:00
Yohan Boniface
a3d1655041
Merge pull request #1595 from umap-project/last-used-icons
feat: show last used pictograms in a separate tab
2024-02-15 11:02:03 +01:00
Yohan Boniface
2dd7266d21 feat: show recent picto in a separate tab 2024-02-15 10:56:07 +01:00
Yohan Boniface
126e47eef9 feat: show last used pictograms in list
This feature was planned in the initial rework of the pictogram
form UI, but not yet done. Some recent discussion in the OSM French
forum reactivated the need for it.

cf https://forum.openstreetmap.fr/t/marker-and-marker-colors/21051
2024-02-15 10:54:59 +01:00
Yohan Boniface
188a535f7d
Merge pull request #1609 from umap-project/default-picto-white
fix: make default picto always white for now
2024-02-15 10:54:29 +01:00
Yohan Boniface
9e805ea8da fix: make default picto always white for now
fix #1594
2024-02-14 18:41:07 +01:00
Yohan Boniface
34608f55c1
Merge pull request #1592 from umap-project/zoomto-from-qs
feat: allow to set zoomTo from query string
2024-02-14 18:34:04 +01:00
Yohan Boniface
709674b7d9
Merge pull request #1607 from umap-project/osm-oauth2
chore: migrate to OAuth 2 for OpenStreetMap backend
2024-02-14 18:31:57 +01:00
David Larlet
81be0df171
Merge pull request #1605 from umap-project/change-license-agpl
Switch license from WTFPL to AGPLv3
2024-02-14 12:27:36 -05:00
Yohan Boniface
7d543ff1b0
Merge pull request #1608 from umap-project/fix-panel-animatezoom
fix: do not try to animate the panel
2024-02-14 18:27:15 +01:00
Yohan Boniface
0dc49d2de3 fix: do not try to animate the panel
The panel inherits from the classic Popup, but given it's fixed on
the UI, it does not make sense to try to move it, and it some
situation there is a race condition that make Leaflet try to animate
but this fails
2024-02-14 17:54:48 +01:00
Yohan Boniface
a99ee90e15 chore: migrate to OAuth 2 for OpenStreetMap backend
fix #1279
2024-02-14 11:30:16 +01:00
Yohan Boniface
c378d5dc60 feat: allow to set zoomTo from query string
When using data/dataUrl querystring, uMap will import data at load,
and will set view using this data bounds. In some situation (Deveco),
the user wants to control the max zoom of the final view.

Also add labelKey and showLabel to be parsed from query string, still
for Deveco needs.
2024-02-13 18:00:23 +01:00
Yohan Boniface
246c0eef18 changelog 2024-02-13 17:54:15 +01:00
David Larlet
c86e01ffd0
Merge pull request #1601 from umap-project/oembed-quote
fix: encode the whole url parameter for OEmbed
2024-02-13 08:29:19 -05:00
Yohan Boniface
d02360ed60
Merge pull request #1606 from umap-project/remove-duplicate-saved-msg
chore: remove duplicate "map updated" message
2024-02-13 14:27:31 +01:00
Yohan Boniface
e1e255f709
Merge pull request #1593 from umap-project/icon-img-breakpoint
feat: change breakpoint to switch black SVG img to white
2024-02-13 14:16:25 +01:00
David Larlet
44a254725f
Merge pull request #1604 from umap-project/fix-dashboard-style
fix: improve dashboard styles
2024-02-13 07:52:10 -05:00
Yohan Boniface
e1ae60a4ff chore: remove duplicate "map updated" message
It is already handled by the front-end, and as it also handle the
"map created" message (including anonymous link form), I arbitrated
to keep all front-end side
2024-02-13 12:15:35 +01:00
Yohan Boniface
59cb10342b chore: prettier 2024-02-13 12:10:47 +01:00
Yohan Boniface
6c38a063fd i18n 2024-02-13 11:57:09 +01:00
Yohan Boniface
9ba8adbd85 feat: use a WCAG algo to define contrast colour
I've decided for a basic home made util, because:
- I'm not sure color is still maintained
- colorjs.io sounds very cool and maintained, but is 105k
- there is no custom bundle yet
- it uses proper modules, but for just the contrast util we need
  to pull all the class logic, and it's a lot
2024-02-13 11:29:56 +01:00
Yohan Boniface
77b18ac94f
Merge pull request #1597 from umap-project/dependabot/pip/isort-5.13.2
chore: bump isort from 5.12 to 5.13.2
2024-02-13 10:19:48 +01:00
Yohan Boniface
69398d259a
Merge pull request #1596 from umap-project/dependabot/pip/ruff-0.2.1
chore: bump ruff from 0.2.0 to 0.2.1
2024-02-13 10:19:28 +01:00
David Larlet
cf319ca53e
fix: only query OEmbed map on id and fallback to 404 2024-02-12 21:14:21 -05:00
David Larlet
b1d96b0267
Switch license from WTFPL to AGPLv3 2024-02-12 21:03:17 -05:00
David Larlet
4f469ced47
fix: improve dashboard styles 2024-02-12 20:59:35 -05:00
David Larlet
9426570b6e
fix: encode the whole url parameter for OEmbed
See https://github.com/umap-project/umap/pull/1526#issuecomment-1937040472
2024-02-12 15:58:16 -05:00
dependabot[bot]
7073d30548
chore: bump isort from 5.12 to 5.13.2
Bumps [isort](https://github.com/pycqa/isort) from 5.12 to 5.13.2.
- [Release notes](https://github.com/pycqa/isort/releases)
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pycqa/isort/compare/5.12.0...5.13.2)

---
updated-dependencies:
- dependency-name: isort
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-12 17:22:42 +00:00
dependabot[bot]
b420f6d9f2
chore: bump ruff from 0.2.0 to 0.2.1
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.2.0...v0.2.1)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-12 17:22:36 +00:00
Yohan Boniface
a239633fae feat: change threshold to switch black SVG img to white 2024-02-12 17:54:53 +01:00
David Larlet
22412ffe13
chore: Use CSS variables 2024-02-09 22:22:21 -05:00
Yohan Boniface
148c119c05 2.0.0a2 2024-02-09 19:09:21 +01:00
Yohan Boniface
f3d1a3995c fix: add pointer cursor to buttons in dashboard 2024-02-09 19:08:43 +01:00
Yohan Boniface
92cc014c2e fix: delete map from dashboard confirm was not active 2024-02-09 18:58:58 +01:00
Yohan Boniface
ef06ca46b3 2.0.0a1 2024-02-09 18:45:05 +01:00
Yohan Boniface
a767353706 chore: rm vendors/ dir before collecting vendors 2024-02-09 18:44:00 +01:00
Yohan Boniface
f460b39dae chore: log in collectstatic when a file is None after process
This should not happen, but given we are not totally sure, let's
keep a log in case in happen during the deployement on a remote
server.
2024-02-09 18:42:52 +01:00
Yohan Boniface
d6c4dfa332 fix: remove umap.browser.js from <head> as it does not exist anymore 2024-02-09 18:42:18 +01:00
Yohan Boniface
453a242e6a docs: mention to run a collectstatic in the release process
Just to test it before running it in the servers.
2024-02-09 18:41:04 +01:00
Yohan Boniface
8a9e845910 chore: do not call test and compilemessages command in make build
Those commands are documented in the release process, so they have
already run at this stage.
2024-02-09 18:39:13 +01:00
Yohan Boniface
5da032973a 2.0.0a0 2024-02-09 18:23:59 +01:00
Yohan Boniface
06d5af2a84 i18n 2024-02-09 18:19:20 +01:00
Yohan Boniface
a0634e5f55
Merge pull request #1587 from umap-project/use-global-l
chore: do not introduce a new global, use L and L.U already there
2024-02-09 18:04:48 +01:00
David Larlet
4ac5d4c056
fix: lint template 2024-02-09 12:01:13 -05:00