feat(hub): every choice is one numbered dialog with an Other answer
Decisions, decision rows and hook questions render through one page-dialog.js: numbered options, check boxes for multi picks, the recommended option tagged, and a one-line Other answer; page-inbox.js and page-match.js drop their own option code. choosing.picks accepts one line of other text for every decision and decision row, not only hook questions, and approving checks a decision row's label through it and visible(). operator.py add --check decision now needs 2 to 4 --option values, as an AskUserQuestion offers (OPTION_FLOOR 2, OPTION_LIMIT 4 instead of 12), and refuses --option or --recommended on any other check; kvb-agent-optimize's graph.py passes two answers for each row it adds, and checks.md names the instruction-step answers Done= and Blocked=.
Stacked on questions (a6eee78); applied cleanly. ruff and node --check pass.
Tests: test_hub_decision_rows, test_hub_questions, test_operator, test_code_graph, test_hub_match and the Match waiting and question e2e updated. Written, not run: the full suite runs once on master after all bundles (operator order).
Security: MEDUSA over the staged tree on master: 100, no findings over 21 files; index.html.j2 is not covered and was read by hand (dialog style rules and the page-dialog.js include).
🎯 Fix: 90 %
💥 Break: 5 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 86
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %
Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a6eee78165
commit
88e53ac51f
22 files changed
+212
-181
No files matched your search
@@ -373,6 +373,14 @@ textarea + .mic-auto { display: flex; margin: 4px 0 0 auto; }
|
||||
.choice { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; align-items: start; }
|
||||
.choice-preview { margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); line-height: 1.45; white-space: pre; overflow: auto; max-height: 360px; }
|
||||
.text.question { font-weight: 600; }
|
||||
.options.dialog { counter-reset: option; }
|
||||
.options.dialog > .option { grid-template-columns: 2.4em minmax(0, 1fr); column-gap: 4px; }
|
||||
.options.dialog > .option > * { grid-column: 2; }
|
||||
.options.dialog > .option::before { counter-increment: option; content: counter(option) "."; grid-column: 1; grid-row: 1 / span 3; color: var(--muted); font-variant-numeric: tabular-nums; }
|
||||
.options.dialog[data-multi] > .option:not(.other)::before { content: counter(option) ". ☐"; }
|
||||
.options.dialog[data-multi] > .option[aria-pressed="true"]::before { content: counter(option) ". ☑"; color: var(--accent); }
|
||||
.option-tag { justify-self: start; font-style: normal; font-size: var(--fs-xs); padding: 0 7px; border: 1px solid var(--ok); border-radius: 999px; color: var(--ok); }
|
||||
.choice-send { justify-self: start; }
|
||||
@media (max-width: 720px) { .choice { grid-template-columns: 1fr; } }
|
||||
.inbox-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
|
||||
.inbox-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
|
||||
@@ -575,6 +583,7 @@ pre.notes { margin: 0; padding: 8px 10px; background: var(--sunken); border-radi
|
||||
{% include "page-reveal.js" %}
|
||||
|
||||
{% include "page-dom.js" %}
|
||||
{% include "page-dialog.js" %}
|
||||
|
||||
{% include "page-api.js" %}
|
||||
|
||||
|
||||
Reference in new issue
Block a user