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
2 changes: 1 addition & 1 deletion config/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ board:
# (yaml) and by the Mind renderer's footer (stdlib regex on this block —
# keep one `name: Repo` pair per line).
boards:
organism: PyAutoScientist
brain: PyAutoBrain
mind: PyAutoMind
cortex: PyAutoCortex
Expand All @@ -176,4 +177,3 @@ board:
nerves: PyAutoNerves
broca: PyAutoBroca
gut: PyAutoGut
organism: PyAutoScientist
3 changes: 2 additions & 1 deletion docs/board-navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ arguments. Logos, wordmarks, taglines and banner styling are unchanged.
| Scientist | Overview |

The shared navigation follows `config/policy.yaml` → `board.boards`, with Broca
immediately after Nerves. Consumers adopt these labels and this order when their
immediately after Nerves and Scientist first. Every board’s footer excludes its
own entry; Scientist’s organ footer sits below its dashboard cards. Consumers adopt these labels and this order when their
boards are regenerated with the updated Brain checkout.

`board/_theme.py::hero(key, kind, lede_html='', navigation=(), navigation_columns=None)` retains its
Expand Down
8 changes: 4 additions & 4 deletions tests/test_board_theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ def test_board_links_reads_the_declared_family_in_file_order():
# ad-hoc order). This helper is the one read, so the order it returns is
# the order `config/policy.yaml` declares — the ruled organ order.
links = _theme.board_links("https://example.invalid")
assert list(links) == ["brain", "mind", "cortex", "memory", "eyes", "ears",
"heart", "hands", "pulse", "insight", "dna", "nerves", "broca", "gut", "organism"]
assert list(links) == ["organism", "brain", "mind", "cortex", "memory", "eyes", "ears",
"heart", "hands", "pulse", "insight", "dna", "nerves", "broca", "gut"]
assert list(links) == POLICY_BOARDS
assert links["cortex"] == "https://example.invalid/PyAutoCortex/"

Expand All @@ -308,8 +308,8 @@ def test_board_links_renders_the_family_footer_end_to_end():
footer = _theme.boards_footer(
_theme.board_links("https://example.invalid", "heart"), "heart")
order = re.findall(r'data-organ="(\w+)"', footer)
assert order == ["brain", "mind", "cortex", "memory", "eyes", "ears", "hands",
"pulse", "insight", "dna", "nerves", "broca", "gut", "organism"]
assert order == ["organism", "brain", "mind", "cortex", "memory", "eyes", "ears", "hands",
"pulse", "insight", "dna", "nerves", "broca", "gut"]


def test_board_links_returns_nothing_when_the_config_is_unreadable():
Expand Down
Loading