mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:10:45 +00:00
Summary: - The PR centralizes Control UI chat delete-confirm popover dismissal, adds listener-cleanup regression coverage and unit-UI test routing fixes, and records the fix in the changelog. - Reproducibility: yes. Current-main source shows a high-confidence path: open the delete confirm, let `reques ... ncel, Delete, or same-button toggle; those paths remove the popover without removing the document listener. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(ui): clean up delete confirm popover listener - PR branch already contained follow-up commit before automerge: fix(clawsweeper): address review for automerge-openclaw-openclaw-7559… - PR branch already contained follow-up commit before automerge: fix(clawsweeper): reconcile automerge-openclaw-openclaw-75590 with ma… - PR branch already contained follow-up commit before automerge: fix(ui): repair delete confirm listener cleanup checks Validation: - ClawSweeper review passed for head62240d8153. - Required merge gates passed before the squash merge. Prepared head SHA:62240d8153Review: https://github.com/openclaw/openclaw/pull/76318#issuecomment-4364990281 Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: Ricardo-M-L <69202550+Ricardo-M-L@users.noreply.github.com>
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
|
import { jsdomOptimizedDeps } from "./vitest.shared.config.ts";
|
|
|
|
export const unitUiIncludePatterns = [
|
|
"ui/src/ui/app-chat.test.ts",
|
|
"ui/src/ui/chat/**/*.test.ts",
|
|
"ui/src/ui/views/agents-utils.test.ts",
|
|
"ui/src/ui/views/channels.test.ts",
|
|
"ui/src/ui/views/chat.test.ts",
|
|
"ui/src/ui/views/dreaming.test.ts",
|
|
"ui/src/ui/views/usage-render-details.test.ts",
|
|
"ui/src/ui/controllers/agents.test.ts",
|
|
"ui/src/ui/controllers/chat.test.ts",
|
|
];
|
|
|
|
export function createUiVitestConfig(
|
|
env?: Record<string, string | undefined>,
|
|
options?: { includePatterns?: string[]; name?: string },
|
|
) {
|
|
const includePatterns = options?.includePatterns ?? ["ui/src/**/*.test.ts"];
|
|
const exclude = options?.includePatterns ? [] : unitUiIncludePatterns;
|
|
return createScopedVitestConfig(includePatterns, {
|
|
deps: jsdomOptimizedDeps,
|
|
environment: "jsdom",
|
|
env,
|
|
exclude,
|
|
excludeUnitFastTests: false,
|
|
includeOpenClawRuntimeSetup: false,
|
|
isolate: false,
|
|
name: options?.name ?? "ui",
|
|
setupFiles: ["ui/src/test-helpers/lit-warnings.setup.ts"],
|
|
});
|
|
}
|
|
|
|
export default createUiVitestConfig();
|