swarm ui: a diff column on the pull requests card, and "approved" as its header
The pull requests card gets a diff column, the lines a PR adds and removes (`+120 −8`), sortable on the total. The controller takes the counts from the forge's pull request list, so no call is added. The column that said "has all approvals" is now headed "approved".
This commit is contained in:
parent
f633963b77
commit
944fd5b726
1 changed files with 46 additions and 3 deletions
|
|
@ -24,6 +24,8 @@ import { TableSkeleton } from "../ui/table/TableSkeleton.js";
|
|||
import { ALL_REPOS, repoOptions } from "./issue-report-repo.js";
|
||||
import {
|
||||
approvalsText,
|
||||
diffSize,
|
||||
diffText,
|
||||
hasAllApprovals,
|
||||
prReportUrl,
|
||||
yesNo,
|
||||
|
|
@ -124,7 +126,7 @@ const COLUMNS: TableColumn<PrReportRow>[] = [
|
|||
},
|
||||
{
|
||||
key: "approved",
|
||||
header: "has all approvals",
|
||||
header: "approved",
|
||||
render: (r) =>
|
||||
hasAllApprovals(r) ? <Badge tone="positive" value="yes" /> : "no",
|
||||
sortBy: (r) => Number(hasAllApprovals(r)),
|
||||
|
|
@ -156,6 +158,12 @@ const COLUMNS: TableColumn<PrReportRow>[] = [
|
|||
filterValues: (r) => [r.ci ?? "none"],
|
||||
filterMode: "multiselect",
|
||||
},
|
||||
{
|
||||
key: "diff",
|
||||
header: "diff",
|
||||
render: (r) => diffText(r),
|
||||
sortBy: (r) => diffSize(r),
|
||||
},
|
||||
{
|
||||
key: "updated",
|
||||
header: "updated",
|
||||
|
|
|
|||
Loading…
Reference in a new issue