-
Notifications
You must be signed in to change notification settings - Fork 278
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: expose channels state on chat level #2161
Conversation
Size Change: +452 B (0%) Total Size: 1.91 MB
ℹ️ View Unchanged
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2161 +/- ##
==========================================
+ Coverage 83.65% 83.68% +0.02%
==========================================
Files 307 307
Lines 7111 7115 +4
Branches 2017 2017
==========================================
+ Hits 5949 5954 +5
+ Misses 829 828 -1
Partials 333 333
☔ View full report in Codecov by Sentry. |
Co-authored-by: Anton Arnautov <[email protected]>
…at-level' into feat/expose-channels-state-on-chat-level
## [10.18.0](v10.17.0...v10.18.0) (2023-11-07) ### Features * expose channels state on chat level ([#2161](#2161)) ([7e5543b](7e5543b))
🎉 This PR is included in version 10.18.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [11.0.0-rc.4](v11.0.0-rc.3...v11.0.0-rc.4) (2023-11-08) ### Bug Fixes * **i18n:** add missing SDK translations ([#2157](#2157)) ([e22a6ce](e22a6ce)) * **i18n:** do not translate command names ([#2155](#2155)) ([b654b9a](b654b9a)) * **i18n:** prevent removal of dynamically generated translation keys ([#2154](#2154)) ([ebcaa8f](ebcaa8f)) * List/Item & EmojiPicker async data loading + docs update ([dedefac](dedefac)) ### Features * add Channel prop doDeleteMessageRequest ([#2152](#2152)) ([a01774a](a01774a)) * expose channels state on chat level ([#2161](#2161)) ([7e5543b](7e5543b))
🎉 This PR is included in version 11.0.0-rc.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This reverts commit 7e5543b.
## [11.1.0](v11.0.0...v11.1.0) (2023-12-01) ### Bug Fixes * revert "feat: expose channels state on chat level ([#2161](#2161))" ([#2184](#2184)) ([32e4867](32e4867)) ### Features * add BaseImage component with image fallback display ([#2183](#2183)) ([ec1d79b](ec1d79b)) * add channel list context ([#2187](#2187)) ([fd5ea67](fd5ea67)) * render BaseImage image fallback within the same img element ([#2200](#2200)) ([2fcd564](2fcd564)) ### Chores * **deps:** bump @stream-io/stream-chat-css from 4.0.0 to 4.1.0 ([e600e3c](e600e3c)) * **deps:** bump stream-chat from 8.14.3 to 8.14.4 ([#2199](#2199)) ([a4dd57f](a4dd57f)) * **deps:** move `@stream-io/stream-chat-css` to `devDeps` ([#2191](#2191)) ([61af19c](61af19c))
🎯 Goal
Allow the integrators to control the
channels
state outside theChannelList
component. Keeping the state insideChannelList
forces the SDK maintainers to provide props through which the integrators could somehow impact the channels state, but still not allowing for full control. An example would be that of blocking the integrators from controlling how custom active channel is queried as the default implementation does not allow to customize the query filters etc.It is unrealistic to keep adding new props, that would hook into different parts of the
ChannelList
code base. Therefore thechannels
state controller is exposed to all the components rendered within theChatContext
.This PR does not introduce breaking changes and therefore the
usePaginatedChannels
hook keeps forwarding thechannels
andsetChannels
values. This should be refactored in the future.