Draw a round dashboard in the mosaic as its circle with a dot per face

DashboardSummary carries the dashboard's shape, so the list no longer lays
a round dashboard's faces out at grid places they never use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
2026-10-15 15:54:47 +02:00
co-authored by Claude Opus 5.5
parent 9586a9fbc3
commit cea442d125
5 changed files with 46 additions and 0 deletions
+7
View File
@@ -415,6 +415,7 @@ def test_a_summary_carries_the_footprint_of_the_document(store: DashboardStore):
(summary,) = store.list()
assert summary.columns == saved.columns
assert summary.shape == "rect"
assert [(f.type, f.x, f.y, f.w, f.h) for f in summary.footprint] == [
("chart", 2, 1, 6, 4),
("gauge", 0, 5, 2, 2),
@@ -422,6 +423,12 @@ def test_a_summary_carries_the_footprint_of_the_document(store: DashboardStore):
]
def test_a_summary_says_a_dashboard_is_round(store: DashboardStore):
store.write(DashboardDef(name="knob", shape="round"))
assert store.list()[0].shape == "round"
def test_a_summary_carries_when_the_working_copy_was_written(store: DashboardStore):
published = store.write(default_dashboard("house"))
document = store.root / "house" / "dashboard.json"