-
Notifications
You must be signed in to change notification settings - Fork 121
History events duration badge #907
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
History events duration badge #907
Conversation
...ow-history/workflow-history-events-duration-badge/workflow-history-events-duration-badge.tsx
Show resolved
Hide resolved
const singleEvent = eventsCount === 1 && !hasMissingEvents; | ||
const noDuration = singleEvent || (workflowEnded && !endTime); | ||
|
||
const calculateDuration = () => { |
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.
Can this be moved to a helper function?
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.
I can move it and mock it for the component, the intention was to keep it and test its behaviour through the component.
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.
Mocking it in the component unit test is not too necessary IMO, see what works better
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.
Done
…nce-workflow#909) Update local types to be up-to-date with IDL changes that add new fields for active-active domains
* Expand the selected event when first loading page * Highlight event groups on both timeline and compact view even when the selected event is a non-start event * Fix timeline event header styling so that it's no longer necessary for the title div to span the entire screen width * Add a link copy button to expanded event titles that copies the link to a specific event
Summary
Create a component to display duration for workflow events group. The way it computes the duration is as following:
startTime
andcloseTime
are passedstartTime
is passed withoutcloseTime
and workflow is still runningstartTime
andworkflowCloseTime
are passed for a completed workflowcloseTime
andworkflowCloseTime
for a completed workflowScreenshots
Screen.Recording.2025-05-16.at.09.36.28.mov