Tune page: chart and parameter list side by side, every secondary section collapsed

The progress summary, the movement chart and a scrollable parameter list now
share one panel. Settings, Actions, Parameter details and Contributors are
single-line folds, closed by default, so the page fits on roughly one screen.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TyAt5S5MAwLBY2idan1SwU
This commit is contained in:
claude committed 2026-10-11 18:52:04 +02:00
1 parent de5ec59ece
commit 7269fd96e9
2 files changed
+100 -42

No files matched your search

+85 -28
View File
@@ -1,46 +1,95 @@
/* Tune page: layout, collapsible sections, and the parameter history chart. */ /* Tune page: layout, collapsible sections, and the parameter history chart. */
/* ---------- Layout: a main column, and a side column ---------- */ /* ---------- Layout: one column, the panel first, folds below ---------- */
#content .workload-container.tune-page { #content .workload-container.tune-page {
display: flex;
flex-direction: column;
gap: 12px;
}
#content .tune-page > .card { margin: 0; }
/* Source order keeps the cards together; this puts the story in the right order */
#content .tune-page > #spsa-panel { order: 1; }
#content .tune-page > #config { order: 2; }
#content .tune-page > #actions { order: 3; }
#content .tune-page > #parameters { order: 4; }
#content .tune-page > #results { order: 5; }
/* ---------- Chart on the left, parameter list on the right ---------- */
.spsa-split {
display: grid; display: grid;
grid-template-columns: minmax(0, 1fr) 320px; grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
gap: 20px; gap: 0 28px;
align-items: start; padding-top: 16px;
border-top: 1px solid var(--spsa-line);
} }
#content .tune-page > .tune-main { .spsa-split-chart { min-width: 0; }
grid-column: 1;
grid-row: 1; /* The list takes the height of the chart and scrolls inside it */
.spsa-split-list {
position: relative;
min-width: 0;
min-height: 380px;
}
.spsa-list-inner {
position: absolute;
inset: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 20px; min-height: 0;
min-width: 0;
} }
#content .tune-page > .tune-side { .spsa-list-inner .spsa-tools { flex: none; padding: 0 0 10px; border-top: 0; }
grid-column: 2; .spsa-list-inner .spsa-key { flex: none; }
grid-row: 1;
display: flex; .spsa-list-inner .spsa-rows {
flex-direction: column; flex: 1 1 auto;
gap: 16px; min-height: 0;
min-width: 0; overflow-y: auto;
overscroll-behavior: contain;
scrollbar-width: thin;
padding-right: 6px;
} }
#content .tune-main > .card, .spsa-list-inner .spsa-empty { flex: none; }
#content .tune-side > .card {
margin: 0; /* Dense rows: one line per parameter */
.spsa-split-list .spsa-row {
grid-template-columns: minmax(7ch, 15ch) minmax(56px, 1fr) 8.5ch 8ch;
gap: 0 12px;
padding: 8px 0;
} }
/* Source order is side first; this puts the story in the right order */ .spsa-split-list .spsa-row:hover { background: rgba(255, 255, 255, .03); }
#content .tune-main > #spsa-panel { order: 1; } .spsa-split-list .spsa-scale { display: none; }
#content .tune-main > #results { order: 2; } .spsa-split-list .spsa-track { margin: 0 6px; }
#content .tune-main > #parameters { order: 3; } .spsa-split-list .spsa-value { font-size: 14px; }
.spsa-split-list .spsa-delta { font-size: 12px; }
@media (max-width: 1000px) { @media (max-width: 1000px) {
#content .workload-container.tune-page { grid-template-columns: minmax(0, 1fr); } .spsa-split { grid-template-columns: minmax(0, 1fr); }
#content .tune-page > .tune-main { grid-column: 1; grid-row: 1; } .spsa-split-chart { margin-bottom: 18px; }
#content .tune-page > .tune-side { grid-column: 1; grid-row: 2; } .spsa-split-list { min-height: 0; }
.spsa-list-inner { position: static; }
.spsa-list-inner .spsa-rows { flex: none; max-height: 420px; }
}
@media (max-width: 560px) {
.spsa-split-list .spsa-row {
grid-template-columns: 1fr auto auto;
gap: 6px 12px;
padding: 10px 0;
}
.spsa-split-list .spsa-name { grid-column: 1; }
.spsa-split-list .spsa-value { grid-column: 2; }
.spsa-split-list .spsa-delta { grid-column: 3; min-width: 7ch; }
.spsa-split-list .spsa-track-wrap { grid-column: 1 / -1; }
.spsa-split-list .spsa-scale { display: flex; }
} }
/* ---------- Collapsible sections ---------- */ /* ---------- Collapsible sections ---------- */
@@ -49,6 +98,10 @@
padding: 0; padding: 0;
} }
#content details.config-fold[open] {
padding-bottom: 14px;
}
.config-fold > summary { .config-fold > summary {
display: flex; display: flex;
align-items: baseline; align-items: baseline;
@@ -61,6 +114,8 @@
.config-fold > summary::-webkit-details-marker { display: none; } .config-fold > summary::-webkit-details-marker { display: none; }
.config-fold > summary:hover { background: rgba(255, 255, 255, .03); }
.config-fold > summary .card-title { margin: 0; } .config-fold > summary .card-title { margin: 0; }
.config-fold > summary:focus-visible { .config-fold > summary:focus-visible {
@@ -101,7 +156,9 @@
padding-right: 18px; padding-right: 18px;
} }
.config-fold > table { margin-top: 8px; margin-bottom: 12px; width: calc(100% - 36px); } #content .config-fold[open] > summary + * { margin-top: 12px; }
.config-fold > table { margin-bottom: 12px; width: calc(100% - 36px); }
/* ---------- Parameter names double as "show on chart" buttons ---------- */ /* ---------- Parameter names double as "show on chart" buttons ---------- */
@@ -142,7 +199,7 @@ button.spsa-name:focus-visible {
/* ---------- History chart ---------- */ /* ---------- History chart ---------- */
.spsa-history { .spsa-history {
padding: 4px 0 18px; padding: 0;
} }
.spsa-history-head h3 { .spsa-history-head h3 {
+15 -14
View File
@@ -18,7 +18,7 @@
{% block content %} {% block content %}
<div class="workload-container{% if type == "TUNE" %} tune-page{% endif %}"> <div class="workload-container{% if type == "TUNE" %} tune-page{% endif %}">
{% if type == "TUNE" %}<div class="tune-side">{% endif %}
{% if type == "TUNE" %}<details id="config" class="card config-fold"><summary><span class="card-title">Settings</span><span class="config-hint">Engine, network, book</span></summary>{% else %}<div id="config" class="card">{% endif %} {% if type == "TUNE" %}<details id="config" class="card config-fold"><summary><span class="card-title">Settings</span><span class="config-hint">Engine, network, book</span></summary>{% else %}<div id="config" class="card">{% endif %}
{% if type != "TUNE" %}<header class="card-head"><h2 class="card-title">Configuration</h2></header>{% endif %} {% if type != "TUNE" %}<header class="card-head"><h2 class="card-title">Configuration</h2></header>{% endif %}
@@ -74,8 +74,8 @@
</table> </table>
{% if type == "TUNE" %}</details>{% else %}</div>{% endif %} {% if type == "TUNE" %}</details>{% else %}</div>{% endif %}
<div id="actions" class="card"> {% if type == "TUNE" %}<details id="actions" class="card config-fold"><summary><span class="card-title">Actions</span><span class="config-hint">Approve, stop, copy inputs, adjust</span></summary>{% else %}<div id="actions" class="card">
<header class="card-head"><h2 class="card-title">Actions</h2></header> <header class="card-head"><h2 class="card-title">Actions</h2></header>{% endif %}
<!-- Dev vs Base [Git Diff Link] --> <!-- Dev vs Base [Git Diff Link] -->
<a class="diff-link" href="{{workload|gitDiffLink}}"><i class="fa-solid fa-code-compare fa-fw"></i> {{workload|git_diff_text}}</a> <a class="diff-link" href="{{workload|gitDiffLink}}"><i class="fa-solid fa-code-compare fa-fw"></i> {{workload|git_diff_text}}</a>
@@ -213,16 +213,12 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
</div> {% if type == "TUNE" %}</details>{% else %}</div>{% endif %}
<!-- SPSA Paramater Summary, for Tunes --> <!-- SPSA Paramater Summary, for Tunes -->
{% if type == "TUNE" %} {% if type == "TUNE" %}
</div><!-- /tune-side -->
<div class="tune-main">
{% with panel=workload|spsa_param_panel %} {% with panel=workload|spsa_param_panel %}
<section id="spsa-panel" class="card spsa-panel"> <section id="spsa-panel" class="card spsa-panel" aria-label="Tuning progress">
<header class="card-head"><h2 class="card-title">Tuning progress</h2></header>
<div class="spsa-summary"> <div class="spsa-summary">
<div class="spsa-iter"> <div class="spsa-iter">
<span class="spsa-big">{{ panel.complete }}</span> <span class="spsa-big">{{ panel.complete }}</span>
@@ -236,14 +232,18 @@
</dl> </dl>
</div> </div>
<div class="spsa-split">
<div class="spsa-split-chart">
<div class="spsa-history"> <div class="spsa-history">
<div class="spsa-history-head"> <div class="spsa-history-head">
<h3>Movement since the start</h3> <h3>Movement since the start</h3>
<p>Each line is one parameter, as a share of its allowed range. Point at a name below to follow it, or click it to keep it on the chart.</p> <p>Each line is a parameter, as a share of its range. Point at a name to follow it, or click to keep it on the chart.</p>
</div> </div>
{{ workload|spsa_history_chart }} {{ workload|spsa_history_chart }}
</div> </div>
</div>
<div class="spsa-split-list"><div class="spsa-list-inner">
<div class="spsa-tools"> <div class="spsa-tools">
<input id="spsa-filter" type="search" placeholder="Filter parameters" aria-label="Filter parameters by name" autocomplete="off"> <input id="spsa-filter" type="search" placeholder="Filter parameters" aria-label="Filter parameters by name" autocomplete="off">
<select id="spsa-sort" aria-label="Sort parameters"> <select id="spsa-sort" aria-label="Sort parameters">
@@ -277,6 +277,8 @@
<span><i class="k-now"></i>Current value</span> <span><i class="k-now"></i>Current value</span>
<span><i class="k-limit"></i>At a limit of its range</span> <span><i class="k-limit"></i>At a limit of its range</span>
</div> </div>
</div></div><!-- /list -->
</div><!-- /split -->
</section> </section>
{% endwith %} {% endwith %}
@@ -306,8 +308,8 @@
</details> </details>
{% endif %} {% endif %}
<div id="results" class="card"> {% if type == "TUNE" %}<details id="results" class="card config-fold"><summary><span class="card-title">Contributors</span><span class="config-hint">{{ results|length }} machine{{ results|length|pluralize }}, games and results</span></summary>{% else %}<div id="results" class="card">
<header class="card-head"><h2 class="card-title">Results by Machine</h2></header> <header class="card-head"><h2 class="card-title">Results by Machine</h2></header>{% endif %}
<table class="stripes wrappable"> <table class="stripes wrappable">
<tr class="table-header"> <tr class="table-header">
<th>#</th> <th>#</th>
@@ -336,8 +338,7 @@
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
</div> {% if type == "TUNE" %}</details>{% else %}</div>{% endif %}
{% if type == "TUNE" %}</div><!-- /tune-main -->{% endif %}
</div> </div>