Private
Public Access
1
0

feat: add host editing endpoint and frontend UI
All checks were successful
CI Pipeline / Rust Format Check (push) Successful in 3s
CI Pipeline / Clippy Lints (push) Successful in 53s
CI Pipeline / Rust Unit Tests (push) Successful in 1m12s
CI Pipeline / Security Audit (push) Successful in 4s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 14s
CI Pipeline / Build .deb & Release (push) Successful in 3m51s

This commit is contained in:
2026-05-18 21:52:00 +00:00
parent b3ae42215b
commit f70c5e53f9
26 changed files with 254 additions and 65 deletions

View File

@ -77,7 +77,7 @@ ORDER BY compliance_pct ASC
};
let mut wtr = csv::Writer::from_writer(vec![]);
wtr.write_record(&[
wtr.write_record([
"host_id",
"display_name",
"fqdn",
@ -115,7 +115,7 @@ ORDER BY compliance_pct ASC
])?;
}
Ok(wtr.into_inner().context("csv flush failed")?)
wtr.into_inner().context("csv flush failed")
}
// ---------------------------------------------------------------------------
@ -152,7 +152,7 @@ ORDER BY pjh.started_at DESC
.context("patch history query failed")?;
let mut wtr = csv::Writer::from_writer(vec![]);
wtr.write_record(&[
wtr.write_record([
"job_id",
"job_kind",
"job_status",
@ -194,7 +194,7 @@ ORDER BY pjh.started_at DESC
])?;
}
Ok(wtr.into_inner().context("csv flush failed")?)
wtr.into_inner().context("csv flush failed")
}
// ---------------------------------------------------------------------------
@ -203,7 +203,7 @@ ORDER BY pjh.started_at DESC
async fn vulnerability_csv(pool: &sqlx::PgPool, params: &ReportParams) -> anyhow::Result<Vec<u8>> {
let mut wtr = csv::Writer::from_writer(vec![]);
wtr.write_record(&[
wtr.write_record([
"host_id",
"display_name",
"fqdn",
@ -279,7 +279,7 @@ ORDER BY
},
}
Ok(wtr.into_inner().context("csv flush failed")?)
wtr.into_inner().context("csv flush failed")
}
// ---------------------------------------------------------------------------
@ -312,7 +312,7 @@ LIMIT 10000
.context("audit query failed")?;
let mut wtr = csv::Writer::from_writer(vec![]);
wtr.write_record(&[
wtr.write_record([
"id",
"created_at",
"action",
@ -347,5 +347,5 @@ LIMIT 10000
])?;
}
Ok(wtr.into_inner().context("csv flush failed")?)
wtr.into_inner().context("csv flush failed")
}

View File

@ -169,6 +169,7 @@ impl PdfBuilder {
self.current_y -= ROW_H;
}
#[allow(clippy::too_many_arguments)]
fn embed_image(
&self,
raw_rgb: Vec<u8>,