Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 0cf1fcf

Browse files
committed
fix(plugins/plugin-client-common): update SequenceDiagram view to display the duration of each interval
This will help with understanding the duration of jobs. Fixes #5470
1 parent 664a8da commit 0cf1fcf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/plugin-client-common/src/components/Content/Table/SequenceDiagram.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default class SequenceDiagram extends React.PureComponent<Props, State> {
5858
* part of the same dense region of time.
5959
*
6060
*/
61-
private static readonly denseThreshold = 30 * 1000
61+
private static readonly denseThreshold = 60 * 1000
6262

6363
public constructor(props: Props) {
6464
super(props)
@@ -162,10 +162,12 @@ export default class SequenceDiagram extends React.PureComponent<Props, State> {
162162
}
163163

164164
private gapRow(startMillis: number, intervalIdx: number) {
165+
const endMillis = this.state.intervals[intervalIdx].endMillis
165166
const gap = [
166167
<tr key={`gaprowB-${intervalIdx}`} className="kui--interval-start">
167168
<td className="kui--gap-cell sub-text" colSpan={this.nCols()}>
168169
{new Date(startMillis).toLocaleString()}
170+
{endMillis ? ` (${prettyPrintDuration(endMillis - startMillis)} interval)` : ''}
169171
</td>
170172
</tr>
171173
]

0 commit comments

Comments
 (0)