diff --git a/heart/dashboard.py b/heart/dashboard.py index 9a16001f..ffcf60c0 100644 --- a/heart/dashboard.py +++ b/heart/dashboard.py @@ -145,6 +145,19 @@ def _library_names() -> tuple: # that links "the webpage" agrees on the URL. PAGES_URL = "https://pyautolabs.github.io/PyAutoHeart/" +# The one-tap board family โ€” the cross-board footer nav every board carries, +# each board skipping its own entry. The base comes from PAGES_URL so the +# owner is named exactly once in this file. +BOARD_FAMILY = (("mind", "PyAutoMind"), ("brain", "PyAutoBrain"), + ("hands", "PyAutoHands"), ("memory", "PyAutoMemory"), + ("organism", "PyAutoScientist")) + + +def _boards_nav_html() -> str: + base = PAGES_URL.rsplit("/", 2)[0] + return " ยท ".join(f'{name}' + for name, repo in BOARD_FAMILY) + # v2: sections gained links/action/observed_ago; the board gained structured # `blockers` ({text, severity, repo, repo_url, run_url, prompt}). Additive. SCHEMA_VERSION = 2 @@ -1100,6 +1113,7 @@ def _render_html(board: Board) -> str: +

Boards: {_boards_nav_html()}

"""