Skip to content

feat: Add new, more prominent Workflow Status badges for history v2 view#1198

Merged
adhityamamallan merged 7 commits intocadence-workflow:masterfrom
adhityamamallan:new-icons
Feb 27, 2026
Merged

feat: Add new, more prominent Workflow Status badges for history v2 view#1198
adhityamamallan merged 7 commits intocadence-workflow:masterfrom
adhityamamallan:new-icons

Conversation

@adhityamamallan
Copy link
Member

@adhityamamallan adhityamamallan commented Feb 27, 2026

Summary

  • Implement new WorkflowHistoryEventStatusBadge in Workflow History V2, which renders a Baseweb badge
  • Add configuration for this badge to configure icons, colours, and hierarchy
  • Use this badge in Workflow History tables and timeline chart

Test plan

Ran locally.

Previews of the new badges

Screenshot 2026-02-27 at 17 04 39 Screenshot 2026-02-27 at 14 24 28

Loading state

Screen.Recording.2026-02-27.at.14.19.02.mov

Started event

Screen.Recording.2026-02-27.at.14.21.38.mov

In the timeline chart

Screen.Recording.2026-02-27.at.14.22.21.mov

Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new, more prominent status badge component for Workflow History V2 and wires it into the V2 ungrouped event view, grouped event headers, and the timeline.

Changes:

  • Added WorkflowHistoryEventStatusBadge (V2) implemented with BaseWeb Badge and a Skeleton loading state.
  • Introduced a centralized status→(icon, color, hierarchy) config for consistent rendering across V2.
  • Updated V2 workflow history UI surfaces (ungrouped event, event group header, timeline) and adjusted unit tests/mocks accordingly.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/views/workflow-history-v2/workflow-history-ungrouped-event/workflow-history-ungrouped-event.tsx Switches ungrouped event header status display to the new V2 badge and passes label as statusText.
src/views/workflow-history-v2/workflow-history-ungrouped-event/tests/workflow-history-ungrouped-event.test.tsx Updates badge mock/typing to match new badge props (isLoading, statusText).
src/views/workflow-history-v2/workflow-history-timeline/workflow-history-timeline.tsx Switches timeline rows to use the new V2 badge component.
src/views/workflow-history-v2/workflow-history-timeline/tests/workflow-history-timeline.test.tsx Updates timeline badge mock to match new props.
src/views/workflow-history-v2/workflow-history-event-status-badge/workflow-history-event-status-badge.types.ts Adds types for the new V2 badge config and component props.
src/views/workflow-history-v2/workflow-history-event-status-badge/workflow-history-event-status-badge.tsx Implements the new V2 badge (Badge + Skeleton) using the shared config.
src/views/workflow-history-v2/workflow-history-event-status-badge/workflow-history-event-status-badge.styles.ts Adds badge content layout styles and a styled spinner for ONGOING.
src/views/workflow-history-v2/workflow-history-event-status-badge/tests/workflow-history-event-status-badge.test.tsx Adds unit tests validating loading behavior and per-status config rendering.
src/views/workflow-history-v2/workflow-history-event-group/workflow-history-event-group.tsx Uses the new V2 badge in group headers, wiring isLoading + latest metadata label as statusText.
src/views/workflow-history-v2/workflow-history-event-group/tests/workflow-history-event-group.test.tsx Updates badge mock/typing and test descriptions for the new loading prop.
src/views/workflow-history-v2/config/workflow-history-event-status-badges.config.ts Adds the status badge configuration mapping status → icon/hierarchy/color.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
@Assem-Uber
Copy link
Contributor

I think the image showing Pending is not reflecting the current state, correct?

Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
@adhityamamallan
Copy link
Member Author

adhityamamallan commented Feb 27, 2026

I think the image showing Pending is not reflecting the current state, correct?

Correct; I updated the screenshot

@adhityamamallan adhityamamallan merged commit 2b29f51 into cadence-workflow:master Feb 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants