Repository navigation
chore(examples): move the cookbook and ai-chatbot to the List…UI keys - #3463
Open
MartinCupela wants to merge 2 commits into
Open
MartinCupela wants to merge 2 commits into
MartinCupela wants to merge 2 commits into
Conversation
The recipe registered the deprecated EmptyListIndicator, FirstPageLoadingIndicator and ListLoadErrorIndicator keys. It now sets ListEmptyUI, ListFirstPageLoadingUI and ListLoadErrorUI through the ChannelList slot, so search results inside ChannelNavigation keep their own states.
MartinCupela
requested review from
NikolaGoranNaumovski and
oliverlaz
as code owners
November 23, 2026 12:12
Contributor
|
Size Change: +2.16 kB (+0.19%) Total Size: 1.13 MB 📦 View Changed
ℹ️ View Unchanged
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3463 +/- ##
=======================================
Coverage 92.05% 92.05%
=======================================
Files 666 666
Lines 21621 21621
Branches 6822 6822
=======================================
Hits 19904 19904
Misses 1717 1717 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…mptyUI The conversation list set EmptyListIndicator and the chat set EmptyStateIndicator, both deprecated as of 15.1. Each WithComponents wraps a single list, the channel lists or the message list, so ListEmptyUI replaces them as is.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket: https://linear.app/stream/issue/REACT-1503
🎯 Goal
The UI Cookbook recipe Empty and loading states (
examples/cookbook/src/recipes/channel-list/empty-and-loading-states) still registered the channel-list keys that #3458 deprecated:EmptyListIndicator,FirstPageLoadingIndicator,ListLoadErrorIndicatorand theListLoadErrorIndicatorPropstype. The docs page shows this recipe's code, so it should use theList…UIkeys. The ai-chatbot example also set two deprecated keys:EmptyListIndicatoron its conversation list andEmptyStateIndicatoron its chat.🛠 Implementation details
The
List…UIkeys reach every list below theirWithComponents, andChannelNavigationrenders search results next to the channel lists. Set aroundChannelNavigation, the recipe's "No conversations yet" would also show for an empty search. So the recipe now sets the keys around each channel list alone, through theChannelListslot thatChannelListsrenders once per paginator. This is the scoping the migration guide describes for a list rendered inside another component:ChannelListLoadErrortakesListLoadErrorUIProps. The comment indefault.recipe.tsxabout the thread list reading the same slots no longer applies and is removed.ai-chatbot.
Sidebar.tsxandChatContainer.tsxnow setListEmptyUI. EachWithComponentswraps a single list (the channel lists, or the message list with a customMessageUIthat renders no polls), so the swap reaches nothing else. Type-check and eslint pass; I could not run the app, which needs a Stream API key and secret.Checked locally (cookbook): cookbook
tsc -b,check:css, eslint and prettier pass. In the cookbook (?simulate=channel-list-loading|empty|error), the skeleton, the empty state and the error with Retry render in the channel list. A search with no matches shows the SDK's own "No results found".🎨 UI Changes
None. The recipe and the ai-chatbot look the same; only the keys they register changed.