Commit Graph

2313 Commits

Author SHA1 Message Date
laigyu
6a6f30b5a8 fix link button when dragging combo field chips #10153 (#10209) 2024-04-24 12:24:52 +02:00
Martin Raifer
211b6dde5f upgrade to eslintv9 (config format, lint to updated rules) 2024-04-12 18:44:04 +02:00
Hirako
85278c35e4 Field: fix wikiURL by URL encoding it - and slight refactors (#10165)
* Field: fix wikiURL by URL encoding it - and slight refactors

* Field: fix wikiURL only encodeURIComponent instead of redundant full URL

* Field: refactors function to generate wikiURL, ensures anchor part is also URI encoded, ensures the anchor ref is not encoded, adds unit tests

* Field: refactors wikipedia URI encoding of the anchor logic, removes legacy anchorencode effort via try-catch that replaced percentage character with dots, adds unit further  tests, reduces exessive inlining
2024-03-21 00:42:08 -07:00
Asif Sheriff
1683313621 preserve rows with empty tag values in raw tag editor (#10151) 2024-03-15 01:13:07 +01:00
Mattia Pezzotti
a75eace135 Fix for Point Tutorial (#10129) 2024-03-07 23:38:51 +01:00
Martin Raifer
5d06d3b83e Merge pull request #10149 from openstreetmap/split-relation-members
Robust local splitting of ways which are part of (route) relations
2024-03-06 13:54:14 +01:00
Martin Raifer
d7111e20f5 add button to load a feature's relations fully (if incomplete), fixes #5420 2024-03-05 14:25:16 +01:00
Tobias
b72a089f35 Field: Fix html tag type of wikidata label (#10144)
The `span` need to be a `div` after https://github.com/openstreetmap/iD/pull/10127/files
2024-03-04 19:25:53 +01:00
Tobias
ce51b33cf2 Improve combobox dropdown styling to give labels more room and readability (#10127)
* Fields: Break long lines in combo dropdown instead of ellipsis

Longer translations keys are not readable with ellipsis and the tooltip only shows the description (or fallback), not the title.

This change makes long use line breaks with small line height to make the whole text visible.

* Fields: Use table styles for rows to maximize available space

The flex box solution gave a lot of space to the label. This solution minimizes that space to give more space to the values dropdown.
2024-02-26 14:02:22 +01:00
Martin Raifer
96e6dc124f Show message about how to support OSM after a successful save, closes #10054
for example in form of a donation

this can be disabled by setting an env variable (`ID_SHOW_DONATION_MESSAGE=false`)

the icon is from https://uxwing.com/charity-donation-hand-love-icon/
2024-02-24 12:48:35 +01:00
NaVis0mple
01d650d450 Expand DMS format and fix sec rounding logic (#10066)
Most DMS format parsed by @mapbox/sexagesimal, 
add a expandable matcher and two new formats for coordinates in DMS format in search bar

example: `35 11 10.1 , 136 49 53.8` (D M SS format), or `35 11.168 , 136 49.896` (D MM format)
2024-02-02 15:26:47 +01:00
NaVis0mple
59668638ac Search OSM notes by ID (#10062) 2024-01-24 13:32:35 +01:00
Martin Raifer
bb17d5c24e Merge pull request #10002 from k-yle/9876-multiple-values-empty
show empty tag values in multi-selections
2023-12-06 14:18:31 +01:00
Martin Raifer
f65ca4c342 use tag value as display text in raw tag editor 2023-12-06 14:03:47 +01:00
Martin Raifer
0d69c3c9e8 style "(empty)" option differently to distinguish from regular tag values 2023-12-06 13:56:45 +01:00
Ramith Kulal
179fa71cdf Fix cursor on foreign link field links, fixes #9992 2023-12-06 13:03:26 +01:00
Kyle Hensel
a876aa010c show empty tag values in multi-selections 2023-11-25 21:54:08 +13:00
Martin Raifer
ea47581bae show turn restriction editor also when there is only one _to_ way, fixes #9983
as there might exist turn restrictions with that way as _via_.
2023-11-22 16:39:47 +01:00
Martin Raifer
ac172a2b0e Don't autocomplete tags like name_1 in raw tag editor, closes #9422 2023-11-17 14:04:24 +01:00
Martin Raifer
d4bfbaaf4a Merge branch 'relation-colours' into develop 2023-11-17 13:53:19 +01:00
Martin Raifer
20b72a2b68 only render route colours if the value is a valid color
addresses https://github.com/openstreetmap/iD/pull/9424#discussion_r1046495633
2023-11-17 13:47:16 +01:00
Martin Raifer
9cc04d3f0b fix spelling mistakes 2023-11-14 11:26:36 +01:00
Martin Raifer
beea585251 Merge branch 'develop' into relation-colours 2023-11-14 10:02:55 +01:00
Kyℓe Hensel
3b24932bda fix highway=busway not supported in the turn restriction editor (#9633) 2023-11-14 09:53:23 +01:00
Le_Futuriste
100d94955f feat(fields/combo): add navigate button to web links in "chip" fields (#9974)
The common use case is for the `sources` key, often you have multiple URLs separated with semicolon.

This allow to navigate to URL and check them more easily instead of
doing manual work to select the URL copy and paste.

Created with the help of Martin Raifer at the sotmeu2023!
2023-11-13 23:06:05 +01:00
danieldegroot2
9a794ccdfe Use preferred tile.osm.org URL in examples (#9979) 2023-11-13 21:37:06 +01:00
Josh Lee
298d30e6a2 Fix regression in user account display (#8813) (#9906) 2023-11-08 11:02:45 +01:00
Martin Raifer
dabbd89e5d suppress autocomplete for taginfo results if field has static values
fixes #9898

Fixes a problem that occurs because the order of the field `options`
can be in general different from the order returned by taginfo
(taginfo sorts by usage, while presets typically are sorted alphabetically),
causing different values to be potentially selected for autocomplete values.
As the taginfo results typically come in a few moments delayed, this can
lead to confusing behaviour.

This solves it by just not reattempting an autocomplete using the taginfo
results, if a field has static options available.
2023-11-08 10:42:09 +01:00
Martin Raifer
5d00f604ae show source field for changesets by default in the upload form 2023-10-10 16:03:09 +02:00
Martin Raifer
c297d9bc18 fix name clash which was overriding an existing event handler
fixes #9829

fixes regression from d7902e1388
2023-08-11 15:11:25 +02:00
Martin Raifer
cf2e4c990e lint 2023-08-09 18:24:16 +02:00
Martin Raifer
97fcb18d2a switch to (vegbilder's) zoomable plane photo viewer 2023-08-09 11:54:13 +02:00
Martin Raifer
471354af4f add list of loaded local photos 2023-08-08 17:12:35 +02:00
Martin Raifer
634ce10d24 add proper local photo strings, enable layer switcher checkbox 2023-08-07 16:14:32 +02:00
Martin Raifer
1572835a48 move local photos to "Photo Overlays" section 2023-08-07 11:52:33 +02:00
Martin Raifer
8c1b185fb3 remove unused imports/vars, fix code indentation, lint 2023-08-07 11:09:16 +02:00
Martin Raifer
884874dedc Merge branch 'develop' into gsoc_2022/explore_iD 2023-08-07 10:38:10 +02:00
Martin Raifer
e8703e6bb6 Merge remote-tracking branch 'noenandre/vegbilder' into develop 2023-08-07 10:31:07 +02:00
Kyle Hensel
d01112372b don't suggest discardable tags in the raw tag editor 2023-08-06 15:07:35 +12:00
Martin Raifer
a2d3cf8f9a fix jumping cursor while editing in some input fields
fixes #9233
2023-08-03 16:49:37 +02:00
Martin Raifer
57ca36227b fix clearing of contents of some input field when the tag is removed
e.g. when using the trash can icon on the UI field
2023-08-02 17:54:48 +02:00
Martin Raifer
d7902e1388 only show regional street-level photo providers in the available region
and disable selection checkbox if not zoomed in enough to load the photos
2023-08-02 16:35:56 +02:00
Martin Raifer
13300026e3 Merge branch 'develop' into vegbilder 2023-08-01 17:09:21 +02:00
sezerbozbiyik
d35aff7ebb Merge branch 'develop' into add_mapilio_data 2023-07-21 14:40:58 +03:00
Martin Raifer
46a2d6365f show tag reference info for the currently filled-in tag value, closes #9786 2023-07-21 11:03:28 +02:00
Martin Raifer
61af54c069 fix combo field's dropdown when tag reference info is displayed
show it immediately after the input field instead of after the tag documentation text
2023-07-21 10:44:21 +02:00
Martin Raifer
3159c87ae1 disable deprecated marked options
to get rid of warnings in the console
2023-07-21 09:34:20 +02:00
Martin Raifer
7b622e040b Merge branch 'develop' into vegbilder 2023-07-20 17:21:45 +02:00
Martin Raifer
d0e061c472 don't hardcode padding constanst, add changelog 2023-07-20 17:15:21 +02:00
Martin Raifer
9bd5817ecc don't crash on invalid identifiers
fixes a bug where the link button would not be correctly disabled on invalid identifier values

(regression in 7015fae91c)
2023-07-17 19:40:36 +02:00