feat(hub): requirements 023 to 031 and line comments on grant-time code
023 box heads: one head band per box under its top border; in widget mode its controls join the widget title band. 024 Match card content: merge cards show their diff (the runner previews a review's tree against its worktree HEAD), every card carries legal and architecture scores, the null under command cards is gone. 025 Radio speak card: no hint text, a rounder flowing card, a MAYDAY toggle beside push to talk. 026 widget zoom: zoom a widget's content by keyboard and the context menu. 027 slash skill suggestions: every field that messages agents suggests skills after a slash, from a skills index the tree timer writes. 028 Resources accounts: an Accounts panel (provider, renewal, resets, usage and remaining, host-local, emails never in git) and panel checkboxes. 029 Controls layout: Rules and Groups pages laid out. 030 Yes/No answers as buttons, and nothing hides: rows the runner cannot run stay greyed with the reason. 031 mic in fields. Line comments (operator 2026-11-24): wherever code waits for a grant (Waits on Operator, the stream, the review overlay) selected lines or a right-clicked row take a comment that marks its lines and collects on the card; Deny opens with them as the reason and Call preselected, Grant sends them after the signed grant as one post. Requirement 003 decision 4 and its contract follow. Tests are written for every requirement and run once on this head. 🎯 Fix: 80 % 💥 Break: 20 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: ~95 % 🏆 Score: 61 🚦 Gate: ⛔ fix 80 % < 90, break 20 % > 5; security ~95 % < 100: ask the operator before the commit Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7d1926e3de
commit
2722cda1b5
120 files changed
+5372
-486
No files matched your search
@@ -8,7 +8,7 @@ from hub_case import HubCase
|
||||
from hub_support import HUB
|
||||
|
||||
TEMPLATES = HUB / "templates"
|
||||
MODULES = ["page-constants.js", "page-reveal.js", "page-dom.js", "page-dialog.js", "page-inbox.js", "page-grant.js"]
|
||||
MODULES = ["page-constants.js", "answers.js", "page-reveal.js", "page-dom.js", "page-dialog.js", "page-inbox.js", "page-grant.js"]
|
||||
PROBE = r"""
|
||||
const fs = require("fs");
|
||||
const vm = require("vm");
|
||||
@@ -118,17 +118,9 @@ const results = {};
|
||||
results.keys = {submits: submits.splice(0), stopped, focused: document.activeElement === null ? "" : document.activeElement.tag};
|
||||
press("4");
|
||||
results.keys.other = document.activeElement.tag;
|
||||
const denials = [];
|
||||
denyNow = (item, channel, reason) => { denials.push([item.id, channel, reason]); };
|
||||
const asking = inboxItem(items.ask, 6);
|
||||
results.ask = {options: shape(asking).options, other: shape(asking).other};
|
||||
await optionNamed(asking, "No").fire("click");
|
||||
const tell = classed(asking, "other")[0];
|
||||
all(tell).find((el) => el.tag === "input").value = " Yes ";
|
||||
await tell.fire("submit");
|
||||
await optionNamed(asking, "Yes").fire("click");
|
||||
results.ask.denials = denials.splice(0);
|
||||
results.ask.grants = submits.splice(0).map((label) => label.split(":")[0]);
|
||||
const buttons = all(asking).filter((el) => el.tag === "button").map((el) => el.getAttribute("aria-label"));
|
||||
results.ask = {options: shape(asking).options, other: shape(asking).other, choice: shape(asking).choice, grant: buttons.includes("Grant"), deny: all(asking).some((el) => el.tag === "deny")};
|
||||
const look = (item) => {
|
||||
const node = inboxItem(item, 0);
|
||||
return [waitOf(item), (node.attrs.class || "").split(" ").includes("pending"), classed(node, "wait-spin").length, node.attrs.title || ""];
|
||||
@@ -211,11 +203,8 @@ class TestDecisionRows(unittest.TestCase):
|
||||
self.assertEqual((keys["submits"], keys["stopped"], keys["focused"]), (["Choice: B"], 1, ""))
|
||||
self.assertEqual(keys["other"], "input")
|
||||
|
||||
def test_a_permission_ask_offers_yes_and_no_and_typed_text_always_denies_with_it_as_the_reason(self):
|
||||
ask = self.data["ask"]
|
||||
self.assertEqual((ask["options"], ask["other"]), ([["Yes", False], ["No", False]], 1))
|
||||
self.assertEqual(ask["denials"], [["a-1", "post", ""], ["a-1", "post", "Yes"]])
|
||||
self.assertEqual(ask["grants"], ["Grant"])
|
||||
def test_a_permission_ask_shows_no_numbered_form_and_its_grant_and_deny_buttons_answer_it(self):
|
||||
self.assertEqual(self.data["ask"], {"options": [], "other": 0, "choice": 0, "grant": True, "deny": True})
|
||||
|
||||
|
||||
class TestDecisionFeed(HubCase):
|
||||
|
||||
Reference in new issue
Block a user