From 142296006b45185eb33c1af875591be79b7e41e6 Mon Sep 17 00:00:00 2001 From: claude Date: Sun, 11 Oct 2026 12:26:12 +0200 Subject: [PATCH] Workload page: revert hero, Dev/Base table, action hiding and confirms; keep full author names and server-rendered timestamps --- OpenBench/static/workload-refresh.css | 90 --------------- Templates/OpenBench/workload.html | 152 ++++++++++---------------- 2 files changed, 59 insertions(+), 183 deletions(-) delete mode 100644 OpenBench/static/workload-refresh.css diff --git a/OpenBench/static/workload-refresh.css b/OpenBench/static/workload-refresh.css deleted file mode 100644 index 159d042..0000000 --- a/OpenBench/static/workload-refresh.css +++ /dev/null @@ -1,90 +0,0 @@ -/* Workload page additions for the design refresh. Loaded after workload.css. */ - -.result-hero { - grid-column: 1 / -1; - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 24px; - padding: 18px 20px; - background: var(--color2); - border: 1px solid var(--line); - border-radius: var(--radius); -} - -.result-hero .statblock { - padding: 12px 18px; - border-radius: var(--radius); - font-family: var(--font-mono); - font-size: 15px; - line-height: 1.5; - white-space: nowrap; -} - -.result-hero .result-hero-gauge { - flex: 1 1 260px; - min-width: 220px; -} - -.result-hero .llr { - margin-top: 0; - height: 8px; -} - -.result-hero .llr-scale { - font-size: 12px; -} - -/* Dev / Base comparison */ -.config-compare { - width: 100%; - border-collapse: collapse; - margin-bottom: 8px; -} - -.config-compare th { - text-align: left; - padding: 8px 12px; - font-size: 12.5px; - font-weight: 600; - color: var(--muted); - border-bottom: 1px solid var(--line); -} - -.config-compare td { - padding: 8px 12px; - vertical-align: top; - overflow-wrap: anywhere; - border-bottom: 1px solid var(--line); -} - -.config-compare .td-label { - width: 1%; - white-space: nowrap; - color: var(--muted); -} - -.config-compare .mono { - font-family: var(--font-mono); - font-size: 13px; -} - -/* A value that differs between Dev and Base */ -.config-compare td.diff { - background: var(--accent-soft); - box-shadow: inset 2px 0 0 var(--accent); -} - -.config-shared { - margin-top: 8px; -} - -@media (max-width: 640px) { - .config-compare td, .config-compare th { padding: 6px 8px; } -} - -.result-hero-note { - margin: 8px 0 0; - color: var(--muted); - font-size: 13px; -} diff --git a/Templates/OpenBench/workload.html b/Templates/OpenBench/workload.html index 35fa72a..e3f4811 100644 --- a/Templates/OpenBench/workload.html +++ b/Templates/OpenBench/workload.html @@ -1,11 +1,10 @@ {% extends "OpenBench/base.html" %} -{% load mytags uitags %} +{% load mytags %} {% load static %} {% block scripts %} - {% endblock %} @@ -16,102 +15,57 @@
- {% if type == "TEST" %} - {% with progress=workload|progress_info %} -
-
{{ workload|shortStatBlock|linebreaksbr }}
- {% if progress.gauge %} -
-
- - -
-
{{ progress.lower }}LLR {{ progress.llr }}{{ progress.upper }}
-
- {% endif %} -
- {% endwith %} - {% endif %} -

Configuration

