Skip to content

Add ability to block account from post dropdown menu#6091

Merged
haileyok merged 7 commits into
bluesky-social:mainfrom
rshigg:block-account-from-post-dropdown
Nov 22, 2024
Merged

Add ability to block account from post dropdown menu#6091
haileyok merged 7 commits into
bluesky-social:mainfrom
rshigg:block-account-from-post-dropdown

Conversation

@rshigg
Copy link
Copy Markdown
Contributor

@rshigg rshigg commented Nov 3, 2024

Details

While #3708 already exists, it hasn't been updated sine April and I personally don't think including the mute option is necessary. If it is decided that a mute button is needed/wanted, I can update this PR or I could open a separate PR.

  • I matched the blocking flow from the profile header but made it one-directional.
  • I grouped the block option with the report option because they are both moderation actions.

Note: I don't consider this PR complete since I assume we will want some sort of visual feedback that a user was blocked while in a feed. My initial thinking was to hide the post after blocking but it felt a little janky. I would appreciate some feedback.

Demo

(Sorry Abby and Jerry, it's not personal 😅 )

From a feed From a profile page
block_from_feed.webm
block_from_profile.webm
Screen.Recording.2024-11-03.at.12.34.53.PM.mov
Screen.Recording.2024-11-03.at.12.35.13.PM.mov

@Enitoni
Copy link
Copy Markdown

Enitoni commented Nov 18, 2024

Yes! Please add this. I was just about to make an issue for this. This makes blocking have less friction and makes the UX much better, especially in terms of a11y.

In addition, being able to easily add to a moderation list from the same menu would be great.

@rshigg rshigg force-pushed the block-account-from-post-dropdown branch from c53a92a to 1614df3 Compare November 22, 2024 02:08
Comment thread src/view/screens/Search/Search.tsx Outdated
Copy link
Copy Markdown
Member

@haileyok haileyok left a comment

Choose a reason for hiding this comment

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

Nice! I made a small change to use useProfileShadow and just use ProfileViewBasic in the profile arg type (since all we ever need from the profile is did and viewer, which is available in all of the ProfileViewX types), no need for the Pick.

Really appreciate this one, been something on the todos for a while and just never had time to do it.

@haileyok haileyok merged commit ced6787 into bluesky-social:main Nov 22, 2024
@MrZaius
Copy link
Copy Markdown

MrZaius commented Nov 28, 2024

Thank you!

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.

4 participants