fix(ui): trim the task page and draw a run's pinned definition on the canvas

This commit is contained in:
sam committed 2026-10-24 11:39:55 +11:00
1 parent 004177f0fb
commit fb7dcbe6cb
9 files changed
+93 -75

No files matched your search

+7 -2
View File
@@ -13,9 +13,14 @@ import {
* attempt log render the same entry shape, so the row lives here rather than
* being duplicated a second time.
*/
const props = defineProps<{ entry: LogEntry }>();
const props = defineProps<{ entry: LogEntry; omit?: string[] }>();
const fields = () => Object.entries(props.entry.fields ?? {});
// received_at restates the row's time; a page that sets the context (a task's
// own log) also omits the fields naming it.
const fields = () =>
Object.entries(props.entry.fields ?? {}).filter(
([k]) => k !== "received_at" && !props.omit?.includes(k),
);
</script>
<template>