-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
Initialize a new advanced metadata field for tags #389
Conversation
@ashmaroli Is this still a WIP or will this get discarded? |
@gsantner its still in WIP.. waiting for the API to mature enough to easily facilitate |
- disable converting associated value-field to 'list' type - filter suggestions based on input value - misc. css adjustments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an awesome feature 😍 Great job.
Just have a few comments.
@@ -21,6 +21,7 @@ export class MetaObject extends Component { | |||
let type = 'simple'; | |||
if (_.isObject(value)) type = 'object'; | |||
if (_.isArray(value)) type = 'array'; | |||
if (_.isArray(value) && key === 'tags') type = 'simple'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you extract these conditions into a method which returns type given value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Will handle this in a separate PR..
This feature lacks one thing currently: there's no way to select existing tag.. |
That could be done in another pr maybe another release. This is quite enough IMO. |
Inspired by #380
comma
key ,x
autocomplete
suggestionssite.tags