From e0f82cc36bc7601069056cc1732dc4ea5b4d1ab8 Mon Sep 17 00:00:00 2001 From: Justin Parker Date: Sat, 28 Nov 2026 22:29:52 -0800 Subject: [PATCH] Give Help a Review Loop topic and open it from both Review Loop links AI Assisted --- .../AGENTS-architecture-console-design.md | 2 +- .../AGENTS-architecture-console-page.md | 2 +- .plan2code/lessons/general.md | 15 ++- .readme/web-console.md | 2 +- AGENTS.md | 2 +- CHANGELOG.md | 1 + scripts/test-web-console-session.mjs | 10 +- scripts/test-web-console-source.mjs | 17 +++ src/web-console/public/help.js | 1 + src/web-console/public/index.html | 108 ++++++++++++++++++ src/web-console/public/screens/dashboard.js | 2 +- .../public/screens/review-loop-setup.js | 4 +- 12 files changed, 152 insertions(+), 14 deletions(-) diff --git a/.agents-docs/AGENTS-architecture-console-design.md b/.agents-docs/AGENTS-architecture-console-design.md index 5a93c21..97ce418 100644 --- a/.agents-docs/AGENTS-architecture-console-design.md +++ b/.agents-docs/AGENTS-architecture-console-design.md @@ -60,7 +60,7 @@ Key design points: - **A loop stop leads with why and what to do next, in two places.** `evidence_markdown` in `loop_driver.rs` opens the report doc with a `> [!CAUTION]` box (the reason, then the stop line) and a `> [!TIP]` box (the advice); `render.js` draws a blockquote that opens with either marker as a colored `md-alert` and hides the marker. The stop card shows the same two as `.loop-why` and `.loop-advice` from `loopEnd.advice`. The advice is the failed phase's own `loopOutcome.nextStep` (one line, 300 characters, optional, only for a `failed` report that refused the phase), else `stop_advice()`'s words for the cause. `failed_words` puts the reason before the agent's summary, since a failed report's summary often reads like success. - **`validate()` in `patches.mjs` enforces four workflow rules mechanically**: max three open required questions, no internal vocabulary in a title, one recommended option, and no loop markers or metrics-scraper bait. - **The palette is written twice for dark, and that duplication is the mechanism.** `@media (prefers-color-scheme: dark) :root:not([data-theme="light"])` follows the system; `:root[data-theme="dark"]` is the explicit choice from the colors panel. Drop the `:not()` and a system-dark browser overrides someone who asked for light. A chosen accent is applied as an inline custom property on `:root` (CSSOM, which the CSP allows), and the default is applied by REMOVING that override so the stylesheet's own per-theme values win. The server's `data-looks-accent` stand-in only lasts until `applyLooks()` runs, which removes it first thing — left on, its rule would beat "Reset this tab". -- **Help is in the page, built on first open.** The **?** button (`#btn-about`) opens ``, which replaced the old "What this page is" About dialog. Its 23 panels (in four groups, with a filter box above the tab list) and their icon sheet are hand-written HTML and SVG in `