fix(ui): trim the task page and draw a run's pinned definition on the canvas
This commit is contained in:
9 files changed
+93
-75
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user