Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch brand suggestion preset generation over to inherit fields #5716

Merged
merged 2 commits into from
Jan 15, 2019

Conversation

bhousel
Copy link
Member

@bhousel bhousel commented Jan 15, 2019

This changes the brand suggestion preset generation over to use the new inherit fields feature from #5712 - @quincylvania can you take a look?

This also attempts to include cuisine and vending tags in the presetID - in case a more specific preset exists for those things. This fixes a minor annoyance where by only matching key/value, the code would find the "fast food" preset instead of the "chicken fast food" or "pizza fast food" preset.

It means that now Chick-fil-a has a chicken icon 🍗 and Sbarro has a pizza icon. 🍕

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. 🍕
Copy link
Collaborator

@quincylvania quincylvania left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! It's nice to get the cuisine icons in there. FYI: I noticed that the suggestion labels still have the more generic preset label, like "Restaurant" rather than "Pizza Restaurant". Not sure if that's the preferred behavior.

screen shot 2019-01-15 at 4 34 58 pm

@bhousel
Copy link
Member Author

bhousel commented Jan 15, 2019

FYI: I noticed that the suggestion labels still have the more generic preset label, like "Restaurant" rather than "Pizza Restaurant". Not sure if that's the preferred behavior.

Good catch! This was not intentional - I just pushed a fix for this..

screenshot 2019-01-15 17 16 54

@quincylvania
Copy link
Collaborator

@bhousel Great! I'd go ahead and merge.

@bhousel bhousel merged commit 196f93d into master Jan 15, 2019
@bhousel bhousel deleted the suggestion-preset-inheritance branch January 15, 2019 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants