Commit Graph

72 Commits

Author SHA1 Message Date
Quincy Morgan
f2c150e83e Rename several title properties to label and pass in attributed HTML instead of string 2020-09-22 13:15:19 -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
bcb613c29b Properly disable the zoom to custom data button when there's no data 2020-09-21 10:01:16 -04:00
Quincy Morgan
45fbd5e604 Fix some issue with logical focus order (re: #8004) 2020-09-18 14:33:21 -04:00
Quincy Morgan
c084c569a7 Make the DOM/focus order of the raw tag editor view buttons match their display order (re: #8004) 2020-09-18 14:03:03 -04:00
Quincy Morgan
28dd2c4507 Make the errors, warnings, and changes lists in the commit sidebar keyboard-navigable (re: #8004) 2020-09-18 13:58:41 -04:00
Quincy Morgan
72c5afb27d Make the issues inspector section navigable with the keyboard (re: #8004) 2020-09-18 11:20:53 -04:00
Quincy Morgan
6f2a746440 Standardize return key comments 2020-09-17 15:20:33 -04:00
Quincy Morgan
b16d39452e Fix navigation of the background layer list via the keyboard (re: #8004) 2020-09-17 14:16:20 -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
a1c2b7f73d Support language-specific pluralization (re: #597, #4964) 2020-09-14 17:21:00 -04:00
Quincy Morgan
54818a3b3d Make background filter option sliders full width 2020-09-11 15:06:01 -04:00
Quincy Morgan
0bfc154b74 Support a wider range of background filter values 2020-09-11 14:59:59 -04:00
Quincy Morgan
5c18d46f9d Merge pull request #7980 from bjornstar/no-forced-reflow-textarea
[Performance] Calculate height of the textarea instead of letting the browser do it
2020-09-11 13:39:25 -04:00
Quincy Morgan
868c0a380b Improve dynamic text scaling in the imagery offset control 2020-09-11 12:51:44 -04:00
Bjorn Stromberg
d5159dcfa0 [Performance] Calculate height instead of letting the browser do it 2020-09-11 23:21:41 +09:00
Quincy Morgan
443fb01342 Rerun validation after editing the relation members and memberships in the inspector (close #7962) 2020-09-09 11:14:29 -04:00
Quincy Morgan
8708c13f87 Followup changes to #7932 2020-09-03 14:00:30 -04:00
Til Schneider
4dabd79702 Move relation type detection to osm_wikibase (#7932) 2020-08-29 11:05:07 +02:00
Til Schneider
d3069a47ae Improve performance of raw tag editor
The detection whether `_entityIDs ` includes a relation is performed many times inside a loop. Instead this should be done only once (lazy).
2020-08-26 13:05:34 +02:00
Quincy Morgan
cbf6b151cf Merge pull request #7895 from til-schneider/patch-2
Fix geometries detection in preset_fields.js
2020-08-12 12:26:19 -04:00
Til Schneider
cf1c5085d1 Fix geometries detection in preset_fields.js
`renderDisclosureContent` in `preset_fields.js` tries to detect the geometry types of the selected entities, but the result is always `[]`.

Reason: The handler of `_entityIDs.reduce` always returns `true`. So the result of the `reduce` call is `true` as well. `Object.keys(true)` results in `[]`.

Fix: The handler of `_entityIDs.reduce` should return the map which collects the geometry types, so `geometries` will be be something like `["line", "vertex"]`.
2020-08-11 16:09:51 +02: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
0112547c89 Fix map data style options tooltip keyboard shortcuts (close #7778) 2020-07-13 15:28:37 -04:00
Quincy Morgan
45f337e13c Merge branch 'develop' into touch-walkthrough-update 2020-07-10 10:32:36 -04:00
Nikola Plesa
944953dbf2 Update Mapillary map_features URL and remove request_data button 2020-07-01 16:50:30 +02:00
Quincy Morgan
6e04e31140 Merge branch 'develop' into touch-walkthrough-update 2020-06-30 16:57:58 -04:00
Quincy Morgan
8826c95574 Move delete button to label for new relation UI 2020-06-30 09:22:25 -04:00
Quincy Morgan
fab750d353 Use more placeholder references in the help docs
Use a reusable format for the section title counts
2020-06-29 12:46:06 -04:00
Quincy Morgan
02a08ca899 Move the delete membership button from the input to the label (re: #7753)
Add button to zoom to relation from the Relations section
2020-06-29 09:47:58 -04:00
Quincy Morgan
a126437a38 Fix broken text entry in background offset input on touch devices 2020-06-25 11:56:17 -04:00
Quincy Morgan
c834ef192c Update "zoom to custom data" button to use the standard "zoom to selection" icon 2020-06-24 17:09:14 -04:00
Quincy Morgan
87d002efd7 Add buttons to toggle the history and measurement panels (close #6397) 2020-06-24 15:11:06 -04:00
Quincy Morgan
9041ce3d9b Add button to toggle the location panel (re: #6397) 2020-06-24 14:19:52 -04:00
Quincy Morgan
874c412b74 Enforce max unicode charachter length of keys, values, and relation roles through truncation upon input rather than HTML maxlength attribute (close #6817)
Normalize unicode when changing keys, values, and relation roles
2020-06-10 14:11:55 -04:00
Quincy Morgan
369044bc11 Focus relation role when clicking on member or membership item label (close #7690) 2020-06-10 09:53:51 -04:00
Quincy Morgan
762307bd7d Restrict key, value, and role character limits based on unicode characters, not UTF-16 code units (re: #6817) 2020-06-09 15:41:15 -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
Quincy Morgan
edc32849c0 Use pointer events in raw tag editor when supported (re: #5505) 2020-05-08 15:01:15 -07:00
Quincy Morgan
e838d06328 Use pointer events for the background offset on supported devices (re: #5505) 2020-05-08 12:52:46 -07:00
Quincy Morgan
8734b67821 Remove the context.intersects passthrough function 2020-04-01 15:36:53 -07:00
Quincy Morgan
60f7dc7c0b Replace presets property of context with singleton
Remove utilPreset
2020-04-01 13:08:45 -07:00
Quincy Morgan
a58abe3c6f Move localStorage interface from a property of coreContext to a corePreferences function 2020-04-01 11:00:48 -07: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
9731b93cec Move uiTooltipHtml functionality into uiTooltip
Refactor uiEditMenu to use standard UI patterns instead of SVG
2020-03-25 12:22:10 -07:00
Quincy Morgan
d62a62cba8 Make popover and tooltip part of the UI module instead of utils 2020-03-24 17:32:09 -07:00
Quincy Morgan
0931459dba Reduce use of global selection (re: #7445) 2020-03-24 13:02:06 -07:00
Quincy Morgan
d669bbef2a Update various files for removal of master branch 2020-03-23 10:43:52 -07:00