diff --git a/scripts/board.py b/scripts/board.py index 9fedc37..fa3413a 100644 --- a/scripts/board.py +++ b/scripts/board.py @@ -1434,7 +1434,11 @@ def _render_html_index(snap: dict) -> str: work_links.append({"label": source["repo"] + " repository", "href": "https://github.com/" + work_slug}) panel = t_.orchestration_panel("nerves", "", "", CHECKIN_PROMPT, - organ="nerves", work_links=work_links) + organ="nerves", work_links=work_links, + refreshed_at=(snap.get("generated") + if not snap.get("errors") else None), + refresh_url=(repo_url(snap) + "/actions/workflows/nerves_board.yml") + if repo_url(snap) else None) body = f"""{t_.hero(BOARD_KEY, "Board", lede, navigation=navigation)} {panel}

{st.upper()} diff --git a/test_autonerves/test_board.py b/test_autonerves/test_board.py index 51b7cfb..c74d75b 100644 --- a/test_autonerves/test_board.py +++ b/test_autonerves/test_board.py @@ -641,3 +641,20 @@ def panel(key, title, description, prompt, **kwargs): "https://github.com/SomeOrg/LibHigh", "https://github.com/SomeOrg/ws_demo"} assert "Treat possibly unused keys as investigation leads" in captured["prompt"] assert "check compatibility and downstream use before proposing removal or renaming" in captured["prompt"] + + +def test_panel_uses_collection_time_and_owner_refresh(snap, monkeypatch): + captured = {} + def panel(*args, **kwargs): + captured.update(kwargs) + return "" + + monkeypatch.setattr(FAKE_THEME, "orchestration_panel", panel) + + snap["generated"] = "2026-10-07T09:00:00Z" + board.render(snap, 'html-index') + assert captured["refreshed_at"] == snap["generated"] + assert captured["refresh_url"] == "https://github.com/SomeOrg/PyAutoNerves/actions/workflows/nerves_board.yml" + snap["errors"] = ["source collection failed"] + board.render(snap, "html-index") + assert captured["refreshed_at"] is None