project-nomad/admin
chriscrosstalk 401fbf46c9 feat(benchmark): dashboard re-run banner prompting a Score v2 re-run (#1096)
Shows a dismissible dashboard banner to users who submitted a benchmark under
v1 scoring but don't yet have a Score v2 result, nudging them to re-run so the
community leaderboard gets their v2 number.

- Show logic (benchmark_service.shouldShowRerunBanner): has a result with
  submitted_to_repository=true AND no result with nomad_score_v2 AND the
  dismiss KV isn't set. Self-clears two ways — dismiss sets the KV, and any v2
  run gives a result a nomad_score_v2 so the condition flips off on its own.
- New GET /api/benchmark/rerun-banner + useBenchmarkRerunBanner hook (mirrors
  useUpdateAvailable), rendered as a dismissible Alert on the dashboard with a
  "Re-run benchmark" CTA to /settings/benchmark.
- New KV key benchmark.rerunBannerDismissed (boolean) in both KV_STORE_SCHEMA
  and the SETTINGS_KEYS whitelist (the PATCH /system/settings validator enum);
  dismiss writes it via the existing updateSetting endpoint + invalidates the
  query.

Sibling to the Score v2 app client (#1094); stacked on it for the
nomad_score_v2 column. Browser-verified on the NOMAD3 dev env: show/dismiss/
reload-persist/self-clear-on-v2 all correct.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 09:36:14 -07:00
..
app feat(benchmark): dashboard re-run banner prompting a Score v2 re-run (#1096) 2026-07-21 09:36:14 -07:00
bin
…
commands
…
config
…
constants feat(benchmark): dashboard re-run banner prompting a Score v2 re-run (#1096) 2026-07-21 09:36:14 -07:00
database feat(benchmark): Score v2 app client — raws, uncapped score, v2 payload + UI 2026-07-21 09:36:14 -07:00
docs
…
inertia feat(benchmark): dashboard re-run banner prompting a Score v2 re-run (#1096) 2026-07-21 09:36:14 -07:00
providers
…
public
…
resources
…
scripts
…
start feat(benchmark): dashboard re-run banner prompting a Score v2 re-run (#1096) 2026-07-21 09:36:14 -07:00
tests fix(content): resolve current ZIM URL before download (#1091) 2026-07-20 19:36:53 -07:00
types feat(benchmark): dashboard re-run banner prompting a Score v2 re-run (#1096) 2026-07-21 09:36:14 -07:00
util
…
views
…
.editorconfig
…
.env.example
…
ace.js
…
adonisrc.ts
…
eslint.config.js
…
package-lock.json
…
package.json
…
tailwind.config.ts
…
tsconfig.json
…
vite.config.ts
…