-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<script lang="ts"> | ||
import type { CiPipeline } from "$lib/types/carenage"; | ||
import { formatTime, formatDuration } from "$lib/utils"; | ||
interface Props { | ||
pipeline: CiPipeline; | ||
} | ||
const { pipeline }: Props = $props(); | ||
const pipelineDuration = formatDuration(pipeline.duration); | ||
const pipelineStartTime = formatTime(pipeline.started_at); | ||
const pipelineEndTime = formatTime(pipeline.finished_at); | ||
</script> | ||
|
||
<main> | ||
<section aria-labelledby="pipeline-metadata-heading"> | ||
<h2 id="pipeline-metadata-heading">Pipeline #{pipeline.pipeline_repo_id} metadata</h2> | ||
<a href={pipeline.project_repo_url}>{pipeline.project_name}</a> | ||
<a href={pipeline.pipeline_repo_url}>Pipeline #{pipeline.pipeline_repo_id}</a> | ||
<p>Pipeline duration: {pipelineDuration}</p> | ||
<p>Pipeline started at: {pipelineStartTime}</p> | ||
<p>Pipeline finished at: {pipelineEndTime}</p> | ||
</section> | ||
<section aria-labelledby="pipeline-runs-heading"> | ||
<h2 id="pipeline-runs-heading">Executed runs for pipeline #{pipeline.pipeline_repo_id}</h2> | ||
<table> | ||
<caption>List of executed CI runs for the pipeline</caption><thead | ||
><tr><th scope="col">Run ID</th><th scope="col">Run start time of execution</th></tr></thead | ||
> | ||
<tbody | ||
>{#each pipeline.runs as run}<tr | ||
><td><a href={run.run_repo_url}>Run #{run.run_repo_id}</a></td><td | ||
>{formatTime(run.started_at)}</td | ||
></tr | ||
>{/each}</tbody | ||
> | ||
</table> | ||
</section> | ||
<section class="aggregated-metric-values" aria-labelledby="aggregated-metric-values-heading"> | ||
<h2 id="aggregated-metric-values-heading">Pipeline aggregated metric values</h2> | ||
</section> | ||
</main> |