-
Notifications
You must be signed in to change notification settings - Fork 192
Port mastodon/mastodon#24247 to Glitch (Change design of account rows in web UI) #2152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also missing the style changes necessary for this to work
|
||
<div> | ||
<DisplayName account={account} /> | ||
<ShortNumber value={account.get('followers_count')} renderer={counterRenderer('followers')} /> {verification} {muteTimeRemaining} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to check, but we might need to adjust this as glitch-soc offers an option to hide follower counts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm understanding this design correctly, I believe we return a negative value when the 'hide your followers count' feature is enabled, and then conditionally handle that inline to show '-' when account.get('followers_count') < 0
From app/serializers/rest/account_serializer.rb:
def followers_count
(Setting.hide_followers_count || object.user&.setting_hide_followers_count) ? -1 : object.followers_count
end
Example usage from action_bar:
{ account.get('followers_count') < 0 ? '-' : <FormattedNumber value={account.get('followers_count')} /> }
This is all in addition to the handling of ActivityPub requests from other servers which wouldn't be impacted
This pull request has merge conflicts that must be resolved before it can be merged. |
Rebasing soon. Do you have opinions on the design here? I like the new look but we do need to hide follower counts. |
bf6c3a1
to
ea95566
Compare
This pull request has resolved merge conflicts and is ready for review. |
Yep :D
I actually don't like this change that much. |
Hmmm. This begs the question of how vanilla mastodon displays follower counts in this updated UI for Glitch users that have theirs hidden. Is there an argument here for refactoring the entire 'hide follower counts' feature to return 0 instead of -1? I think the value proposition for the feature is allowing people to determine at a glance whether a user (especially one who just followed you) is a brand new account, or one without much social credibility. Though I'll admit I think the verified badge is silly, given that anyone can 'verify' an account using a free webhost
This gets my vote; omit the component entirely when we get a negative number back |
This would probably cause a lot of people thinking an account has 0 followers instead of them being hidden.
I don't think numbers are a good indicator for that and there isn't really a shortcut to just looking into profiles.
I would just omit it regardless of the count. |
Sorry, I meant to ask what it looks like for a user using vanilla mastodon
when they see an account card for a glitch user who has hidden their
follower count.
Like, from what I can tell of our handler, it just doesn't even include the
value in the array within the ActivityPub message?
I didn't mean to imply that I AGREE with the value proposition, just that
that's the argument being made heh
While the feature is....questionable.... I'm personally disinclined to diverge from upstream unless there is an affirmative reason to.
Instead of omitting the component maybe we use the "closed eyeball with a slash through it" emoji/icon that is common iconography?
|
Yeah, that crossed my mind after I sent my reply ^^
I mean... that sounds like a good enough reason to me.
I'm actually not familiar with emojis and wouldn't know what that one is supposed to mean. |
ea95566
to
82778bb
Compare
This pull request has merge conflicts that must be resolved before it can be merged. |
mastodon#24247 changed app/javascript/mastodon/components/account.jsx