Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/empty-worlds-throw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@workflow/web-shared": patch
---

Move run attributes into their own detail card
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ const attributeOrder: AttributeKey[] = [
'eventData',
'input',
'output',
'attributes',
'resumeAt',
];

Expand Down Expand Up @@ -416,11 +417,11 @@ const attributeToDisplayFn: Record<
environment: (_value: unknown) => null,
executionContext: (_value: unknown) => null,
// Attributes MVP — string-string metadata attached to the run.
// Rendered as a JSON block; if empty/missing, hidden by the
// hasDisplayContent gate above.
// Rendered in its own collapsible DetailCard; if empty/missing, hidden
// by the hasDisplayContent gate.
attributes: (value: unknown) => {
if (!hasDisplayContent(value)) return null;
return JsonBlock(value);
return <DetailCard summary="Attributes">{JsonBlock(value)}</DetailCard>;
},
// Dates — wrapped with TimestampTooltip showing UTC/local + relative time
createdAt: timestampWithTooltipOrNull,
Expand Down Expand Up @@ -589,6 +590,7 @@ const resolvableAttributes = [
'output',
'error',
'metadata',
'attributes',
'eventData',
];

Expand All @@ -598,6 +600,7 @@ const selfHeaderedAttributes = new Set([
'input',
'output',
'error',
'attributes',
'eventData',
]);

Expand Down
Loading