Commit Graph

62 Commits

Author SHA1 Message Date
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
4c85e1664c Switch to node-request for transifex (re: #7959) 2020-09-27 20:27:36 -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
7ab9f268d9 Don't fetch the English strings if the preferred locale has 100% coverage (close #7994) 2020-09-15 16:09:08 -04:00
Quincy Morgan
2d8e5c6b7d Fix lint errors 2020-09-15 15:26:44 -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
964c2e6b12 Prefer Web Mercator to WGS 84 for WMS imagery endpoints (close #7823) 2020-07-22 10:44:37 -04:00
Quincy Morgan
630a277313 Fix lint error 2020-06-25 16:26:25 -04:00
Quincy Morgan
6fa7bfc067 Use autoprefixer for cross-browser CSS compatibility (close #7739) 2020-06-25 16:23:06 -04:00
Quincy Morgan
06e97cd019 Make Maxar imagery strings translatable (close #7724) 2020-06-24 10:40:46 -04:00
Quincy Morgan
01aa237857 Fix lint errors 2020-06-18 09:06:52 -04:00
Quincy Morgan
373dd965a6 Enable loading transifex credentials as environment variables 2020-06-17 18:12:59 -04:00
Quincy Morgan
1b6e44bc14 Support {@2x} and {r} as parameters for high-res custom TMS tiles (close #7712)
Use retina tiles for the locator overlay on supported displays
2020-06-17 12:40:36 -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
hikemaniac
3524c8c015 Ignore Thunderforest Outdoors layer 2020-05-02 01:34:39 +02: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
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
4ba25dffef Update deploy.sh for new branch names 2020-03-23 09:04:17 -07:00
Quincy Morgan
8b0eac8826 Update taginfo.js for new branch names (close #7453) 2020-03-23 08:59:34 -07:00
Quincy Morgan
36082a8119 Use ideditor as the container class instead of id-container
Scope all CSS to iD's container (close #7437)
Don't style html or body elements unless running standalone iD
2020-03-22 16:54:12 -07:00
Quincy Morgan
32600f993f Update for new branch names 2020-03-20 11:36:26 -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
Bryan Housel
e633f1b69e npm run translations (locale files are minified now) 2020-02-21 12:23:44 -05:00
Bryan Housel
086cade061 Restore Maxar imagery layers using masked urls
(cherry pick of #7356)
2020-02-14 14:51:03 -05: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
6e5cb45c17 Don't bundle the imagery anymore, fetch from dist/data at runtime
(re: #4994)
2020-01-30 17:10:41 -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
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
Bryan Housel
b4137c1a9b Push strings to Transfiex only if we are building the 2.x branch 2019-10-24 15:57:34 -04:00