review card

This commit is contained in:
Ian Gulliver
2026-10-16 08:38:42 -07:00
parent c11871bd1c
commit 2624324b48
5 changed files with 3 additions and 10 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ function reviewResult(r, taskId) {
const res = (r.result ?? {});
const findings = findingsOf(r);
const md = { taskId };
return h("div", { class: "review-result" }, typeof res["change"] === "string" && res["change"] ? markdown(res["change"], "md review-change", md) : null, markdown(String(res["summary"] ?? ""), "md review-summary", md), reviewImages(res["images"]), findings.length > 0
return h("div", { class: "review-result" }, markdown(String(res["summary"] ?? ""), "md review-summary", md), reviewImages(res["images"]), findings.length > 0
? h("ol", { class: "findings" }, ...findings.map((f) => {
const severity = String(f["severity"] ?? "");
const path = typeof f["path"] === "string" ? f["path"] : "";
+1 -1
View File
File diff suppressed because one or more lines are too long
-1
View File
@@ -68,7 +68,6 @@ function reviewResult(r: Review, taskId: string | undefined): HTMLElement {
return h(
"div",
{ class: "review-result" },
typeof res["change"] === "string" && res["change"] ? markdown(res["change"], "md review-change", md) : null,
markdown(String(res["summary"] ?? ""), "md review-summary", md),
reviewImages(res["images"]),
findings.length > 0
-6
View File
@@ -1823,12 +1823,6 @@ pre.file-text .line::before {
margin-top: 4px;
}
.review-change {
margin: 8px 0;
padding-bottom: 8px;
border-bottom: 1px solid var(--border);
}
.finding-diff {
margin-top: 6px;
border: 1px solid var(--border);