Skip to content

The Heart board joins the family look - #169

Merged
Jammy2211 merged 2 commits into
mainfrom
claude/dashboard-banner-logo-match-wuwst7
Aug 24, 2026
Merged

The Heart board joins the family look#169
Jammy2211 merged 2 commits into
mainfrom
claude/dashboard-banner-logo-match-wuwst7

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

One of five: the boards that had not yet adopted the shared theme (PyAutoBrain#262, which drew each organ's logo glyph as the hero mark). Siblings: PyAutoHands, PyAutoMemory, PyAutoScientist.

The health board carried its own copy of the GitHub-grey stylesheet — a plain <h1>, dark-only, GitHub-blue links, verdict pills in colours picked here rather than from the logo above the README.

What changed

  • Renders through the Brain's board/_theme.py: the hero (the heart with its ECG and check badge, the wordmark, the hairline-and-dot rule, the tagline), the accent as link and heading colour, light and dark.
  • Imported, never copied. heart-health.yml and heart-tests.yml check PyAutoBrain out beside this repo; a local run resolves $PYAUTO_BRAIN, either checkout path, or $PYAUTO_ROOT (default ~/Code). Vendoring a fifth copy of the stylesheet is the drift _theme.py exists to end.
  • Only the html surface calls the theme. md, json and badge are untouched, so the Health Agent and mobile keep reading the same contract with no PyAutoBrain in reach. Nothing here changes what the Heart observes or how it scores — a look is not evidence.
  • The per-row state dot, evidence lists and stale banner stay, rewritten against the theme's variables so this board follows the family accent instead of setting a second palette. Verdict tone maps once (red/yellow/stale/green → bad/warn/warn/ok); _VERDICT_STATE stays the internal truth.
  • Copy chips move to the family's delegated handler (data-cmd), replacing the per-page script.

Verification

  • pytest tests/ -q — 587 passed; both CI legs (3.12, 3.13) green.
  • New test asserts the page carries this board's mark, tagline and accent, and that the old hard-coded #58a6ff is gone.
  • Page rendered and screenshotted from the failing-snapshot fixture.

CI caught one thing (second commit): the first resolver spelled its last fallback ~/Code/PyAutoLabs/PyAutoBrain, and the tenant firewall rightly rejects an org name in organ code. It reads $PYAUTO_ROOT instead — same resolution, no instance fact.

claude added 2 commits August 24, 2026 17:23
The health board carried its own copy of the GitHub-grey stylesheet: a plain
h1, dark-only, GitHub-blue links, and verdict pills in colours picked here
rather than from the logo above the README.

It renders through the Brain's `board/_theme.py` instead: the hero (the heart
with its ECG and check badge, the wordmark, the hairline-and-dot rule, the
tagline), the accent as link and heading colour, and the verdict as the
family's banner. The theme is imported, never copied — heart-health.yml and
heart-tests.yml check PyAutoBrain out beside this repo, and a local run
resolves the sibling checkout the way the other PyAuto tools find each other.

Only the html surface calls the theme. The md, json and badge surfaces are
untouched, so the Health Agent and mobile keep reading the same contract with
no PyAutoBrain in reach — a look is not evidence, and nothing here changes
what the Heart observes or how it scores.

The per-row state dot, the evidence lists and the stale banner stay here,
written against the theme's variables so this board follows the family accent
rather than setting a second palette. Verdict tone maps once
(red/yellow/stale/green → the theme's bad/warn/warn/ok); `_VERDICT_STATE`
stays the internal truth.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FhsBsESQUAoJQ2fvLiDD5j
The tenant firewall caught it (PyAutoHeart#169 CI): the theme resolver's last
candidate was a literal `~/Code/PyAutoLabs/PyAutoBrain`, and the org's own
directory name is an instance fact — organ code may not carry one, whatever
the local convention happens to be.

The fallback reads `$PYAUTO_ROOT` instead (defaulting to `~/Code`), the same
declared surface the dev-flow doors use. `$PYAUTO_BRAIN` and the two checkout
paths are unchanged, so CI and a sibling workspace both resolve exactly as
before.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FhsBsESQUAoJQ2fvLiDD5j
@Jammy2211
Jammy2211 merged commit 7e5450e into main Aug 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants