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

fix(emoji-mart): new reactions #1947

Merged
merged 15 commits into from
Nov 27, 2023
Merged

fix(emoji-mart): new reactions #1947

merged 15 commits into from
Nov 27, 2023

Conversation

arnautov-anton
Copy link
Contributor

@arnautov-anton arnautov-anton commented Feb 20, 2023

BREAKING CHANGE: reactionOptions signature has changed, see release guide for more information

🎯 Goal

Refactor and fix the way reactions work, introduce new way of customizing with better DX.

Fixes: #1935
Closes: #1637
Closes: #1437
Closes: #2159
Closes: GetStream/stream-chat-react-native#2023

🛠 Implementation details

  • ditch EmojiMart implementation, use native/sprite-sheet solution

@arnautov-anton arnautov-anton changed the title Feat/reactions feat(): new reactions Feb 20, 2023
@codecov
Copy link

codecov bot commented Feb 23, 2023

Codecov Report

Patch coverage: 94.56% and project coverage change: +0.09 🎉

Comparison is base (5c6a58f) 82.08% compared to head (e8a0414) 82.18%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1947      +/-   ##
===========================================
+ Coverage    82.08%   82.18%   +0.09%     
===========================================
  Files          260      262       +2     
  Lines         6386     6420      +34     
  Branches      1797     1794       -3     
===========================================
+ Hits          5242     5276      +34     
+ Misses         832      830       -2     
- Partials       312      314       +2     
Impacted Files Coverage Δ
src/context/ComponentContext.tsx 52.63% <ø> (ø)
src/components/Channel/Channel.tsx 78.34% <50.00%> (-0.19%) ⬇️
src/components/Reactions/utils/utils.tsx 72.72% <85.71%> (+22.72%) ⬆️
src/components/Reactions/SimpleReactionsList.tsx 98.03% <91.66%> (+1.74%) ⬆️
src/components/Reactions/SpriteImage.tsx 91.66% <91.66%> (ø)
src/components/Reactions/ReactionSelector.tsx 88.40% <100.00%> (-0.79%) ⬇️
src/components/Reactions/ReactionsList.tsx 92.30% <100.00%> (-0.55%) ⬇️
src/components/Reactions/StreamEmoji.tsx 100.00% <100.00%> (ø)
...components/Reactions/hooks/useProcessReactions.tsx 100.00% <100.00%> (ø)
src/components/Reactions/index.ts 100.00% <100.00%> (ø)
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@codecov-commenter
Copy link

codecov-commenter commented Mar 31, 2023

Codecov Report

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

Comparison is base (28f0676) 83.73% compared to head (8074d21) 83.75%.

Files Patch % Lines
src/components/Reactions/SpriteImage.tsx 91.66% 0 Missing and 2 partials ⚠️
src/components/Channel/Channel.tsx 50.00% 0 Missing and 1 partial ⚠️
src/components/Reactions/SimpleReactionsList.tsx 91.66% 1 Missing ⚠️
src/components/Reactions/utils/utils.tsx 85.71% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1947      +/-   ##
==========================================
+ Coverage   83.73%   83.75%   +0.02%     
==========================================
  Files         314      316       +2     
  Lines        7161     7191      +30     
  Branches     2024     2019       -5     
