Skip to content

Commit da03c76

Browse files
committed
Refactor repo filter UI and relocate Export CSV
Update dashboard UI in misc/data/dashboard.go: move the repository <select> into the quickfilter group, apply inline styling for a compact themed dropdown, and shorten option labels (remove environment suffixes). Add a separator span between the select and quickfilter buttons. Move the Export CSV button from the top controls into the footer to simplify the header layout and avoid duplicate export buttons.
1 parent 4def825 commit da03c76

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

misc/data/dashboard.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,20 +1424,20 @@ func DashboardHTML() string {
14241424
Telemetry Dashboard
14251425
</h1>
14261426
<div class="controls">
1427-
<select id="repoFilter" onchange="refreshData()" title="Filter by repository source">
1428-
<option value="ProxmoxVE" selected>ProxmoxVE (Production)</option>
1429-
<option value="ProxmoxVED">ProxmoxVED (Development)</option>
1430-
<option value="external">External (Forks)</option>
1431-
<option value="all">All Sources</option>
1432-
</select>
14331427
<div class="quickfilter">
1428+
<select id="repoFilter" onchange="refreshData()" title="Filter by repository source" style="background:var(--bg-tertiary);border:none;color:var(--text-primary);padding:6px 10px;border-radius:6px;font-size:13px;cursor:pointer;outline:none;">
1429+
<option value="ProxmoxVE" selected>ProxmoxVE</option>
1430+
<option value="ProxmoxVED">ProxmoxVED</option>
1431+
<option value="external">External</option>
1432+
<option value="all">All Sources</option>
1433+
</select>
1434+
<span style="color:var(--border-color);padding:0 2px;">|</span>
14341435
<button class="filter-btn" data-days="7">7 Days</button>
14351436
<button class="filter-btn active" data-days="30">30 Days</button>
14361437
<button class="filter-btn" data-days="90">90 Days</button>
14371438
<button class="filter-btn" data-days="365">1 Year</button>
14381439
<button class="filter-btn" data-days="0">All</button>
14391440
</div>
1440-
<button class="export-btn" onclick="exportCSV()">Export CSV</button>
14411441
<button onclick="refreshData()">Refresh</button>
14421442
<button class="theme-toggle" onclick="toggleTheme()">
14431443
<span id="themeIcon">🌙</span>
@@ -1591,6 +1591,7 @@ func DashboardHTML() string {
15911591
&bull; Telemetry is anonymous and privacy-friendly
15921592
</div>
15931593
<div>
1594+
<button class="footer-btn" onclick="exportCSV()">Export CSV</button>
15941595
<button class="footer-btn" onclick="showHealthCheck()">Health Check</button>
15951596
<a href="/api/dashboard" target="_blank">API</a>
15961597
</div>

0 commit comments

Comments
 (0)