Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion agents/conductors/intake/_intake.py
Original file line number Diff line number Diff line change
Expand Up @@ -2316,7 +2316,8 @@ def record_row(r):
"</div>"]
if home:
H.append(f'<p class="muted mdsrc">'
f'{link("dashboard.md", "markdown version")}</p>')
f'{link("dashboard.md", "markdown version")} · '
f'{link("README.md", "GitHub Page")}</p>')
if c.get("drift"):
H += ['<p>⚠️ <b>Needs lifecycle reconciliation</b> — draft prompts '
"whose body records a fix PR (done, never advanced):</p>", "<ul>"]
Expand Down
9 changes: 9 additions & 0 deletions board/_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,7 @@ def collect():
data = {
"generated": now.strftime("%Y-%m-%d %H:%M UTC"),
"org": org,
"repo": board_family.get("brain", "PyAutoBrain"),
"overnight": overnight,
"heart": heart,
"heart_blockers": heart_blockers,
Expand Down Expand Up @@ -1288,6 +1289,14 @@ def render_html(data):
# page. `–` where a source was unreachable: an absent count is never a
# zero here, the same contract the rows keep.
H.append(stats(*section_counts(data)))
# The sibling boards' header line: the markdown twin (written beside
# index.html by --apply, so the relative href resolves on Pages) and the
# way back to the repository front door on github.com.
if data.get("org") and data.get("repo"):
gh = (f'https://github.com/{data["org"]}/{data["repo"]}'
"/blob/main/README.md")
H.append('<p class="muted mdsrc"><a href="board.md">markdown '
f'version</a> · <a href="{_attr(gh)}">GitHub Page</a></p>')
H.append("<h2>⌨ Morning sync (local)</h2>")
H.append(_row(
"Sync every repo to main + clean generated cruft — run in a terminal "
Expand Down
9 changes: 7 additions & 2 deletions tests/test_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
BRAIN = BRAIN_HOME / "bin" / "pyauto-brain"

SURFACE_KEYS = {
"generated", "org", "overnight", "heart", "heart_blockers", "heart_plan",
"performance",
"generated", "org", "repo", "overnight", "heart", "heart_blockers",
"heart_plan", "performance",
"hands", "versions", "community", "resume", "open_issues", "hygiene",
"devbox", "autonomy", "doors", "boards", "degraded", "history",
}
Expand Down Expand Up @@ -392,6 +392,11 @@ def test_html_is_self_contained_with_one_tap_payloads(tmp_path):
assert 'data-cmd="bash PyAutoBrain/bin/morning.sh"' in page
# The doors roster is on the page.
assert 'data-cmd="/intake"' in page
# The header line every sibling board carries: the markdown twin and the
# way back to the repository front door on github.com.
assert '<a href="board.md">markdown version</a>' in page
assert ('<a href="https://github.com/ExampleOrg/PyAutoBrain/blob/main/'
'README.md">GitHub Page</a>') in page


# --------------------------------------------------------------- the look --
Expand Down
2 changes: 2 additions & 0 deletions tests/test_intake_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,8 @@ def test_html_sections_link_their_markdown_source(tmp_path):
for src in ("active.md", "epics.md", "parked.md", "planned.md"):
assert f'/blob/main/{src}">markdown version</a>' in html, src
assert '/tree/main/draft">markdown version</a>' in html
# The page header also links back to the repository front door.
assert '/blob/main/README.md">GitHub Page</a>' in html


# --------------------------------------------------------------------------- #
Expand Down
Loading