a73x

59c69363

feat(web): show each VM's allocation in the fleet table

a73x   2026-07-26 16:58

Commit message
feat(web): show each VM's allocation in the fleet table

web/src/routes/+page.svelte
Old New
@@ -269,13 +269,14 @@
269 {:else} 269 {:else}
270 <table> 270 <table>
271 <thead> 271 <thead>
272 <tr><th>Name</th><th>Host</th><th>Status</th><th>Power</th><th></th></tr> 272 <tr><th>Name</th><th>Host</th><th>Allocation</th><th>Status</th><th>Power</th><th></th></tr>
273 </thead> 273 </thead>
274 <tbody> 274 <tbody>
275 {#each shownVMs as v (v.id)} 275 {#each shownVMs as v (v.id)}
276 <tr> 276 <tr>
277 <td><a href="/vms/{v.id}">{v.name}</a></td> 277 <td><a href="/vms/{v.id}">{v.name}</a></td>
278 <td>{hostName(v.host_id)}</td> 278 <td>{hostName(v.host_id)}</td>
279 <td>{v.vcpus}c · {v.mem_mb}MB · {v.disk_gb}GB</td>
279 <td> 280 <td>
280 {#if v.deleted}<span class="teardown">deleting — undo available</span>{:else}{vmStatus(v)}{/if}{v.last_error 281 {#if v.deleted}<span class="teardown">deleting — undo available</span>{:else}{vmStatus(v)}{/if}{v.last_error
281 ? ` · ${v.last_error}` 282 ? ` · ${v.last_error}`