feat(settings): move IM bot to top-level menu

Remove the legacy Plugins-tab registrations, keep the channel-logo navigation, and harden upgrade/package verification.
This commit is contained in:
xmanrui 2026-08-25 22:42:41 +08:00
parent 892e18db77
commit 1ce8126edb
30 changed files with 815 additions and 842 deletions

View file

@ -20,11 +20,11 @@ const WEIXIN_FORBIDDEN = new Error(
test('creates a localhost recovery target for the known loopback transport 403', () => {
const recovery = createLoopbackRecovery(WEIXIN_FORBIDDEN, {
href: 'http://127.0.0.1:3080/settings?tab=plugins#im',
href: 'http://127.0.0.1:3080/settings',
});
assert.deepEqual(recovery, {
url: 'http://localhost:3080/settings?tab=plugins#im',
url: 'http://localhost:3080/settings',
origin: 'http://localhost:3080',
});
assert.deepEqual(createLoopbackRecovery(WEIXIN_FORBIDDEN, {
@ -103,7 +103,7 @@ test('RPC wrappers preserve successful results, unrelated errors, and missing op
test('recovery notice exposes one localized navigation action', () => {
const recovery = {
url: 'http://localhost:3080/settings?tab=plugins#im',
url: 'http://localhost:3080/settings',
origin: 'http://localhost:3080',
};
const element = LoopbackRecoveryNotice({ recovery, onNavigate() {} });