-
Notifications
You must be signed in to change notification settings - Fork 108
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
Show pending events in history timeline #813
Conversation
src/utils/data-formatters/schema/format-history-pending-event-schema.ts
Outdated
Show resolved
Hide resolved
...data-formatters/format-pending-workflow-history-event/format-pending-activity-start-event.ts
Outdated
Show resolved
Hide resolved
src/utils/data-formatters/format-pending-workflow-history-event/index.ts
Outdated
Show resolved
Hide resolved
) 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
…-history-timeline
There was a problem hiding this 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
src/utils/data-formatters/schema/format-history-pending-event-schema.ts
Outdated
Show resolved
Hide resolved
const firstEvent = events[0]; | ||
|
||
if (scheduleEvent) { | ||
// getting group label |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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
computedEventId
instead ofeventId
for selecting events with noeventId
Screenshots