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
6 changes: 1 addition & 5 deletions scripts/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -1613,11 +1613,7 @@ def _fresh_span(fresh: dict, now_text: str, stale_text: str,
if filing_items:
navigation.insert(0, {"href": "#filings", "label": "Filings awaiting merge", "count": len(filing_items)})
hero = t_.hero(BOARD_KEY, "Dashboard", _LEDE, navigation=navigation)
# The way back from the Pages board to the repository front door; the
# segment drops out when the snapshot carries no owner/repo.
repo_url = _repo_url(snapshot)
github_link = (f' · <a href="{repo_url}/blob/main/README.md">'
"GitHub Page</a>" if repo_url else "")
panel = t_.orchestration_panel(
"memory", "", "", CHECKIN_PROMPT,
work_links=([{"label": snapshot["repo"], "href": repo_url}] if repo_url else []),
Expand All @@ -1642,7 +1638,7 @@ def _fresh_span(fresh: dict, now_text: str, stale_text: str,
{hero}
{panel}
<section id="catch-up">{_catch_up_html(snapshot)}</section>
<p class="muted mdsrc"><a href="dashboard.md">markdown version</a>{github_link}{onetap}</p>
<p class="muted mdsrc"><a href="dashboard.md">markdown version</a>{onetap}</p>
<div id="toast"></div>
{filings_block}
<h2 id='arxiv-inbox'>arXiv inbox <span class="muted">(suggested overnight — un-acted papers
Expand Down
3 changes: 1 addition & 2 deletions tests/test_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ def test_paper_links_and_issue_actions(tmp_path):
markdown_link = re.search(r'<a\b[^>]*href="dashboard.md"[^>]*>', html)
assert markdown_link is not None
assert 'aria-label="Markdown version"' in markdown_link.group(0)
assert ('<a href="https://github.com/PyAutoLabs/PyAutoMemory/blob/main/'
'README.md">GitHub Page</a>') in html
assert 'GitHub Page</a>' not in html
# ref'd paper → its abstract page; bare title → an arXiv title search
assert "https://arxiv.org/abs/2406.01234" in html
assert ("https://arxiv.org/search/?searchtype=title&amp;query=Title%20One"
Expand Down
Loading