fix(frontend): refine activity layout and input state

This commit is contained in:
User
2026-07-14 10:32:11 +02:00
parent 6dbf93fff9
commit 3633a5ebd9
7 changed files with 87 additions and 7 deletions
+15
View File
@@ -67,3 +67,18 @@ test("does not POST when input is empty", async () => {
await new Promise((r) => setTimeout(r, 50));
expect(called).toBe(false);
});
test("keeps the new-question composer white by default", () => {
render(<SteerInput sessionId={null} />);
const input = screen.getByRole("textbox", { name: /new question/i });
expect(input).not.toHaveAttribute("data-awaiting-input");
expect(input).not.toHaveClass("thot-awaiting-input");
});
test("marks the composer as awaiting input only when requested", () => {
render(<SteerInput sessionId={null} awaitingInput />);
const input = screen.getByRole("textbox", { name: /new question/i });
expect(input).toHaveAttribute("data-awaiting-input", "true");
expect(input).toHaveClass("thot-awaiting-input");
});