bugpatrol 0.2.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/ui/index.html CHANGED
@@ -5,6 +5,14 @@
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
6
  <title>Bugpatrol</title>
7
7
  <link rel="stylesheet" href="/style.css">
8
+ <script>
9
+ {
10
+ // Before the first paint: the saved choice, or else the system setting. app.js owns the toggle.
11
+ const saved = localStorage.getItem('bugpatrol-theme');
12
+ const system = matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';
13
+ document.documentElement.dataset.theme = saved === 'light' || saved === 'dark' ? saved : system;
14
+ }
15
+ </script>
8
16
  </head>
9
17
  <body>
10
18
  <header class="topbar">
@@ -15,6 +23,7 @@
15
23
  <nav class="tabs" id="tabs">
16
24
  <button type="button" data-view="overview" class="active">Overview</button>
17
25
  <button type="button" data-view="issues">Issues</button>
26
+ <button type="button" data-view="coverage">Coverage</button>
18
27
  <button type="button" data-view="reviews">Reviews</button>
19
28
  <button type="button" data-view="activity">Activity</button>
20
29
  <button type="button" data-view="flow">Flow</button>
@@ -24,8 +33,9 @@
24
33
  </nav>
25
34
  <div class="status">
26
35
  <span id="live" class="live" title="Live connection to the local watcher">live</span>
27
- <span id="platform" class="muted"></span>
36
+ <span id="surfaces" class="surfaces"></span>
28
37
  <span id="patrol" class="pill"></span>
38
+ <button type="button" id="theme" class="theme-toggle"></button>
29
39
  </div>
30
40
  </header>
31
41