68 Commits

Author SHA1 Message Date
Martin Raifer 6626ea0682 refactor panels to not inject html 2022-06-24 12:19:17 +02:00
Martin Raifer ac77289b4d refactor localized text rendering in tooltips, flash messages 2022-06-23 18:55:57 +02:00
Martin Raifer 422861dbc7 render background source labels as text, not html 2022-06-23 10:56:17 +02:00
Jason Ghent 8111e5d427 clearer labels for OSM links in history panel (#8834) 2021-12-07 12:45:13 +01:00
Martin Raifer 9f3f8e1366 rename method 2021-11-29 19:26:18 +01:00
Martin Raifer d78c357588 replace raw html injection of localized texts
by using d3 to insert the localized text spans directly into the DOM
2021-11-26 18:51:45 +01:00
Martin Raifer b5fdb145f5 add more explicit html formatting of translated texts 2021-11-19 12:23:45 +01:00
Martin Raifer 040257fd44 replace unnecessary setting of raw "html" with "text" 2021-11-18 18:53:33 +01:00
Martin Raifer e1dda082e0 escape user name displayed in the history panel 2021-11-18 13:09:05 +01:00
Josh Lee ac6251cf9e Fix centroid calculation in measurement panel.
Copy/paste of 0a0e2dcf75
2021-02-23 18:11:02 +00:00
Quincy Morgan ba4c1ef014 Account for instances where d3.geoCentroid returns incorrect results 2020-10-29 14:28:21 -04:00
Quincy Morgan 8b6ad03a58 Fix issue where switching between metric/imperial measurements wouldn't work 2020-10-28 15:16:38 -04:00
Quincy Morgan 21a49bbec8 Initial support for D3 v6.2.0 2020-10-06 15:08:39 -04:00
Quincy Morgan e50b096279 Show distance in measurement panel when two nodes are selected (close #7952) 2020-09-28 16:22:42 -04:00
Quincy Morgan 4600ab596f Add lang attribute to more display labels (re: #7963) 2020-09-23 10:10:24 -04:00
Quincy Morgan b92f0a6d09 Fix styling issue in panels
Add lang attribute to more text (re: #7963)
2020-09-22 15:11:12 -04:00
Quincy Morgan 5435082d9c Revert t function to returning the plain string by default
Add `t.html` function for getting the string with the `lang` attribute
2020-09-22 12:03:29 -04:00
Quincy Morgan a3549f9a76 Merge branch 'develop' into lang-attributes
# Conflicts:
#	modules/ui/commit_warnings.js
#	modules/ui/field.js
#	modules/ui/fields/wikidata.js
#	modules/ui/fields/wikipedia.js
#	modules/ui/full_screen.js
#	modules/ui/panels/history.js
#	modules/ui/sections/entity_issues.js
#	modules/ui/sections/map_features.js
#	modules/ui/sections/raw_member_editor.js
#	modules/ui/sections/validation_rules.js
#	modules/ui/tag_reference.js
2020-09-22 10:55:07 -04:00
Quincy Morgan 58014ace62 Don't prevent default tabbing to elements (re: #8004) 2020-09-17 12:07:20 -04:00
Quincy Morgan 32f8274929 Make t function return a span element with a lang attribute unless html: false is specified in the options (re: #7963)
Update `text` functions to `html` to support inserting the `span` elements
Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
2020-09-15 21:56:22 -04:00
Quincy Morgan 295a50456a Don't cache locale info in measurement panel 2020-09-15 11:35:11 -04:00
Quincy Morgan a1c2b7f73d Support language-specific pluralization (re: #597, #4964) 2020-09-14 17:21:00 -04:00
Peter Newman 4205ca1d07 Fix the seemingly safe spellings found by codespell
Untested, only checked by inspection.

(cherry picked from commit 2c47a11008)
2020-08-10 17:32:37 +01:00
Quincy Morgan a7e16a5625 Show the number of unique nodes instead of the aggregate for the selection in the measurement panel (re: #7329) 2020-06-08 17:07:26 -04:00
Quincy Morgan 2f2e0dcb94 Show combined length, area, and node count in the measurement panel for multiselections (close #7329) 2020-06-08 16:47:03 -04:00
Quincy Morgan 95dc16b7a6 Update more mouse events to use pointer events if available (re: #5505) 2020-05-08 16:10:15 -07:00
Wille Marcel c12b846328 update osmcha url 2020-04-29 18:58:13 -03:00
Quincy Morgan a1af118f0e Ensure locales and presets are loaded before the UI loads (close #7406)
Consolidate localization behavior and init to a coreLocalizer function and singleton
Explicitly support `en-US` locale
Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext
Add `apiConnections` property of coreContext to simplify adding a source switcher
Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions
Make coreContext itself load the UI if a container has been specified at init time
Fix code tests
2020-03-31 12:23:31 -07:00
Quincy Morgan eed7944a1a Replace various uses of d3_select and d3_selectAll with selection on the container 2020-03-22 12:34:06 -07:00
Bryan Housel 6e5cb45c17 Don't bundle the imagery anymore, fetch from dist/data at runtime
(re: #4994)
2020-01-30 17:10:41 -05:00
Quincy Morgan 191d0b9434 Add link to Achavi changeset inspector tool to the History panel (close #6855) 2019-09-16 11:53:33 -04:00
Quincy Morgan 2f695a9747 Add link to the PeWu history viewer to the History panel (close #6202) 2019-04-18 14:06:48 -07:00
Bryan Housel 1ce4f0ad6a Remove lodash without
(re: #6087)
2019-03-25 21:56:54 -04:00
Bryan Housel 76e0d13729 Remove lodash every and filter
(re: #6087)
2019-03-23 01:22:56 -04:00
Bryan Housel 152022aec4 Use context.keybinding for keybindings that don't change
(closes #5487)
2018-11-13 20:57:21 -05:00
Bryan Housel 7b4f4fd031 Fix note url link in history panel 2018-08-10 22:26:13 -04:00
Bryan Housel fab4a54c14 Redraw measurement and history panels on context mode enter
- these panel content were redrawn whenever the map was redrawn,
however the map does not necessarily redraw when selecting notes
2018-08-10 22:20:46 -04:00
Bryan Housel 68ed6b1024 Show selected note details History Panel
(re: #5158)
2018-08-10 16:49:50 -04:00
Bryan Housel 9f33ca9a01 Show location of selected Note in Measurement Panel
(re: #5158)
2018-08-09 23:25:50 -04:00
Bryan Housel 470835b38f Extract all graphics from iD sprite, reassemble with svg-sprite
All iD sprite graphics are now prefixed with `iD-`
Also includes support for sending the preset logos to taginfo
2018-06-08 16:06:46 -04:00
Bryan Housel f9c1cbf6bc Show a message on the History Panel if the feature is new
(closes #4975)
2018-04-09 14:33:39 -04:00
Minh Nguyễn ea7339f49a Fixed geometry type word order
In many languages, the word for “closed” would follow the word for “line” or “area”, not precede it. Additionally, the word for “closed” may differ depending on what it modifies.
2018-01-09 03:30:14 -08:00
Minh Nguyễn 702e3d2a90 DMS coordinates 2018-01-09 03:25:55 -08:00
Minh Nguyễn a1e0d4fc08 Consolidated unit formatting into util module 2018-01-09 02:00:44 -08:00
Minh Nguyễn d75aa7d04a Internationalized measurement panel 2018-01-09 00:58:58 -08:00
Wille Marcel 9f1b928f89 add number of nodes information to measurement panel 2018-01-02 10:45:44 -03:00
Bryan Housel 18ab596f58 Improve int'l date/time strings on imagery and history tools
(closes #4594)
2017-12-06 15:27:54 -05:00
Bryan Housel a0a197a69e Add support for DigitalGlobe imagery vintage overlays
(see https://github.com/osmlab/editor-layer-index/issues/371)
2017-11-01 13:46:13 -04:00
Bryan Housel 31aec5743c Convert lodah-es and d3 to named imports for ui/panels 2017-09-26 00:41:15 -04:00
Bryan Housel 1fcceeb0e8 Move string processing into background_source 2017-09-12 17:02:17 -04:00