-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consistent headings for coverage and sunburst
- Loading branch information
1 parent
f7f6b36
commit eb7edba
Showing
3 changed files
with
114 additions
and
53 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 |
---|---|---|
@@ -1,34 +1,29 @@ | ||
<script> | ||
import dayjs from 'dayjs'; | ||
import { goto } from '@sapper/app'; | ||
import { activeBucketAndJob } from '../../stores'; | ||
import SectionHeader from '../SectionHeader.svelte'; | ||
import { activeRelease } from '../../stores/coverage-over-time.js'; | ||
$: bucket = $activeBucketAndJob.bucket; | ||
$: job = $activeBucketAndJob.job; | ||
$: timestamp = dayjs($activeBucketAndJob.timestamp) | ||
.format('DD MMMM, YYYY'); | ||
</script> | ||
const SPYGLASS_URL = 'https://prow.k8s.io/view/gcs/kubernetes-jenkins/logs' | ||
<header> | ||
<h2>{bucket}</h2> | ||
<p>{timestamp}</p> | ||
</header> | ||
$: ({ | ||
bucket, | ||
job, | ||
release, | ||
date, | ||
test_hits_increase, | ||
conf_hits_increase, | ||
total_endpoints | ||
} = $activeRelease); | ||
<style> | ||
header { | ||
margin-bottom: 1.5em; | ||
grid-column: 1; | ||
} | ||
$: link = `${SPYGLASS_URL}/${bucket}/${job}` | ||
h2 { | ||
padding: 0; | ||
font-variant-caps: small-caps; | ||
margin-bottom: 0; | ||
} | ||
</script> | ||
{#if release} | ||
<SectionHeader title='{release} In Depth'> | ||
<em>Data from <a href="{link}" title="spyglass link" target="_blank_" rel="noreferrer noopener">an e2e test suite run</a>, from {date}</em> | ||
</SectionHeader> | ||
{/if} | ||
|
||
p { | ||
margin-top: 0; | ||
font-variant-caps: small-caps; | ||
padding-left: 0.25em; | ||
} | ||
<style> | ||
</style> |
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