1
0

feat: add ephemeral webcam faces and adaptive screens

This commit is contained in:
2026-08-11 22:38:56 -07:00
parent 3326d2e6d0
commit d4859b33c6
17 changed files with 1107 additions and 11 deletions
+22
View File
@@ -225,6 +225,28 @@ describe("profile editor DOM adapter", () => {
assert.equal(saves.length, 1);
});
it("includes visible contextual controls in its focus trap and skips hidden ones", () => {
const { document, editor } = setup();
const cameraStart = document.createElement("button");
const cameraStop = document.createElement("button");
cameraStop.hidden = true;
editor.registerFocusables([
cameraStart as unknown as HTMLElement,
cameraStop as unknown as HTMLElement,
]);
editor.open();
const root = editor.root as unknown as FakeElement;
const first = root.find("data-field", "displayName");
cameraStart.focus();
assert.equal(root.dispatch("keydown", { key: "Tab" }).defaultPrevented, true);
assert.equal(document.activeElement, first);
cameraStart.hidden = true;
const save = root.find("data-action", "save");
save.focus();
assert.equal(root.dispatch("keydown", { key: "Tab" }).defaultPrevented, true);
assert.equal(document.activeElement, first);
});
it("strictly updates caller data, then disposes without leaving DOM", () => {
const { container, editor, previews } = setup();
const next = createDefaultLocalProfile("new-person", "Morgan");