fix(frontend): restore live log text contrast
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
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([
|
||||
{ working: false, transcript: [{ role: "assistant" as const, text: "hidden" }] },
|
||||
{ working: true, transcript: [] },
|
||||
|
||||
@@ -51,7 +51,7 @@ export function CentralStatus({ working }: { working: boolean }) {
|
||||
key={index}
|
||||
className={[
|
||||
"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(" ")}
|
||||
>
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user