import { h } from "preact"; import { useRef, useEffect } from "preact/hooks"; import { logRow as renderLogRow } from "../base/log-row.jsx"; function LogRowNode({ entry }) { const ref = useRef(null); useEffect(() => { if (ref.current) ref.current.replaceChildren(renderLogRow(entry)); }, [entry]); return
; } export function TaskLogPanel({ state, onRetry }) { if (state === undefined) { return
Loading attempt log…
; } if (state === null) { return (
Could not load this attempt's log.
); } if (state.disabled) { return (
No persisted log for this attempt
Task logging is optional and was not enabled for this run.
); } const entries = state.entries || []; if (!entries.length) { return (
Nothing recorded
This attempt's log file has no entries matching the current filter.
); } return (
{entries.map((entry, i) => ( ))}
); }