From 7fae8cbf6dacf5e9c625a2d3e8a25444253fd595 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Fri, 13 Nov 2026 18:31:58 +0000 Subject: [PATCH 1/3] =?UTF-8?q?feat(intake,batch):=20editable=20Mind=20das?= =?UTF-8?q?hboard=20=E2=80=94=20=E2=98=85=20per=20task=20row,=20Goals=20bo?= =?UTF-8?q?x,=20brief=20--new=20(PyAutoMind#565)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Design B, as ruled 2026-11-13. The published dashboard becomes the Mind's write door for queue.md and goals.md; the Mind's dashboard_input.yml does the validating and committing. - dashboard.html: a ★ toggle on every prompt row (pressed with its queue position, matched by basename, in every section), and a Goals and queue box above the section cards with a Connect panel for the token. The page reads right with JS off; stars stay disabled until a token is present. - dashboard_edit.js (inlined into the one ", page, re.S) + if len(scripts) != 1: + raise ValueError(f"dashboard.html must carry exactly one inline script, " + f"found {len(scripts)}") + digest = base64.b64encode(hashlib.sha256(scripts[0].encode("utf-8")).digest()).decode() + csp = ("default-src 'none'; " + f"script-src 'sha256-{digest}'; " + "style-src 'unsafe-inline'; " + "connect-src https://api.github.com; " + "img-src data:; base-uri 'none'; form-action 'none'") + meta = (f'\n' + '') + return page.replace('', '\n' + meta, 1) + + def render_dashboard_html(c: dict) -> str: """Render the census as `dashboard.html` — the one-tap-copy twin. @@ -2617,12 +2805,18 @@ def render_dashboard_html(c: dict) -> str: def link(path, text_html): return f'{text_html}' + queued = queued_names(c.get("queue") or []) + + def star(path, title): + return _star_button(path, title, queued) + def record_row(r): text = link(r["path"], _summary_label(r["title"])) + pills( *(_summary_label(x) for x in (r["target"], r["difficulty"], r["autonomy"], r["priority"])), work_type=r["work_type"]) - return _html_task(text, f"Use the start-dev skill. {r['path']}") + return _html_task(text, f"Use the start-dev skill. {r['path']}", + star(r["path"], r["title"])) H = [ "", @@ -2633,7 +2827,7 @@ def record_row(r): "PyAutoMind Dashboard", f"", - f"", + f"", "", "", hero(THEME_ORGAN, "Dashboard", navigation=_dashboard_navigation(c), @@ -2678,6 +2872,7 @@ def record_row(r): work_links=[{"label": "Open Mind repository", "href": home}] if home else [], organ="mind", refreshed_at=c.get("refreshed_at"), refresh_url=home + "/actions/workflows/dashboard_refresh.yml" if home else None)) + H += _steer_html(c, link) if c.get("drift"): H += ['

⚠️ Needs lifecycle reconciliation — draft prompts ' "whose body records a fix PR (done, never advanced):

", "