==========================================
+ Hits         5996     6023      +27     
- Misses        831      832       +1     
- Partials      334      336       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arnautov-anton arnautov-anton force-pushed the feat/reactions branch 2 times, most recently from 057f595 to e0522bf Compare April 11, 2023 16:28
@arnautov-anton arnautov-anton changed the title feat(): new reactions feat(emoji-mart): new reactions Oct 6, 2023
@arnautov-anton arnautov-anton changed the title feat(emoji-mart): new reactions feat(emoji-mart)!: new reactions Oct 6, 2023
@arnautov-anton arnautov-anton changed the title feat(emoji-mart)!: new reactions fix(emoji-mart)!: new reactions Oct 9, 2023
@arnautov-anton arnautov-anton changed the title fix(emoji-mart)!: new reactions fix(emoji-mart): new reactions Oct 9, 2023
@arnautov-anton arnautov-anton force-pushed the feat/reactions branch 4 times, most recently from e2645d6 to b5c31e9 Compare November 14, 2023 21:52
@arnautov-anton arnautov-anton self-assigned this Nov 15, 2023
@arnautov-anton arnautov-anton added breaking Flag for issues introducing breaking changes to the SDK. v11.0.0 To be release with v11.0.0 labels Nov 15, 2023
@arnautov-anton arnautov-anton merged commit 83f31da into master Nov 27, 2023
7 of 8 checks passed
@arnautov-anton arnautov-anton deleted the feat/reactions branch November 27, 2023 13:00
arnautov-anton added a commit that referenced this pull request Nov 27, 2023
BREAKING CHANGE: `reactionOptions` signature has changed, see [release
guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information

Refactor and fix the way reactions work, introduce new way of
customizing with better DX.

Fixes: #1935
Closes: #1637
Closes: #1437
Closes: #2159
Closes:
GetStream/stream-chat-react-native#2023

- ditch EmojiMart implementation, use native/sprite-sheet solution
arnautov-anton added a commit that referenced this pull request Nov 27, 2023
Refactor and fix the way reactions work, introduce new way of
customizing with better DX.

Fixes: #1935
Closes: #1637
Closes: #1437
Closes: #2159
Closes:
GetStream/stream-chat-react-native#2023

- ditch EmojiMart implementation, use native/sprite-sheet solution

BREAKING CHANGE: `reactionOptions` signature has changed, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information
github-actions bot pushed a commit that referenced this pull request Nov 27, 2023
## [11.0.0](v10.20.1...v11.0.0) (2023-11-27)

### ⚠ BREAKING CHANGES

* **emoji-mart:** `EmojiPicker` & `EmojiIndex` signatures changed, `EmojiIndex` has been renamed to `emojiSearchIndex`, both `EmojiPicker` & `emojiSearchIndex` are now optional, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information
* **emoji-mart:** `useImageFlagEmojisOnWindow` flag now requires extra style sheet import, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information
* **emoji-mart:** `reactionOptions` signature has changed, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information
* the first argument to `doSendMessageRequest` is now Channel instance instead of `Channel.cid`
* apply the remark plugins `keepLineBreaksPlugin`, `htmlToTextPlugin` as a part of the default message text parsing, upgrade `unified` libraries

### Bug Fixes

* **emoji-mart:** new reactions  ([#1947](#1947)) ([14bef23](14bef23)), closes [#1935](#1935) [#1637](#1637) [#1437](#1437) [#2159](#2159)
* **emoji-mart:** simplify EmojiPicker & emojiSearchIndex ([#2117](#2117)) ([a6e0a87](a6e0a87)), closes [#2116](#2116) [#2094](#2094)

### Features

* apply keepLineBreaksPlugin & htmlToTextPlugin plugins to text rendering by default ([#2169](#2169)) ([e8047f2](e8047f2)), closes [#2170](#2170) [/github.com/GetStream/stream-chat-react/blob/f0bc7ba2532760cabb1db01e685a35bd3b0b64c5/src/components/Message/renderText/renderText.tsx#L158](https://github.com/GetStream//github.com/GetStream/stream-chat-react/blob/f0bc7ba2532760cabb1db01e685a35bd3b0b64c5/src/components/Message/renderText/renderText.tsx/issues/L158)
* export MessageListNotifications and LinkPreviewList components and component props ([#2181](#2181)) ([a5a7e5a](a5a7e5a))
* require Channel instance as the first argument to doSendMessageRequest ([#2171](#2171)) ([2a06b88](2a06b88))

### Chores

* **deps:** bump stream-chat from 8.14.0 to 8.14.2 ([#2179](#2179)) ([4e6a59d](4e6a59d))
* **deps:** bump stream-chat from 8.14.2 to 8.14.3 ([#2185](#2185)) ([3dd8dab](3dd8dab))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Flag for issues introducing breaking changes to the SDK. v11.0.0 To be release with v11.0.0
Projects
None yet
4 participants