-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (85 loc) · 2.64 KB
/
Copy pathindex.html
File metadata and controls
98 lines (85 loc) · 2.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Event Quality Scanner</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header class="page-header">
<div class="page-header-inner">
<h1>Event Quality Scanner</h1>
<p class="tagline">
Check whether a JSON event meets basic field, type, naming, and domain rules.
</p>
</div>
</header>
<main class="main">
<section class="panel panel-input">
<div class="panel-header">
<h2>Input Event</h2>
<div class="panel-actions">
<button id="load-valid" class="btn btn-secondary">Load Valid Example</button>
<button id="load-broken" class="btn btn-secondary">Load Broken Example</button>
</div>
</div>
<p class="help-text">
Paste a single JSON object below and click <strong>Scan Event</strong>.
</p>
<textarea
id="event-input"
class="event-input"
spellcheck="false"
rows="16"
placeholder=""
></textarea>
<div class="panel-footer">
<button id="scan-button" class="btn btn-primary">Scan Event</button>
<span id="parse-status" class="parse-status" aria-live="polite"></span>
</div>
</section>
<section class="panel panel-results">
<div class="panel-header">
<h2>Quality Summary</h2>
</div>
<div id="summary" class="summary">
<div class="summary-badge summary-badge-idle">
No event scanned yet.
</div>
</div>
<div class="checks-grid">
<div class="check-group">
<h3>Required Fields</h3>
<ul id="required-issues" class="issues-list empty"></ul>
</div>
<div class="check-group">
<h3>Types & Formats</h3>
<ul id="type-issues" class="issues-list empty"></ul>
</div>
<div class="check-group">
<h3>Naming Conventions</h3>
<ul id="naming-issues" class="issues-list empty"></ul>
</div>
<div class="check-group">
<h3>Domain Rules</h3>
<ul id="domain-issues" class="issues-list empty"></ul>
</div>
</div>
<div class="raw-output">
<h3>Raw Issue Log</h3>
<pre id="raw-issues">No scan yet.</pre>
</div>
</section>
</main>
<footer class="page-footer">
<p>
Part of the
<a href="https://github.com/rtfenter/Systems-of-Trust-Series" target="_blank" rel="noreferrer">
Systems of Trust Series
</a>.
</p>
</footer>
<script src="app.js"></script>
</body>
</html>