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

[🐴] Handle deleted accounts, restructure ChatListItem #4114

Merged
merged 5 commits into from
May 20, 2024

Conversation

estrattonbailey
Copy link
Member

@estrattonbailey estrattonbailey commented May 20, 2024

Review without whitespace: https://github.com/bluesky-social/social-app/pull/4114/files?diff=split&w=1

Deleted accounts delete all messages for both parties, so there's no need to load the Convo screen. This PR disables that link.

This PR also converts to a Link for better a11y, and restructures the ChatListItem so that the context menu is outside the Link for better a11y. It should also fix some alignment issues we had with deleted accounts.

CleanShot 2024-05-20 at 10 25 47@2x
CleanShot 2024-05-20 at 10 26 40@2x
CleanShot 2024-05-20 at 10 26 47@2x

Copy link

render bot commented May 20, 2024

Copy link

github-actions bot commented May 20, 2024

Old size New size Diff
6.87 MB 6.87 MB -51 B (-0.00%)

* origin/main:
  Update French localization (#4113)
  Update Japanese translations (#3886)
  Update pt-BR localization to latest version (#4009)
  Update zh-CN translations (#3932)
  Update zh-TW translations  (#4025)
  Update Korean localization (#4030)
  Update catalan messages.po (#4079)
  Update Spanish Localization (#4105)
  Allow removal of feeds that fail to load (#4121)
  [🐴] Make message input layout resizing synchronous (#4123)
  [🐴] Adjust content height whenever the emoji picker keyboard is opened or closed (#4120)
  Conditionally set chat declaration (#4122)
  [🐴] Fix load state for disabled chats (#4119)
  Bump api sdk (#4118)
  [🐴] Switch back to encouraging users to report messages (#4117)
  convo button skeleton (#4115)
  [🐴] Screenreader accessibility actions for individual chat items (#4116)
  [🐴] DM button on profile (#4097)
  [🐴] Don't retry sends (#4111)
Comment on lines +148 to +155
onPress={
isDeletedAccount
? e => {
e.preventDefault()
return false
}
: undefined
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Cool for now, but we should make this a prop on our new link maybe, I've had to do this a few times before. Just something for later.

Copy link
Contributor

@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, looks good to go now! Tested with screenreader and actions still work 👍

@estrattonbailey estrattonbailey merged commit 31a716d into main May 20, 2024
6 checks passed
@haileyok haileyok deleted the dms/deleted-account branch September 2, 2024 20:07
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.

2 participants