'use client'; import React from 'react'; import { motion } from 'framer-motion'; import type { SystemForgeResponse } from '../../lib/types'; interface WorkflowComparisonProps { data: SystemForgeResponse; } interface ComparisonBlock { title: string; before: string; after: string; impact: string; } function buildComparisonBlocks( before: string[], after: string[] ): ComparisonBlock[] { const maxLength = Math.max( before.length, after.length ); const smartFallbacks = [ 'New automation layer introduced', 'System-orchestrated validation added', 'Human escalation path introduced', 'Production monitoring layer added', 'Reliability safeguard introduced', 'Audit + observability layer created', 'Approval workflow optimization added', 'Async event handling introduced', ]; const impactOptions = [ 'Reduced manual effort + faster execution', 'Improved reliability + production readiness', 'Lower operational bottlenecks + better scale', 'Higher audit visibility + safer approvals', ]; const blocks: ComparisonBlock[] = []; for (let i = 0; i < maxLength; i++) { blocks.push({ title: `Workflow Step ${String( i + 1 ).padStart(2, '0')}`, before: before[i] || smartFallbacks[ i % smartFallbacks.length ], after: after[i] || 'System optimized this step', impact: impactOptions[ i % impactOptions.length ], }); } return blocks; } function ComparisonCard({ item, index, }: { item: ComparisonBlock; index: number; }) { return ( {/* Title */}
{item.title}
{/* Before */}
BEFORE
{item.before}
{/* After */}
AFTER
{item.after}
{/* Impact */}
BUSINESS IMPACT
{item.impact}
); } export default function WorkflowComparison({ data, }: WorkflowComparisonProps) { const comparisonBlocks = buildComparisonBlocks( data.workflowTransformation.before, data.workflowTransformation.after ); return (
{/* Header */}
WORKFLOW INTELLIGENCE LAYER

Operational Redesign Breakdown

Every workflow redesign is broken into measurable improvements. SystemForge explains what changed, why it changed, and how the redesigned system improves execution speed, scalability, and operational reliability.

{/* Grid */}
{comparisonBlocks.map((item, index) => ( ))}
); }