+ - -
- - - - - {% if type == "TEST" or type == "DATAGEN" %}{% endif %} - - - - - - - {% if type == "TEST" or type == "DATAGEN" %}{{workload.base_repo}}{% endif %} - - - - - {% if type == "TEST" or type == "DATAGEN" %}{% endif %} - - - - - {% if type == "TEST" or type == "DATAGEN" %}{% endif %} - - - - - {% if type == "TEST" or type == "DATAGEN" %}{% endif %} - - - - - {% if type == "TEST" or type == "DATAGEN" %}{{workload.base_netname}}{% endif %} - - - - - {% if type == "TEST" or type == "DATAGEN" %}{{workload.base_options}}{% endif %} - - - - - {% if type == "TEST" or type == "DATAGEN" %}{{workload.base_time_control}}{% endif %} - - -
{{dev_text}}Base
Source{{workload.dev_repo}}
Branch{{workload.dev.name|prettyName}}{{workload.base.name|prettyName}}
Commit{{workload.dev.sha}}{{workload.base.sha}}
Bench{{workload.dev.bench}}{{workload.base.bench}}
Network{{workload.dev_netname}}
Options{{workload.dev_options}}
Time control{{workload.dev_time_control}}
- - - - + + + + + + + + + + + + + {% if type == "TEST" or type == "DATAGEN" %} + + + + + + + + {% endif %} {% if book_url %} - + {% else %} - + {% endif %} - - - + + + {% if type == "TUNE" %} - + - + {% elif type == "DATAGEN" %} - - + + {% endif %} +
Author{{workload.author|capfirst}}
Created
Creation
{{dev_text}} Source{{workload.dev_repo}}
{{dev_text}} Sha{{workload.dev.sha}}
{{dev_text}} Branch{{workload.dev.name|prettyName}}
{{dev_text}} Bench{{workload.dev.bench}}
{{dev_text}} Network{{workload.dev_netname}}
{{dev_text}} Options{{workload.dev_options}}
{{dev_text}} Time{{workload.dev_time_control}}
Base Source{{workload.base_repo}}
Base Sha{{workload.base.sha}}
Base Branch{{workload.base.name|prettyName}}
Base Bench{{workload.base.bench}}
Base Network{{workload.base_netname}}
Base Options{{workload.base_options}}
Base Time{{workload.base_time_control}}
Opening book{{workload.book_name}}
Opening Book{{workload.book_name}}
Opening book{{workload.book_name}}
Opening Book{{workload.book_name}}
Upload PGNs{{workload.upload_pgns}}
Syzygy WDL{{workload.syzygy_wdl}}
Syzygy adjudication{{workload.syzygy_adj}}
Win adjudication{{workload.win_adj}}
Draw adjudication{{workload.draw_adj}}
Syzygy ADJ.{{workload.syzygy_adj}}
Win ADJ.{{workload.win_adj}}
Draw ADJ.{{workload.draw_adj}}
Alpha{{workload.spsa.Alpha}}
Gamma{{workload.spsa.Gamma}}
A-ratio{{workload.spsa.A_ratio}}
A-Ratio{{workload.spsa.A_ratio}}
Reporting{{workload.spsa.reporting_type}}
Distribution{{workload.spsa.distribution_type}}
Pairs per point{{workload.workload_size}}
Pairs Per Point{{workload.workload_size}}
Genfens args{{workload.genfens_args}}
Play reverses{{workload.play_reverses}}
Genfens Args{{workload.genfens_args}}
Play Reverses{{workload.play_reverses}}
@@ -128,20 +82,26 @@ Approve {% elif not workload.approved and request.user.is_superuser %} Approve + {% else %} + Approve {% endif %} {% if workload.finished and not workload.passed and not workload.failed and profile.approver %} - Restart + Restart {% elif workload.finished and not workload.passed and not workload.failed and profile.user.username == workload.author %} - Restart + Restart + {% elif workload.finished %} + Restart {% endif %} {% if not workload.finished and profile.approver %} - Stop + Stop {% elif not workload.finished and profile.user.username == workload.author %} - Stop + Stop + {% elif not workload.finished %} + Stop {% endif %} @@ -149,7 +109,13 @@ {% if workload.deleted %} Restore {% else %} - Delete + Delete + {% endif %} + {% else %} + {% if workload.deleted %} + Restore + {% else %} + Delete {% endif %} {% endif %}
@@ -157,14 +123,14 @@ {% if type == "TEST" or type == "DATAGEN" %}
- +
{% endif %} {% if type == "TEST" or type == "DATAGEN" %}
- +
{% endif %} @@ -193,11 +159,11 @@ {% if type == "TEST" %} -
{{workload|longStatBlock|linebreaksbr}}
+
{{workload|longStatBlock|linebreaksbr}}
{% elif type == "TUNE" %} -
{{workload|shortStatBlock|linebreaksbr}}
+
{{workload|shortStatBlock|linebreaksbr}}
{% elif type == "DATAGEN" %} -
{{workload|longStatBlock|linebreaksbr}}
+
{{workload|longStatBlock|linebreaksbr}}
{% endif %}

Adjust

@@ -208,18 +174,18 @@
- +
- +
{% if type == "TEST" or type == "DATAGEN" %}
- +
{% endif %} @@ -305,4 +271,4 @@ -{% endblock %} +{% endblock %} \ No newline at end of file