-
Notifications
You must be signed in to change notification settings - Fork 44
/
PingDetail.svelte
65 lines (60 loc) · 1.4 KB
/
PingDetail.svelte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<script>
import { getPingData } from "../state/api";
export let params;
const pingDataPromise = getPingData(params.app, params.ping);
</script>
<style>
.table-header {
@apply table-auto;
@apply my-4;
}
.table-header td {
@apply border;
@apply p-2;
}
</style>
{#await pingDataPromise then ping}
<p><a href={`/apps/${params.app}/tables/${ping.name}`}>BigQuery table</a></p>
<h1>{ping.name}</h1>
<table class="table-header">
<tr>
<td>Description</td>
<td>{ping.description}</td>
</tr>
<tr>
<td>Related Bugs</td>
<td>
{#each ping.bugs as bug}<a class="mr-2" href={bug}>{bug}</a>{/each}
</td>
</tr>
<tr>
<td>Reviews Data</td>
<td>
{#each ping.data_reviews as review}
<a class="mr-2" href={review}>{review}</a>
{/each}
</td>
</tr>
<tr>
<td>Includes Client Identifier</td>
<td>{ping.client_id ? 'Yes' : 'No'}</td>
</tr>
<tr>
<td>
Notification Email{ping.notification_emails.length > 1 ? 's' : ''}
</td>
<td>
{#each ping.notification_emails as email}<span>{email}</span>{/each}
</td>
</tr>
</table>
<h2>Metrics</h2>
<ul>
{#each ping.metrics as metric}
<li>
<a href={`/apps/${params.app}/metrics/${metric.name}`}>{metric.name}</a>
<i>{metric.description}</i>
</li>
{/each}
</ul>
{/await}