Coach: ein API-Key gilt fuer die ganze Instanz, Warm-ups zaehlen nicht, Retries bei 429/5xx, sichtbare Admin-Felder

- Instanz-Modus: nur eine persoenliche Anmeldung (Setup-Token/OAuth) bindet sich an das
  erste Profil, ein API-Key ist gemessen und wird von allen Profilen unter den Tageslimits
  geteilt. Die Bindung passiert jetzt wirklich beim Einreihen eines Jobs (jobs.enqueue),
  vorher gab es sie nur in den Tests.
- HTTP-Adapter: 429/500/502/503/504/529 werden zweimal mit kurzer Pause wiederholt, ein
  4xx nie. retryDelayMs fuer Tests.
- Payload: Warm-up-Saetze wie in progression.js aus readSession/stalls, done/planned,
  Top-Satz, setsByBodyPart und workingWeights herausgefiltert; in vollen Sessions als
  warmup:true markiert, common.md sagt dem Modell, was das ist.
- Admin-Karte: .field im Card hat jetzt eine sichtbare Flaeche, die Limit-Zahlenfelder
  sind echte Felder statt weisser Browser-Boxen; Text zu 'Whose account pays' unterscheidet
  API-Key und persoenliche Anmeldung.
- Neuer Test e2e-apikey: Key ueber die Admin-Routen einlegen, Modelle listen, Review durch
  die echte Queue gegen einen lokalen Anthropic/OpenAI/Gemini-Stand-in, inkl. Header,
  Cache-Block, Schema, Retry und Auth-Fehler. api 150, frontend 1029, mcp 45 gruen.
This commit is contained in:
Duarte Santos committed 2026-09-03 22:27:10 +02:00
1 parent 63cf1deaed
commit 02c75b320d
14 files changed
+311 -35

No files matched your search

+12 -2
View File
@@ -64,7 +64,10 @@
/* label + control pairs inside a step */
.adm-field{display:flex;flex-direction:column;gap:6px;margin:0 0 10px}
.adm-field>label{font-size:13px;font-weight:600;color:var(--label-2)}
.adm-field .field{width:100%}
/* Inside a card the app's default field colour is the card's own colour, so the box was
invisible and the placeholder floated in space. One shade up, and a size that is readable
without iOS zooming into it. */
.adm-field .field{width:100%;background:var(--surface-2);font-size:16px;min-height:44px}
.adm-select{
width:100%;min-height:44px;padding:10px 38px 10px 12px;border-radius:var(--r);border:0;
background:var(--surface-2);color:var(--label);font-size:15px;appearance:none;-webkit-appearance:none;
@@ -98,7 +101,14 @@
.adm-kv:last-child{border-bottom:0}
.adm-kv .k{color:var(--label-2);flex:none}
.adm-kv .v{text-align:right;min-width:0;overflow-wrap:anywhere}
.adm-kv .v input{width:72px;text-align:right}
/* the two daily-limit numbers: a real field, not the browser's white default box */
.adm-kv .v input{
width:84px;min-height:40px;padding:6px 10px;text-align:right;font-size:16px;font-weight:600;
border:0;border-radius:10px;background:var(--surface-2);color:var(--label);outline:none;
-moz-appearance:textfield;appearance:textfield
}
.adm-kv .v input::-webkit-outer-spin-button,.adm-kv .v input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.adm-kv .v input:focus{box-shadow:inset 0 0 0 2px var(--acc)}
.adm-log{display:flex;flex-direction:column}
.adm-log-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:var(--hair) solid var(--sep);font-size:13.5px}