Skip to content

Commit 2d5576d

Browse files
committed
Enh(viewer): Show agent runs first, then scores
1 parent b70ac99 commit 2d5576d

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

codeclash/viewer/templates/index.html

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -89,36 +89,6 @@ <h2>🎯 Game Rounds</h2>
8989
{% for round_data in metadata.rounds %}
9090
{% set round_num = round_data.round_num %}
9191

92-
<!-- Round Results (if available) -->
93-
{% if round_data.results %}
94-
<details class="foldout round-foldout">
95-
<summary>🏆 Round {{ round_num }} Results</summary>
96-
<div class="log-content">
97-
<div id="round-{{ round_num }}-results-jsoneditor" class="json-viewer"></div>
98-
</div>
99-
</details>
100-
{% endif %}
101-
102-
<!-- Round Simulation Logs -->
103-
<details class="foldout round-foldout">
104-
<summary>🎮 Round {{ round_num }} Simulation Logs ({{ round_data.sim_logs|length }} sims)</summary>
105-
<div class="log-content">
106-
{% for sim_log in round_data.sim_logs %}
107-
<details class="foldout sim-foldout">
108-
<summary>
109-
{{ sim_log.filename }}
110-
<button class="copy-path-btn-small" data-path="{{ sim_log.full_path }}" title="Copy file path">
111-
📋 Copy path
112-
</button>
113-
</summary>
114-
<div class="log-content">
115-
<pre><code>{{ sim_log.content }}</code></pre>
116-
</div>
117-
</details>
118-
{% endfor %}
119-
</div>
120-
</details>
121-
12292
<!-- Player Trajectories for this round -->
12393
{% if round_num in trajectories_by_round %}
12494
{% for trajectory in trajectories_by_round[round_num] %}
@@ -348,6 +318,36 @@ <h3>
348318
{% endfor %}
349319
{% endif %}
350320

321+
<!-- Round Simulation Logs -->
322+
<details class="foldout round-foldout">
323+
<summary>🎮 Round {{ round_num }} Simulation Logs ({{ round_data.sim_logs|length }} sims)</summary>
324+
<div class="log-content">
325+
{% for sim_log in round_data.sim_logs %}
326+
<details class="foldout sim-foldout">
327+
<summary>
328+
{{ sim_log.filename }}
329+
<button class="copy-path-btn-small" data-path="{{ sim_log.full_path }}" title="Copy file path">
330+
📋 Copy path
331+
</button>
332+
</summary>
333+
<div class="log-content">
334+
<pre><code>{{ sim_log.content }}</code></pre>
335+
</div>
336+
</details>
337+
{% endfor %}
338+
</div>
339+
</details>
340+
341+
<!-- Round Results (if available) -->
342+
{% if round_data.results %}
343+
<details class="foldout round-foldout">
344+
<summary>🏆 Round {{ round_num }} Results</summary>
345+
<div class="log-content">
346+
<div id="round-{{ round_num }}-results-jsoneditor" class="json-viewer"></div>
347+
</div>
348+
</details>
349+
{% endif %}
350+
351351
<!-- Round separator (except after the last round) -->
352352
{% if not loop.last %}
353353
<div class="round-separator"></div>

0 commit comments

Comments
 (0)