diff --git a/ui/src/pages/approval/approval-page.test.ts b/ui/src/pages/approval/approval-page.test.ts index 893b4ba74728..c7998973209f 100644 --- a/ui/src/pages/approval/approval-page.test.ts +++ b/ui/src/pages/approval/approval-page.test.ts @@ -136,7 +136,6 @@ function createPage(params: { connected?: boolean; hello?: ApplicationGatewaySnapshot["hello"]; id?: string; - withBootFallback?: boolean; }) { const source = createGateway(params.client, params.connected, params.hello); const page = document.createElement(APPROVAL_PAGE_ELEMENT_NAME) as TestApprovalPage; @@ -145,11 +144,6 @@ function createPage(params: { gateway: source.gateway, } as unknown as ApplicationContext); page.approvalId = params.id ?? "exec:approval-1"; - if (params.withBootFallback) { - const fallback = document.createElement("main"); - fallback.className = "approval-page approval-page--booting"; - page.append(fallback); - } provider.append(page); document.body.append(provider); return { page, source }; @@ -401,19 +395,6 @@ describe("ApprovalPage", () => { expect(page.querySelectorAll("[data-decision]")).toHaveLength(0); }); - it("replaces the host boot fallback instead of duplicating the page", async () => { - const request = vi.fn(async () => ({ approval: pendingApproval() })); - const { page } = createPage({ - client: { request } as unknown as GatewayBrowserClient, - withBootFallback: true, - }); - - await settle(page); - - expect(page.querySelectorAll(".approval-page")).toHaveLength(1); - expect(page.querySelector(".approval-page--booting")).toBeNull(); - }); - it("loads a durable approval and sends a kind-bound resolution", async () => { const pending = pendingApproval(); const terminal = allowedApproval(); diff --git a/ui/src/styles/approval-boot.css b/ui/src/styles/approval-boot.css index 7ea7392b1f48..79dee57f5af2 100644 --- a/ui/src/styles/approval-boot.css +++ b/ui/src/styles/approval-boot.css @@ -40,10 +40,5 @@ openclaw-approval-page { } } -.approval-page--booting { - align-content: center; - color: var(--muted); -} - -/* Only the shell's pre-hydration booting state lives here; the full approval - * page styles load with the lazy page chunk (see approval-page.ts). */ +/* Only the shared page frame lives here; detailed approval styles load with + * the lazy page chunk (see approval-page.ts). */