From 7030c00d45fde35a2d0ffc4db9914c31e996b2a8 Mon Sep 17 00:00:00 2001 From: w-sss <1598099293@qq.com> Date: Tue, 17 Mar 2026 18:40:47 +0800 Subject: [PATCH 1/6] fix(ui): display error message when channel config save fails - Add error display in renderChannelConfigSection - Show props.lastError in danger callout when save fails - Fixes #48923 where users couldn't see why config save failed Root cause: The saveConfig() function sets state.lastError on failure, but the Channels UI never displayed it. Users saw unresponsive page with no feedback, making it impossible to diagnose config save failures. Fix: 1. Check props.lastError in renderChannelConfigSection 2. Display error in danger callout when present 3. Error clears on next successful save --- ui/src/ui/views/channels.config.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ui/src/ui/views/channels.config.ts b/ui/src/ui/views/channels.config.ts index 3037568992c..8462413cb8f 100644 --- a/ui/src/ui/views/channels.config.ts +++ b/ui/src/ui/views/channels.config.ts @@ -118,6 +118,7 @@ export function renderChannelConfigForm(props: ChannelConfigFormProps) { export function renderChannelConfigSection(params: { channelId: string; props: ChannelsProps }) { const { channelId, props } = params; const disabled = props.configSaving || props.configSchemaLoading; + const hasError = Boolean(props.lastError); return html`
${ @@ -134,6 +135,15 @@ export function renderChannelConfigSection(params: { channelId: string; props: C onPatch: props.onConfigPatch, }) } + ${ + hasError + ? html` +
+ ${props.lastError} +
+ ` + : nothing + }