-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): add history to WorkflowTemplate & ClusterWorkflowTemplate d…
…etails (#13452) Signed-off-by: panicboat <[email protected]> Signed-off-by: Anton Gilgur <[email protected]> Co-authored-by: Anton Gilgur <[email protected]>
- Loading branch information
Showing
5 changed files
with
98 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...cron-workflows/cron-workflow-details.scss → ...w-details-list/workflow-details-list.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
ui/src/app/workflows/components/workflow-details-list/workflow-details-list.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import * as React from 'react'; | ||
|
||
import * as models from '../../../../models'; | ||
import {WorkflowsRow} from '../../../workflows/components/workflows-row/workflows-row'; | ||
|
||
import './workflow-details-list.scss'; | ||
|
||
interface WorkflowDetailsList { | ||
workflows: models.Workflow[]; | ||
columns: models.Column[]; | ||
} | ||
|
||
export function WorkflowDetailsList(props: WorkflowDetailsList) { | ||
return ( | ||
<div className='argo-table-list workflows-details-list'> | ||
<div className='row argo-table-list__head'> | ||
<div className='columns small-1 workflows-list__status' /> | ||
<div className='row small-11'> | ||
<div className='columns small-2'>NAME</div> | ||
<div className='columns small-1'>NAMESPACE</div> | ||
<div className='columns small-1'>STARTED</div> | ||
<div className='columns small-1'>FINISHED</div> | ||
<div className='columns small-1'>DURATION</div> | ||
<div className='columns small-1'>PROGRESS</div> | ||
<div className='columns small-2'>MESSAGE</div> | ||
<div className='columns small-1'>DETAILS</div> | ||
<div className='columns small-1'>ARCHIVED</div> | ||
{(props.columns || []).map(col => { | ||
return ( | ||
<div className='columns small-1' key={col.key}> | ||
{col.name} | ||
</div> | ||
); | ||
})} | ||
</div> | ||
</div> | ||
{/* checkboxes are not visible and are unused in details pages */} | ||
{props.workflows.map(wf => { | ||
return <WorkflowsRow workflow={wf} key={wf.metadata.uid} checked={false} columns={props.columns} onChange={null} select={null} />; | ||
})} | ||
</div> | ||
); | ||
} |