Skip to content

Conversation

@MartinCupela
Copy link
Contributor

🎯 Goal

Allow to customize the UI components for different suggestion item types separately.

@codecov
Copy link

codecov bot commented Apr 30, 2025

Codecov Report

Attention: Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.

Project coverage is 81.75%. Comparing base (fe43150) to head (db6f4e8).

Files with missing lines Patch % Lines
...TextareaComposer/SuggestionList/SuggestionList.tsx 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               rc    #2693      +/-   ##
==========================================
+ Coverage   81.06%   81.75%   +0.69%     
==========================================
  Files         469      463       -6     
  Lines        9939     9193     -746     
  Branches     2411     2097     -314     
==========================================
- Hits         8057     7516     -541     
- Misses       1502     1572      +70     
+ Partials      380      105     -275     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@MartinCupela MartinCupela merged commit 985f5e3 into rc Apr 30, 2025
5 checks passed
@MartinCupela MartinCupela deleted the feat/suggestion-list-item-components branch April 30, 2025 12:03
github-actions bot pushed a commit that referenced this pull request Apr 30, 2025
## [13.0.0-rc.2](v13.0.0-rc.1...v13.0.0-rc.2) (2025-04-30)

### Features

* replace SuggestionItem prop with suggestionItemComponents prop for SuggestionList ([#2693](#2693)) ([985f5e3](985f5e3))
@stream-ci-bot
Copy link

🎉 This PR is included in version 13.0.0-rc.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request May 6, 2025
## [13.0.0](v12.15.0...v13.0.0) (2025-05-06)

### ⚠ BREAKING CHANGES

* `Channel` props `dragAndDropWindow` &
`optionalMessageInputProps` have been removed, use
* Remove ChatAutoComplete, AutoCompleteTextarea,
DefaultSuggestionList, DefaultSuggestionListItem and introduce
TextareaComposer, SuggestionList, SuggestionListItem
* Remove defaultScrollToItem function previously used by
SuggestionList
* Removed DefaultTriggerProvider component
* Remove from Channel props - acceptedFiles,
enrichURLForPreview, enrichURLForPreviewConfig, maxNumberOfFiles,
multipleUploads, TriggerProvider
* Removal of acceptedFiles, debounceURLEnrichmentMs,
enrichURLForPreview, findURLFn, multipleUploads, onLinkPreviewDismissed,
quotedMessage from ChannelStateContext
* Changed signature for functions sendMessage and
editMessage in ChannelActionContext
* Changed signature for handleSubmit
* Removed setQuotedMessage from ChannelActionContext
* Removed types MessageToSend, StreamMessage,
UpdatedMessage in favor of LocalMessage or RenderedMessage
* Removed Trigger generics from ChannelProps
* Message input state as well as the API is now kept
within MessageComposer instead of MessageInputContext
* Renamed useMessageInputState to useMessageInputControls
as it does not handle the composition state anymore
* Removed from MessageInputProps - disabled,
disableMentions, doFileUploadRequest, doImageUploadRequest,
errorHandler, getDefaultValue, mentionAllAppUsers, mentionQueryParams,
message, noFiles, urlEnrichmentConfig, useMentionsTransliteration,
additionalTextareaProps do not expect default value anymore
* Changed the signature of MessageInput prop
overrideSubmitHandler
* Local attachment and link preview types moved to
stream-chat
* The SuggestionListItem UI components for
TextareaComposer receive tokenizedDisplayName instead of itemNameParts
* Removed duplicate types SendMessageOptions,
UpdateMessageOptions which should be imported from stream-chat instead
* Removed type LinkPreviewListProps - LinkPreviewList
does not have any props anymore
* dropped `StreamChatGenerics`, use `Custom<Entity>Data`
to extend your types

### Bug Fixes

* make consistent use of message composition related props ([#2695](#2695)) ([2b789e5](2b789e5))
* replace StreamChatGenerics with module augmentation ([#2634](#2634)) ([67bed79](67bed79))

### Features

* default data interfaces ([#2683](#2683)) ([a88e145](a88e145))
* message composer ([#2669](#2669)) ([fa2519b](fa2519b)), closes [#2688](#2688)
* replace SuggestionItem prop with suggestionItemComponents prop for SuggestionList ([#2693](#2693)) ([985f5e3](985f5e3))

### Chores

* **deps:** upgrade stream-chat to v9.0.0 ([666be5e](666be5e))
@stream-ci-bot
Copy link

🎉 This PR is included in version 13.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants