Skip to content

Commit 077e817

Browse files
committed
1 parent a6a3fd9 commit 077e817

3 files changed

Lines changed: 2 additions & 32 deletions

File tree

‎ui/src/pages/approval/approval-page.test.ts‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ function createPage(params: {
136136
connected?: boolean;
137137
hello?: ApplicationGatewaySnapshot["hello"];
138138
id?: string;
139-
withBootFallback?: boolean;
140139
}) {
141140
const source = createGateway(params.client, params.connected, params.hello);
142141
const page = document.createElement(APPROVAL_PAGE_ELEMENT_NAME) as TestApprovalPage;
@@ -145,11 +144,6 @@ function createPage(params: {
145144
gateway: source.gateway,
146145
} as unknown as ApplicationContext);
147146
page.approvalId = params.id ?? "exec:approval-1";
148-
if (params.withBootFallback) {
149-
const fallback = document.createElement("main");
150-
fallback.className = "approval-page approval-page--booting";
151-
page.append(fallback);
152-
}
153147
provider.append(page);
154148
document.body.append(provider);
155149
return { page, source };
@@ -401,19 +395,6 @@ describe("ApprovalPage", () => {
401395
expect(page.querySelectorAll("[data-decision]")).toHaveLength(0);
402396
});
403397

404-
it("replaces the host boot fallback instead of duplicating the page", async () => {
405-
const request = vi.fn(async () => ({ approval: pendingApproval() }));
406-
const { page } = createPage({
407-
client: { request } as unknown as GatewayBrowserClient,
408-
withBootFallback: true,
409-
});
410-
411-
await settle(page);
412-
413-
expect(page.querySelectorAll(".approval-page")).toHaveLength(1);
414-
expect(page.querySelector(".approval-page--booting")).toBeNull();
415-
});
416-
417398
it("loads a durable approval and sends a kind-bound resolution", async () => {
418399
const pending = pendingApproval();
419400
const terminal = allowedApproval();

‎ui/src/styles/approval-boot.css‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,5 @@ openclaw-approval-page {
4040
}
4141
}
4242

43-
.approval-page--booting {
44-
align-content: center;
45-
color: var(--muted);
46-
}
47-
48-
/* Only the shell's pre-hydration booting state lives here; the full approval
49-
* page styles load with the lazy page chunk (see approval-page.ts). */
43+
/* Only the shared page frame lives here; detailed approval styles load with
44+
* the lazy page chunk (see approval-page.ts). */

‎ui/src/styles/components.css‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2564,12 +2564,6 @@ openclaw-chat-session-rail {
25642564
background: var(--warn-subtle);
25652565
}
25662566

2567-
.chip-danger {
2568-
color: var(--danger);
2569-
border-color: color-mix(in srgb, var(--danger) 30%, transparent);
2570-
background: var(--danger-subtle);
2571-
}
2572-
25732567
/* ===========================================
25742568
Data Table
25752569
=========================================== */

0 commit comments

Comments
 (0)