Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
144 lines (136 loc) · 5.37 KB
/
Copy pathindex.html
File metadata and controls
144 lines (136 loc) · 5.37 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OpenNeuro Dataset Monitor</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
/>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<main class="container">
<header>
<h1>OpenNeuro Dataset Monitor</h1>
<p>Tracking dataset synchronization across GraphQL, GitHub, and S3</p>
</header>
<!-- Staleness Warning -->
<div id="staleness-warning" class="alert warning" style="display: none">
<strong>⚠ Data may be stale</strong>
<p>
Summary was last updated <span id="summary-age"></span>, but registry
was updated more recently. Checks may be running.
</p>
</div>
<!-- Summary Stats -->
<section id="summary-stats" class="stats-grid">
<div class="stat-card" tabindex="0" aria-pressed="false" data-status="all">
<div class="stat-value" id="total-datasets">-</div>
<div class="stat-label">Total Datasets</div>
</div>
<div class="stat-card status-ok" tabindex="0" aria-pressed="false" data-status="ok">
<div class="stat-value" id="count-ok">-</div>
<div class="stat-label">Healthy</div>
</div>
<div class="stat-card status-warning" tabindex="0" aria-pressed="false" data-status="warning">
<div class="stat-value" id="count-warning">-</div>
<div class="stat-label">Warnings</div>
</div>
<div class="stat-card status-error" tabindex="0" aria-pressed="false" data-status="error">
<div class="stat-value" id="count-error">-</div>
<div class="stat-label">Errors</div>
</div>
<div class="stat-card status-version-mismatch" tabindex="0" aria-pressed="false" data-status="version-mismatch">
<div class="stat-value" id="count-version-mismatch">-</div>
<div class="stat-label">Version Mismatch</div>
</div>
<div class="stat-card status-pending" tabindex="0" aria-pressed="false" data-status="pending">
<div class="stat-value" id="count-pending">-</div>
<div class="stat-label">Pending</div>
</div>
</section>
<!-- Filters and Search -->
<section class="controls">
<div class="filter-group">
<label for="issue-filter">Filter by issue type:</label>
<select id="issue-filter">
<option value="all">All Issues</option>
<optgroup label="GitHub">
<option value="github:tag-missing">Tag Missing</option>
<option value="github:head-mismatch">HEAD Mismatch</option>
</optgroup>
<optgroup label="S3 Version">
<option value="s3Version:doi-mismatch">DOI Mismatch</option>
<option value="s3Version:no-doi">No DOI</option>
<option value="s3Version:blocked">Blocked (403)</option>
</optgroup>
<optgroup label="S3 Files">
<option value="s3Files:files-missing">
Files Missing from S3
</option>
<option value="s3Files:files-orphaned">Orphaned in S3</option>
<option value="s3Files:export-missing">Export Missing</option>
</optgroup>
</select>
</div>
<div class="search-group">
<label for="search-box">Search:</label>
<input
type="search"
id="search-box"
placeholder="Filter by dataset ID..."
/>
</div>
</section>
<!-- Dataset Table -->
<section>
<div id="loading" style="text-align: center; padding: 2rem">
<p aria-busy="true">Loading datasets...</p>
</div>
<div id="error" class="alert error" style="display: none">
<strong>Error loading data</strong>
<p id="error-message"></p>
</div>
<div id="table-container" style="display: none">
<table role="grid">
<thead>
<tr>
<th class="sortable" data-column="id">
Dataset ID<span class="sort-indicator"></span>
</th>
<th class="sortable" data-column="latestSnapshot">
Latest Snapshot<span class="sort-indicator"></span>
</th>
<th>GitHub Version</th>
<th>S3 Version</th>
<th class="sortable" data-column="diffSize">
S3 Files Diff<span class="sort-indicator"></span>
</th>
<th class="sortable" data-column="lastChecked">
Last Checked<span class="sort-indicator"></span>
</th>
</tr>
</thead>
<tbody id="dataset-table-body">
<!-- Populated by JavaScript -->
</tbody>
</table>
<div
id="no-results"
style="display: none; text-align: center; padding: 2rem"
>
<p>No datasets match the current filters.</p>
</div>
</div>
</section>
<footer>
<p>
<small> Last updated: <span id="last-updated">-</span> </small>
</p>
</footer>
</main>
<script type="module" src="js/main.js"></script>
</body>
</html>