From 526a360c1b66c44f85f5bdaf066b19279855eb90 Mon Sep 17 00:00:00 2001 From: YiJie Date: Mon, 7 Sep 2026 04:14:01 +0800 Subject: [PATCH] fix: use the public create icon token --- src/channel.ts | 2 +- test/scaffold.test.mjs | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/channel.ts b/src/channel.ts index 155b564..8780b98 100644 --- a/src/channel.ts +++ b/src/channel.ts @@ -114,7 +114,7 @@ export const presentation = { const pages = [ ["settings", "route.settings", "host:layers"], - ["create", "route.create", "host:create"], + ["create", "route.create", "host:new"], ["configuration", "route.configuration", "host:settings"], ["logs", "route.logs", "host:history"], ["runtime", "route.runtime", "host:open"], diff --git a/test/scaffold.test.mjs b/test/scaffold.test.mjs index 638445f..a4e6406 100644 --- a/test/scaffold.test.mjs +++ b/test/scaffold.test.mjs @@ -35,3 +35,12 @@ test("scopes binding mutation to the manifest-authorized simulator tenant", asyn channelTenants: [{ adapterId: "simulator", accountId: "local", tenantId: "test" }], }); }); + +test("uses the public Host new-action icon token for the create page", async () => { + const source = await import("../dist/channel.js"); + // The bundled source keeps page metadata as a local constant; assert the public token is present and the removed token is absent. + const bundled = await readFile(new URL("../dist/channel.js", import.meta.url), "utf8"); + assert.match(bundled, /host:new/); + assert.doesNotMatch(bundled, /host:create/); + assert.equal(source.manifest.id, "channel"); +});