Skip to content
Open
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
1 change: 1 addition & 0 deletions packages/volto/news/6584.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve readability of workflow history entries by showing clear state transitions.
17 changes: 11 additions & 6 deletions packages/volto/src/components/manage/History/History.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,20 @@ class History extends Component {
</Link>
)) || (
<span>
{entry.transition_title}
{entry.type === 'workflow' &&
` (${
entry.action ? `${entry.prev_state_title} → ` : ''
}${entry.state_title})`}
{entry.type === 'workflow' ? (
<>
<strong>Workflow:</strong>{' '}
{entry.prev_state_title
? `${entry.prev_state_title} → ${entry.state_title}`
: entry.state_title}
</>
) : (
entry.transition_title
)}
</span>
)}
</Table.Cell>
<Table.Cell>{entry.actor.fullname}</Table.Cell>
<Table.Cell>{entry.actor?.fullname || '—'}</Table.Cell>
<Table.Cell>
<FormattedDate date={entry.time} />
</Table.Cell>
Expand Down
Loading