Skip to content

Commit

Permalink
Add pipeline id to pipeline summary card (#1927)
Browse files Browse the repository at this point in the history
* Added pipeline id to pipeline summary card

* Updated PipelineDetails.test.tsx.snap
  • Loading branch information
ajchili authored and k8s-ci-robot committed Aug 22, 2019
1 parent 3c8952e commit 5abba66
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/pages/PipelineDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ class PipelineDetails extends Page<{}, PipelineDetailsState> {
Hide
</Button>
</div>
<div className={css.summaryKey}>ID</div>
<div>{pipeline.id || 'Unable to obtain Pipeline ID'}</div>
<div className={css.summaryKey}>Uploaded on</div>
<div>{formatDateString(pipeline.created_at)}</div>
<div className={css.summaryKey}>Description</div>
Expand Down
32 changes: 32 additions & 0 deletions frontend/src/pages/__snapshots__/PipelineDetails.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ exports[`PipelineDetails closes side panel when close button is clicked 1`] = `
Hide
</WithStyles(Button)>
</div>
<div
className="summaryKey"
>
ID
</div>
<div>
test-pipeline-id
</div>
<div
className="summaryKey"
>
Expand Down Expand Up @@ -285,6 +293,14 @@ exports[`PipelineDetails opens side panel on clicked node, shows message when no
Hide
</WithStyles(Button)>
</div>
<div
className="summaryKey"
>
ID
</div>
<div>
test-pipeline-id
</div>
<div
className="summaryKey"
>
Expand Down Expand Up @@ -417,6 +433,14 @@ exports[`PipelineDetails shows clicked node info in the side panel if it is in t
Hide
</WithStyles(Button)>
</div>
<div
className="summaryKey"
>
ID
</div>
<div>
test-pipeline-id
</div>
<div
className="summaryKey"
>
Expand Down Expand Up @@ -643,6 +667,14 @@ exports[`PipelineDetails shows empty pipeline details with empty graph 1`] = `
Hide
</WithStyles(Button)>
</div>
<div
className="summaryKey"
>
ID
</div>
<div>
test-pipeline-id
</div>
<div
className="summaryKey"
>
Expand Down

0 comments on commit 5abba66

Please sign in to comment.