feat(analytics): add flow quality table and PSA metrics panel
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,8 @@ import { cn } from '@/lib/utils'
|
||||
import { flowpilotAnalyticsApi } from '@/api'
|
||||
import { toast } from '@/lib/toast'
|
||||
import CoverageHeatmap from '@/components/analytics/CoverageHeatmap'
|
||||
import FlowQualityTable from '@/components/analytics/FlowQualityTable'
|
||||
import PsaMetricsPanel from '@/components/analytics/PsaMetricsPanel'
|
||||
import type {
|
||||
FlowPilotDashboard, KnowledgeGapReport, KnowledgeGap,
|
||||
CoverageResponse, FlowQualityResponse, EnhancedPsaMetrics,
|
||||
@@ -405,13 +407,7 @@ export default function FlowPilotAnalyticsPage() {
|
||||
<Loader2 size={20} className="animate-spin text-muted-foreground" />
|
||||
</div>
|
||||
) : qualityData ? (
|
||||
<div className="glass-card-static p-3 sm:p-5">
|
||||
<h3 className="font-heading text-sm font-semibold text-foreground mb-4">Flow Quality</h3>
|
||||
<p className="text-xs text-muted-foreground mb-4">Quality scores and performance metrics for your flows</p>
|
||||
<div className="text-sm text-muted-foreground">
|
||||
{qualityData.flows.length} flows analyzed
|
||||
</div>
|
||||
</div>
|
||||
<FlowQualityTable data={qualityData} />
|
||||
) : (
|
||||
<div className="flex items-center justify-center min-h-[200px]">
|
||||
<p className="text-sm text-muted-foreground">No flow quality data available</p>
|
||||
@@ -427,13 +423,7 @@ export default function FlowPilotAnalyticsPage() {
|
||||
<Loader2 size={20} className="animate-spin text-muted-foreground" />
|
||||
</div>
|
||||
) : psaData ? (
|
||||
<div className="glass-card-static p-3 sm:p-5">
|
||||
<h3 className="font-heading text-sm font-semibold text-foreground mb-4">PSA Metrics</h3>
|
||||
<p className="text-xs text-muted-foreground mb-4">Time entry and ticket integration metrics</p>
|
||||
<div className="text-sm text-muted-foreground">
|
||||
{psaData.total_time_entries} time entries logged ({psaData.total_hours_logged.toFixed(1)} hours)
|
||||
</div>
|
||||
</div>
|
||||
<PsaMetricsPanel data={psaData} />
|
||||
) : (
|
||||
<div className="flex items-center justify-center min-h-[200px]">
|
||||
<p className="text-sm text-muted-foreground">No PSA data available</p>
|
||||
|
||||
Reference in New Issue
Block a user