Commit 1d0ac10
dev safety + launched_by-driven tier + pending status (#28)
Frontend
- Tier (24/7 vs Slurm badge) now derived from the peer's launched_by
label instead of a hardcoded model list. Persistent launchers
(k8s, cscs_L1) → 24/7; anything else (username from model-launch,
empty) → Slurm. New helper getTierFromLaunchedBy replaces
getModelTier in ModelCard and ModelList.
- Pending status surfaces on the collapsed card via a traffic-light
dot (green/amber+pulsing/grey) AND a muted-grey tile treatment
(grayscale logo+badges, gray-500/400 text, faint background wash).
Amber dot stays vivid against the grey card.
Local-dev safety
- Makefile guards _guard-local-db and _guard-local-api refuse to run
if .env DATABASE_URL or frontend/.env VITE_API_URL points at a
non-localhost host. Closes a foot-gun where prod creds in .env let
`make dummy-run` attempt alembic upgrade head against prod Neon.
- Committed .env.example and frontend/.env.example templates (with
!.env.example in .gitignore so the un-ignore actually works) so a
fresh clone bootstraps cleanly via `make run`.
Fixture
- dnt_table_dev_live.json gains 6 real k8s peer entries pulled from
prod DNT, so `make dummy-run` shows a representative mix of k8s
24/7 models + Slurm jobs (incl. a pending one) for UI iteration.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 02e9f06 commit 1d0ac10
8 files changed
Lines changed: 527 additions & 27 deletions
File tree
- backend/tests/fixtures
- frontend
- src
- components/ui
- lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
70 | 98 | | |
71 | 99 | | |
72 | | - | |
| 100 | + | |
73 | 101 | | |
74 | 102 | | |
75 | 103 | | |
76 | 104 | | |
77 | 105 | | |
78 | 106 | | |
79 | 107 | | |
80 | | - | |
| 108 | + | |
81 | 109 | | |
82 | 110 | | |
83 | 111 | | |
| |||
0 commit comments