Skip to content

feat: Add buttons to toggle between legacy and new views in Workflow History #1133

Merged
adhityamamallan merged 10 commits intocadence-workflow:masterfrom
adhityamamallan:history-v2-toggle-buttons
Jan 16, 2026
Merged

feat: Add buttons to toggle between legacy and new views in Workflow History #1133
adhityamamallan merged 10 commits intocadence-workflow:masterfrom
adhityamamallan:history-v2-toggle-buttons

Conversation

@adhityamamallan
Copy link
Member

@adhityamamallan adhityamamallan commented Jan 7, 2026

Summary

  • Add buttons next to "Workflow History" to toggle between legacy and new History views
  • Add tooltips on these buttons, explaining the changes and providing links to share feedback

Test plan

Added unit tests + ran locally.

When feature flag is DISABLED

Screenshot 2026-01-08 at 15 21 32

When feature flag is ENABLED

Screenshot 2026-01-08 at 15 22 19

When feature flag is OPT_IN

Note that the last-used history view is remembered.

Screen.Recording.2026-01-08.at.15.23.04.mov

When feature flag is OPT_OUT

Note that the history page always defaults to the new view.

Screen.Recording.2026-01-08.at.15.24.22.mov

Tooltip content

Screenshot 2026-01-08 at 13 10 46 Screenshot 2026-01-08 at 13 11 05

On narrow screens

Screenshot 2026-01-08 at 13 14 52 Screenshot 2026-01-08 at 13 14 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 adds toggle buttons to switch between legacy and new Workflow History views based on a feature flag configuration. The buttons appear next to the "Workflow History" heading and include informative tooltips explaining the differences and providing feedback links.

Changes:

  • Created a reusable WorkflowHistoryViewToggleButton component with tooltip functionality
  • Added switch buttons to both legacy (V1) and new (V2) history views
  • Updated header layouts to accommodate the new toggle buttons with responsive design

Reviewed changes

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

Show a summary per file
File Description
workflow-history-view-toggle-button.tsx New reusable button component with tooltip for view switching
workflow-history-view-toggle-button.types.ts Type definitions for the toggle button props
workflow-history-view-toggle-button.styles.ts Styling for button variants and tooltip
workflow-history-switch-to-v2-button.tsx V1-to-V2 switch button with conditional rendering based on config
workflow-history-switch-to-v1-button.tsx V2-to-V1 switch button with conditional rendering based on config
workflow-history-switch-to-v2-button-tooltip-content.config.ts Tooltip content configuration for the V2 switch button
workflow-history-switch-to-v1-button-tooltip-content.config.ts Tooltip content configuration for the V1 switch button with feedback link
workflow-history-header.tsx (both V1 and V2) Updated headers to include switch buttons and replaced HeadingXSmall with styled Heading component
workflow-history-header.styles.ts (both V1 and V2) Added responsive Heading styled component with flex layout
Test files Comprehensive unit tests for all new components

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

Comment on lines +6 to +9
`The new Workflow History UI provides a table-based layout with a more compact
overview of your workflow's history, including aggregated event summaries (shown
inline and in a Summary tab), color codes for different event types, a floating
navigation bar for quick event discovery, and a sticky header.`,
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The tooltip content contains excessive leading whitespace on line 7 onwards. Consider using a template literal without indentation or using array join to maintain clean formatting without extra whitespace.

Copilot uses AI. Check for mistakes.
Comment on lines +8 to +12
`The new History view provides a more compact overview with a table-based
format designed for information density and easier scanning, helping you
find important events faster.`,
`Please feel free to share any feedback if you encounter anything
that seems suboptimal in the new History view.`,
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The tooltip content contains excessive leading whitespace. Consider using a template literal without indentation or using array join to maintain clean formatting without extra whitespace.

Copilot uses AI. Check for mistakes.
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>
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>
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>
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
@adhityamamallan adhityamamallan force-pushed the history-v2-toggle-buttons branch from 2b51d20 to 6f0b9b5 Compare January 16, 2026 08:13
@Assem-Uber Assem-Uber self-assigned this Jan 16, 2026
@Assem-Uber Assem-Uber self-requested a review January 16, 2026 09:53
@Assem-Uber Assem-Uber removed their assignment Jan 16, 2026
@adhityamamallan adhityamamallan merged commit 0e312d9 into cadence-workflow:master Jan 16, 2026
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.

3 participants