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:
1 parent
3cc3012b3a
commit
e8a29a0087
291 files changed
+12194
-3979
No files matched your search
@@ -120,13 +120,26 @@ describe("channelSetup", () => {
|
||||
webui: "webui/index.ts",
|
||||
}), "zh-CN");
|
||||
|
||||
expect(setup.summary).toBe("钉钉需要 Stream 模式的应用凭据。");
|
||||
expect(setup.steps[0]).toBe("创建或选择一个已启用 Stream 模式的钉钉应用。");
|
||||
expect(setup.docsLabel).toBe("打开钉钉配置指南");
|
||||
expect(setup.officialLabel).toBe("打开钉钉开发者后台");
|
||||
expect(setup.fields).toContainEqual(expect.objectContaining({
|
||||
key: "channels.dingtalk.allowFrom",
|
||||
label: "允许的用户",
|
||||
}));
|
||||
});
|
||||
|
||||
it("loads custom setup section labels from the channel-owned locale", () => {
|
||||
const setup = channelSetup(feature({
|
||||
name: "email",
|
||||
display_name: "Email",
|
||||
webui: "webui/index.ts",
|
||||
}));
|
||||
|
||||
expect(setup.sectionLabels).toEqual({
|
||||
receiving: "Receiving mail",
|
||||
sending: "Sending mail",
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("channel runtime state", () => {
|
||||
|
||||
Reference in new issue
Block a user