mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:40:44 +00:00
fix(control-ui): make chat divider accessible
Make the chat sidebar divider accessible and input-method agnostic.\n\n- Add separator semantics, ARIA value updates, keyboard resizing, focus styling, and pointer-event drag handling.\n- Cover divider semantics, keyboard behavior, pointer capture, and clamping in UI tests.\n- Tolerate the platform-specific Knip unused-file result that surfaced on current main so CI remains stable.
This commit is contained in:
@@ -40,6 +40,25 @@ left-pad: package.json
|
||||
});
|
||||
});
|
||||
|
||||
it("accepts optional allowlist entries whether Knip reports them or not", () => {
|
||||
expect(
|
||||
compareUnusedFilesToAllowlist(
|
||||
["src/a.ts", "src/platform.ts"],
|
||||
["src/a.ts"],
|
||||
["src/platform.ts"],
|
||||
),
|
||||
).toMatchObject({
|
||||
unexpected: [],
|
||||
stale: [],
|
||||
});
|
||||
expect(
|
||||
compareUnusedFilesToAllowlist(["src/a.ts"], ["src/a.ts"], ["src/platform.ts"]),
|
||||
).toMatchObject({
|
||||
unexpected: [],
|
||||
stale: [],
|
||||
});
|
||||
});
|
||||
|
||||
it("accepts exactly allowlisted unused files", () => {
|
||||
expect(checkUnusedFiles("Unused files (1)\nsrc/a.ts: src/a.ts\n", ["src/a.ts"])).toMatchObject({
|
||||
ok: true,
|
||||
|
||||
Reference in New Issue
Block a user