From 43b16a3943c11a1aab164118e9be55b2b993da83 Mon Sep 17 00:00:00 2001
From: Jammy2211
Date: Mon, 16 Nov 2026 15:40:32 +0000
Subject: [PATCH 1/3] feat(intake): Goals and Queue as collapsible blocks above
Start here (#650)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The Mind dashboard's read-only Goals and Queue box at the top of the page
becomes two plain
sections rendered straight before Start here, so the
shared section_layout folds each into the same details.board-section block
as every other section: closed by default, a count badge (owner-supplied via
section_layout's summaries, since they have no nav card) and the markdown
source icon linking goals.md / queue.md. Queue rows keep their star/rank and
copy button; nothing interactive is added and the CSP is unchanged.
- The old
"]
return H
@@ -2759,7 +2764,7 @@ def _inbox_md(c: dict) -> list:
def _inbox_html(c: dict, link) -> list:
- """The read-only questions inbox, straight after the steering box (M3.5,
+ """The read-only questions inbox, straight after the orchestration panel (M3.5,
PyAutoBrain#645). Server-rendered with no script of its own: each Open
question carries the 📋 every task row has, copying `Use the questions
skill. Q` to paste into a chat; the heading's 📋 copies `Use the
@@ -2805,21 +2810,18 @@ def _inbox_html(c: dict, link) -> list:
return H
-def _steer_first(page: str) -> str:
- """Lift the Goals and queue box above the section cards.
+def _inbox_first(page: str) -> str:
+ """Lift the questions inbox above the section cards.
The shared layout moves the orchestration panel above the navigation
- cards; the steering box belongs straight after it, at the top of the
- first screen, not below seven count cards. The questions inbox that
- follows it (M3.5) travels with it."""
- start = page.find('", start) + len("")
- inbox = page.find('", inbox) + len("")
box = page[start:end]
page = page[:start] + page[end:]
return page[:nav] + box + "\n" + page[nav:]
@@ -2933,7 +2935,6 @@ 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)
H += _inbox_html(c, link)
if c.get("drift"):
H += ['
⚠️ Needs lifecycle reconciliation — draft prompts '
@@ -2958,6 +2959,20 @@ def record_row(r):
H.append(_html_task(text, _looks_shipped_payload(f)))
if c["batch"] is not None:
H.append(_status_box_html(c["batch"]))
+
+ def h2(title, src):
+ # Every section links the markdown file it is rendered from — the
+ # registry file is the full record, the page is the view.
+ a = (f' markdown '
+ "version") if blob else ""
+ anchor = {"In flight": "in-flight",
+ "Planned": "planned", "Backlog": "backlog",
+ "Epics": "epics", "Goals": "goals",
+ "Queue": "queue"}.get(title)
+ prefix = f'' if anchor else ""
+ return prefix + f"
{title}{a}
"
+
+ H += _steer_html(c, link, h2)
H += ['
Start here
']
members = _epic_members(c)
@@ -2976,17 +2991,6 @@ def record_row(r):
H += [f'
{title} ({note}){more}
']
H += [record_row(r) for r in shown] or ['
(none right now)
']
- def h2(title, src):
- # Every section links the markdown file it is rendered from — the
- # registry file is the full record, the page is the view.
- a = (f' markdown '
- "version") if blob else ""
- anchor = {"In flight": "in-flight",
- "Planned": "planned", "Backlog": "backlog",
- "Epics": "epics"}.get(title)
- prefix = f'' if anchor else ""
- return prefix + f"
{title}{a}
"
-
known = {e["slug"] for e in c.get("epics") or []}
stray = [s for s in members if s not in known]
H += [h2("Epics", "epics.md")]
@@ -3133,7 +3137,11 @@ def h2(title, src):
if footer:
H.append(footer)
H += [f"", "