From 0f71fba0a4958b2a6a24e7ad9df24be04ccd0e09 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 24 Nov 2026 16:30:12 +0000 Subject: [PATCH] fix(hub): list commit-range files in the review overview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stage 2.0 now submits reviews whose change sits in a commit range (master..HEAD) instead of the staged tree. review_files() skipped every file inside a commit block, so the overview from the stream and the inbox showed "No diff available" while the full page held the diff. The parser now keeps those files under the section commits, and the tree pane titles it Commits. 🎯 Fix: 93 % 💥 Break: 2 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 91 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 --- orchestrator/kvb_orchestrator/review_page.py | 2 +- orchestrator/templates/page-constants.js | 2 +- tests/test_hub_reviews.py | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/orchestrator/kvb_orchestrator/review_page.py b/orchestrator/kvb_orchestrator/review_page.py index 2b9e5eb..9ee09c8 100644 --- a/orchestrator/kvb_orchestrator/review_page.py +++ b/orchestrator/kvb_orchestrator/review_page.py @@ -28,7 +28,7 @@ class ReviewPage(HTMLParser): if tag == "section": self.section = values.get("id") or "" elif tag == "details": - if first == "file" and "commit" not in self.details: + if first == "file": self.file = {"section": self.section, "status": "", "tags": [], "lines": []} self.texts = {name: [] for name in TEXTS} self.spans = [] diff --git a/orchestrator/templates/page-constants.js b/orchestrator/templates/page-constants.js index 9f99fb0..f0e96d3 100644 --- a/orchestrator/templates/page-constants.js +++ b/orchestrator/templates/page-constants.js @@ -27,7 +27,7 @@ running: ["running", "ok"], queued: ["waiting", "info"], blocked: ["blocked", "bad"], stale: ["stale", "warn"], pending: ["open", "warn"], done: ["done", "neutral"], stopped: ["stopped", "neutral"], approved: ["approved", "ok"], rejected: ["denied", "bad"], allowed: ["allowed", "ok"], denied: ["denied", "bad"], expired: ["expired", "neutral"], decided: ["decided", "ok"], failed: ["failed", "bad"], refused: ["refused", "bad"], }; - const SECTIONS = {staged: "Staged", unstaged: "Not staged", untracked: "Untracked"}; + const SECTIONS = {staged: "Staged", unstaged: "Not staged", untracked: "Untracked", commits: "Commits"}; const FILE_STATUS = {added: ["A", "ok"], deleted: ["D", "bad"], modified: ["M", "info"], renamed: ["R", "violet"], copied: ["C", "violet"], untracked: ["U", "warn"]}; const SIGNS = {add: "+", del: "-", ctx: " ", meta: " "}; const NODE_KINDS = {operator: "Operator", chair: "Chair", session: "Session", subagent: "Subagent"}; diff --git a/tests/test_hub_reviews.py b/tests/test_hub_reviews.py index 5f0206b..e3f911f 100644 --- a/tests/test_hub_reviews.py +++ b/tests/test_hub_reviews.py @@ -46,7 +46,9 @@ REVIEW_PAGE = """