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

feat: Reactions UI Improvements #16433

Merged
merged 6 commits into from
Jan 2, 2024
Merged

feat: Reactions UI Improvements #16433

merged 6 commits into from
Jan 2, 2024

Conversation

przemvs
Copy link
Contributor

@przemvs przemvs commented Dec 28, 2023

https://wearezeta.atlassian.net/browse/WPB-5369

Description

  • Changed place for Read Receipts
  • Changed design and translation for reaction information

Screenshots/Screencast (for UI changes)

image

Checklist

  • PR has been self reviewed by the author;
  • Hard-to-understand areas of the code have been commented;
  • If it is a core feature, unit tests have been added;

Important details for the reviewers

(Delete this section if unnecessary)

  • use (x) data
  • can be reviewed commit-by-commit
  • be sure to look at ...

Comment on lines 56 to 57
qualifiedIds={users}
conversationUsers={conversationUsers}
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we're passing all the conversation users anyway, would that make sense to filter out those that have not reacted at this point? And instead of qualifiedIds pass reactionUsers list of user entitties? 🤔

Copy link

codecov bot commented Dec 28, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (4d1d977) 45.53% compared to head (3d130c7) 45.49%.
Report is 38 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #16433      +/-   ##
==========================================
- Coverage   45.53%   45.49%   -0.04%     
==========================================
  Files         735      736       +1     
  Lines       24021    24110      +89     
  Branches     5455     5487      +32     
==========================================
+ Hits        10938    10970      +32     
- Misses      11686    11734      +48     
- Partials     1397     1406       +9     

Copy link
Contributor

@PatrykBuniX PatrykBuniX left a comment

Choose a reason for hiding this comment

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

Looks good 👌

@@ -63,32 +67,67 @@ export const EmojiPill: FC<EmojiPillProps> = ({
index,
emojiListCount,
hasUserReacted,
reactedUsers,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
reactedUsers,
reactingUsers,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -48,9 +49,13 @@ const MessageReactionsList: FC<MessageReactionsListProps> = ({reactions, ...prop
const emojiListCount = users.length;
const hasUserReacted = users.some(user => matchQualifiedIds(selfUserId, user));

const reactedUsers = users
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const reactedUsers = users
const reactingUsers = users

Copy link
Contributor Author

Choose a reason for hiding this comment

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

transition-delay: @animation-timing-faster + 0.05;
}
}

// MESSAGE - ACTIONS
.message-body-actions {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this class still used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

Comment on lines 116 to 118
<span key={text} onClick={onTooltipReactionCountClick} css={messageReactionButtonTooltipTextLink}>
{text}
</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

could we make this a button?

@przemvs przemvs merged commit c9a1023 into dev Jan 2, 2024
10 checks passed
@przemvs przemvs deleted the feat/reactions-ui-improvements branch January 2, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants