Show Favs and Repeats in the statuses #1995

Closed
brendenbice1222 wants to merge 0 commits from gitlab-mr-iid-725 into develop

close #202

Things to note

I've made AvatarList component that accepts avatars information array. This allows to display users easily in stacked avatars list. At the moment, It fetches the information of favourited by and replied by from 2 endpoints after initial loading of statuses. This needs to be tested in performance wise as well to see if api refactoring is needed.

Screenshots

  • desktop

Screen_Shot_2019-04-01_at_11.18.19_PM

  • mobile

Screen_Shot_2019-04-01_at_11.18.34_PM

close #202 **Things to note** I've made AvatarList component that accepts avatars information array. This allows to display users easily in stacked avatars list. At the moment, It fetches the information of favourited by and replied by from 2 endpoints after initial loading of statuses. This needs to be tested in performance wise as well to see if api refactoring is needed. **Screenshots** * desktop ![Screen_Shot_2019-04-01_at_11.18.19_PM](/attachments/c9ade2af-06cf-4516-8067-6b20b07be930) * mobile ![Screen_Shot_2019-04-01_at_11.18.34_PM](/attachments/c9178114-d488-434d-9b70-d5cdc1be5334)
Member

Really needs a lot better design than this. Takes a lot of space compared to everything else, the avatars are way too big. Boost is not in our terminology (mastodon term, that's why it's in the API) and the labels for the things are also unnecessary. In your screenshots it's also inaccurate, there are only 3 repeats and your image shows 10 avatars, maybe it would be better to just have one list that is the combined favs or repeats. The placing should also be above the status actions instead of below, so it doesn't appear between reply form and the status actions if you decide to reply.

Really needs a lot better design than this. Takes a lot of space compared to everything else, the avatars are way too big. Boost is not in our terminology (mastodon term, that's why it's in the API) and the labels for the things are also unnecessary. In your screenshots it's also inaccurate, there are only 3 repeats and your image shows 10 avatars, maybe it would be better to just have one list that is the combined favs or repeats. The placing should also be above the status actions instead of below, so it doesn't appear between reply form and the status actions if you decide to reply.
Member

I'm sure there's a better way for this

I'm sure there's a better way for this
Member

we tend to use just dashes and not double underscores

we tend to use just dashes and not double underscores
Member

the combination of classes "boosted-users" and "reblogged-users" is bound to confuse anyone reading this

the combination of classes "boosted-users" and "reblogged-users" is bound to confuse anyone reading this
Member

oh no it's BEM

[flashbacks]

oh no it's BEM [flashbacks]
Member

flex order could be of use

flex order could be of use
Member

use variable-provided border-radius pls

use variable-provided border-radius pls
Member

what about css3 variable?

what about css3 variable?
Member

again, theming

again, theming
Member

pls use favorited (en_US) instead of favourite (en_UK) to make it easier to search.

pls use favorited (en_US) instead of favourite (en_UK) to make it easier to search.
Member

i18n

i18n
Member

i18n

i18n
Member

for mobile layout it should probably be in one column instead of two.

avatar size definitely needs to be smaller

for mobile layout it should probably be in one column instead of two. avatar size definitely needs to be smaller
Author
Member

Screenshots

Desktop

Screen_Shot_2019-04-02_at_1.34.33_PM

Mobile

Screen_Shot_2019-04-02_at_1.34.43_PM

**Screenshots** *Desktop* ![Screen_Shot_2019-04-02_at_1.34.33_PM](/attachments/fd4dece3-25b0-41fd-a02f-0690d8dac373) *Mobile* ![Screen_Shot_2019-04-02_at_1.34.43_PM](/attachments/07aeb2fa-a094-4d32-a9a3-40bacaf784f0)
Author
Member

We discussed to remove the labels so i think there's no need to use i18n this time.

We discussed to remove the labels so i think there's no need to use i18n this time.
Member

re: screenshots
are those avatars of ones that repeated or ones that favorited or both? we may never know.

re: screenshots are those avatars of ones that repeated or ones that favorited or both? we may never know.
Author
Member

Those are the avatars of both repeated and favorited.

Those are the avatars of both repeated and favorited.
Member

Discussed this with hj today, would be a good idea to do the design the same way as twitter and qvitter do it, so there's text with numbers like "Favorites 12 Repeats 19", then a divider, and then avatars of the people who favd/rtd it. I don't think the overlap for the avatars is necessary or good, could just have them side by side normally.

Further improvements in the future would be having the favorites/repeats texts function as buttons that open a proper list of people who favorited or who repeated, like on twitter.

