From 0fb3d02ad1b169f38a7cad689f59c72a22915ee0 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 7 Oct 2026 12:05:22 +0100 Subject: [PATCH 1/2] feat: put slogan before navigation and collapse dashboard sections --- ears/board.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ears/board.py b/ears/board.py index 0943662..79c7d3c 100644 --- a/ears/board.py +++ b/ears/board.py @@ -205,7 +205,7 @@ def section(title, key, selected, empty): page = ('' 'PyAutoEars community board
' + '\n'.join(body) + '
') - return page, '\n'.join(md) + '\n' + return theme.section_layout(page), '\n'.join(md) + '\n' SCRIPT = r""" From b3a89eb9de7e53eca226f59343d3b9afcf77691a Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 7 Oct 2026 12:25:57 +0100 Subject: [PATCH 2/2] test: open collapsed board sections before browser interaction Major dashboard sections now start collapsed (PyAutoBrain#490). The browser smoke asserts that default, then opens #attention and #activity through their navigation cards (exercising the shared reveal) before interacting. Co-Authored-By: Claude Opus 5.5 --- tests/board_browser.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/board_browser.py b/tests/board_browser.py index 41e0e38..e901ab3 100644 --- a/tests/board_browser.py +++ b/tests/board_browser.py @@ -55,6 +55,13 @@ def main(): page.emulate_media(color_scheme=scheme) assert not page.evaluate("document.documentElement.scrollWidth > innerWidth"), (width, scheme) page.screenshot(path=str(output / f"synthetic-{width}-{scheme}.png"), full_page=True) + # Major sections start collapsed (PyAutoBrain#490); the nav card reveals its target. + sections = page.locator('details.board-section') + assert sections.count() == 3 + assert sections.evaluate_all('(nodes) => nodes.every((d) => !d.open)') + assert not page.locator('#attention').is_visible() + page.locator('.board-nav-card[href="#attention"]').click() + page.wait_for_function("document.getElementById('attention').closest('details.board-section').open") followup_topic = page.locator('#attention .topic').filter(has_text='New request on a closed discussion') followup_topic.locator(':scope > summary').click() assert 'Closed ยท Answered' in followup_topic.inner_text() @@ -85,6 +92,8 @@ def main(): page.wait_for_function("document.getElementById('copy-status').textContent === 'Prompt copied'") copied = page.evaluate("navigator.clipboard.readText()") assert "community" in copied and "https://github.com/example/lib/issues/1" in copied + page.locator('.board-nav-card[href="#activity"]').click() + page.wait_for_function("document.getElementById('activity').closest('details.board-section').open") page.locator('#activity .topic summary').first.click() follow = page.get_by_role("button", name="Copy follow-through prompt").first follow.click()