Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
d5d7261
feat(ScheduledMessages): scheduled messages built on existing SDK pat…
MartinCupela Nov 11, 2026
b38ef1c
fix(ScheduledMessages): list scheduled messages flat, earliest first
MartinCupela Nov 11, 2026
890fdc8
feat(ScheduledMessages): list SDK scheduled-message views, searchable…
MartinCupela Nov 11, 2026
ccc40ed
fix(ScheduledMessages): keep the list dialog within narrow screens, a…
MartinCupela Nov 11, 2026
023ee17
fix(ScheduledMessages): load lists only when needed and keep schedule…
MartinCupela Nov 12, 2026
886995d
feat(ScheduledMessages): show the send time with Reschedule while edi…
MartinCupela Nov 13, 2026
497472d
fix(ScheduledMessages): stop treating a shared location as blocking s…
MartinCupela Nov 13, 2026
062d243
fix(ScheduledMessages): address review findings on the list and time …
MartinCupela Nov 13, 2026
826dd6f
fix(examples): guard the freeze switch and detach a poll from a faile…
MartinCupela Nov 13, 2026
91c33b2
docs: restore master's guidance for showing header content beside the…
MartinCupela Nov 13, 2026
f8e05e5
fix(ScheduledMessageList): load on past a page that adds nothing to show
MartinCupela Nov 13, 2026
7be01ac
refactor(ScheduledMessages): build the row actions as an action set
MartinCupela Nov 13, 2026
103d357
fix(MessageComposer): scroll the composer previews past their height cap
MartinCupela Nov 13, 2026
f5e9c08
Merge branch 'master' of github.com:GetStream/stream-chat-react into …
MartinCupela Nov 23, 2026
1e315f0
Merge branch 'master' into feat/scheduled-messages-lean
NikolaGoranNaumovski Nov 24, 2026
367d015
fix(ScheduledMessages): follow the renamed LLC APIs and keep the time…
NikolaGoranNaumovski Nov 24, 2026
1ec9d75
feat(ScheduledMessages): align the web UI with the Figma designs
NikolaGoranNaumovski Nov 24, 2026
c1dea9e
feat(ScheduledMessages): add date, time and delete-confirmation slots
NikolaGoranNaumovski Nov 24, 2026
1f22416
feat(ChannelDetail): open the channel's scheduled messages from the b…
NikolaGoranNaumovski Nov 24, 2026
3d36a66
chore(examples): show the Figma scheduled-message pickers in the vite…
NikolaGoranNaumovski Nov 24, 2026
805d4d0
Merge remote-tracking branch 'origin/master' into feat/scheduled-mess…
NikolaGoranNaumovski Nov 25, 2026
00bf82d
chore(examples): build the examples against stream-chat master
NikolaGoranNaumovski Nov 25, 2026
3b1ed50
fix(ScheduledMessages): follow the merged stream-chat scheduled-messa…
NikolaGoranNaumovski Nov 25, 2026
94310b3
feat(ScheduledMessages): align the remaining web details with the Fig…
NikolaGoranNaumovski Nov 25, 2026
db247c9
fix(examples): pick the first matching time on Enter and size the cal…
NikolaGoranNaumovski Nov 25, 2026
fa8032d
feat(ScheduledMessages): include thread replies in the channel's bann…
NikolaGoranNaumovski Nov 25, 2026
3bc2817
feat(ScheduledMessages): float the banner over the message list
NikolaGoranNaumovski Nov 25, 2026
88897ea
feat(ScheduledMessages): match the failed row menu to the designs
NikolaGoranNaumovski Nov 25, 2026
c1b8039
fix(examples): keep the thread visible while its panel closes
NikolaGoranNaumovski Nov 25, 2026
c8bf82b
chore(deps): require stream-chat 10.3.1 for the scheduled-message APIs
MartinCupela Nov 25, 2026
0a8e910
refactor(ScheduledMessages): trim the scheduled-message utils
NikolaGoranNaumovski Nov 25, 2026
0b69e82
refactor(ScheduledMessages): map scheduled-message codes to their cop…
NikolaGoranNaumovski Nov 25, 2026
ec12cdf
refactor(ScheduledMessages): render one schedule dialog from the comp…
NikolaGoranNaumovski Nov 25, 2026
722b532
refactor(Form): add a SearchInput shared by the search fields
NikolaGoranNaumovski Nov 25, 2026
35440f9
refactor(ScheduledMessages): reuse the SDK's list slots, capabilities…
NikolaGoranNaumovski Nov 25, 2026
4fae7d1
fix(ScheduledMessages): hide the schedule button once a shared locati…
NikolaGoranNaumovski Nov 25, 2026
eef901b
docs: note that scheduled messages need stream-chat ^10.3.1
NikolaGoranNaumovski Nov 25, 2026
cb8cb96
chore(examples): drop the scheduledMessages.search key from the vite …
MartinCupela Nov 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ai-docs/ai-migration-v14-v15.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ These compile cleanly, or are ignored in plain JS, and change behavior at runtim

