From 28b4ed2cd8f9fe1edb473467597715811bb9bb1d Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 8 Oct 2026 12:02:39 +0100 Subject: [PATCH] fix: standardize dashboard controls and remove redundant chrome --- autohands/board.py | 5 +---- tests/test_board.py | 7 +++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/autohands/board.py b/autohands/board.py index 4f390f85..3074120f 100644 --- a/autohands/board.py +++ b/autohands/board.py @@ -565,9 +565,6 @@ def _render_html(snapshot: dict) -> str: refreshed_at=snapshot.get("generated") if not snapshot.get("errors") else None, refresh_url=(f"https://github.com/{gh_owner}/{gh_repo}/actions/workflows/release_board.yml" if gh_owner and gh_repo else None)) - github_link = (f' · GitHub Page' - if gh_owner and gh_repo else "") return t_.section_layout(f""" @@ -579,7 +576,7 @@ def _render_html(snapshot: dict) -> str: {panel}

{head}{head_age}

Heart · -markdown version{github_link}

+markdown version

{chips}

Libraries

{''.join(lib_rows)}
diff --git a/tests/test_board.py b/tests/test_board.py index f0894e55..20670686 100644 --- a/tests/test_board.py +++ b/tests/test_board.py @@ -106,10 +106,9 @@ def test_badge_shape(): def test_html_is_self_contained(): out = board.render(SNAP, "html") assert out.lstrip().startswith("") - # The header links the markdown twin and the repository front door. - assert 'markdown version' in out - assert ('GitHub Page') in out + # Keep the Markdown source without the redundant repository link. + assert 'href="dashboard.md"' in out + assert 'GitHub Page' not in out # No external ASSETS: no src=, no , no fetches; inline