Discussed this with hj today, would be a good idea to do the design the same way as twitter and qvitter do it, so there's text with numbers like "Favorites 12 Repeats 19", then a divider, and then avatars of the people who favd/rtd it. I don't think the overlap for the avatars is necessary or good, could just have them side by side normally. Further improvements in the future would be having the favorites/repeats texts function as buttons that open a proper list of people who favorited or who repeated, like on twitter.
Author
Member

What if there are number of user like over 100 that has large number of users to display?

What if there are number of user like over 100 that has large number of users to display?
Author
Member

Screenshots

desktop

Screen_Shot_2019-04-05_at_3.31.01_AM

mobile

Screen_Shot_2019-04-05_at_3.31.12_AM

**Screenshots** *desktop* ![Screen_Shot_2019-04-05_at_3.31.01_AM](/attachments/b804cd45-d428-4e1d-9403-f03e512310ad) *mobile* ![Screen_Shot_2019-04-05_at_3.31.12_AM](/attachments/c84642f1-e9da-4087-96bc-5c094ce01e30)
Member

That border looks like an underline, also there's no way of telling if those are clickable

That border looks like an underline, also there's no way of telling if those are clickable
Member

I think we're getting there now, I still think duplicates should be removed so that if a person favd AND rtd a post, you'd only need to show that once.

You have to cap the amount of avatars to some reasonable number, there's just no good way of dealing with dozens of them, if you look at twitter they only show as much as it can fit in the UI and I don't think we need to deviate from that.

I edited your screenshot to sketch out the design I was thinking about when we were talking about making it like twitter, should've done it sooner to not leave ambiguity. when we later add functionality to view the people who favd/rtd, then the repeats/favorites text should get an underline on mouseover just like the Timeago link on the top row of the status. @hj feel free to comment/improve. (As an idea, maybe not showing numbers on the buttons when there's the proper display would make it look cleaner with less redundancy? or maybe that's just me overthinking it)

favs_rts

I think we're getting there now, I still think duplicates should be removed so that if a person favd AND rtd a post, you'd only need to show that once. You have to cap the amount of avatars to some reasonable number, there's just no good way of dealing with dozens of them, if you look at twitter they only show as much as it can fit in the UI and I don't think we need to deviate from that. I edited your screenshot to sketch out the design I was thinking about when we were talking about making it like twitter, should've done it sooner to not leave ambiguity. when we later add functionality to view the people who favd/rtd, then the repeats/favorites text should get an underline on mouseover just like the Timeago link on the top row of the status. @hj feel free to comment/improve. (As an idea, maybe not showing numbers on the buttons when there's the proper display would make it look cleaner with less redundancy? or maybe that's just me overthinking it) ![favs_rts](/attachments/7a057b0f-59a8-4b24-afba-c95333fe2807)
Author
Member

Screenshots

Desktop

Screen_Shot_2019-04-05_at_2.33.11_PM

Mobile

Screen_Shot_2019-04-05_at_2.33.28_PM

**Screenshots** *Desktop* ![Screen_Shot_2019-04-05_at_2.33.11_PM](/attachments/28f69d49-6644-4ec1-993f-9a614156691d) *Mobile* ![Screen_Shot_2019-04-05_at_2.33.28_PM](/attachments/eaeffb19-6965-4a03-8040-ac2fd6f4d859)
Member

was this supposed to be $fallback--faint ?

was this supposed to be $fallback--faint ?
Member

why the !important?

why the `!important`?
Member

same here, !important

same here, `!important`
Member

wait why are you searching for the first post in conversation?

wait why are you searching for the first post in conversation?
Member
[].concat(this.statusoid.rebloggedBy, this.statusoid.favoritedBy).filter(_=>_)

looks more clean

```js [].concat(this.statusoid.rebloggedBy, this.statusoid.favoritedBy).filter(_=>_) ``` looks more clean
Member

probably should use <transition>? https://vuejs.org/v2/guide/transitions.html

probably should use `<transition>`? https://vuejs.org/v2/guide/transitions.html
Member

i had some bad experiences with font-weight lighter than normal suddenly becoming too light and unreadable. We allow users to select their own font and probably want to avoid that behavior

i had some bad experiences with font-weight lighter than normal suddenly becoming too light and unreadable. We allow users to select their own font and probably want to avoid that behavior
Member

so your text and your background will be same color??

so your text and your background will be same color??
Member

just how it looks here:
image

just how it looks here: ![image](/attachments/3d771d7a-ce6f-427a-9b0e-da6d63761e74)
Member

