feat(webui): improve setup flows across chat channels (NAN-112) (#5356)

* feat(webui): improve channel setup flows

* fix(webui): refine channel setup interactions (NAN-112)

* fix(webui): keep email setup sections channel-owned

* fix(webui): remove concrete channel details from shared components

* refactor(webui): remove unused channel setup resources

* fix(webui): finish channel-owned setup boundaries

* fix(webui): update channel switches optimistically

* test(channels): remove obsolete absence assertions

* fix(webui): flatten channel instance settings disclosure

* fix(webui): complete channel setup and connection flows

* fix(whatsapp): wait for session database release

* fix(webui): preserve scrolling channel controls

* fix(webui): stage channel connection checks

* fix(channels): align verification actions

* fix(email): expose connection checks

* fix(webui): align channel field actions

* fix(email): verify account credentials

* fix(wecom): bypass system proxy for websocket

* fix(channels): stabilize async connection cleanup

* fix(webui): autosave channel credentials

* fix(email): make provider presets non-destructive

* test(weixin): isolate persisted QR credentials
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-11 15:22:14 +08:00
1 parent 3cc3012b3a
commit e8a29a0087
291 files changed
+12194 -3979

No files matched your search

+10 -14
View File
@@ -566,12 +566,16 @@ export async function stopApiService(
export async function enableNanobotFeature(
transport: WebUIMutationTransport,
name: string,
options: { instanceId?: string } = {},
options: { instanceId?: string; installOnly?: boolean } = {},
): Promise<NanobotFeaturesPayload> {
return mutation<NanobotFeaturesPayload>(
transport,
"settings.feature.enable",
{ name, ...(options.instanceId ? { instance_id: options.instanceId } : {}) },
{
name,
...(options.instanceId ? { instance_id: options.instanceId } : {}),
...(options.installOnly ? { install_only: true } : {}),
},
PACKAGE_MUTATION_TIMEOUT_MS,
);
}
@@ -611,22 +615,14 @@ export async function runPairingAction(
export async function startChannelConnect(
transport: WebUIMutationTransport,
channel: string,
options: {
domain?: string;
instanceId?: string;
mode?: "replace" | "create";
force?: boolean;
} = {},
params: Readonly<Record<string, string | boolean>> = {},
): Promise<ChannelConnectPayload> {
return mutation<ChannelConnectPayload>(
transport,
"settings.channel.connect.start",
{
...params,
channel,
...(options.domain ? { domain: options.domain } : {}),
...(options.instanceId ? { instance_id: options.instanceId } : {}),
...(options.mode ? { mode: options.mode } : {}),
...(options.force ? { force: true } : {}),
},
PACKAGE_MUTATION_TIMEOUT_MS,
);
@@ -664,7 +660,7 @@ export async function cancelChannelConnect(
export async function configureChannel(
transport: WebUIMutationTransport,
name: string,
values: Record<string, string>,
values: Record<string, string | null>,
options: { enable?: boolean; instanceId?: string } = {},
): Promise<ChannelConfigurePayload> {
return mutation<ChannelConfigurePayload>(
@@ -683,7 +679,7 @@ export async function configureChannel(
export async function validateChannel(
transport: WebUIMutationTransport,
name: string,
values: Record<string, string> = {},
values: Record<string, string | null> = {},
options: { instanceId?: string } = {},
): Promise<ChannelValidationPayload> {
return mutation<ChannelValidationPayload>(