-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataset.html
More file actions
253 lines (239 loc) · 8.74 KB
/
Copy pathdataset.html
File metadata and controls
253 lines (239 loc) · 8.74 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dataset Details - OpenNeuro 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" />
<link rel="stylesheet" href="css/dataset.css" />
</head>
<body>
<main class="container">
<!-- Breadcrumb -->
<nav aria-label="breadcrumb">
<ul>
<li><a href="index.html">Dashboard</a></li>
<li id="breadcrumb-dataset">...</li>
</ul>
</nav>
<!-- Loading State -->
<div id="loading" style="text-align: center; padding: 2rem">
<p aria-busy="true">Loading dataset details...</p>
</div>
<!-- Error State -->
<div id="error" class="alert error" style="display: none">
<strong>Error loading dataset</strong>
<p id="error-message"></p>
<p><a href="index.html">← Return to dashboard</a></p>
</div>
<!-- Dataset Details -->
<div id="dataset-details" style="display: none">
<!-- Header -->
<header class="dataset-header">
<h1 id="dataset-id">...</h1>
<div class="dataset-meta">
<span class="meta-item">
<strong>Latest Snapshot:</strong>
<code id="latest-snapshot">...</code>
</span>
<span class="meta-item">
<strong>Status:</strong>
<span id="overall-status"></span>
</span>
</div>
</header>
<!-- Diff Summary (above the fold) -->
<section
id="diff-summary"
class="diff-summary-card"
style="display: none"
>
<div class="diff-summary-grid">
<div class="diff-stat">
<span class="diff-stat-value diff-added" id="detail-files-added"
>0</span
>
<span class="diff-stat-label">files in git, not S3</span>
</div>
<div class="diff-stat">
<span
class="diff-stat-value diff-removed"
id="detail-files-removed"
>0</span
>
<span class="diff-stat-label">files in S3, not git</span>
</div>
<div class="diff-stat">
<span class="diff-stat-value" id="detail-git-total">0</span>
<span class="diff-stat-label">total git files</span>
</div>
<div class="diff-stat">
<span class="diff-stat-value" id="detail-s3-total">0</span>
<span class="diff-stat-label">total S3 files</span>
</div>
</div>
</section>
<!-- Snapshots Section -->
<section class="card">
<header>
<h2>Snapshots</h2>
</header>
<details id="snapshots-details">
<summary>
<span id="snapshot-count">0 snapshots</span>
</summary>
<div id="snapshots-list" class="snapshots-container">
<!-- Populated by JS -->
</div>
</details>
</section>
<!-- GitHub Check -->
<section class="card">
<header>
<h2>
<span class="check-icon-large" id="github-icon">...</span>
GitHub Mirror Status
</h2>
</header>
<div id="github-content">
<div class="check-summary">
<span id="github-summary">...</span>
</div>
<details id="github-details">
<summary>Show details</summary>
<div class="details-content">
<div class="detail-row">
<strong>HEAD:</strong>
<code id="github-head">...</code>
</div>
<div class="detail-row">
<strong>Branches:</strong>
<div id="github-branches" class="code-list"></div>
</div>
<div class="detail-row">
<strong>Tags:</strong>
<div id="github-tags" class="code-list"></div>
</div>
<div class="detail-row">
<strong>Last Checked:</strong>
<span id="github-last-checked">...</span>
</div>
</div>
</details>
</div>
</section>
<!-- S3 Version Check -->
<section class="card">
<header>
<h2>
<span class="check-icon-large" id="s3-version-icon">...</span>
S3 Version Status
</h2>
</header>
<div id="s3-version-content">
<div class="check-summary">
<span id="s3-version-summary">...</span>
</div>
<details id="s3-version-details">
<summary>Show details</summary>
<div class="details-content">
<div class="detail-row">
<strong>Dataset DOI:</strong>
<code id="s3-doi">...</code>
</div>
<div class="detail-row">
<strong>Extracted Version:</strong>
<code id="s3-extracted-version">...</code>
</div>
<div class="detail-row">
<strong>Expected Version:</strong>
<code id="s3-expected-version">...</code>
</div>
<div class="detail-row">
<strong>Last Checked:</strong>
<span id="s3-version-last-checked">...</span>
</div>
</div>
</details>
</div>
</section>
<!-- S3 Files Check -->
<section class="card">
<header>
<h2>
<span class="check-icon-large" id="s3-files-icon">...</span>
S3 Files Status
</h2>
</header>
<div id="s3-files-content">
<div class="check-summary">
<span id="s3-files-summary">...</span>
</div>
<div id="s3-diff-container" style="display: none">
<details id="s3-diff-details">
<summary>Show file differences</summary>
<div class="details-content">
<div class="diff-summary">
<div class="diff-stat">
<strong>Git Files:</strong>
<span id="diff-total-git">...</span>
</div>
<div class="diff-stat">
<strong>S3 Files:</strong>
<span id="diff-total-s3">...</span>
</div>
<div class="diff-stat error-stat">
<strong>Missing from S3:</strong>
<span id="diff-added">...</span>
</div>
<div class="diff-stat error-stat">
<strong>Orphaned in S3:</strong>
<span id="diff-removed">...</span>
</div>
</div>
<div class="diff-viewer-container">
<div class="diff-legend">
<div class="diff-legend-item">
<span class="diff-legend-marker added"></span>
Need to add to S3
</div>
<div class="diff-legend-item">
<span class="diff-legend-marker removed"></span>
Remove from S3
</div>
<div class="diff-legend-item">
<span class="diff-legend-marker unchanged"></span>
Context
</div>
</div>
<div class="diff-viewer" id="diff-viewer"></div>
</div>
<div class="detail-row">
<strong>Snapshot Tag:</strong>
<code id="diff-snapshot-tag">...</code>
</div>
<div class="detail-row">
<strong>S3 Version:</strong>
<code id="diff-s3-version">...</code>
</div>
<div class="detail-row">
<strong>Last Checked:</strong>
<span id="s3-files-last-checked">...</span>
</div>
</div>
</details>
</div>
</div>
</section>
</div>
<footer style="margin-top: 3rem">
<p><a href="index.html">← Back to dashboard</a></p>
</footer>
</main>
<script type="module" src="js/dataset.js"></script>
</body>
</html>