Tag picker
Hi,
My issue is really simple : I need a tag picker for my app.
I've been thinking about it for a few days, and the only solutions I can think about are not very "Sailfishy" :/
So, what I'd like is to gather community ideas (and maybe even Sailors' ones) and build a TagPicker component that I would share with other devs/apps needing one. This would also bring consistency in UX.
My needs are :
- Allow the user to pick one or more tags at the same time ;
- Allow user to untag ;
- Allow the user to create one or more new tag(s) ;
- Some kind of autocompletion/filtering from a list of existing tags ;
- Initialize the TagPicker with selected tags.
For now, the best solution I can see is to use a SilicaListView containing TextSwitches. On top of this list, a SearchField would allow the user to filter the list and/or create new tags. A "+" button on the right side of the SearchField would allow the user to create the new tag.
I already have a component to show tags (basically, Labels put in a Flow layout) and I'm pretty happy with it. I think it could be part of the final TagPicker component (touching it would open the TagPicker).
What do you think about this ? Any ideas ?
The general design looks good to me. :)
MartinK ( 2015-08-11 13:47:30 +0300 )editI support your idea, and would use it also. Besides, I was quite a fan of the N900 tag picker. What was its strength, in my opinion, was that it makes the recently / most used tags obvious to select.
In your implementation, it should be nice to have the same capability. I thought already about it for a while, but didn't find any simple solution. The list may be sorted by recently / most used tags, or alphabetically (switchable with a pulley menu maybe).
Do you think it could be a good idea (in an ideal world) to have the tag base shared between applications ? This may influence the design of the underliying implementation.
Which licence do you plan to use ? To you think you will put the code in a Github or equivalent, so we can begin to use it also and report usability / design remarks ?
Damien Caliste ( 2015-08-11 14:50:35 +0300 )edit@Damien Caliste : I don't know how the N900 tag picker was but I'll try to have a look at it.
Having a tag base shared between applications is a very good idea. But that should be part of the official API. I don't see how we (the comunity) could distribute this. Any idea ? (Tags application ? How do we resolve dependencies ?...)
I'll put the code in a Github as soon as I get something working. I don't know about the licence yet (and I don't really care about it to be honest. I will probably chose LGPL or something similar).
But I would like to have some more comments / opinions about this before getting (really) started.
Thanks for your thoughts :)
François ( 2015-08-11 15:17:33 +0300 )edit@MartinK : I see a few drawbacks with the solution I gave :
I'm pretty sure we can improve that :)
François ( 2015-08-11 17:34:21 +0300 )edit