Commit graph

2673 commits

Author SHA1 Message Date
Yohan Boniface
26c9f913e3 fix: do not autoclose panel blindly after map save
fix #1139
cf #1831
2024-05-17 15:19:10 +02:00
Yohan Boniface
c860866fe9 feat: add defaultPanelMode setting
cf https://forum.openstreetmap.fr/t/umap-2-3-changement-de-gestion-des-pop-up/23680/3

Trying to make this panel expanded/condenses thing simpler and more intuitive.

It's mode can be set:
- by explicitely setting defaultPanelMode = xxx
- or, if defaultPanelMode is undefined, with sensible default when there is
  an onLoadPanel defined, and to respect previous uMap behaviour
- or, if defaultPanelMode is unset, and some feature opens in the panel, it
  will be set to expanded (here again to respect previous behaviour
- then, when user change it manually (by clicking on the toggle button), then
  we should never change it automatically, and respect the previous mode when
  reopening the panel

(We are only talking about the left panel, here.)
2024-05-16 19:48:19 +02:00
Yohan Boniface
3a19b921a7 chore: prettier 2024-05-16 12:18:07 +02:00
Yohan Boniface
571154e4f3 fix: error when clicking on the geolocate button
fix #1812
2024-05-15 15:17:50 +02:00
David Larlet
44b8433216
Merge pull request #1810 from umap-project/docs-more
docs: Tutorials review and improvements
2024-05-14 13:06:47 -04:00
Yohan Boniface
00ad05bb82 feat: use accent color for switch and multichoices on dark background 2024-05-14 18:59:05 +02:00
Yohan Boniface
a1084e0c7b
Merge pull request #1816 from umap-project/dependabot/pip/pytest-playwright-0.5.0
chore: bump pytest-playwright from 0.4.4 to 0.5.0
2024-05-14 18:45:58 +02:00
Yohan Boniface
754c895dde
Merge pull request #1821 from umap-project/caption-module
fix: display all layers in caption
2024-05-14 18:30:31 +02:00
Yohan Boniface
303e5f78e8
Merge pull request #1819 from umap-project/dependabot/pip/django-5.0.6
chore: bump django from 5.0.5 to 5.0.6
2024-05-14 17:36:39 +02:00
Yohan Boniface
9e2a29002a Apply suggestions from code review
Co-authored-by: David Larlet <3556+davidbgk@users.noreply.github.com>
2024-05-14 17:35:33 +02:00
Yohan Boniface
e6b4a54499 fix: show non visible layers in caption
fix #1820
2024-05-14 16:26:00 +02:00
Yohan Boniface
c58196b285 chore: move caption to its own module 2024-05-14 16:00:26 +02:00
dependabot[bot]
47f894babc
chore: bump django from 5.0.5 to 5.0.6
Bumps [django](https://github.com/django/django) from 5.0.5 to 5.0.6.
- [Commits](https://github.com/django/django/compare/5.0.5...5.0.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 17:36:24 +00:00
dependabot[bot]
e4f95371c7
chore: bump pymdown-extensions from 10.7.1 to 10.8.1
Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 10.7.1 to 10.8.1.
- [Release notes](https://github.com/facelessuser/pymdown-extensions/releases)
- [Commits](https://github.com/facelessuser/pymdown-extensions/compare/10.7.1...10.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 17:36:20 +00:00
dependabot[bot]
027a0a1498
chore: bump pytest-playwright from 0.4.4 to 0.5.0
Bumps [pytest-playwright](https://github.com/microsoft/playwright-pytest) from 0.4.4 to 0.5.0.
- [Release notes](https://github.com/microsoft/playwright-pytest/releases)
- [Commits](https://github.com/microsoft/playwright-pytest/compare/v0.4.4...v0.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 17:36:06 +00:00
dependabot[bot]
7d08564bc6
chore: bump mkdocs-static-i18n from 1.2.2 to 1.2.3
Bumps [mkdocs-static-i18n](https://github.com/ultrabug/mkdocs-static-i18n) from 1.2.2 to 1.2.3.
- [Changelog](https://github.com/ultrabug/mkdocs-static-i18n/blob/main/docs/changelog.md)
- [Commits](https://github.com/ultrabug/mkdocs-static-i18n/compare/1.2.2...1.2.3)

---
updated-dependencies:
- dependency-name: mkdocs-static-i18n
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 17:36:02 +00:00
David Larlet
8d21cb3ad3
docs: Create an Articles section 2024-05-10 14:44:06 -04:00
David Larlet
d29c1bef9e
docs: Add videos from balades-pedagogiques 2024-05-10 14:43:36 -04:00
David Larlet
6d87a5b5f3
docs: Tutorials review and improvements 2024-05-10 13:30:23 -04:00
Yohan Boniface
b6262f04b7 changelog 2024-05-09 18:12:27 +02:00
Yohan Boniface
71a8aafeba 2.3.0 2024-05-09 18:08:08 +02:00
Yohan Boniface
6b3da97d73 i18n 2024-05-09 18:07:13 +02:00
Yohan Boniface
0ce1971b4e
Merge pull request #1794 from umap-project/integrate-facets
feat: integrate facets into browser filters
2024-05-09 17:57:15 +02:00
Yohan Boniface
eb1a0bae25
Merge pull request #1808 from umap-project/panel-height-with-footer-bar
fix: adapt panel expanded height when map has a caption bar
2024-05-09 17:56:39 +02:00
David Larlet
5e0b4d0374
Merge pull request #1747 from umap-project/docs-i18n
First step for documentation translations
2024-05-09 11:55:28 -04:00
Yohan Boniface
5b4bf9d416
Merge pull request #1804 from umap-project/edit-layer-on-esc
fix: open edit panel when pressing ESC while drawing, if valid
2024-05-09 17:45:25 +02:00
Yohan Boniface
6fda1e79e3
Merge pull request #1807 from umap-project/fix-search-autofocus
fix: really focus on search input after showing the panel
2024-05-09 17:44:05 +02:00
Yohan Boniface
b5da347a67 fix: adapt panel expanded height when map has a caption bar
cf #1788
2024-05-09 17:07:33 +02:00
Yohan Boniface
58588761d5 fix: open edit panel when pressing ESC while drawing, if valid 2024-05-09 16:43:01 +02:00
Yohan Boniface
84b904c71d fix: really focus on search input after showing the panel
fix #1806
2024-05-09 16:36:05 +02:00
Yohan Boniface
4ebbf8ed11
Merge pull request #1805 from umap-project/fix-continue-line
fix: do not try to render drawinTooltip on drawing start
2024-05-09 16:01:57 +02:00
Yohan Boniface
6c5bdf8670 wip: add integration test to make sure filters are kept when closing panel 2024-05-09 15:57:14 +02:00
Yohan Boniface
f06461967a fix: do not try to render drawinTooltip on drawing start
The event does not contain latlng, so we cannot compute the
line length yet.
2024-05-09 13:32:39 +02:00
David Larlet
04e347b18e
Improve beginners tutorials images and contents 2024-05-08 22:31:17 -04:00
David Larlet
2f6b82faa4
Markup to generate images with shot-scraper
In tutorial 1.
2024-05-08 21:17:02 -04:00
David Larlet
0c380dbc57
Bump mkdocs-* requirements for docs-users 2024-05-08 21:17:01 -04:00
David Larlet
8a62552cb3
Add videos to users documentation 2024-05-08 21:17:01 -04:00
David Larlet
d4752b0365
Improving documentation 2024-05-08 21:17:01 -04:00
David Larlet
d66b84297f
Improving documentation 2024-05-08 21:17:01 -04:00
David Larlet
4cba114f3f
Improving documentation 2024-05-08 21:17:01 -04:00
David Larlet
de9e7a73c6
Improving documentation 2024-05-08 21:17:01 -04:00
David Larlet
0a3bcad7ec
Split users’ documentation to dedicated folder 2024-05-08 21:17:00 -04:00
David Larlet
4123714f76
Ability to specify a unique id for doc sections 2024-05-08 21:17:00 -04:00
David Larlet
dcb9fd5b07
An attempt to provide details for frequent errors 2024-05-08 21:17:00 -04:00
David Larlet
5b9a6500d0
First step for documentation translations
The goal is to be able to embed some of the FAQ entries within the app, see #1710 and #813 for instance.
2024-05-08 21:17:00 -04:00
Yohan Boniface
b0b740f9b5 wip: fix CSS selector to determine if browser is open or not 2024-05-08 19:37:28 +02:00
Yohan Boniface
86ae6bb816 wip: better way of computing isMin/MaxModified in facets fields 2024-05-08 19:27:23 +02:00
Yohan Boniface
53458053a7 wip: properly deal with old onLoadPanel 'facet' value
We need to replace it, so the new value is saved and used
elsewhere (eg. in the "UI options" form)
2024-05-08 19:07:13 +02:00
Yohan Boniface
369f798839
Merge pull request #1790 from umap-project/panel-expanded-mobile
fix: allow panel expanded mode in mobile
2024-05-08 18:56:41 +02:00
Yohan Boniface
1b326b3a18
Merge pull request #1799 from umap-project/dependabot/pip/hatch-1.10.0
chore: bump hatch from 1.9.7 to 1.10.0
2024-05-08 18:55:27 +02:00