-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (88 loc) · 3.59 KB
/
index.html
File metadata and controls
98 lines (88 loc) · 3.59 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LaunchDarkly Flag Health Check</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<header>
<h1>🚩 LaunchDarkly Flag Health Check</h1>
<p>Verify your feature flags are healthy and properly configured</p>
</header>
<div id="rateLimitStatus" class="rate-limit-status" style="display: none;"></div>
<div class="config-section">
<h2>Configuration</h2>
<form id="healthCheckForm">
<div class="form-group">
<label for="apiKey">
LaunchDarkly API Key
<span class="recommendation">(READ ONLY recommended)</span>
</label>
<input
type="password"
id="apiKey"
placeholder="api-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
required
>
</div>
<div class="form-row">
<div class="form-group">
<label for="projectKey">Project Key (Searchable)</label>
<input
type="text"
id="projectKey"
list="projectsList"
placeholder="Enter API key first..."
required
disabled
autocomplete="off"
>
<datalist id="projectsList"></datalist>
</div>
<div class="form-group">
<label for="environment">Environment (Searchable)</label>
<input
type="text"
id="environment"
list="environmentsList"
placeholder="Select project first..."
required
disabled
autocomplete="off"
>
<datalist id="environmentsList"></datalist>
</div>
</div>
<button type="submit" class="btn-primary" id="checkBtn">
Run Health Check
</button>
</form>
</div>
<div id="loadingSection" class="loading-section" style="display: none;">
<div class="spinner"></div>
<p id="loadingProgress">Analyzing flags...</p>
</div>
<div id="errorSection" class="error-section" style="display: none;">
<div class="error-message">
<span class="error-icon">⚠️</span>
<div>
<strong>Error</strong>
<p id="errorMessage"></p>
</div>
</div>
</div>
<div id="resultsSection" class="results-section" style="display: none;">
<div class="results-header">
<h2>Health Check Results</h2>
<p style="color: #666; margin-bottom: 15px;">💡 Click on summary boxes to filter results • Click on flag cards to expand/collapse details</p>
<div class="summary" id="summary"></div>
</div>
<div id="flagsList" class="flags-list"></div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>