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
@@ -33,44 +33,6 @@ describe("channel UI contributions", () => {
|
||||
expect(channelUiOwner("wechat")).toBe("weixin");
|
||||
});
|
||||
|
||||
it("uses the DingTalk Open Platform brand mark", () => {
|
||||
expect(channelUiPresentation("dingtalk")?.logoUrl).toBe(
|
||||
"https://img.alicdn.com/imgextra/i3/O1CN01WMvMRG1ks3Ixc9x1v_!!6000000004738-55-tps-32-32.svg",
|
||||
);
|
||||
});
|
||||
|
||||
it("keeps the core setup panel independent of concrete channel plugins", () => {
|
||||
const source = readFileSync(
|
||||
resolve(process.cwd(), "src/components/settings/channels/ChannelSetupPanel.tsx"),
|
||||
"utf8",
|
||||
);
|
||||
|
||||
expect(source).not.toMatch(/feature\.name\s*===\s*["'](?:feishu|weixin)["']/);
|
||||
expect(source).not.toMatch(/channel-plugins\/(?:feishu|weixin)/);
|
||||
expect(source).not.toMatch(/(?:Feishu|Weixin)(?:AssistantsPanel|ConnectFlow)/);
|
||||
});
|
||||
|
||||
it("discovers UI contributions only from channel-owned packages", () => {
|
||||
const source = readFileSync(
|
||||
resolve(process.cwd(), "src/channel-plugins/registry.ts"),
|
||||
"utf8",
|
||||
);
|
||||
|
||||
expect(source).toContain("../../../nanobot/channels/*/webui/index.{ts,tsx}");
|
||||
expect(source).not.toContain("webui/**/*.{ts,tsx}");
|
||||
expect(source).not.toContain('"./*/index.tsx"');
|
||||
});
|
||||
|
||||
it("derives channel identity from the package directory", () => {
|
||||
for (const channel of ["feishu", "weixin"]) {
|
||||
const source = readFileSync(
|
||||
resolve(process.cwd(), `../nanobot/channels/${channel}/webui/index.tsx`),
|
||||
"utf8",
|
||||
);
|
||||
expect(source).not.toMatch(/\bchannel\s*:/);
|
||||
}
|
||||
});
|
||||
|
||||
it("includes channel-owned UI in Tailwind's production scan", () => {
|
||||
const source = readFileSync(resolve(process.cwd(), "tailwind.config.js"), "utf8");
|
||||
|
||||
|
||||
Reference in new issue
Block a user