Let a dashboard be read against runs instead of the live engine

This commit is contained in:
2026-08-25 11:48:15 +02:00
parent deffd1623e
commit c9880cf543
13 changed files with 438 additions and 32 deletions
@@ -1,5 +1,5 @@
import { useLiveValue } from "@/components/Flow/liveStore"
import { cn } from "@/lib/utils"
import { useBoundValue } from "./dataContext"
import { ICON_COLORS, ICONS } from "./icons"
import { config } from "./ui/core/config"
import type { WidgetProps } from "./widgets"
@@ -24,7 +24,7 @@ type ForecastItem = {
export function ForecastWidget({ widget }: WidgetProps) {
const cfg = config(widget)
const message = cfg.message ? String(cfg.message) : ""
const live = useLiveValue(message || undefined)
const live = useBoundValue(message || undefined)
if (!message) {
return <p className="text-muted-foreground">Pick a message.</p>
}