fix(frontend): restore live log text contrast

This commit is contained in:
User
2026-07-15 12:27:19 +02:00
parent 6b0da84a3d
commit 09f9bdffe5
2 changed files with 16 additions and 1 deletions
+15
View File
@@ -51,6 +51,21 @@ test("wraps live log lines instead of truncating them", () => {
expect(screen.getByText("a_very_long_model_activity_line")).not.toHaveClass("truncate"); expect(screen.getByText("a_very_long_model_activity_line")).not.toHaveClass("truncate");
}); });
test("uses accessible muted text for historical live-log rows", () => {
useSessionStore.setState({
transcript: [
{ role: "assistant", text: "Earlier activity" },
{ role: "assistant", text: "Current activity" },
],
});
render(<CentralStatus working />);
const historicalRow = screen.getByText("Earlier activity").closest("li");
expect(historicalRow).not.toBeNull();
expect(historicalRow).toHaveClass("text-muted-foreground");
expect(historicalRow).not.toHaveClass("text-muted-foreground/55");
});
test.each([ test.each([
{ working: false, transcript: [{ role: "assistant" as const, text: "hidden" }] }, { working: false, transcript: [{ role: "assistant" as const, text: "hidden" }] },
{ working: true, transcript: [] }, { working: true, transcript: [] },
+1 -1
View File
@@ -51,7 +51,7 @@ export function CentralStatus({ working }: { working: boolean }) {
key={index} key={index}
className={[ className={[
"flex items-baseline gap-2 font-mono text-[0.72rem] leading-relaxed", "flex items-baseline gap-2 font-mono text-[0.72rem] leading-relaxed",
isLast ? "text-foreground/80" : "text-muted-foreground/55", isLast ? "text-foreground/80" : "text-muted-foreground",
].join(" ")} ].join(" ")}
> >
<span <span