Implement remaining phases

This commit is contained in:
gpt-engineer-app[bot]
2025-10-03 15:59:05 +00:00
parent a4805cf0cc
commit 177e86a77a
4 changed files with 346 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ import { formatFieldName, formatFieldValue } from '@/lib/submissionChangeDetecti
import type { FieldChange, ImageChange } from '@/lib/submissionChangeDetection';
import { ArrowRight } from 'lucide-react';
import { ArrayFieldDiff } from './ArrayFieldDiff';
import { SpecialFieldDisplay } from './SpecialFieldDisplay';
interface FieldDiffProps {
change: FieldChange;
@@ -24,6 +25,12 @@ export function FieldDiff({ change, compact = false }: FieldDiffProps) {
);
}
// Check if this is a special field type that needs custom rendering
const specialDisplay = SpecialFieldDisplay({ change, compact });
if (specialDisplay) {
return specialDisplay;
}
const getChangeColor = () => {
switch (changeType) {
case 'added': return 'text-green-600 dark:text-green-400';