module Web.View.LearningDashboard.Show where import Web.View.Prelude import Data.Time (diffUTCTime, getCurrentTime, nominalDay) data ShowView = ShowView { topCorrelations :: ![OutcomeCorrelation] , patternRankings :: ![PatternPerformanceRecord] , thresholdStatus :: ![(Hub, Maybe AdaptiveThresholdConfig)] , recentInsights :: ![LearningInsight] , knowledgeHighlights :: ![InstitutionalKnowledgeEntry] } instance View ShowView where html ShowView { .. } = [hsx|
No data — run correlation analysis per hub.
|] else [hsx|No data — run pattern performance per hub.
|] else [hsx|No insights yet.
|] else [hsx|No entries yet — distil a decision.
|] else [hsx|{i.title}
{insightTypeBadge i.insightType}