Skip to content

Conversation

@adhityamamallan
Copy link
Member

@adhityamamallan adhityamamallan commented Aug 6, 2025

Summary

Since pending events in the workflow history are only present temporarily, we do not want to support deep-linking to them because the deep link will no longer be valid once the event is actually written to history. This PR hides the Copy Link to Event button for pending events.

Test plan

Added unit tests + ran locally.

In grouped view:
Screenshot 2025-08-06 at 12 54 58 PM

In ungrouped view:
Screenshot 2025-08-06 at 12 55 08 PM

@adhityamamallan adhityamamallan requested a review from Copilot August 6, 2025 11:57
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 removes the Copy Link to Event button from pending events in workflow history views to prevent deep-linking to temporary events that will become invalid once written to history.

  • Add conditional checks for eventId presence before rendering copy buttons
  • Hide copy button for pending events in both grouped and ungrouped views
  • Add comprehensive test coverage for the new behavior

Reviewed Changes

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

File Description
workflow-history-ungrouped-event.tsx Adds eventId check to conditionally render copy button in ungrouped view
workflow-history-ungrouped-event.test.tsx Adds tests verifying copy button visibility for regular and pending events
workflow-history-events-card.tsx Adds eventId check to conditionally render copy button in grouped view
workflow-history-events-card.test.tsx Adds tests verifying copy button behavior for regular and pending events

@adhityamamallan adhityamamallan merged commit 299a57d into cadence-workflow:master Aug 6, 2025
1 check 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