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
+4
View File
@@ -598,6 +598,9 @@ class DashboardSummary(BaseModel):
version: int = 1
#: The grid `footprint` is placed in — see ``DashboardDef.columns``.
columns: int = 12
#: A round dashboard's widgets are faces rather than tiles, so a list
#: draws them as a circle instead of at the grid places they carry.
shape: Literal["rect", "round"] = "rect"
#: Every widget's shape, so a list can draw the dashboard's outline
#: without a document read per tile.
footprint: list[WidgetFootprint] = Field(default_factory=list)
@@ -666,6 +669,7 @@ class DashboardStore:
has_draft=defn.has_draft,
version=defn.version,
columns=defn.columns,
shape=defn.shape,
footprint=defn.footprint,
updated_at=self.updated_at(name),
)