Private
Public Access
1
0

feat(jobs): add host_names to job list API and UI (#24)
All checks were successful
CI Pipeline / Rust Format Check (push) Successful in 5s
CI Pipeline / Clippy Lints (push) Successful in 51s
CI Pipeline / Rust Unit Tests (push) Successful in 1m7s
CI Pipeline / Security Audit (push) Successful in 5s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 15s
CI Pipeline / Build .deb & Release (push) Has been skipped

* feat(jobs): add host_names to job list API and UI

Closes #23

* fix(jobs): add mut for host_names merge loop
This commit is contained in:
Draco-Lunaris-Echo
2026-06-04 12:49:53 -05:00
committed by GitHub
parent b9fb3427e0
commit fda70ecf9e
5 changed files with 61 additions and 4 deletions

View File

@ -194,7 +194,13 @@ function JobRow({
<TableCell>
<StatusChip status={job.status} />
</TableCell>
<TableCell align="right">{job.host_count}</TableCell>
<TableCell>
{job.host_names.length === 1
? job.host_names[0]
: job.host_names.length > 1
? <Tooltip title={job.host_names.join(', ')}><span>{job.host_names[0]} +{job.host_names.length - 1}</span></Tooltip>
: '—'}
</TableCell>
<TableCell align="right">
<Typography color="success.main" fontWeight={600}>
{job.succeeded_count}
@ -512,7 +518,7 @@ export default function JobsPage() {
<TableCell>Created</TableCell>
<TableCell>Kind</TableCell>
<TableCell>Status</TableCell>
<TableCell align="right">Hosts</TableCell>
<TableCell>Hosts</TableCell>
<TableCell align="right">Succeeded</TableCell>
<TableCell align="right">Failed</TableCell>
<TableCell>Schedule</TableCell>

View File

@ -144,6 +144,7 @@ export interface PatchJobSummary {
status: JobStatus
immediate: boolean
host_count: number
host_names: string[]
succeeded_count: number
failed_count: number
notes: string