Skip to content

Conversation

Assem-Uber
Copy link
Contributor

@Assem-Uber Assem-Uber commented Apr 23, 2025

Summary

Show reset button for closed decision groups in history timeline. Clicking the reset button opens the reset modal with event Id initialised to the close event id.

Changes

  • Add resetToDecisionEventId to decision groups
  • Support initializing WorkflowActionsModal with initial form values
  • Show WorkflowHistoryTimelineResetButton for groups with resetToDecisionEventId
  • Update styling for history time line group header

Screenshots

Screenshot 2025-04-23 at 15 14 25
Screenshot 2025-04-23 at 15 26 43

@Assem-Uber Assem-Uber force-pushed the feature/12787/add-reset-button-to-history-timeline branch from 4904ce0 to 0b344ca Compare April 23, 2025 13:19
adhityamamallan and others added 7 commits April 23, 2025 13:20
Fix styling for JSON copy buttons to have a transparent background
* Fix page filters styling, by aligning all items to flex-end instead of only the filters clear button being aligned so
* Add an optional "mini" field to the page filter config that allows the filter to render in the minimum required size instead of being equally sized like the other page filters
* Modify domain listing logic to filter out deleted and invalid domains
* Add checkbox filter that shows deprecated domains when toggled
@adhityamamallan adhityamamallan requested a review from Copilot April 24, 2025 08:38
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

This PR introduces a reset button for closed decision groups in the workflow history timeline. It enables users to click the reset button to open a modal pre-populated with the corresponding decision event ID.

  • Added a new optional property (resetToDecisionEventId) to the history group types and integrated it into the reset button logic.
  • Modified WorkflowHistory and WorkflowHistoryTimelineGroup to manage and propagate the reset state and added tests to verify the reset button behavior.
  • Updated the WorkflowActionsModal and its tests to support initial form values.

Reviewed Changes

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

Show a summary per file
File Description
src/views/workflow-history/workflow-history.types.ts Added resetToDecisionEventId field to the history group type.
src/views/workflow-history/workflow-history.tsx Introduced state management for the reset modal and passed correct props to child components.
src/views/workflow-history/workflow-history-timeline-reset-button/tests/workflow-history-timeline-reset-button.test.tsx Updated tests to use userEvent and verify the reset button functionality.
src/views/workflow-history/workflow-history-timeline-group/* Updated types, component, and styles to support and display the reset button when applicable.
src/views/workflow-history/helpers/get-history-group-from-events/get-decision-group-from-events.ts Updated logic to compute resetToDecisionEventId based on event conditions.
src/views/workflow-actions/* Modified modal components to accept and use initialFormValues for the reset action.

@Assem-Uber Assem-Uber merged commit e781668 into cadence-workflow:master Apr 24, 2025
1 check passed
@Assem-Uber Assem-Uber deleted the feature/12787/add-reset-button-to-history-timeline branch April 24, 2025 12:20
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