Commit Graph

71 Commits

Author SHA1 Message Date
Bryan Housel
36f3a2935e Fetch icon files from CDN instead of raw.github urls 2019-07-01 12:56:13 -04:00
Bryan Housel
03a098a181 Fix issue displaying preset name for suggestions with a '/' in name
(closes #6594)
2019-06-30 01:49:07 -04:00
Bryan Housel
1d2861c787 Handle iD-NSI tag mismatches 2019-06-17 11:35:51 -04:00
Bryan Housel
35d3b1fada Prefer a wiki commons logo sometimes..
(closes #6361)
2019-06-17 11:08:17 -04:00
Bryan Housel
06bdfbfb8a Use gray stroke on marker and lock icon on field for locked item 2019-05-20 15:36:10 -04:00
Bryan Housel
03dd95e00f pacify eslint 2019-05-17 17:11:20 -04:00
Bryan Housel
3c031f80ea Prioritize suggestion tags over preset tags
Before it was causing presets with special cuisine tags to not match
(e.g. `cuisine=donut;coffee`, `cuisine=ice_cream;burger`)
2019-05-17 12:41:56 -04:00
Bryan Housel
caecbffc18 Upgrade to name-suggestion-index v3.0.0
(closes: #6375, closes: #2032, re: 6361)
2019-05-17 01:01:33 -04:00
Bryan Housel
13b0cc3f0a Add preset for Donut fast food, improve cuisine suggestion matching 2019-05-15 18:17:44 -04:00
Bryan Housel
b17e4e4f1d Add 'list'/'text' toggle buttons 2019-05-02 13:49:26 -04:00
Tobias Zwick
d008a585fa remove removeTags from suggestionsToPresets 2019-04-30 22:14:51 +02:00
Quincy Morgan
db3f634df4 Fix issue where build would fail on older node versions 2019-04-17 11:50:23 -07:00
Quincy Morgan
5c2d0d21ef Delete unused icons from the noun project when building (re: #5691) 2019-04-17 11:25:42 -07:00
Quincy Morgan
a4a08e34bd Fix fatal error when building without a the_noun_project.auth file (re: #6193) 2019-04-17 08:38:54 -07:00
Quincy Morgan
2967d2d020 Add support for icons from the noun project (close #5691) 2019-04-16 18:06:05 -07:00
Bryan Housel
4a8c20c56e Remove lodash forEach
(re: 6087)
2019-03-28 19:50:20 -04:00
Quincy Morgan
1d3b6a3483 Use large Facebook brand images instead of square 2019-03-28 14:42:12 -04:00
Quincy Morgan
3d4c5c6087 Display logos for name-suggestion-index brands in the sidebar (close #5167) 2019-03-28 14:20:46 -04:00
Quincy Morgan
b12e7277df Add countryCodes property to preset schema
Copy countryCodes from name suggestion index
Use countryCodes to filter the preset search results (close #6124)
2019-03-28 11:44:05 -04:00
Bryan Housel
0edd10001e Removing more lodash: isEmpty, isNumber, some map/reduce/forEach
(re: #6087)
2019-03-27 13:32:35 -04:00
Bryan Housel
76e0d13729 Remove lodash every and filter
(re: #6087)
2019-03-23 01:22:56 -04:00
Bryan Housel
0e90167513 Remove lodash clone
(re: #6087)
2019-03-22 23:18:25 -04:00
Bryan Housel
99d46e9f70 Upgrade to name-suggestion-index v2
(closes #6073)
2019-03-20 23:12:05 -04:00
Quincy Morgan
20e2be80e7 Add most data from depreacted.json to taginfo.json (close #5995) 2019-03-20 10:34:42 -04:00
Quincy Morgan
7da79abd11 Fix issues where outdated tag warnings could persist after upgrading tags (close #6063) 2019-03-19 10:07:59 -04:00
Quincy Morgan
17087f42c8 Adding mechanism for specifying an upgrade path for deprecated presets (close #6045) 2019-03-13 17:51:12 -04:00
Quincy Morgan
3629f6b5b8 Fix preset field validation during data build
Fix amenity/photo_booth preset
2019-02-19 08:32:42 -05:00
Bryan Housel
e4e0d9d13a Add oneway icon for ImproveOSM oneway markers 2019-02-03 23:55:16 -05:00
Quincy Morgan
4f650ad2f9 The Junction Number field now appears by default on Motorway Link and Trunk Link presets (re: #4178)
Fields with a prerequisiteTag property no longer count against the fields count buildtime check
2019-01-18 11:03:21 -05:00
Quincy Morgan
ecec397736 Added fields for oneway:bicycle, destination, minspeed, and dog tags and added them to moreFields of appropriate presets
Reduced the maximum fields count before warning from 9 to 8
Updated some similar highway presets to use field inheritance
Added additional fields to moreFields of various highway presets
2019-01-17 10:09:46 -05:00
Bryan Housel
f93ee2f242 Fix arg to json-stringify-pretty-compact so taginfo.json is condensed 2019-01-17 09:08:01 -05:00
Bryan Housel
ed1b32682a Don't enumerate all the values of radio fields in taginfo.json
(closes #5715)

Because for these fields, the `keys` property already contains all the values
2019-01-17 00:26:02 -05:00
Quincy Morgan
2804ef35fe Added a warning and an error in build data for presets with "fields" counts over a given threshold (now 9 and 12)
Reduced all "fields" counts to nine or fewer by moving fields to "moreFields"
Moved maxheight, cycleway, and toll fields in highway presets from fields to moreFields
Added covered and maxspeed/advisory fields to moreFields of more highway presets
Added smoothness field to more path type presets
Updated highway/service presets to use field inheritance
Added variants of the voltage and frequency fields that require "electrified" not equal to "no" and added them to the relevant railway presets
2019-01-16 17:16:55 -05:00
Bryan Housel
7c26816a7e Switch brand suggestion preset generation over to inherit fields
This also attempts to use `cuisine` and `vending` tags in the
presetID - in case a more specific preset exists for those things.

This fixes a minor annoyance where only matching `key/value`
would find the "fast food" preset instead of the "chicken fast food"
or "pizza fast food" preset.

So now Chick-fil-a has a chicken icon and Sbarro has a pizza icon. 🍕
2019-01-15 16:02:57 -05:00
Quincy Morgan
4b2c380b18 Changed preset field inheritance to target specific presets rather than just the parent preset 2019-01-15 13:07:58 -05:00
Quincy Morgan
ae7c099c8a Moved field inheritance resolution from the data build to the preset initialization
Removed the data build check for duplicate values between fields and moreFields
Renamed the shop field from Type to Shop Type
Renamed the beauty field from Shop Type to Beauty Specialty
Added the brand field to the shop preset under moreFields
2019-01-15 09:53:26 -05:00
Quincy Morgan
78853e1dc1 Added mechanism for presets to inherit their fields and moreFields values 2019-01-14 18:27:50 -05:00
Bryan Housel
e51f2eb1e7 pacify eslint 2018-12-22 13:42:09 -05:00
Bryan Housel
6d327b3eff Upgrade FontAwesome icons, add more icons for winter sports 2018-12-22 13:02:46 -05:00
Quincy Morgan
4285f2f5c0 Added "moreFields" property to the field schema
The "Add field" dropdown can now be used to add preset-specific fields in addition to universal fields
2018-12-09 13:51:57 -08:00
Bryan Housel
f7c29a96ef Send some more info to taginfo about how the tags are used
(closes #5536)

We now include in the description:
- 🄵  if it's a field
- 🄿  if it's a preset
- '(unsearchable)' if it's that
2018-11-30 12:12:40 -05:00
Bryan Housel
b1a2e30b22 Boost matchScore of name suggestion presets 2018-11-21 11:14:58 -05:00
Bryan Housel
c70d04efd1 Upgrade code for name-suggestion-index v1
- we now import all the name suggestions
- get rid of the code to pick a single name based on count
- get rid of "hacky" code to set healthcare tags
- we now actually match on brand:wikidata tag, not name
2018-11-20 21:36:25 -05:00
Bryan Housel
629ee53db2 Upgrade fontawesome libraries 2018-09-05 23:03:24 -04:00
Bryan Housel
440b01a6ca Use json-stringify-pretty-compact for compacter json
(this reduces a few file sizes and will make for better github diffs)
2018-06-15 11:48:07 -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
cbfe23c9e1 Support FontAwesome solid, regular, and brands
(might as well.. only the used ones get bundled into the fa-sprite anyway)
2018-06-06 17:59:28 -04:00
Bryan Housel
2dd7bfc849 Add support for FontAwesome icons as preset icons
(closes #3025)
2018-06-06 02:19:38 -04:00
Bryan Housel
da10b6b254 Add maki- prefix to all maki icons
(re: #3924)
2018-06-05 22:12:33 -04:00
Bryan Housel
5901be1027 Replace poi- icons with temaki- icons
(re: #3924)
2018-06-05 13:08:43 -04:00