Merge main and harden managed Codex account flow

This commit is contained in:
SaladDay
2026-07-18 10:06:58 +00:00
276 changed files with 32101 additions and 3292 deletions
+33
View File
@@ -0,0 +1,33 @@
import { render } from "@testing-library/react";
import { afterEach, describe, expect, it } from "vitest";
import { FullScreenPanel } from "@/components/common/FullScreenPanel";
const Panels = ({ innerOpen }: { innerOpen: boolean }) => (
<>
<FullScreenPanel isOpen title="Outer" onClose={() => undefined}>
outer
</FullScreenPanel>
<FullScreenPanel isOpen={innerOpen} title="Inner" onClose={() => undefined}>
inner
</FullScreenPanel>
</>
);
describe("FullScreenPanel body scroll locking", () => {
afterEach(() => {
document.body.style.overflow = "";
});
it("keeps the body locked when a nested panel closes", () => {
document.body.style.overflow = "clip";
const view = render(<Panels innerOpen />);
expect(document.body.style.overflow).toBe("hidden");
view.rerender(<Panels innerOpen={false} />);
expect(document.body.style.overflow).toBe("hidden");
view.unmount();
expect(document.body.style.overflow).toBe("clip");
});
});