Skip to content

Conversation

Assem-Uber
Copy link
Contributor

@Assem-Uber Assem-Uber commented Aug 12, 2025

Summary
Close event is not available in the response of describeWorkflow for archival events. This makes result tab keeps showing loading. Instead we need to show users a message indicating that result won't be available in summary page for archival workflows

Screenshots
Screenshot 2025-08-12 at 15 33 40
Note: through was replaced by in, screenshot is not up to date.

) : (
<PrettyJson json={jsonMap[activeTab]} />
{activeTab === 'input' && <PrettyJson json={jsonMap[activeTab]} />}
{activeTab === 'result' && isArchived && (
Copy link
Member

Choose a reason for hiding this comment

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

I think the if-else logic for the result rendering could be simplified a bit, but I'm not sure if there's a better way to do that besides moving it to a different component.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moving it to a separate component was one of the things that i considered, while i didn't go for an extra separation since the logic is still manageable (75 lines).

Assem-Uber and others added 4 commits August 13, 2025 10:47
…__tests__/workflow-summary-tab-json-view.test.tsx

Co-authored-by: Adhitya Mamallan <adi1998is@gmail.com>
…workflow-summary-tab-json-view.tsx

Co-authored-by: Adhitya Mamallan <adi1998is@gmail.com>
)}
{activeTab === 'result' && !isArchived && (
<>
{isWorkflowRunning && <PrettyJsonSkeleton width="200px" />}
Copy link
Member

Choose a reason for hiding this comment

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

Maybe for later, but we can replace this placeholder with a more useful "workflow is still running" message

@Assem-Uber Assem-Uber merged commit c4ae483 into cadence-workflow:master Aug 13, 2025
1 check passed
@Assem-Uber Assem-Uber deleted the feature/show-message-for-archival-result-missing branch August 13, 2025 11:29
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