Commit Graph

40 Commits

Author SHA1 Message Date
Martin Raifer af69bf91a9 override/extend languages data, thanks @bgo-eiu
closes #9241
closes #9242
2022-09-16 14:12:23 +02:00
Bryan Housel 97ed56bc3a s/colors/chalk
https://www.bleepingcomputer.com/news/security/dev-corrupts-npm-libs-colors-and-faker-breaking-thousands-of-apps/
2022-01-10 23:52:29 -05:00
Quincy Morgan cb7f1c2b3c Update to id-tagging-schema v3.0.0
Add UI for translatable combo fields
2020-12-08 15:23:51 -05:00
Quincy Morgan bc9679d627 Remove trailing whitespace 2020-12-08 13:39:44 -05:00
Quincy Morgan 96d7631a3a Fetch id-tagging-schema icons from the bleeding edge as well as the release versions when building data 2020-12-07 15:45:26 -05:00
Quincy Morgan baabd81987 Unbundle id-tagging-schema data and translations
Update for id-tagging-schema 2.0.0
2020-12-01 11:14:14 -05:00
Quincy Morgan df043d3979 Merge branch 'develop' into decouple-presets 2020-11-06 18:02:10 -05:00
Quincy Morgan ea0e5a9a32 Write the languages.json file in build_data.js instead of update_locales.js (re: #8165) 2020-11-06 17:38:41 -05:00
Quincy Morgan db12fc5f57 Depend on id-tagging-schema for presets 2020-11-06 10:38:43 -05:00
Quincy Morgan 83df29ccf2 Add warning about unused fields to build_data script 2020-10-16 10:33:04 -04:00
Quincy Morgan 808eb21102 Remove call to request (re: #7959) 2020-09-28 15:29:12 -04:00
Quincy Morgan f9fcc03e20 Update to temaki v4.2.0
Drop the noun project (close #8030)
Drop request (close #7959)
2020-09-28 13:58:27 -04:00
Quincy Morgan f163722c9a Create a new manyCombo field type for the public transport vehicles field instead of using multiCombo in a new way (re: #6142) 2020-09-24 09:21:59 -04:00
Quincy Morgan a51b82b546 Add check to make sure presets share geometry with all their fields 2020-09-21 17:00:46 -04:00
Quincy Morgan f141d1a77d Show Telephone and Website fields by default on more POI presets (close #7877) 2020-09-21 15:25:14 -04:00
Quincy Morgan 98bea69947 Add Vehicles field for public_transport presets (close #6142, re: #7970)
Enable variant type of `multiCombo` field that works for any listed keys, not ones under a prefix
2020-09-16 15:15:10 -04:00
Quincy Morgan 8ecada3b79 Move languageNames and scriptNames data to the individual locale files instead of always loading them via locales.json (re: #7994) 2020-09-15 14:41:56 -04:00
Quincy Morgan 06e97cd019 Make Maxar imagery strings translatable (close #7724) 2020-06-24 10:40:46 -04:00
Quincy Morgan 5fb7136e93 Account for potential YAML output without quotes around keys with octothorps 2020-05-29 16:34:05 -04:00
Quincy Morgan 0a16fc21cb Fix issue with writing fontawesome icons on Node 14+ 2020-05-29 16:06:16 -04:00
Quincy Morgan 68a2c47fdb Fix issue with fetching icons from the noun project 2020-04-24 13:22:27 -07:00
Bryan Housel e6e5d6a788 Fix build concurrency
(closes #7378)

This switches to sync file writing before promisified minification.
This fixes an issue where it was possible for the minify steps to occur
before the writing steps were finished writing.
2020-04-16 12:06:44 -04:00
Simon Legner c3d090fc8e chore(scripts): update metadata for taginfo 2020-04-06 18:24:58 +02:00
Simon Legner 4647434a54 fix(scripts): metadata for taginfo 2020-04-05 17:08:59 +02:00
Quincy Morgan 8b0eac8826 Update taginfo.js for new branch names (close #7453) 2020-03-23 08:59:34 -07:00
Quincy Morgan 72a99673a0 Revert #7428 2020-03-20 09:59:30 -07:00
Bryan Housel 50353cf596 Switch references from editor-layer-index -> imagery-index
- remove the update_imagery script and steps to run it
  (this happens at runtime now)
- update privacy policy, faq, release notes, readme
2020-03-12 15:25:56 -04:00
SilentSpike 51efd5b714 Update and standardise QA implementations
- ES6ify (now using class syntax to define QAItem objects)
- Fix bug with KeepRight marker rendering not updating properly
- Use `qa-` prefix for the UI element classes to differentiate from iD
validation error related UI element classes
- Move away from "error" where possible in source
- Move away from snake_case naming where possible

Note that some function/method names have been untouched to make life
easier for v3 development. Have added note comments where appropriate.
2020-02-06 23:07:50 +00:00
Bryan Housel de0ac9d451 Upgrade to name-suggestion-index v4.0.0
(closes #7336)

- json data files are distributed both regular and minified
- json data is no longer exported by index.mjs
2020-02-06 11:28:02 -05:00
Bryan Housel 13ead25654 Merge branch 'external_presets' into 2.x
(re: #4994)
2020-02-05 21:32:51 -05:00
Bryan Housel d68b6090cf Remove extra level of nesting in presets.json, fields.json 2020-02-05 21:22:32 -05:00
Bryan Housel 0fe766d9a4 WIP on external presets
- preset data is no longer bundled into iD.js
- some code pathways commented out re: external presets
- many changes so that tests can run without presets at start, or async
- still need to make sure fallbacks are always there (point, line, area, etc)
2020-02-05 09:38:26 -05:00
SilentSpike 406264c37e Simplify structure of QA error data 2020-02-03 23:20:42 +00:00
SilentSpike d4723ec9e2 Read icons from qa_errors.json when building data
Also adds support for the following error types:
- Objects mapped as both node/area or way/area
- Power lines that lead to nowhere
- Extra nodes in power lines (which should only go from support to
support to endpoint)
- Power line supports with no power lines
2020-02-03 23:20:30 +00:00
SilentSpike 5afdfc527b Add support for more Osmose error types
- Missing parking access
- Malformed opening hours tagging
- Objects detected by Mapillary that aren't mapped
- Traffic sign information detected by Mapillary that isn't mapped

Mapillary errors add example code for special error type handling as
they don't need to request further details and can use piecewise
translation strings
2020-02-03 23:01:03 +00:00
SilentSpike 680fdb6b54 Allow Osmose errors to use category for UI strings
Some error types don't require unique strings and can share common
strings among the category. This makes that possible as well as adding
support for some other types of error for demonstrative purposes.
2020-02-03 23:01:02 +00: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 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 ce7cac6738 Move all the build scripts into scripts/ folder, ES6ify more stuff 2020-01-28 15:00:23 -05:00