Skip to content

Conversation

adhityamamallan
Copy link
Member

@adhityamamallan adhityamamallan commented Jun 17, 2025

Summary

  • Add an ungrouped event table to Workflow History page that sorts events by Event ID, and adds the pending events at the end
  • Add some unit test coverage for Workflow History component

Test plan

Added/updated unit tests + ran locally.

Screenshot 2025-06-17 at 3 01 26 PM Screenshot 2025-06-20 at 1 32 36 PM Screenshot 2025-06-20 at 1 32 09 PM Screenshot 2025-06-20 at 4 03 00 PM
Screen.Recording.2025-06-20.at.5.14.55.PM.mov

@adhityamamallan adhityamamallan requested a review from Copilot June 17, 2025 13:33
Copilot

This comment was marked as outdated.

@adhityamamallan adhityamamallan changed the title Ungrouped view Add ungrouped event timeline to Workflow History page Jun 20, 2025
@adhityamamallan adhityamamallan marked this pull request as ready for review June 20, 2025 08:56
@adhityamamallan adhityamamallan requested a review from Copilot June 20, 2025 10:57
Copy link
Contributor

@Copilot 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

Adds a toggleable ungrouped event timeline to the Workflow History page and covers it with unit tests.

  • Registers a new ungroupedHistoryViewEnabled query parameter and persists it in URL.
  • Implements an ungrouped events table (sorting, infinite loading, and scrolling) alongside existing grouped timeline.
  • Introduces related components (WorkflowHistoryUngroupedTable, WorkflowHistoryUngroupedEvent), helpers, styles, and tests.

Reviewed Changes

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

Show a summary per file
File Description
src/views/workflow-page/config/workflow-page-query-params.config.ts Registers ungroupedHistoryViewEnabled query param
src/views/workflow-history/workflow-history.types.ts Extends VisibleHistoryGroupRanges with ungrouped index fields
src/views/workflow-history/workflow-history.tsx Adds toggle, ungrouped events logic, scrolling, and load‐more hooks
src/views/workflow-history/workflow-history.styles.ts Styles for ungrouped container and rename of toggle override key
src/views/workflow-history/workflow-history-ungrouped-table/* New ungrouped table component, types, styles, and tests
src/views/workflow-history/workflow-history-ungrouped-event/* New ungrouped event component, types, styles, helpers, and tests
src/views/workflow-history/helpers/compare-ungrouped-events.ts Comparator for sorting ungrouped events and its unit tests
src/views/workflow-history/config/workflow-history-page-size.config.ts New page size constant for history pagination
src/views/workflow-history/config/workflow-history-ungrouped-grid-template-columns.config.ts Defines grid template for ungrouped table columns

return (
<>
<styled.TableHeader>
<div>ID</div>
Copy link

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

The grid template defines six columns (including a badge column) but the header only renders five <div> cells. Add a placeholder header cell for the retries/badge column or adjust the grid template to match.

Copilot uses AI. Check for mistakes.

Copy link
Contributor

Choose a reason for hiding this comment

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

We are not wrapping the header text so adding it wont fix the alignment

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@adhityamamallan adhityamamallan changed the title Add ungrouped event timeline to Workflow History page Add ungrouped event table to Workflow History page Jun 20, 2025
@adhityamamallan adhityamamallan merged commit 1d42160 into cadence-workflow:master Jun 23, 2025
1 check passed
@adhityamamallan adhityamamallan deleted the ungrouped-view branch June 23, 2025 14:13
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