Hi!
I'm getting closer and closer to writing UI for badges in repo. Does anyone have any ideas?
The only thing I came with is a additional row beneath each site link which behaves (and looks) like aliases editing currently does, but I think that this would take too much space.
Thanks, Michał
Badges are for the purpose of marking articles as featured articles and good articles and such, correct? If so, I figure they would generally only need to take up about one small icon's worth of width in the sitelink row, maybe not even needing a special column. There already is an effective "edit this sitelink" mode that the interface goes to when an edit button is clicked, so badges could be edited from that.
On Fri, Aug 30, 2013 at 2:34 PM, Michał Łazowik mlazowik@me.com wrote:
Hi!
I'm getting closer and closer to writing UI for badges in repo. Does anyone have any ideas?
The only thing I came with is a additional row beneath each site link which behaves (and looks) like aliases editing currently does, but I think that this would take too much space.
Thanks, Michał _______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Wiadomość napisana przez Yair Rand yyairrand@gmail.com w dniu 1 wrz 2013, o godz. 14:51:
Badges are for the purpose of marking articles as featured articles and good articles and such, correct? If so, I figure they would generally only need to take up about one small icon's worth of width in the sitelink row, maybe not even needing a special column. There already is an effective "edit this sitelink" mode that the interface goes to when an edit button is clicked, so badges could be edited from that.
That's the purpose, and that's how they appear in the first mockups [0]. That won't work now, because the team made a decision that badges can point to any items (note that there can be more than one badges per sitelink), so the editing has now to be similar to editing aliases, as it's more than a simple on/off switch.
Michał
[0] https://upload.wikimedia.org/wikipedia/commons/a/aa/20120621_wikidata_layout...
Hi,
I would actually still stick with these layouts. I know the API allows for a more powerful usage of badges, but the UI could simply allow to set FA or GA, and leave the rest of the badges alone, as a first step.
In a second step we could think about how to deal with the full power of the badges API, but this would require some layout drafts first.
I hope this makes sense, Cheers, Denny
2013/9/1 Michał Łazowik mlazowik@me.com
Wiadomość napisana przez Yair Rand yyairrand@gmail.com w dniu 1 wrz 2013, o godz. 14:51:
Badges are for the purpose of marking articles as featured articles and
good articles and such, correct? If so, I figure they would generally only need to take up about one small icon's worth of width in the sitelink row, maybe not even needing a special column. There already is an effective "edit this sitelink" mode that the interface goes to when an edit button is clicked, so badges could be edited from that.
That's the purpose, and that's how they appear in the first mockups [0]. That won't work now, because the team made a decision that badges can point to any items (note that there can be more than one badges per sitelink), so the editing has now to be similar to editing aliases, as it's more than a simple on/off switch.
Michał
[0] https://upload.wikimedia.org/wikipedia/commons/a/aa/20120621_wikidata_layout... _______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Wiadomość napisana przez Denny Vrandečić denny.vrandecic@wikimedia.de w dniu 4 wrz 2013, o godz. 17:52:
Hi,
I would actually still stick with these layouts. I know the API allows for a more powerful usage of badges, but the UI could simply allow to set FA or GA, and leave the rest of the badges alone, as a first step.
That seems to be very reasonable, thanks. But the design allows only to switch on/off (one badge). What should it be to support both FA/GA? A selectable list (of strings?)? A list that opens on clicking the star and two diifferent star colors?
In a second step we could think about how to deal with the full power of the badges API, but this would require some layout drafts first.
I hope this makes sense, Cheers, Denny
Michał
Hi,
changing the badge should not be possible by just clicking the star. The user has to hit the edit button first to make any edits. We should stay consistent with the rest of the UI here.
My suggestion would be, in non edit mode show the star or whatever icon represents a specific badge, and in edit mode just provide a drop down where the badge can be selected from.
Cheers, tobi On Sep 4, 2013 7:05 PM, "Michał Łazowik" mlazowik@me.com wrote:
Wiadomość napisana przez Denny Vrandečić denny.vrandecic@wikimedia.de w dniu 4 wrz 2013, o godz. 17:52:
Hi,
I would actually still stick with these layouts. I know the API allows
for a more powerful usage of badges, but the UI could simply allow to set FA or GA, and leave the rest of the badges alone, as a first step.
That seems to be very reasonable, thanks. But the design allows only to switch on/off (one badge). What should it be to support both FA/GA? A selectable list (of strings?)? A list that opens on clicking the star and two diifferent star colors?
In a second step we could think about how to deal with the full power of
the badges API, but this would require some layout drafts first.
I hope this makes sense, Cheers, Denny
Michał _______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
full agreement.
2013/9/4 Tobi Gritschacher tobias.gritschacher@wikimedia.de
Hi,
changing the badge should not be possible by just clicking the star. The user has to hit the edit button first to make any edits. We should stay consistent with the rest of the UI here.
My suggestion would be, in non edit mode show the star or whatever icon represents a specific badge, and in edit mode just provide a drop down where the badge can be selected from.
Cheers, tobi On Sep 4, 2013 7:05 PM, "Michał Łazowik" mlazowik@me.com wrote:
Wiadomość napisana przez Denny Vrandečić denny.vrandecic@wikimedia.de w dniu 4 wrz 2013, o godz. 17:52:
Hi,
I would actually still stick with these layouts. I know the API allows
for a more powerful usage of badges, but the UI could simply allow to set FA or GA, and leave the rest of the badges alone, as a first step.
That seems to be very reasonable, thanks. But the design allows only to switch on/off (one badge). What should it be to support both FA/GA? A selectable list (of strings?)? A list that opens on clicking the star and two diifferent star colors?
In a second step we could think about how to deal with the full power
of the badges API, but this would require some layout drafts first.
I hope this makes sense, Cheers, Denny
Michał _______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Wiadomość napisana przez Denny Vrandečić denny.vrandecic@wikimedia.de w dniu 5 wrz 2013, o godz. 13:09:
full agreement.
2013/9/4 Tobi Gritschacher tobias.gritschacher@wikimedia.de Hi,
changing the badge should not be possible by just clicking the star. The user has to hit the edit button first to make any edits. We should stay consistent with the rest of the UI here.
My suggestion would be, in non edit mode show the star or whatever icon represents a specific badge, and in edit mode just provide a drop down where the badge can be selected from.
Cheers, tobi
On Sep 4, 2013 7:05 PM, "Michał Łazowik" mlazowik@me.com wrote: Wiadomość napisana przez Denny Vrandečić denny.vrandecic@wikimedia.de w dniu 4 wrz 2013, o godz. 17:52:
Hi,
I would actually still stick with these layouts. I know the API allows for a more powerful usage of badges, but the UI could simply allow to set FA or GA, and leave the rest of the badges alone, as a first step.
That seems to be very reasonable, thanks. But the design allows only to switch on/off (one badge). What should it be to support both FA/GA? A selectable list (of strings?)? A list that opens on clicking the star and two diifferent star colors?
Just realized after chat with Danwe on IRC: what about non-wmf instalations?
Michał
The easy solution would be not to do anything special right now, besides a configuration option to switch badges on and off in the UI. (Whereas I see usage of Wikibase outside of WMF, I have trouble seeing the sitelinks features and the badges being used widely, and I would refrain from spending too much time on refining that)
In the long run, it seems reasonable to create configurations for: * switching badges off and on * letting badges be selected from a specific set or from the set of all items * either provide a mapping of items to icons or a property to be used to find the icon from the item
But this can be developed iteratively over time, as configuration options, and only when there is actually a use case for it in some project. Until then, let us avoid complexity and creating technical debt in the form of unused features.
2013/9/5 Michał Łazowik mlazowik@me.com
Wiadomość napisana przez Denny Vrandečić denny.vrandecic@wikimedia.de w dniu 5 wrz 2013, o godz. 13:09:
full agreement.
2013/9/4 Tobi Gritschacher tobias.gritschacher@wikimedia.de
Hi,
changing the badge should not be possible by just clicking the star. The user has to hit the edit button first to make any edits. We should stay consistent with the rest of the UI here.
My suggestion would be, in non edit mode show the star or whatever icon represents a specific badge, and in edit mode just provide a drop down where the badge can be selected from.
Cheers, tobi On Sep 4, 2013 7:05 PM, "Michał Łazowik" mlazowik@me.com wrote:
Wiadomość napisana przez Denny Vrandečić denny.vrandecic@wikimedia.de w dniu 4 wrz 2013, o godz. 17:52:
Hi,
I would actually still stick with these layouts. I know the API allows
for a more powerful usage of badges, but the UI could simply allow to set FA or GA, and leave the rest of the badges alone, as a first step.
That seems to be very reasonable, thanks. But the design allows only to switch on/off (one badge). What should it be to support both FA/GA? A selectable list (of strings?)? A list that opens on clicking the star and two diifferent star colors?
Just realized after chat with Danwe on IRC: what about non-wmf instalations?
Michał
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Wiadomość napisana przez Denny Vrandečić denny.vrandecic@wikimedia.de w dniu 5 wrz 2013, o godz. 22:31:
The easy solution would be not to do anything special right now, besides a configuration option to switch badges on and off in the UI. (Whereas I see usage of Wikibase outside of WMF, I have trouble seeing the sitelinks features and the badges being used widely, and I would refrain from spending too much time on refining that)
In the long run, it seems reasonable to create configurations for:
- switching badges off and on
- letting badges be selected from a specific set or from the set of all items
- either provide a mapping of items to icons or a property to be used to find the icon from the item
But this can be developed iteratively over time, as configuration options, and only when there is actually a use case for it in some project. Until then, let us avoid complexity and creating technical debt in the form of unused features.
OK, that also came up in the IRC, and is reasonable. One thing left: how to connect badges with their item ids and images? Allow that to be set in some mediawiki message?
Michał
The item ID stands for the badge, the label of the item is the label for the badge. There is no need to connect them. Or am I misunderstanding something?
For the images - yes, a message is a good idea.
2013/9/5 Michał Łazowik mlazowik@me.com
Wiadomość napisana przez Denny Vrandečić denny.vrandecic@wikimedia.de w dniu 5 wrz 2013, o godz. 22:31:
The easy solution would be not to do anything special right now, besides
a configuration option to switch badges on and off in the UI. (Whereas I see usage of Wikibase outside of WMF, I have trouble seeing the sitelinks features and the badges being used widely, and I would refrain from spending too much time on refining that)
In the long run, it seems reasonable to create configurations for:
- switching badges off and on
- letting badges be selected from a specific set or from the set of all
items
- either provide a mapping of items to icons or a property to be used to
find the icon from the item
But this can be developed iteratively over time, as configuration
options, and only when there is actually a use case for it in some project. Until then, let us avoid complexity and creating technical debt in the form of unused features.
OK, that also came up in the IRC, and is reasonable. One thing left: how to connect badges with their item ids and images? Allow that to be set in some mediawiki message?
Michał _______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Wiadomość napisana przez Denny Vrandečić denny.vrandecic@wikimedia.de w dniu 5 wrz 2013, o godz. 23:44:
The item ID stands for the badge, the label of the item is the label for the badge. There is no need to connect them. Or am I misunderstanding something?
For the current setup - how to tell the software which ID is for FA and which for GA. If this was done by labels, then en labels for FA and GA templates would need to be hardcoded into the UI. Would that be OK?
For the images - yes, a message is a good idea.
No, sorry - not by labels.
I would suggest to do it through a config variable.
badgeItems = [ 'Q12345', 'Q23456' ]
And then use the labels of those items for translated labels for the badges, if needed (i.e. if the icon is not sufficient anyway).
2013/9/5 Michał Łazowik mlazowik@me.com
Wiadomość napisana przez Denny Vrandečić denny.vrandecic@wikimedia.de w dniu 5 wrz 2013, o godz. 23:44:
The item ID stands for the badge, the label of the item is the label for
the badge. There is no need to connect them. Or am I misunderstanding something?
For the current setup - how to tell the software which ID is for FA and which for GA. If this was done by labels, then en labels for FA and GA templates would need to be hardcoded into the UI. Would that be OK?
For the images - yes, a message is a good idea.
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
wikidata-tech@lists.wikimedia.org