without font-weight:
image

without font-weight: ![image](/attachments/e11ffec3-2b3a-4715-b7a9-066d0d94da95)
5.5 KiB
Member

ok i realise what you are trying to do here.

just use <a>

ok i realise what you are trying to do here. just use `<a>`
Member

always shows favs/repeats for first post in conversation, should show favs and repeats for highlighted (selected) post

clicking on labels does nothing which makes whole thing kinda pointless at the moment.

always shows favs/repeats for first post in conversation, should show favs and repeats for highlighted (selected) post clicking on labels does nothing which makes whole thing kinda pointless at the moment.
Author
Member

as per the discussion with Feld.
I'll discuss with him again with this as @shpuld asked me same

as per the discussion with Feld. I'll discuss with him again with this as @shpuld asked me same
Member

can we just discuss it here together instead? i'm starting to really hate this "@feld wants something and it will be done this way like it or not".

can we just discuss it here together instead? i'm starting to really hate this "@feld wants something and it will be done this way like it or not".
Author
Member

@feld, what do you think?

@feld, what do you think?
Author
Member

Screenshots

desktop

Screen_Shot_2019-04-07_at_2.28.09_PM

mobile

Screen_Shot_2019-04-07_at_2.29.02_PM

**Screenshots** *desktop* ![Screen_Shot_2019-04-07_at_2.28.09_PM](/attachments/b83cb705-c45a-422a-b208-ddb995ea5ee9) *mobile* ![Screen_Shot_2019-04-07_at_2.29.02_PM](/attachments/38445351-f340-463f-ad9c-08025e39aae7)
Author
Member

@hj
Please review latest changes.

@hj Please review latest changes.
Member

Gave it a spin, some notes:

  • I don't think the fav/rt details should be shown on other posts than the one that is being highlighted.
  • It doesn't work when you expand a conversation on the timeline (the [+] icon in the corner of a status)
  • would be nice if it worked when you focus a post in conversation via the reply links ("Reply to" or the #0 numbers)
Gave it a spin, some notes: - I don't think the fav/rt details should be shown on other posts than the one that is being highlighted. - It doesn't work when you expand a conversation on the timeline (the [+] icon in the corner of a status) - would be nice if it worked when you focus a post in conversation via the reply links ("Reply to" or the #0 numbers)
Member

why remove? are you sure you're deleting correct thing there?

why remove? are you sure you're deleting correct thing there?
Member

commented code

commented code
Author
Member

We use transition wrapper component provided by Vue and that's why this class is not needed any more.

We use transition wrapper component provided by Vue and that's why this class is not needed any more.
Member

yeah but you're removing existing code, not your changes...

yeah but you're removing existing code, not your changes...
Author
Member

I've added it back

I've added it back
Author
Member

Screenshot

Screen_Shot_2019-04-09_at_11.47.54_AM

Things to note

  • Showing favs & reblogged avatars is available in timeline
  • Showing favs & reblogged avatars on highlighted post by click reply to and #0, ... is done
**Screenshot** ![Screen_Shot_2019-04-09_at_11.47.54_AM](/attachments/c75cb08a-3772-4787-86bb-aa3f2a06084b) *Things to note* - Showing favs & reblogged avatars is available in timeline - Showing favs & reblogged avatars on highlighted post by click reply to and #0, ... is done
Member

This looks great!! 💯

This looks great!! :100:
Owner

I think this is a good solution. Are there any technical concerns?

I think this is a good solution. Are there any technical concerns?
Member

Yeah this is what I'm talking about! great work! Code looks good to me, but there's some small things (bear with me) I'd add, it would be tooltip for the username (lain@pleroma.soykaf for example) when hovering an avatar, and some flex-wrap: nowrap; to eliminate half-showing avatars.

Edit: To clarify: just using flex-wrap to hide the overflowing ones, not to show them on multiple rows

Yeah this is what I'm talking about! great work! Code looks good to me, but there's some small things (bear with me) I'd add, it would be tooltip for the username (lain@pleroma.soykaf for example) when hovering an avatar, and some flex-wrap: nowrap; to eliminate half-showing avatars. Edit: To clarify: just using flex-wrap to hide the overflowing ones, not to show them on multiple rows
Member

Could add it for "Favorites" and "Repeats" now, no need to worry about other languages than english for your MR

Could add it for "Favorites" and "Repeats" now, no need to worry about other languages than english for your MR
Member

taking this one over

taking this one over

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pleroma/pleroma-fe!1995
No description provided.