Like UI aligned with known conventions

I thought this would be plain text. What would be the purpose of the link ?

The link would take to the list of likers, functionality that is today only available in the page’s content menu.

The rationale for the number of likes to be a link to the actual likers is the following limitation of the current UI (as explained in the initial post):

  • the access to the list of likers is inexplicably far away from this UI and thus rather “hidden”, although the actual number of likes is displayed - one needs to know that the list of likers is linked from the page content menu and go click there
    • displaying the number of likes without giving an almost equally easy access to the actual likers is pushing too much for quantity over quality (it shows the number of likes and making it too hard to see whether the likers are trustworthy).

Hope it answers your question!

I like it too (pun intended), thanks Anca for the proposal. We had 6 proposals at https://design.xwiki.org/xwiki/bin/view/Proposal/Pagelikes#HButtondesignproposal but not this one :wink:

I think I’d use “0 like” and “1 like” instead of “0 likes” and “1 likes” but that’s a detail.

Now since you talk about consistency, I wonder if we shouldn’t also change the “Tags: [+]” visual to use an icon in addition or instead of “Tags:”, use a text input with auto suggest to add/remove tags (replacing the [+]), as in:

image

Maybe you also have some ideas about this Anca? :slight_smile:

Of course, I didn’t pay specific attention to that in the mockup but the objective is for that phrase to be coherent language-wise…

Of course the tags could be improved as well and I have some ideas about that as well, but maybe we should have that as a separate task / thread. I’m not sure exactly what kind of consistency you refer to (with known conventions?). To me, there is less of a pattern of tags management than the one for likes, but this doesn’t mean there is nothing to improve in our current UI…
If it would be my decision of the process, I would chose to start with listing the “problems” of the current UI, so that we know what we’re trying to improve, but let’s collect that in a separate thread, maybe?

Now, there is one major and fundamental quality of all those proposals that my current proposal doesn’t have (I kept the best for the end :wink: ): all those proposals are compatible with all icon themes (since all they do is use a single heart icon that doesn’t change color), while this proposal is rather specific to font awesome, because it uses 2 heart icons (an empty / inactive one and a full / active one).

While this may be rendered compatible with silk as well, by using various “hacks”, the icon theme API of XWiki does not have 2 hearts : https://design.xwiki.org/xwiki/bin/view/Proposal/XWiki%20Icon%20Set#HXWikiicons, so this proposal is not compatible with the icon API of XWiki.

So, next question after “do you like it?” is “how are we gonna make it happen?”, and I have a couple of paths:

  1. Drop it and produce another proposal that uses a single heart icon, which would make it compatible with the icon API.
    The problem here is that it would really be a pity to drop it and the alternative we find may really be suboptimal and not interesting, given that less than 20% of the existing XWiki instances use another icon theme than FontAwesome (20% is a personal feeling, I don’t have numbers to defend it).
  2. Make the code icon theme aware and use this implementation for when the icon theme is FontAwesome and a “degraded” version for when the icon theme is something else.
    TODO: We need to produce the degraded version that is comparable to this one.
  3. Hardcode this UI to always use the FontAwesome icons, regardless of the current icon theme set on the wiki and consider that the heart is not an icon per se, but a “button in the shape of a heart” so we can draw it however we want, regardless of the icon theme.

Any opinions?

Yes sure. The consistency I was referring was between the Like and the Tags. One (the Like) is using an icon with some link afterwards and the other (the Tags) is using a text followed by a colon and then some textual “[+]”. They look quite different in style (and thus in consistency) to me. Note that this was true before your new proposal too. I just thought it would be good to mention it since this thread was started about consistency.

1 Like

Ok, it makes sense. Thanks for the explanations, Anca !
I know that the color of the link should be in line with the general UI, but in XWiki there are some exceptions and if the tags were mentions, we can take the example of the [+] link. What I had in mind when I asked you about the link was that if it has to be a link and as I understood, it does, then it should be in line with the tags design, meaning that IMO the Likes link and the Add tags link should have the same color.

Hi! I’m really glad to see this proposal. While using the like feature I always had the impression I had already liked pages, when in fact I hadn’t. I have grown accustomed to the opposite behaviour from other apps and couldn’t shake this feeling off, although I knew how the feature was supposed to work in XWiki. So +1 for the above proposal (all three aspects).

Minor detail: Wondering whether we should have the word “like” / “likes” at all. The number itself could be clicked by users to see the list of likers. When there are no likes, only the heart would be displayed, no number next to it.

You mean like on this discourse that we’re using just now :slight_smile: .
That can be an option, indeed, in here they’re putting the number of likes before the heart and it’s actually a 3-state heart :slight_smile: - see my previous comment about the implementation. I personally like it with the words, like on Instagram and I think we have some room to put the words on the bottom of the page, but it’s indeed a detail…

1 Like

I’m also really interested of how everyone that liked the initial proposal would see this being handled on other Icon Themes, or if anyone even cares about other icon themes (because if no one does, then that confirms my supposition and helps answer the question…): @rstavro @vmassol @SilviaMacovei ?

I also prefer not to have any word when there are no likes. Now, for when there are likes, I’m fine with both options.

The XWiki Icon Set is not final. We extend it whenever we detect a missing icon. So you need to add the mapping for the empty heart to the supported icon themes (Silk and FontAwesome). For FontAwesome is easy. The hard part is to find a matching icon for Silk.

+1 for your proposal otherwise.

Thanks for the reminder, @mflorea! Actually I also had this in mind but by the time I wrote this proposal I forgot about it :slight_smile: , thanks for reminding!

Indeed. Actually, it’s rather easy to make a “deactivated” icon from an image icon by using a grayscale image filter (with some compatibility work), but this cannot be implemented as part of the icon theme API :frowning:
As you said, the problem is that there is nothing that may look like an empty heart in Silk. My solution to that may turn towards dropping the support for the Silk icon set :grin: , I’ll keep you posted.
I’m gonna give it some more thought, to see whether I have some other idea, but if there are other ideas, I am taking :slight_smile:

@lucaa note that we control the Silk icon set because we have it in our source tree. So we could also add a new image (e.g. heart_empty.png) for the empty hart to the Silk icon set :slight_smile:

Indeed, and since it’s dead anyway, it probably doesn’t matter much if we add to it.

Indeed, I looked up the subject of colored icons yday, and there are 2 things that I noticed:

  • colored icons does not seem to be a concept anymore, so Silk also looks rather dead
  • I also found other silk “forks”, made to address this problem.

Looks like an easy and viable solution, :+1: for the idea, @mflorea .

I made a pull request for this change here XWIKI-18545 Align Like button visuals with known conventions & XWIKI-21592 by lucaa · Pull Request #2645 · xwiki/xwiki-platform · GitHub as discussed above, awaiting feedback and merge.

Hey Anca! Thanks for working on this! It’s good that we can finally use the outlined heart for the Like states. I’m not sure if you’ve had the chance to see the more recent discussion on the like button revamp. The idea of my proposal was to have the like button in a container, very close in appearence to other buttons for consistency reasons, but also for making it more obvious to the user. Let me know what you think about these two proposals in relation to each other: 1 & 2 (this one has recently updated html & css). I still have to update the way I set the icon, but I’m looking to see if our visions are aligned on the look of the button

@amilica I just saw your new proposal now (after I sent the pull request for issue XWIKI-18545).

However, your proposal doesn’t seem to address the folllwing items that this current proposal addresses (copy from my motivation above):

Would it be interesting to integrate these 2 needs with your proposal?

Thanks!