forked from admin/brencher
Closes #16 Adds environment toggle buttons above the branch list. Selected environments are combined as a union; with no active toggles the existing all-environments view is preserved. The existing branch text filter and column visibility remain applied within the selected environments. Validation: - `node --check frontend/app.js` - `git diff --check` - `uv run pytest -q`: 27 passed, 1 skipped, 4 Playwright setup errors because Docker socket is unavailable in the test environment. Reviewed-on: admin/brencher#81 Co-authored-by: hermes <rudolfss13+hermes@gmail.com>
55 lines
2.0 KiB
HTML
55 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>Brencher - Branch Merger</title>
|
||
<link rel="stylesheet" href="styles.css">
|
||
</head>
|
||
<body>
|
||
<div class="container">
|
||
<header>
|
||
<h1>Brencher - Branch Merger</h1>
|
||
<p class="version" id="app-version">Version: loading...</p>
|
||
<div id="status-bar" class="status-bar hidden">
|
||
<span id="status-message"></span>
|
||
<button id="close-status">×</button>
|
||
</div>
|
||
</header>
|
||
|
||
<main>
|
||
<div class="branches-section">
|
||
<h2 style="float: left;">Git Branches</h2>
|
||
<div class="filter-section" style="float: left;">
|
||
<input type="text" id="branch-filter"
|
||
placeholder="Filter branches by name, commit ID, or commit message..." class="filter-input">
|
||
</div>
|
||
<div id="env-filter-toggles" class="env-filter-toggles" aria-label="Environment filters"></div>
|
||
<div class="control-bar" style="float: left;">
|
||
<button id="toggle-show-all" class="toggle-button">Show All</button>
|
||
</div>
|
||
<div class="control-bar" style="float: right;">
|
||
<button id="refresh-branches" class="refresh-button">Refresh Branches</button>
|
||
</div>
|
||
<div class="apply-section" style="float: right;">
|
||
<button id="apply-changes" class="apply-button hidden">Apply Changes</button>
|
||
</div>
|
||
<div style="clear: both;"/>
|
||
<div class="branches-list" id="branches-list">
|
||
<p class="loading">Loading branches...</p>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="jobs-section">
|
||
<h2>Jobs</h2>
|
||
<div id="jobs-list" class="jobs-list">
|
||
<p class="loading">Loading jobs...</p>
|
||
</div>
|
||
</div>
|
||
</main>
|
||
</div>
|
||
|
||
<script src="app.js"></script>
|
||
</body>
|
||
</html>
|