Skip to content

feat: shared board_links helper in the board theme + Heart publish in morning.sh #352

Closed

Description

@Jammy2211

Overview

The one-tap board family's canonical list lives in config/policy.yaml under board: boards: (brain, mind, cortex, memory, heart, hands, organism — the ruled organ order). PyAutoBrain's own renderers read it with a stdlib regex; three sibling renderers (PyAutoHeart, PyAutoHands, PyAutoMemory) each carry a stale hard-coded BOARD_FAMILY tuple with no Cortex chip and the wrong order. Give the shared theme one helper they can call instead.

Second: the Heart Pages board renders its eight dev-box check families grey ("not observed here — dev box last looked 6d ago") because pyauto-heart publish was last run 28 Aug and the observation expires after 48 h. bin/morning.sh already publishes the Brain dev-box board daily; it should tick and publish the Heart one beside it.

Plan

  • board/_theme.py gains board_links(base_url, current=None) -> dict[str, str] — reads the boards: block of config/policy.yaml with the same stdlib regex _intake._board_links uses (the theme module stays stdlib-only), preserves file order, skips current, returns {key: f"{base_url}/{repo}/"}.
  • A unit test pins the order and the dropped current key.
  • bin/morning.sh runs PyAutoHeart/bin/pyauto-heart tick && … publish beside the Brain publish, skipped under --no-publish, failure non-fatal.
Detailed implementation plan

Affected Repositories

  • PyAutoBrain (primary)

Branch Survey

Repository Current Branch Dirty?
./PyAutoBrain main clean
./PyAutoHeart main clean
./PyAutoHands main clean
./PyAutoMemory main clean

Suggested branch: feature/board-family-helper

Implementation Steps

  1. board/_theme.py — add board_links(base_url, current=None) beside boards_footer, plus the re / pathlib stdlib imports it needs.
  2. tests/test_board_theme.py — assert the returned order is brain, mind, cortex, memory, heart, hands, organism, that current is dropped, and that the URLs are <base>/<Repo>/.
  3. bin/morning.sh — add the Heart tick+publish leg after the Brain board.sh publish, under the same --no-publish guard, with the same "skipped" fallback message.

Key Files

  • board/_theme.py — the shared board theme (stdlib-only, presentation-only)
  • config/policy.yaml — board: boards: is the declared config surface
  • tests/test_board_theme.py — the theme's contract tests
  • bin/morning.sh — the local morning routine

Original Prompt

Click to expand starting prompt

See PyAutoMind/active/board_family_footer_shared_helper.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GnXNPigN6qWxLZy2cqhDBX

Activity

  1. Jammy2211 commented on Sep 4, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    Merged in #353 (feature/board-family-helper → main).

    • board/_theme.py gains board_links(base_url, current=None), reading the canonical board: boards: block of config/policy.yaml with the same stdlib regex _intake._board_links uses — the theme module stays stdlib-only (no yaml import), file order preserved, current skipped, returning {key: f"{base_url}/{repo}/"}.
    • tests/test_board_theme.py pins the ruled organ order (brain, mind, cortex, memory, heart, hands, organism) and that the current key is dropped.
    • bin/morning.sh now ticks and publishes the Heart dev-box board beside the Brain one, so the Heart Pages board stops rendering its eight check families grey; skipped under --no-publish, failure non-fatal with the same "skipped" message pattern.

    CI: Brain Tests (pull_request) green on both pytest legs at head cf669f11; mergeStateStatus CLEAN.

    This was the library-first base for the three sibling footer PRs, whose CI has been re-run against the merged helper: PyAutoHeart#201, PyAutoHands#277, PyAutoMemory#88.

    Record: PyAutoMind/complete/2026/09/board-family-helper.md.

  2. added a commit that references this issue on Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions