Files
6krrt/tests/test_admin_frontend.py
adlee-was-taken ab527c3d49 fix(admin): label the Classifier card and show what is running vs saved
The card's inputs had placeholders but no labels, its badge reported the
saved mode as if it were live, and a typed 0 was rewritten to the default.

- Every input in every mode carries a visible label; fields align to the top.
- GET /admin/api/classifier-config now returns running_mode and
  restart_pending alongside the saved mode. restart_pending compares the whole
  classifier block, and is null when the saved config no longer validates.
- The header badge names the running mode; an amber "restart pending" badge
  shows until the service restarts, since a save only persists the overlay.
- local_decision collect omits blank fields so repo defaults keep floating,
  and no longer turns a deliberate 0 into the default.
- local_encoder threshold placeholder shortened so it is not clipped.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KkCGRantZsSwmcFpet6FTa
2026-10-03 00:11:32 -04:00

35 KiB