Skip to content

Conversation

@adhityamamallan
Copy link
Member

@adhityamamallan adhityamamallan commented Dec 12, 2025

Summary

Display Remaining Duration badge (implemented in #1036) in Duration column in the Grouped History table

Test plan

Updated unit tests + ran locally.

Screenshot 2025-12-12 at 12 58 50 Screenshot 2025-12-12 at 13 50 56

On narrow screens

Screenshot 2025-12-12 at 13 51 26 Screenshot 2025-12-12 at 13 51 06

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 adds support for displaying a Remaining Duration badge in the Duration column of the Workflow History V2 grouped table. The badge shows the remaining time for events that have an expected end time, utilizing the WorkflowHistoryRemainingDurationBadge component introduced in a previous PR.

  • Passes expectedEndTimeInfo prop through the component hierarchy
  • Renders the Remaining Duration badge alongside the existing duration display when available
  • Adds styling for the new flex container to properly layout duration and badge together

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
workflow-history-event-group.tsx Passes expectedEndTimeInfo prop to the WorkflowHistoryEventGroupDuration component
workflow-history-event-group-duration.types.ts Adds optional expectedEndTimeInfo property to Props type
workflow-history-event-group-duration.tsx Renders WorkflowHistoryRemainingDurationBadge when expectedEndTimeInfo is provided; wraps content in flex container
workflow-history-event-group-duration.styles.ts Defines new DurationContainer styled component for flex layout
workflow-history-event-group-duration.test.tsx Adds test for rendering the end time badge and includes mock for WorkflowHistoryRemainingDurationBadge

💡 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>
@adhityamamallan adhityamamallan merged commit d9d63bc into cadence-workflow:master Dec 15, 2025
3 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.

2 participants