Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show pending events in history timeline #813

Conversation

Assem-Uber
Copy link
Contributor

Summary

Show pending history events in history timeline. This is done by transforming relevant pending information to an event and adding it to the correct group.

Changes

  • Create utils to transform pending info to pending events
  • Create pending event formatter
  • Create new types for extended history events
  • Update filtering logic to filter pending events
  • Use computedEventId instead of eventId for selecting events with no eventId

Screenshots

Screenshot 2025-02-10 at 09 58 25

Assem-Uber and others added 6 commits February 11, 2025 08:36
)

Add onClickItem handler to Timeline that gets called when the VisJS Timeline registers a click on an item
Add "id" number to TimelineItem
Set selected event in query params and scroll to it when an item is selected in the timeline
Refactor Workflow Timeline Styles to share common styles across different items and states
Added rounding to non-timer items
Removed rounding from timer items
Copy link
Member

@adhityamamallan adhityamamallan left a comment

Choose a reason for hiding this comment

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

Overall approach LGTM but left a few comments

const firstEvent = events[0];

if (scheduleEvent) {
// getting group label
Copy link
Member

Choose a reason for hiding this comment

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

If it helps, you can move these to helpers instead of having a comment above explaining the code. Though tbh, I don't think you need to do either

Copy link
Contributor Author

@Assem-Uber Assem-Uber Feb 11, 2025

Choose a reason for hiding this comment

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

Yeah i think at some point we would need to extract individual processing functionalities to a separate helpers. I'm currently only extracting reusable ones for helpers and keeping others until a pattern is noticed. Also if we started to notice the grouping functions growing we can extract large code sections outside.

@Assem-Uber Assem-Uber merged commit 1c967db into cadence-workflow:release/4.0.0 Feb 11, 2025
1 check passed
@Assem-Uber Assem-Uber deleted the feature/11701/show-pending-tasks-in-history-timeline branch February 11, 2025 13:55
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