In the midst of working on the voting plugin, I had an idea for a way to show users the topics they’ve voted on. To keep with the current UX, I’d like to add another feed at the bottom of the user activity menu. This would be similar to Bookmarks.
From what I can tell, this would require the addition of two plugin outlets. I’d be more than willing to create the PRs for these, but is there support for these? Would anyone else have an interest in them?
Just for the record, I liked the initial post because I’m in support for this. I could see multiple ways of utilizing those locations. Private Profile Notes, for example, would benefit from the outlet on the User Page.
@Mittineague, above the {{#if viewingSelf}} on the user page, and before bookmarks on the user menu (or after depending if the CSS is using floats).
So there would be two outlets, one specifically for the User Page and one specifically for adding an icon/glyph only link on the User Menu.
I typically assume that when I ask a question about functionality that people who like it are in support of it. I suppose the voting plugin that sparked this question would eventually help with that. But now we’re getting a bit too meta.
Here’s what I would propose. For user_activity_bottom, it should go after the bookmarks link. That means it would go directly before the highlighted line:
And for user_menu_glyphs, it should be before the other glyphs in the menu. I wouldn’t want to disrupt the current expectation for menu items. That means it would go before this line:
Ah, OK, thanks for being patient, I got it now (I was misconstruing “user_menu” to mean “activity_menu” despite the screen shot plain as day) .
lol, I’ve aslo had a couple more cups of coffee
Now that I’m looking at it, the user-nav seems to be geared towards information about the user and the other about topics. I could see the desire for both.
The UX designer in me starts to wonder about placement though. Summaries and preferences are typically at the beginning or end of lists. Would it make more sense to put it between Badges and Summary?
Yes, I think it would make more sense there.
But I’m thinking too that it might be foolish to start adding plugin-outlets before there is an actual call for them to be there.
It seems a bit odd that the user_menu has “bookmarks”, “messages” and “preferences” together.
Yet on the Activity page they are in different places.
Decisions, decisions.
I guess in your use - Voting - they are to do with posts so the user_activity_bottom does feel like the better choice.
Sam had a good question on GitHub about the user-menu-glyphs add. What happens when there is a long username like “WWWWWWWWWWWWW”. I used that username in the DOM and this is what it looks like before the extra glyph:
If you add a glyph to the list with the same username:
However, changing the padding on the a tags in that menu from 0.5em to 0.4em makes it look like this:
There’s a little difference in spacing between icons and I’m not sure I like making things tighter than they already are. I currently don’t have a solution in mind otherwise.
Yeah, that’s going to be a problem regardless, though I don’t see a lot of people tying into that specific spot (although it’d be cool). One alternative, is to force the outlet to be below the current glyphs, so those who do choose to, know they are going to be extending that user menu.
That also means anyone without any said plugins then wouldn’t get that extra hit.
And this way, it is only instances that install plugins that add said glyph that would get this behavior, but at least it can easily support 3 of them.
The more I look at this, the more I think we should skip it. It looks pretty tacky with an extra row when it appears that it will fit with the others. And if we shrink the padding in the main row, it only allows for one extra glyph. That means plugins could create issues with each other.
And if we think about it, the three glyphs that are there don’t cover all the options from the user activity page anyway. They are simply the most common (and standard) links. I’m not sure many plugins will hit that status. As much as I’d like to think the voting plugin is that important, it’s likely not to the majority of users. One extra click from the activity page isn’t a big deal.
Sam already merged the PR for user-activity-bottom. I’m going to run with that for now and if we can find a better way in the user menu, I’ll jump on it. But I’m not sure it’s worth it.