mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 08:02:12 +00:00
The tile strip only painted once `trendCards.length > 0`. When both slim + thick `/api/analytics` slices lagged (cache eviction, cold start) the user saw the page header + zero tiles + then a burst of tiles seconds later. Reserve the strip's footprint by rendering N silhouette cards (`auto-fit minmax(min(100%,11rem),1fr)` track, matching the real strip) keyed off the user's configured tile count while `analyticsSlimQuery.isLoading`. The placeholders swap to the real tiles the moment slim resolves; the EmptyState branch is suppressed for the loading window so the user no longer sees a flash of "no data" when the network is just slow.