Skip to content

Commit 65e1232

Browse files
authored
feat: refactor the Control UI architecture
Refactor the Control UI around route-owned page lifecycle and state while preserving existing behavior and design. Prepared head SHA: bd51b6f Co-authored-by: Shakker <[email protected]> Reviewed-by: @shakkernerd
1 parent 832cb3c commit 65e1232

569 files changed

Lines changed: 38485 additions & 55319 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎config/knip.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const config = {
156156
entry: [
157157
"index.html!",
158158
"src/main.ts!",
159-
"src/ui/browser-redact.ts!",
159+
"src/lib/browser-redact.ts!",
160160
"vite.config.ts!",
161161
"vitest*.ts!",
162162
],

‎extensions/qa-lab/src/coverage-report.test.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ describe("qa coverage report", () => {
211211
).toContainEqual({
212212
coverageId: TEST_BROWSER_COVERAGE_ID,
213213
kind: "playwright",
214-
path: "ui/src/ui/e2e/chat-flow.e2e.test.ts",
214+
path: "ui/src/e2e/chat-flow.e2e.test.ts",
215215
role: "primary",
216216
scenarioRefs: ["qa/scenarios/ui/control-ui-chat-flow-playwright.yaml"],
217217
});
@@ -286,7 +286,7 @@ describe("qa coverage report", () => {
286286
expect(report).toContain(
287287
"- browser-automation-and-exec-sandbox-tools.tool-invocation-and-execution (browser-automation-and-exec-sandbox-tools / Tool Invocation and Execution; partial): profiles: all, release, smoke-ci; coverage IDs:",
288288
);
289-
expect(report).toContain("primary:playwright:ui/src/ui/e2e/chat-flow.e2e.test.ts (ui.control)");
289+
expect(report).toContain("primary:playwright:ui/src/e2e/chat-flow.e2e.test.ts (ui.control)");
290290
expect(report).not.toContain("### Unknown Scenario Coverage IDs");
291291
});
292292

@@ -300,12 +300,12 @@ describe("qa coverage report", () => {
300300
expect(report).toContain(
301301
"- Suite command: `pnpm openclaw qa suite --scenario control-ui-chat-flow-playwright`",
302302
);
303-
expect(report).toContain(" - execution: playwright ui/src/ui/e2e/chat-flow.e2e.test.ts");
303+
expect(report).toContain(" - execution: playwright ui/src/e2e/chat-flow.e2e.test.ts");
304304
expect(report).not.toContain("Native test refs");
305305
});
306306

307307
it("splits qa suite targets when matches mix execution kinds", () => {
308-
const playwrightExecutionPath = "ui/src/ui/e2e/chat-flow.e2e.test.ts";
308+
const playwrightExecutionPath = "ui/src/e2e/chat-flow.e2e.test.ts";
309309
const flowScenario = scenarioWithCoverage({
310310
primary: [TEST_EXECUTABLE_COVERAGE_ID],
311311
});
@@ -389,7 +389,7 @@ describe("qa coverage report", () => {
389389
primary: [TEST_BROWSER_COVERAGE_ID],
390390
sourcePath: "qa/scenarios/ui/control-ui-chat-flow-playwright.yaml",
391391
executionKind: "playwright",
392-
executionPath: "ui/src/ui/e2e/chat-flow.e2e.test.ts",
392+
executionPath: "ui/src/e2e/chat-flow.e2e.test.ts",
393393
}),
394394
],
395395
});
@@ -405,7 +405,7 @@ describe("qa coverage report", () => {
405405
{
406406
coverageId: TEST_BROWSER_COVERAGE_ID,
407407
kind: "playwright",
408-
path: "ui/src/ui/e2e/chat-flow.e2e.test.ts",
408+
path: "ui/src/e2e/chat-flow.e2e.test.ts",
409409
role: "primary",
410410
scenarioRefs: ["qa/scenarios/ui/control-ui-chat-flow-playwright.yaml"],
411411
},

‎extensions/qa-lab/src/run-config.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const scenarios = [
4444
successCriteria: ["playwright pass"],
4545
execution: {
4646
kind: "playwright" as const,
47-
path: "ui/src/ui/e2e/chat-flow.e2e.test.ts",
47+
path: "ui/src/e2e/chat-flow.e2e.test.ts",
4848
},
4949
},
5050
];

‎extensions/qa-lab/src/scenario-catalog.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ describe("qa scenario catalog", () => {
221221
if (scenario.execution.kind !== "playwright") {
222222
throw new Error(`expected Playwright scenario, got ${scenario.execution.kind}`);
223223
}
224-
expect(scenario.execution.path).toBe("ui/src/ui/e2e/chat-flow.e2e.test.ts");
224+
expect(scenario.execution.path).toBe("ui/src/e2e/chat-flow.e2e.test.ts");
225225
expect(scenario.execution.flow).toBeUndefined();
226226
expect(scenario.coverage?.primary).toContain("ui.control");
227227
expect(uxMatrix.execution.kind).toBe("script");

‎extensions/qa-lab/src/suite-planning.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function makePlaywrightQaSuiteTestScenario(id: string): ReturnType<typeof makeQa
2525
...makeQaSuiteTestScenario(id),
2626
execution: {
2727
kind: "playwright",
28-
path: `ui/src/ui/e2e/${id}.e2e.test.ts`,
28+
path: `ui/src/e2e/${id}.e2e.test.ts`,
2929
},
3030
};
3131
}

‎extensions/qa-lab/src/test-file-scenario-runner.test.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ describe("qa test file scenario runner", () => {
163163
outputDir: path.join(repoRoot, ".artifacts", "qa-e2e", "scenario-playwright"),
164164
providerMode: "mock-openai",
165165
primaryModel: "mock-openai/gpt-5.5",
166-
scenarios: [makeTestFileScenario("playwright", "ui/src/ui/e2e/chat-flow.e2e.test.ts")],
166+
scenarios: [makeTestFileScenario("playwright", "ui/src/e2e/chat-flow.e2e.test.ts")],
167167
runCommand: async (command) => {
168168
commands.push(command);
169169
return {
@@ -187,7 +187,7 @@ describe("qa test file scenario runner", () => {
187187
"test/vitest/vitest.ui-e2e.config.ts",
188188
"--configLoader",
189189
"runner",
190-
"ui/src/ui/e2e/chat-flow.e2e.test.ts",
190+
"ui/src/e2e/chat-flow.e2e.test.ts",
191191
"--reporter=verbose",
192192
],
193193
]);
@@ -202,7 +202,7 @@ describe("qa test file scenario runner", () => {
202202
kind: "playwright-test",
203203
id: "scenario-playwright",
204204
source: {
205-
path: "ui/src/ui/e2e/chat-flow.e2e.test.ts",
205+
path: "ui/src/e2e/chat-flow.e2e.test.ts",
206206
},
207207
},
208208
coverage: [
@@ -222,7 +222,7 @@ describe("qa test file scenario runner", () => {
222222
},
223223
{
224224
kind: "code",
225-
path: "ui/src/ui/e2e/chat-flow.e2e.test.ts",
225+
path: "ui/src/e2e/chat-flow.e2e.test.ts",
226226
},
227227
],
228228
execution: {
@@ -248,7 +248,7 @@ describe("qa test file scenario runner", () => {
248248
outputDir: path.join(repoRoot, ".artifacts", "qa-e2e", "scenario-playwright"),
249249
providerMode: "mock-openai",
250250
primaryModel: "mock-openai/gpt-5.5",
251-
scenarios: [makeTestFileScenario("playwright", "ui/src/ui/e2e/chat-flow.e2e.test.ts")],
251+
scenarios: [makeTestFileScenario("playwright", "ui/src/e2e/chat-flow.e2e.test.ts")],
252252
writeEvidenceFile: false,
253253
runCommand: async () => ({
254254
exitCode: 0,

‎pnpm-lock.yaml‎

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pnpm-workspace.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ minimumReleaseAgeExclude:
1010
- "@openclaw/[email protected]"
1111
- "@openclaw/[email protected]"
1212
- "@openclaw/[email protected]"
13+
- "@openclaw/[email protected]"
1314
- "acpx"
1415
- "tokenjuice"
1516
- "@agentclientprotocol/sdk"

‎qa/scenarios/ui/browser-talk-start-stop.yaml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ scenario:
1818
- docs/web/control-ui.md
1919
- docs/help/testing.md
2020
codeRefs:
21-
- ui/src/ui/e2e/browser-talk-start-stop.e2e.test.ts
21+
- ui/src/e2e/browser-talk-start-stop.e2e.test.ts
2222
- ui/src/test-helpers/control-ui-e2e.ts
23+
- ui/src/pages/chat/realtime-talk-google-live.test.ts
2324
execution:
2425
kind: playwright
25-
path: ui/src/ui/e2e/browser-talk-start-stop.e2e.test.ts
26+
path: ui/src/e2e/browser-talk-start-stop.e2e.test.ts
2627
summary: Playwright coverage for browser realtime Talk start and stop through the Control UI.

‎qa/scenarios/ui/control-ui-chat-flow-playwright.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ scenario:
1212
docsRefs:
1313
- docs/web/control-ui.md
1414
codeRefs:
15-
- ui/src/ui/e2e/chat-flow.e2e.test.ts
15+
- ui/src/e2e/chat-flow.e2e.test.ts
1616
execution:
1717
kind: playwright
18-
path: ui/src/ui/e2e/chat-flow.e2e.test.ts
18+
path: ui/src/e2e/chat-flow.e2e.test.ts
1919
summary: Playwright coverage for the Control UI chat flow.

0 commit comments

Comments
 (0)