Merge pull request 'Improve photo tags' (#83) from feature/photo_tags into master
Reviewed-on: #83
This commit was merged in pull request #83.
This commit is contained in:
@@ -2,11 +2,11 @@ import { POI_CATEGORIES } from './poi-categories';
|
|||||||
import { getMatchingPoiCategoryIds } from './poi-category-matcher';
|
import { getMatchingPoiCategoryIds } from './poi-category-matcher';
|
||||||
|
|
||||||
export const CATEGORY_TAGS = {
|
export const CATEGORY_TAGS = {
|
||||||
restaurants: ['food', 'menu', 'vibe', 'front'],
|
restaurants: ['front', 'food', 'drinks', 'menu', 'vibe'],
|
||||||
coffee: ['food', 'menu', 'vibe', 'front'],
|
coffee: ['front', 'food', 'drinks', 'menu', 'vibe'],
|
||||||
groceries: ['front', 'food'],
|
groceries: ['front', 'products'],
|
||||||
'things-to-do': ['architecture', 'amenities', 'vibe', 'front'],
|
'things-to-do': ['front', 'architecture', 'amenities', 'vibe'],
|
||||||
accommodation: ['rooms', 'amenities', 'food', 'vibe', 'front'],
|
accommodation: ['front', 'rooms', 'amenities', 'food', 'drinks', 'vibe'],
|
||||||
};
|
};
|
||||||
|
|
||||||
export function getSuggestedPhotoTags(place) {
|
export function getSuggestedPhotoTags(place) {
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ module('Integration | Component | place-photo-upload', function (hooks) {
|
|||||||
|
|
||||||
assert.dom('.photo-tag-suggestions').exists();
|
assert.dom('.photo-tag-suggestions').exists();
|
||||||
assert.dom('.photo-tag-chip').exists();
|
assert.dom('.photo-tag-chip').exists();
|
||||||
assert.dom('.photo-tag-chip').includesText('Food');
|
assert.dom('.photo-tag-chip').includesText('Front');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('it only allows one selected tag at a time', async function (assert) {
|
test('it only allows one selected tag at a time', async function (assert) {
|
||||||
|
|||||||
Reference in New Issue
Block a user