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
33 changes: 23 additions & 10 deletions dashboard.html

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion pulse/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,14 @@ def render_html(views, now: str | None = None, campaign_data: dict | None = None
"<title>PyAutoPulse dashboard</title>"
"<!-- Generated by `bin/pyauto-pulse board`. Do not edit by hand. -->"
f"<style>{shared.css('pulse')}\n{CSS}\n{browser_css}</style></head><body>"
+ shared.hero("pulse", "Profiling dashboard")
+ shared.hero(
"pulse",
"Profiling dashboard",
navigation=[
{"href": "#campaigns", "label": "Active campaigns"},
{"href": "#evidence", "label": "Profiling evidence"},
],
)
+ "<main>"
+ campaigns.render_html(campaign_data if campaign_data is not None else campaigns.load())
+ "".join(content)
Expand Down
3 changes: 3 additions & 0 deletions tests/test_campaigns.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ def test_control_room_precedes_measurements_and_escapes():
board.render_html([], campaign_data=data),
board.render_markdown([], campaign_data=data),
):
# Check content order independently of the section navigation labels.
if "<main>" in text:
text = text.split("<main>", 1)[1]
assert (
text.index("Profiling Check In")
< text.index("Active campaigns")
Expand Down
Loading