AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { PlatformAnalyticsReport } from '@activepieces/shared';
import { t } from 'i18next';
import { TrendingUp } from 'lucide-react';
import { AnalyticsAreaChart } from './analytics-area-chart';
type RunsChartProps = {
report?: PlatformAnalyticsReport;
};
export function RunsChart({ report }: RunsChartProps) {
const chartData =
report?.runs
.map((data) => ({ date: data.day, runs: data.runs }))
.sort(
(a, b) => new Date(a.date).getTime() - new Date(b.date).getTime(),
) ?? [];
return (
<AnalyticsAreaChart
title={t('Flow Runs Over Time')}
subtitle={t('Track your automation execution trends')}
tooltipLabel={t('Runs')}
dataKey="runs"
color="var(--chart-1)"
gradientId="fillRuns"
chartData={chartData}
isLoading={!report}
emptyIcon={<TrendingUp className="h-10 w-10 text-gray-9" />}
emptyText={t(
'No runs recorded yet. Data will appear here once your flows start running.',
)}
downloadFilename="flow-runs"
/>
);
}