Commit Graph

12582 Commits

Author SHA1 Message Date
Quincy Morgan
15e9599ff7 Support editing the Name and Multilingual Name fields during multiselection 2020-01-30 17:09:19 -05:00
Quincy Morgan
d57d660d1b Merge branch '2.x' into multiselection-field-editing 2020-01-30 14:42:11 -05:00
SilentSpike
9131514722 Create dist/data before building data 2020-01-30 18:53:39 +00:00
Quincy Morgan
1b331bb678 Add mechanism for fields to support editing during multiselection (re: #7276)
Add `utilCombinedTags` method and use it for the raw tag editor as well as fields
Pass `entityIDs` array into fields instead of single `entity` object
Give field revertion its own path separate from `change`
Add multiselection editing to fields in files: access, address, check, combo, cycleway, input, maxspeed, textarea, and wikidata
2020-01-30 13:53:29 -05:00
Bryan Housel
1e21eea745 Still actually need a devDependency on oci to build icons,translations 2020-01-30 10:00:50 -05:00
Bryan Housel
33a2dafc10 Fetch wmf-sitematrix from CDN.. No need to depend on it anymore. 2020-01-30 09:48:37 -05:00
Bryan Housel
e19bcb77d5 Require init() call before coreContext starts doing things
(closes #7304)
2020-01-29 19:27:12 -05:00
Bryan Housel
fb4d658860 Don't bundle the community index anymore, fetch from CDN instead
Start fetching and preparing it just before the changeset gets sent
2020-01-29 15:24:26 -05:00
Bryan Housel
b8a8927d33 Start preparing uiSuccess early when saving changeset
This gives us some time to fetch and prepare the community index
2020-01-29 15:23:37 -05:00
Bryan Housel
9154a6a554 context.asset should pass-through absolute URLs 2020-01-29 15:22:06 -05:00
Bryan Housel
89724cfb1b Remove support for debug rendering of the community index
We have http://openstreetmap.community now for this, and it eliminates
another place in the code where that data would have been needed.
This commit also ES6ifies svgDebug.
2020-01-29 13:35:25 -05:00
Bryan Housel
362558f7dc npm run build:stats 2020-01-29 12:36:47 -05:00
Bryan Housel
c481f90e7d Stop bundling wmf-sitematrix, move it extern
This also includes a bunch of tweaks to make the tests work
in both PhantomJS and modern browsers like Chrome.

Basically - introduce some more async into the test code so that
the coreData.get promise is guaranteed to settle.  Because in
PhantomJS the promise is polyfilled, and Chrome it's native, they
work slightly differently.
2020-01-29 12:30:11 -05:00
Bryan Housel
567eeac587 Make several data external instead of bundled:
Also dist/data/* contains minified files now

These are now external and will fetch as needed:
-export { dataAddressFormats } from './address-formats.json';
-export { dataDeprecated } from './deprecated.json';
-export { dataDiscarded } from './discarded.json';
-export { dataLanguages } from './languages.json';
-export { dataPhoneFormats } from './phone-formats.json';
-export { dataShortcuts } from './shortcuts.json';
-export { dataTerritoryLanguages } from './territory-languages.json';
2020-01-28 22:21:31 -05:00
Bryan Housel
3ac800c619 Script has moved 2020-01-28 15:01:40 -05:00
Bryan Housel
ce7cac6738 Move all the build scripts into scripts/ folder, ES6ify more stuff 2020-01-28 15:00:23 -05:00
Quincy Morgan
aadbddba2f Update to temaki 3.14.0 (close #7299, re: #7255) 2020-01-28 13:21:46 -05:00
Quincy Morgan
d7e4575a7b Update to temaki 3.13.0 (close #7298)
Add new rail icons (close #7255)
Render "statused" railways with lighter colors
Don't render disused features with a dashed stroke
2020-01-28 11:42:53 -05:00
Bryan Housel
6d81a00daf Let caller modify the coreData fileMap, and add tests 2020-01-28 10:27:45 -05:00
Quincy Morgan
89ce98f510 Don't require services/osm in order to get max OSM character lengths 2020-01-28 09:28:23 -05:00
Bryan Housel
b949cc6bb6 Sometimes the issue cache has junk in it.
I got this to happen after some issues had been detected on the live map,
then starting the intro walkthrough (which replaces the graph).

No time now to dig into the root cause, but this might make the problem go
away so the tutorial doesn't get too weird.
2020-01-27 17:38:29 -05:00
Bryan Housel
d69cf532e0 Merge branch 'dataloader' into 2.x 2020-01-27 17:17:46 -05:00
Bryan Housel
31e007fc83 Create a data loader and move the intro graph into dist/data
(re: #3403)
2020-01-27 17:15:00 -05:00
Quincy Morgan
6dc02d7f22 Properly hide the input field on semicombos when there aren't enough characters remaining to add another value (re: #6817) 2020-01-27 16:35:15 -05:00
Quincy Morgan
17ae12b3d7 Address most common places where tag keys or values could exceed the 255 character API limit (close #6817) 2020-01-27 15:57:55 -05:00
Bryan Housel
f2c14ab970 Restore the global id for console dev debugging 2020-01-27 15:48:21 -05:00
Bryan Housel
883f35a99b indent 2020-01-27 12:28:55 -05:00
Bryan Housel
6b7bb75315 Prefix the stateful/internal variables with _ 2020-01-27 12:09:53 -05:00
Bryan Housel
2a2668b01b Can't use ES6 fat-arrow functions with arguments
see buble bug https://github.com/bublejs/buble/issues/208
2020-01-24 17:22:03 -05:00
Bryan Housel
08c850a98f ES6ify context 2020-01-24 17:16:32 -05:00
Quincy Morgan
f21be40b9a Correct issue where Monastery Grounds preset would unexpectedly add a "building" tag (close #7287) 2020-01-24 13:02:58 -05:00
Quincy Morgan
7c5cbb121f Fix "Add field" label 2020-01-24 10:59:10 -05:00
Quincy Morgan
5640f37bb6 Add terms to car repair shop 2020-01-24 09:22:57 -05:00
Quincy Morgan
69df630f21 Support multiple values in the beauty field (close #7215) 2020-01-24 09:20:23 -05:00
Quincy Morgan
d83ccf590c Deprecate building:height and building:min_height (close #7285) 2020-01-24 08:44:06 -05:00
Bryan Housel
55d407e1fb check in dist/data
(move data over to dist folder and load dynamcally instead of bundling)
2020-01-23 15:08:47 -05:00
Bryan Housel
77160d7dbe remove data.js 2020-01-23 14:57:42 -05:00
Bryan Housel
a166eb6daa ES6 update_imagery 2020-01-23 14:31:31 -05:00
Quincy Morgan
9aefe4a6dc Deprecate bicycle:oneway -> oneway:bicycle (close #7281) 2020-01-23 09:00:46 -05:00
Quincy Morgan
046fb1d0bf Add derived data for prior merge (re: #7284) 2020-01-23 08:59:42 -05:00
Quincy Morgan
a6f2e25b1b Merge pull request #7284 from ferdinand0101/patch-2
added another option for terms
2020-01-23 08:29:40 -05:00
Ferdinand S
cdf4a9d9d3 Update research.json 2020-01-23 12:54:56 +01:00
Ferdinand S
2c53962041 added another option for terms 2020-01-23 10:30:40 +01:00
Bryan Housel
3ce640f2cf Remove some unnecessary options that were default values 2020-01-22 15:55:58 -05:00
greenkeeper[bot]
4c463dac70 fix(package): update martinez-polygon-clipping to version 0.6.0 2020-01-22 14:38:20 -05:00
Bryan Housel
54ac189240 Fix data building 2020-01-22 14:29:05 -05:00
Quincy Morgan
3dc0361dc8 Add improved "zoom to" icon 2020-01-22 12:43:24 -05:00
Bryan Housel
5f9a9864d8 more changes to build scripts
- drop `build_src.js` and `build.js`
  - now we'll use rollup configs for all src building
- add `npm run build:css` and `npm run build:data`
- watcher now only watches for css file changes
  - src and data rebuilds are too slow to reasonably do "live"
- fix `build_css.js` and `build_data.js` to either exec or export
2020-01-22 12:21:36 -05:00
Quincy Morgan
019a938255 Merge branch '2.x' of https://github.com/openstreetmap/iD into 2.x 2020-01-22 10:44:48 -05:00
Quincy Morgan
c477950556 Re-add "zoom to this" button 2020-01-22 10:44:40 -05:00