Skip to content
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

Hide 'Follows You' pill on own Followers page #6107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jakebailey
Copy link

When looking at your own followers page, every account listed has the "Follows You" pill:

image

That seems a little redundant; after all, I am looking at my own followers page. Of course they all follow me...

This PR hides that pill when viewing your own page, like:

image

I will note that I really thought Twitter did this, and then I looked and it didn't. So, maybe this is a silly idea. Happy to close; it was fun to hack on the app locally! 😄

Also, have never worked with react-native, so wasn't sure how I was supposed to pass additional data down to renderItem, so just added a param instead of making each item be an object or something.

@@ -105,7 +109,7 @@ export function ProfileFollowers({name}: {name: string}) {
return (
<List
data={followers}
renderItem={renderItem}
renderItem={info => renderItem(info, isMe)}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is the right way to do it, if I need to useCallback here to prevent this from changing, or if this method is just "all wrong".

@gaearon
Copy link
Collaborator

gaearon commented Nov 4, 2024

I think for consistency between screens I'd keep the badge. Sure, it's a bit redundant here, but dropping the badge introduces a difference in behavior that imo contributes to mental load a bit.

@jakebailey
Copy link
Author

jakebailey commented Nov 4, 2024

That's fair; happy to close this if it feels bad.

I'll also say that it'd be nice if pills weren't positioned in a way that makes the cards even taller, e.g.

bluesky:

image

twitter:

image

But that's an entirely different kind of PR 😄

@webpro
Copy link
Contributor

webpro commented Nov 4, 2024

I think for consistency between screens I'd keep the badge. Sure, it's a bit redundant here, but dropping the badge introduces a difference in behavior that imo contributes to mental load a bit.

One could also argue redundancy adds to mental load (it does for me). Context matters :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants