Skip to content

Commit 19d431a

Browse files
committed
Reset browser filters on load for official results UI
1 parent 0fac618 commit 19d431a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docs/official_results/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ <h1>Official Results Browser</h1>
7575
suites.forEach(s => suiteFilter.add(new Option(s, s)));
7676
resetOptions(runFilter, 'All runs', uniqueSorted(allTasks.map(t => t.run_dir)));
7777
resetOptions(configFilter, 'All configs', uniqueSorted(allTasks.map(t => t.config)));
78+
// Avoid browser form-state restoration narrowing results unexpectedly.
79+
suiteFilter.value = '';
80+
datasetFilter.value = 'all';
81+
runFilter.value = '';
82+
configFilter.value = '';
83+
statusFilter.value = '';
84+
taskSearch.value = '';
7885

7986
const render = () => {
8087
const dataset = datasetFilter.value || 'all';

scripts/export_official_results.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,13 @@ def _build_index_html() -> str:
11741174
suites.forEach(s => suiteFilter.add(new Option(s, s)));
11751175
resetOptions(runFilter, 'All runs', uniqueSorted(allTasks.map(t => t.run_dir)));
11761176
resetOptions(configFilter, 'All configs', uniqueSorted(allTasks.map(t => t.config)));
1177+
// Avoid browser form-state restoration narrowing results unexpectedly.
1178+
suiteFilter.value = '';
1179+
datasetFilter.value = 'all';
1180+
runFilter.value = '';
1181+
configFilter.value = '';
1182+
statusFilter.value = '';
1183+
taskSearch.value = '';
11771184
11781185
const render = () => {
11791186
const dataset = datasetFilter.value || 'all';

0 commit comments

Comments
 (0)