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

[🐴] DM button on profile #4097

Merged
merged 6 commits into from
May 20, 2024
Merged

[🐴] DM button on profile #4097

merged 6 commits into from
May 20, 2024

Conversation

mozzius
Copy link
Member

@mozzius mozzius commented May 18, 2024

Calls getProfileForMembers to decide whether or not to show the button, since you can still chat someone if they have DMs closed if you already have an ongoing chat (I set mozzius.dev to none if you want to test). Means that it pops in after the rest of the profile but it doesn't cause layout shift. Buttons now wrap if needed, rather than flowing behind the avatar. Also includes a cleanup of the button sizes to make them all equal sizes (because before they were all different apparently????)

Opted not to show on labellers, you can still message them through the new chat dialog if you really need to but I think we want to avoid the perception of labellers as normal users.

Screenshot 2024-05-18 at 21 14 03

Copy link

render bot commented May 18, 2024

Copy link

github-actions bot commented May 18, 2024

Old size New size Diff
6.86 MB 6.86 MB 909 B (0.01%)

Copy link
Member

@estrattonbailey estrattonbailey left a comment

Choose a reason for hiding this comment

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

Works great! One last thing

if (!convoId) return null

return (
<Button
Copy link
Member

Choose a reason for hiding this comment

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

Let's make this a Link

Copy link
Member

@estrattonbailey estrattonbailey left a comment

Choose a reason for hiding this comment

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

LGTM

@mozzius mozzius merged commit 24f8794 into main May 20, 2024
6 checks passed
estrattonbailey added a commit that referenced this pull request May 20, 2024
* 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)
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