feat(webui): surface allow_concurrent/max_retries/review_enabled on the repositories card
RepoView.ReviewEnabled was previously absent from GET /api/config entirely, not just unrendered; add it alongside AllowConcurrent and MaxRetries. The repositories table gains Concurrent/Max retries/ Self-review columns as read-only pills -- this is the concrete discoverability fix for "why isn't a second agent running": that config was already reachable from the API, just never shown. config.example.toml documents review_enabled, which had no example entry before this. Full inline editing of per-repo fields is out of scope here: the dashboard's PATCH /api/config path has no array-index support for updating one element of the Repos slice, which is separate, real scope -- filed as archie-core-b6ew.6. Closes archie-core-b6ew.4
This commit is contained in:
1 parent
35eb4050de
commit
302caedec9
5 files changed
+62
-4
No files matched your search
@@ -233,14 +233,21 @@ function repositoriesCard(repos) {
|
||||
}
|
||||
return section(
|
||||
"Repositories",
|
||||
"Each repository Archie polls, and the quality gate a change must pass before it opens a pull request.",
|
||||
"Each repository Archie polls, and the quality gate a change must pass before it opens a pull request. " +
|
||||
"Concurrent tasks, retries, and self-review are set per repository in config.toml -- read-only here " +
|
||||
"until archie-core-b6ew.4's follow-up gives them an inline editor.",
|
||||
el(
|
||||
"div.table-scroll",
|
||||
el(
|
||||
"table.table",
|
||||
el(
|
||||
"thead",
|
||||
el("tr", ...["Repository", "Base branch", "Ecosystem", "Quality gate", "Protected paths"].map((h) => el("th", h))),
|
||||
el(
|
||||
"tr",
|
||||
...["Repository", "Base branch", "Ecosystem", "Quality gate", "Protected paths", "Concurrent", "Max retries", "Self-review"].map((h) =>
|
||||
el("th", h),
|
||||
),
|
||||
),
|
||||
),
|
||||
el(
|
||||
"tbody",
|
||||
@@ -252,6 +259,9 @@ function repositoriesCard(repos) {
|
||||
el("td", r.ecosystem || "go"),
|
||||
el("td.mono", gateSummary(r.gate)),
|
||||
el("td.mono", r.protect?.length ? r.protect.join(", ") : "—"),
|
||||
el("td", boolPill(r.allow_concurrent)),
|
||||
el("td.mono", String(r.max_retries ?? 0)),
|
||||
el("td", boolPill(r.review_enabled)),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -260,6 +270,13 @@ function repositoriesCard(repos) {
|
||||
);
|
||||
}
|
||||
|
||||
// boolPill renders a config flag as the same pill used elsewhere on this
|
||||
// page (e.g. provider credential status), so "on"/"off" reads consistently
|
||||
// with the rest of the dashboard rather than as raw true/false text.
|
||||
function boolPill(value) {
|
||||
return value ? pill("on", "ok") : pill("off", "idle");
|
||||
}
|
||||
|
||||
function gateSummary(gate) {
|
||||
if (!gate?.length) return "—";
|
||||
return gate.map((cmd) => cmd.join(" ")).join(" → ");
|
||||
|
||||
Reference in new issue
Block a user