feat: update item count display in SpacesGrid to reflect shape items in snapshot

This commit is contained in:
2025-09-04 14:01:51 -03:00
parent e0068776a4
commit e18d7b529b

View File

@@ -215,7 +215,14 @@ export function SpacesGrid() {
</CardContent> </CardContent>
<CardFooter className="flex items-center justify-between pt-0 text-muted-foreground text-sm"> <CardFooter className="flex items-center justify-between pt-0 text-muted-foreground text-sm">
<span>{snapshot?.itemCount} items</span> <span>
{
Object.keys(snapshot?.store || {}).filter((key) =>
key.startsWith("shape:")
).length
}{" "}
items
</span>
<span>Edited {space.lastEdited}</span> <span>Edited {space.lastEdited}</span>
</CardFooter> </CardFooter>
</Card> </Card>