### Packages

- **`stream-chat` peer is v10.** Read the exact range from `peerDependencies['stream-chat']` in the installed `node_modules/stream-chat-react/package.json` and install a version that satisfies it; the minimum moves between release candidates. v9 does not satisfy it, and v10 is itself a breaking client release (see [`v10-breaking-changes.md`](https://github.com/GetStream/stream-chat-js/blob/release-v10/ai-docs/v10-breaking-changes.md) in stream-chat-js).
- **`stream-chat` peer is v10.** Read the exact range from `peerDependencies['stream-chat']` in the installed `node_modules/stream-chat-react/package.json` and install a version that satisfies it; the minimum moves between releases. From the release that adds scheduled messages, the range starts at `^10.3.1`, which brings the scheduled-message APIs: an app on an earlier `stream-chat` 10.x upgrades it together with this package. v9 does not satisfy it, and v10 is itself a breaking client release (see [`v10-breaking-changes.md`](https://github.com/GetStream/stream-chat-js/blob/release-v10/ai-docs/v10-breaking-changes.md) in stream-chat-js).
- **The first compile errors are usually `stream-chat` type changes, not React ones.** The removed-exports table below lists only this package's exports. The common ones from `stream-chat`: `ChannelSort`, `UserSort` and the other sort aliases → `SortParamRequest[]` ([sort](https://github.com/GetStream/stream-chat-js/blob/release-v10/ai-docs/v10-breaking-changes.md#sort-shape)); `client.queryChannels` keeps its name but returns the raw response object, and the v9 behavior (`Channel[]`) is `client.queryChannelsAndHydrate` ([queryChannels](https://github.com/GetStream/stream-chat-js/blob/release-v10/ai-docs/v10-breaking-changes.md#query-channels-raw)); `client.queryUsers(filter, sort, options)` → `client.queryUsers({ payload: { filter_conditions, sort, limit } })` ([generated signatures](https://github.com/GetStream/stream-chat-js/blob/release-v10/ai-docs/v10-breaking-changes.md#generated-client-signatures)).
- **Node `>=22.18.0`.** `stream-chat@10` declares `engines.node >=22.18.0`, and Yarn 1 refuses to install on older Node. Move `.nvmrc` and every CI `node-version` (GitHub Actions `setup-node`, Docker base images, deploy workflows) to Node 22 before anything else: CI is usually the first thing to break.
- **`dayjs` and `i18next` are no longer dependencies of this package.** It depends on `@stream-io/i18n`, which brings both (`dayjs ^1.11.23`, `i18next ^26`). `stream-chat` v10 depends on neither. If the app declared them only because of this SDK, remove them. If it keeps `dayjs`, its version must dedupe with `@stream-io/i18n`'s, or `import 'dayjs/locale/xx'` registers the locale on a different instance and dates stay English.
Expand Down Expand Up @@ -3708,7 +3708,7 @@ export const RemoveButton = ({ label }: { label: string }) => {
};
```

Four formatter keys carry English day words inside their `calendarFormats` (`timestamp.DateSeparator`, `timestamp.ReminderNotification`, `timestamp.ChannelPreviewTimestamp`, `timestamp.ChannelDetailPinnedMessageTimestamp`) and must be overridden to translate Today / Tomorrow / Yesterday / Last; `dayjsLocaleConfigForLanguage` does not reach them.
Seven formatter keys carry English words inside their formats (`timestamp.DateSeparator`, `timestamp.ReminderNotification`, `timestamp.ChannelPreviewTimestamp`, `timestamp.ChannelDetailPinnedMessageTimestamp`, `timestamp.ScheduledMessageConfirmation`, `timestamp.ScheduledMessageSendTime`, `timestamp.SchedulePreset`) and must be overridden to translate Today / Tomorrow / Yesterday / Last / at; `dayjsLocaleConfigForLanguage` does not reach them.

---

Expand Down
13 changes: 8 additions & 5 deletions ai-docs/i18n-v15-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ These v14 keys (from `src/i18n/en.json` at `v14.10.0`, plural suffixes folded) h
yarn i18n:export
```

That writes `en.json` in the repo root with the 619 translatable keys. The 14 `timestamp.*`,
That writes `en.json` in the repo root with the 718 translatable keys. The 19 `timestamp.*`,
`duration.*` and `translationBuilderTopic.*` entries are left out on purpose — they are dayjs and
i18next expressions, and a TMS that "translates" `{{value, notification}}` breaks notifications
outright. Four of them do carry English day words; those are handled by overriding the key, see
[Date and time](#date-and-time). Pass `--all` for the complete 633-key catalog.
outright. Seven of them do carry English words; those are handled by overriding the key, see
[Date and time](#date-and-time). Pass `--all` for the complete 737-key catalog.

[`ai-docs/i18n-v15-key-map.json`](https://github.com/GetStream/stream-chat-react/blob/master/ai-docs/i18n-v15-key-map.json) also lists every key, alongside the v14 string it replaced.

Expand Down Expand Up @@ -243,7 +243,7 @@ formatter expressions, not text:
"timestamp.MessageTimestamp": "{{ timestamp | timestampFormatter(calendar: false; format: HH:mm) }}"
```

Most of them only need overriding to change _how_ a date is formatted. **Four of them also carry
Most of them only need overriding to change _how_ a date is formatted. **Seven of them also carry
English words**, because dayjs takes the calendar wording as part of the format string:

| Key | English baked into `calendarFormats` |
Expand All @@ -252,8 +252,11 @@ English words**, because dayjs takes the calendar wording as part of the format
| `timestamp.ReminderNotification` | `Today`, `Tomorrow`, `Yesterday`, `Last`, `at` |
| `timestamp.ChannelPreviewTimestamp` | `Yesterday` |
| `timestamp.ChannelDetailPinnedMessageTimestamp` | `Yesterday` |
| `timestamp.ScheduledMessageConfirmation` | `at` |
| `timestamp.ScheduledMessageSendTime` | `at` |
| `timestamp.SchedulePreset` | `Today`, `Tomorrow`, `Yesterday`, `Last`, `at` |

Translating those four means overriding the key itself — `dayjsLocaleConfigForLanguage` does not
Translating those seven means overriding the key itself — `dayjsLocaleConfigForLanguage` does not
reach them. See [Date and time](#date-and-time) for the how and why.

`relativeTime.*` ("Today", "{{ count }}d ago") is ordinary copy and translates normally, as does
Expand Down
2 changes: 1 addition & 1 deletion examples/ai-chatbot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"next": "^16.2.4",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"stream-chat": "^10.2.0",
"stream-chat": "^10.3.1",
"stream-chat-react": "workspace:^"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"react": "^19.2.6",
"react-dom": "^19.2.6",
"react-leaflet": "^5.0.0",
"stream-chat": "^10.2.0",
"stream-chat": "^10.3.1",
"stream-chat-react": "workspace:^"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ import {
BellOff,
Bookmark,
BookmarkMinus,
Calendar,
Camera,
ChartBar,
Check,
CheckCheck,
ChevronDown,
ChevronLeft,
ChevronRight,
ChevronUp,
CircleAlert,
CircleArrowDown,
CircleMinus,
Expand Down Expand Up @@ -129,13 +131,16 @@ const lucideIconMap: Record<IconName, [LucideIcon, LucideOptions?]> = {
IconBolt: [Zap],
IconBookmark: [Bookmark],
IconBookmarkRemove: [BookmarkMinus],
IconCalendar: [Calendar],
IconCamera: [Camera],
IconCaretDown: [ChevronDown],
IconCheckmark: [Check],
IconCheckmark1Small: [Check],
IconChecks: [CheckCheck],
IconChevronDown: [ChevronDown],
IconChevronLeft: [ChevronLeft, { mirrorInRtl: true }],
IconChevronRight: [ChevronRight, { mirrorInRtl: true }],
IconChevronUp: [ChevronUp],
IconClock: [Clock],
IconCommand: [SquareSlash],
IconCopy: [Copy],
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"emoji-mart": "^5.6.0",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"stream-chat": "^10.2.0",
"stream-chat": "^10.3.1",
"stream-chat-react": "workspace:^"
},
"devDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion examples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,18 @@
},
"dependencies": {
"@emoji-mart/data": "^1.2.1",
"@internationalized/date": "^3.12.1",
"@stream-io/state-store": "^1.2.0",
"clsx": "^2.1.1",
"dayjs": "^1.11.23",
"emoji-mart": "^5.6.0",
"human-id": "^4.1.3",
"modern-normalize": "^3.0.1",
"react": "^19.2.6",
"react-aria": "3.48.0",
"react-dom": "^19.2.6",
"stream-chat": "^10.2.0",
"react-stately": "3.46.0",
"stream-chat": "^10.3.1",
"stream-chat-react": "workspace:^"
},
"devDependencies": {
Expand Down
19 changes: 16 additions & 3 deletions examples/vite/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import {
isVoiceRecordingAttachment,
MessageSearchSource,
POLL_ONLY_COMPOSITION_MIDDLEWARE_ID,
SCHEDULED_MESSAGE_COMPOSITION_MIDDLEWARE_ID,
SearchController,
USER_DATA_INJECTION_MIDDLEWARE_ID,
UserSearchSource,
} from 'stream-chat';
import {
Expand Down Expand Up @@ -57,6 +57,12 @@ import {
import { ChatSkipNavigation } from './AccessibilityNavigation/ChatSkipNavigation.tsx';
import { SlotGeometryProvider } from 'stream-chat-react/slot-geometry';
import { AlsoSentInChannelIndicator } from './ChatLayout/AlsoSentInChannelIndicator.tsx';
import { ConfiguredScheduledMessageListDialog } from './ChatLayout/ConfiguredChannelDetail.tsx';
import {
CalendarDateInput,
ConfirmScheduledMessageDelete,
TimeComboboxInput,
} from './ScheduledMessages';
import { useAdditiveWorkspaceNavigation } from './ChatLayout/useAdditiveWorkspaceNavigation.ts';
import { ChannelsPanels, ThreadsPanels } from './ChatLayout/Panels.tsx';
import { SidebarProvider } from './ChatLayout/SidebarContext.tsx';
Expand Down Expand Up @@ -101,6 +107,7 @@ import {
ConfigurableStartRecordingAudioButton,
} from './ComposerPreviews/ConfigurableComposerPreviews.tsx';
import { ConfigurablePollCreationDialogControls } from './ComposerPreviews/ConfigurablePollCreationDialogControls.tsx';
import { ConfigurableScheduledMessageItem } from './ComposerPreviews/ConfigurableScheduledMessageItem.tsx';
import { ConfigurableMessageBubbleContent } from './MessageBubble/ConfigurableMessageBubbleContent.tsx';
import { applySimulatedListQueryFailures, StreamDebugHandles } from './Debug';
import {
Expand Down Expand Up @@ -583,11 +590,12 @@ const App = () => {
// While the Poll preview shows, the poll dialog attaches the poll to the message being
// composed (ConfigurablePollCreationDialogControls). Without the poll-only step the poll is
// sent with the text and attachments rather than as a message of its own, and the composer
// clears after the send. Restored when the preview is turned off, since this setup re-runs.
// clears after the send. Restored when the preview is turned off, since this setup re-runs:
// after the scheduling check, where the SDK puts it, so a blocked schedule still stops first.
if (pollDisabled) {
composer.compositionMiddlewareExecutor.insert({
middleware: [createPollOnlyCompositionMiddleware(composer)],
position: { after: USER_DATA_INJECTION_MIDDLEWARE_ID },
position: { after: SCHEDULED_MESSAGE_COMPOSITION_MIDDLEWARE_ID },
unique: true,
});
} else {
Expand Down Expand Up @@ -700,6 +708,11 @@ const App = () => {
MessageBubbleContent: ConfigurableMessageBubbleContent,
MessageComposerPreviews: ConfigurableComposerPreviews,
PollCreationDialogControls: ConfigurablePollCreationDialogControls,
ScheduledMessageItem: ConfigurableScheduledMessageItem,
ScheduledMessageListDialog: ConfiguredScheduledMessageListDialog,
ScheduledMessageDeleteAlert: ConfirmScheduledMessageDelete,
ScheduleDateInput: CalendarDateInput,
ScheduleTimeInput: TimeComboboxInput,
StartRecordingAudioButton: ConfigurableStartRecordingAudioButton,
MessageUI: InlineEditableMessage,
...messageUiOverrides,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ const buildChannel = (
uploads: true,
url_enrichment: true,
user_message_reminders: true,
voice_transcription: false,
},
created_at: createdAt,
created_by: context.actor,
Expand Down
116 changes: 116 additions & 0 deletions examples/vite/src/ChatLayout/ChannelFreezeAction.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
import { useEffect, useMemo, useState } from 'react';
import type { OwnCapabilitiesState } from 'stream-chat';
import {
asDynamicKey,
ListItemLayout,
Switch,
useNotificationApi,
useStateStore,
useTranslationContext,
} from 'stream-chat-react';
import {
type ChannelManagementActionItem,
defaultChannelManagementActionSet,
useChannelDetailContext,
} from 'stream-chat-react/channel-detail';

import { IconLock } from '../icons';

const toError = (error: unknown) =>
error instanceof Error ? error : new Error('An unknown error occurred');

const selectCanFreeze = ({ ownCapabilities }: OwnCapabilitiesState) => ({
canFreeze: !!ownCapabilities?.includes('freeze-channel'),
});

const FreezeActionIcon = () => (
<IconLock className='str-chat__channel-detail__action-icon' />
);

/**
* Freezes or unfreezes the channel, for a user whose role has the `UpdateChannelFrozen`
* permission. A frozen channel takes no new messages, which is also how a scheduled message
* can be made to fail with `channel_frozen`. The SDK ships no freeze action; it is demo code.
*/
const ChannelFreezeAction = () => {
const { channel } = useChannelDetailContext();
const { addNotification } = useNotificationApi();
const { t } = useTranslationContext();
const { canFreeze } = useStateStore(channel.state, selectCanFreeze);
const [frozen, setFrozen] = useState(!!channel.data?.frozen);
// one request at a time, so failures cannot roll the switch back out of order
const [isUpdating, setIsUpdating] = useState(false);

// follows a freeze made elsewhere, such as in the dashboard
useEffect(() => {
setFrozen(!!channel.data?.frozen);
const { unsubscribe } = channel.on('channel.updated', ({ channel: data }) => {
if (data?.frozen !== undefined) setFrozen(data.frozen);
});
return unsubscribe;
}, [channel]);

const TrailingSlot = useMemo(() => {
function ChannelFreezeSwitch() {
return <Switch on={frozen} presentation />;
}
return ChannelFreezeSwitch;
}, [frozen]);

if (!canFreeze) return null;

const toggleFrozen = async () => {
if (isUpdating) return;
const nextFrozen = !frozen;
setIsUpdating(true);
setFrozen(nextFrozen);
Comment thread
MartinCupela marked this conversation as resolved.
Resolved
try {
await channel.updatePartial({ set: { frozen: nextFrozen } });
} catch (error) {
// back to what the channel last confirmed
setFrozen(!!channel.data?.frozen);
addNotification({
context: { channel },
emitter: 'ChannelFreezeAction',
error: toError(error),
message: nextFrozen
? t(
asDynamicKey('viteExample.channelFreeze.freezeError.text'),
"Couldn't freeze the channel",
)
: t(
asDynamicKey('viteExample.channelFreeze.unfreezeError.text'),
"Couldn't unfreeze the channel",
),
severity: 'error',
type: 'api:channel:freeze:failed',
});
} finally {
setIsUpdating(false);
}
};

return (
<ListItemLayout
LeadingIcon={FreezeActionIcon}
RootElement='button'
rootProps={{
'aria-pressed': frozen,
className:
'str-chat__form__switch-field str-chat__channel-management-view-action',
disabled: isUpdating,
onClick: toggleFrozen,
}}
title={t(asDynamicKey('viteExample.channelFreeze.title'), 'Freeze channel')}
TrailingSlot={TrailingSlot}
/>
);
};

/** The SDK's channel actions with the freeze switch after Mute chat. */
export const channelManagementActionSetWithFreeze: ChannelManagementActionItem[] =
defaultChannelManagementActionSet.flatMap((action) =>
action.type === 'muteChannel'
? [action, { Component: ChannelFreezeAction, type: 'freezeChannel' }]
: [action],
);
Loading