Conversation
src/main/frontend/multi-pipeline-graph-view/multi-pipeline-graph/main/MultiPipelineGraph.tsx
Outdated
Show resolved
Hide resolved
| </a> | ||
| <div> | ||
| <a | ||
| // style={{textOverflow: "ellipsis"}} |
There was a problem hiding this comment.
| // style={{textOverflow: "ellipsis"}} |
| > | ||
| {run.displayName} | ||
| </a> | ||
| <div> |
There was a problem hiding this comment.
TODO may remove this wrapper
| <span>{new Date(run.timestamp).toLocaleDateString()}</span> | ||
| </div> | ||
| <div> | ||
| <span className={"jenkins-subtitle"}>{total(run.duration)}</span> |
There was a problem hiding this comment.
jenkins-subtitle doesn't exist although I think there is something, ref jenkinsci/design-library-plugin#410
| percentage={node.stage.completePercent} | ||
| skeleton={node.stage.skeleton} | ||
| />, | ||
| <Tooltip |
There was a problem hiding this comment.
for some reason only appears at the very bottom of the stage
|
@janfaracik let me know any feedback please |
| tooltip = ( | ||
| <div className="pgv-node-tooltip"> | ||
| <div>{title}</div> | ||
| <div>{total(node.stage.totalDurationMillis)}</div> |
There was a problem hiding this comment.
Why only show this when collapsed? this could be useful on other graphs
| <div> | ||
| <MultiPipelineGraph /> | ||
| <I18NProvider bundles={[ResourceBundleName.messages]}> | ||
| <MultiPipelineGraph /> |
There was a problem hiding this comment.
Just had a thought, you might need to update how the I18NProvider gets the locale, it might just be updating the jelly but it might also be a little more involved (maybe lifting locale evaluation outside the I18NProvider and passing it as a prop)
|
|
||
| const groupedRuns: Record<string, RunInfo[]> = runs.reduce( | ||
| (acc: Record<string, RunInfo[]>, run) => { | ||
| const date = new Date(run.timestamp).toLocaleDateString("en-US", { |
There was a problem hiding this comment.
do we want this based on the users locale?
Signed-off-by: lewisbirks <22620804+lewisbirks@users.noreply.github.com>

What's changed:
TODO:
Fixes #349
Fixes #449
Closes #140
Related #317
Example pipeline:
Before
After
Testing done
Submitter checklist