Repository navigation
feat(ScheduledMessages): show scheduled messages in a banner and list (REACT-1388) - #3366
Draft
NikolaGoranNaumovski wants to merge 8 commits into
Conversation
Move the channel container lookup used to portal the schedule dialog into the ScheduledMessages utilities so other scheduled message dialogs can reuse it.
…ties Group scheduled messages into a failed group followed by one group per local day, build list previews from stored scheduled messages, and map each failure_reason to its user-facing copy. Add the list, item, banner and group types used by the scheduled message list.
useScheduledMessageGroups groups the scoped scheduled messages for a channel or thread, and useScheduledMessagesPagination exposes whether another page exists and loads it through the manager.
Render a banner with the number of scheduled messages (or scheduled thread replies) above the composer. View opens a list with failed messages first and the rest grouped by day; each row shows the preview, scheduled time, status and failure reason. Customise it through the ScheduledMessagesBanner and ScheduledMessageItem component slots.
Add the banner counts, list titles, statuses, empty state, failure reasons and the day group timestamp format in all locales.
List the channel's scheduled messages in a new ChannelDetail section placed after the pinned messages.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
…react-1388-scheduled-messages-list
…list Follow the web designs for the scheduled message list: - Channel Detail's scheduled section gets a search field (shown when the channel has scheduled messages) that filters the list by message text - the first load shows skeleton rows instead of a spinner - a failed first load shows an error state with Try again, which reloads the store; stored messages stay listed when a later reload fails - a search without matches shows "No messages found" - the empty, no-results and error states share one layout New strings are translated in all 12 locales. Refs: REACT-1388
NikolaGoranNaumovski
force-pushed
the
feat/react-1387-scheduled-messages-schedule
branch
from
November 3, 2026 09:07
91bb21c to
e6331d6
Compare
NikolaGoranNaumovski
force-pushed
the
feat/react-1388-scheduled-messages-list
branch
from
November 3, 2026 09:07
831f72f to
9d9b6c1
Compare
This branch has not been 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.
🎯 Goal
Show users the messages they have scheduled: a banner above the composer with the count, and a list of the scheduled messages for the channel (or thread) with their time and status. This is the entry point for managing scheduled messages (REACT-1389) and follows the web designs (Figma: Scheduled List and Confirmation sections).
Part of the scheduled messages feature (REACT-1388). Stacked on #3355 (schedule from the composer). The data comes from
client.scheduledMessages(GetStream/stream-chat-js#1915).🛠 Implementation details
Banner (
ScheduledMessagesBanner)MessageComposerUI: "N scheduled messages" in a channel, "N scheduled replies" in a thread, with a View button.useScheduledMessageCount), so the banner costs no requests and updates live fromscheduled_message.*events.schedule-messagecapability. Overridable throughComponentContext(ScheduledMessagesBanner,nullhides it).ScheduledMessageListDialog) for the banner's channel or thread.List (
ScheduledMessageList, exported standalone)cid, optionalparentId(thread replies), optionalsearchQuery.scheduled_at.ScheduledMessageItem, overridable throughComponentContext) shows the text or an attachment summary, the scheduled time, a status badge (Scheduled / Sending… / Failed) and, for failed messages, the reason (translateScheduledMessageFailureReason).next), for older failed messages.ScheduledMessageListLoading)ScheduledMessagesLoadError); messages already in the store stay listed if a later reload failsScheduledMessagesEmptyListScheduledMessagesNoResults)ScheduledMessagesEmptyStateChannel Detail
ScheduledMessagesView), listing the channel's scheduled messages.Hooks and utilities
useScheduledMessageGroups,useScheduledMessagesPagination,useScheduledMessagesLoadState.getChannelContaineris shared with the schedule button for portals.Translations
All new strings are in the 12 locales.
Testing
examples/viteagainst the scheduled messages test app: banner count and live updates, list grouping by day, status badges.🎨 UI Changes
Screenshots: banner above the composer, list dialog, Channel Detail section with search, loading skeleton, error and empty states.