import { Component } from 'solid-js'; import { KPI_THRESHOLDS } from '../../lib/analytics/kpi-service'; export const UnifiedReport: Component = () => { const kpiEntries = Object.entries(KPI_THRESHOLDS) as [string, typeof KPI_THRESHOLDS[keyof typeof KPI_THRESHOLDS]][]; return (
Cross-tool KPI summary template
All tracked KPIs with their target thresholds and alert levels. This template is designed for weekly/monthly reporting across all analytics tools.
| KPI | Category | Warning Threshold | Critical Threshold | Direction |
|---|---|---|---|---|
| {key.replace(/_/g, ' ').replace(/\b\w/g, (c) => c.toUpperCase())} | {getCategory(key)} | {thresholds.warning}{getUnit(key)} | {thresholds.critical}{getUnit(key)} | {thresholds.direction === 'higher' ? '↑ Higher is better' : '↓ Lower is better'} |