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
1 change: 1 addition & 0 deletions .github/workflows/heart-health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:
PYTHONPATH="$PWD" python -m heart.dashboard --cloud --html > _site/index.html
PYTHONPATH="$PWD" python -m heart.dashboard --cloud --badge > _site/badge.json
PYTHONPATH="$PWD" python -m heart.dashboard --cloud --md > board.md
cp board.md _site/dashboard.md
# The README carries only the brief strip; the full board lives on
# the Pages page (one-tap 📋 fix prompts) and the step summary.
PYTHONPATH="$PWD" python -m heart.dashboard --cloud --md-brief > readme_strip.md
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sees into one authoritative verdict: **GREEN / STALE / YELLOW / RED**. GREEN
means it is safe to release.

See the **[PyAutoHeart Dashboard](https://pyautolabs.github.io/PyAutoHeart/)**
(mobile phone dashboard) for the whole picture on one page — every check a
for the whole picture on one page — every check a
traffic-light row, and every red or yellow finding carrying links to the
failing run and a one-tap 📋 button that copies a ready-made Claude prompt
(`/bug …`), so going from "something is red" to "an agent is fixing it" is
Expand All @@ -26,7 +26,7 @@ copy → paste, on a laptop or a phone.
<!-- The line below is auto-updated by .github/workflows/heart-health.yml (everything -->
<!-- between the heart:begin/heart:end markers is replaced with the rendered strip). -->
<!-- heart:begin -->
🔵 **STALE** · score 65 · [full board →](https://pyautolabs.github.io/PyAutoHeart/)
🔵 **STALE** · score 65 · [dashboard →](https://pyautolabs.github.io/PyAutoHeart/)
<!-- heart:end -->

## How PyAutoHeart works
Expand Down
10 changes: 5 additions & 5 deletions heart/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ def _render_md(board: Board) -> str:
emoji = _STATE_MD[_VERDICT_STATE.get(board.verdict, OK)]
age = format_age(board.age_seconds, stale=board.stale)
lines = [
f"## {emoji} PyAuto health — **{word}** (score {board.score})",
f"## {emoji} PyAutoHeart Dashboard — **{word}** (score {board.score})",
"",
f"_snapshot `{board.ts}` · {age}_"
+ (" ⚠️ **stale — run `pyauto-heart tick`**" if board.stale else ""),
Expand All @@ -944,7 +944,7 @@ def _render_md(board: Board) -> str:
status += f" · _{_md_escape(sec.observed_ago)}_"
lines.append(f"| {em} | {sec.title} | {status} |")
lines.append("")
lines.append(f"[Full board]({PAGES_URL})")
lines.append(f"[Dashboard]({PAGES_URL})")
return "\n".join(lines)


Expand All @@ -958,7 +958,7 @@ def _render_md_brief(board: Board) -> str:
word = _VERDICT_WORD.get(board.verdict, "GREEN")
emoji = _STATE_MD[_VERDICT_STATE.get(board.verdict, OK)]
lines = [
f"{emoji} **{word}** · score {board.score} · [full board →]({PAGES_URL})"
f"{emoji} **{word}** · score {board.score} · [dashboard →]({PAGES_URL})"
]
if board.verdict in ("red", "yellow"):
label, items = _shown_reasons(board)
Expand Down Expand Up @@ -1091,9 +1091,9 @@ def _render_html(board: Board) -> str:
function fb(t){{window.prompt('Copy this:',t)}}
</script></head>
<body><div class="wrap">
<h1>PyAuto organism health</h1>
<h1>PyAutoHeart Dashboard</h1>
<p><span class="verdict {vstate}">{word} · score {board.score}</span></p>
<p class="meta">snapshot {_html.escape(board.ts)} · {age}</p>
<p class="meta">snapshot {_html.escape(board.ts)} · {age} · <a href="dashboard.md">markdown version</a></p>
{stale_html}
{reasons_html}
<table>{''.join(rows)}</table>
Expand Down
Loading