Skip to content

Commit d51db94

Browse files
committed
ui: right-align action buttons + pending peer example fixture
Right-align the OpenWebUI + Metrics Dashboard buttons inside the expanded model card (`justify-end` on the flex row). Matches the in-card details which are right-aligned by design. Add a synthetic PENDING peer to the dummy-run fixture so /make dummy-run shows what a booting model looks like — status: "pending", service: [], served_model_name carried in labels. Hostname + peer id are synthetic but realistic; framework_args resembles a 70B vLLM launch.
1 parent 7591d55 commit d51db94

2 files changed

Lines changed: 56 additions & 1 deletion

File tree

backend/tests/fixtures/dnt_table_dev_live.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,61 @@
139139
"status": "ready",
140140
"version": "v0.1.11"
141141
},
142+
"/QmPendingExamplePeerForDummyRunZZZZZZZZZZZZZZ": {
143+
"available_offering": null,
144+
"connected": true,
145+
"current_offering": null,
146+
"hardware": {
147+
"gpus": [
148+
{
149+
"name": "NVIDIA GH200 120GB",
150+
"total_memory": 97871,
151+
"used_memory": 0
152+
},
153+
{
154+
"name": "NVIDIA GH200 120GB",
155+
"total_memory": 97871,
156+
"used_memory": 0
157+
},
158+
{
159+
"name": "NVIDIA GH200 120GB",
160+
"total_memory": 97871,
161+
"used_memory": 0
162+
},
163+
{
164+
"name": "NVIDIA GH200 120GB",
165+
"total_memory": 97871,
166+
"used_memory": 0
167+
}
168+
],
169+
"host_memory": 0,
170+
"host_memory_bandwidth": 0,
171+
"host_memory_used": 0
172+
},
173+
"hostname": "nid007777",
174+
"id": "QmPendingExamplePeerForDummyRunZZZZZZZZZZZZZZ",
175+
"labels": {
176+
"expires_at": "2026-05-19T01:30:00Z",
177+
"framework": "vllm",
178+
"framework_args": "--port 8080 --model /capstor/store/cscs/swissai/infra01/hf_models/models/swiss-ai/Apertus-70B-Instruct-2509 --served-model-name swiss-ai/Apertus-70B-Instruct-2509-rob-pending --tensor-parallel-size 4 --max-model-len 8192 --enable-metrics",
179+
"launched_by": "rosmith",
180+
"served_model_name": "swiss-ai/Apertus-70B-Instruct-2509-rob-pending",
181+
"slurm_job_id": "2299999",
182+
"slurm_partition": "normal",
183+
"started_at": "2026-05-18T19:30:00Z",
184+
"worker_group_id": "2299999"
185+
},
186+
"last_seen": 1779139800,
187+
"latency": 0,
188+
"load": null,
189+
"owner": "",
190+
"privileged": false,
191+
"public_address": "",
192+
"role": null,
193+
"service": [],
194+
"status": "pending",
195+
"version": "dev-9ff5ec9"
196+
},
142197
"/QmPqzJvbFVdoXXTq2rKW1pZBUmKLhZEWWHa4RFVrnUMf7K": {
143198
"available_offering": null,
144199
"connected": true,

frontend/src/components/ui/ModelCard.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
role="region"
189189
>
190190
<!-- Action buttons (what clicking the card used to do, plus metrics) -->
191-
<div class="flex flex-wrap gap-2">
191+
<div class="flex flex-wrap justify-end gap-2">
192192
<a
193193
href={chatUrl}
194194
target="_blank"

0 commit comments

Comments
 (0)