diff --git a/src/App.tsx b/src/App.tsx index e7a62f9..ab238b9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -364,7 +364,7 @@ function App() { /> {/* Main Chat Area */} -
+ {decodedContent}
+
+ )
+ }
+
return (
- -{decodeEscaped(content)}+ +++{decodedContent}
{decodeEscaped(newContent)}
@@ -145,19 +186,19 @@ export function YamlPanel({ yamlFiles, isLoading = false, activeTab, setActiveTa
Showing changes (green = added, red = removed)
-
+
{lines.map((line, idx) => {
const lineStyle = line.type === 'insert'
- ? { backgroundColor: '#dcfce7', color: '#166534' } // green-100 bg, green-800 text
+ ? { backgroundColor: '#dcfce7', color: '#166534' }
: line.type === 'delete'
- ? { backgroundColor: '#fee2e2', color: '#991b1b' } // red-100 bg, red-800 text
- : { color: '#1f2937' } // gray-800 text
+ ? { backgroundColor: '#fee2e2', color: '#991b1b' }
+ : { color: '#1f2937' }
return (
{line.type === 'insert' ? '+' : line.type === 'delete' ? '-' : ' '} {decodeEscaped(line.text)}
@@ -311,8 +352,7 @@ export function YamlPanel({ yamlFiles, isLoading = false, activeTab, setActiveTa
}
return (
-
- {/* Header */}
+
Generated Files
@@ -339,7 +379,6 @@ export function YamlPanel({ yamlFiles, isLoading = false, activeTab, setActiveTa
- {/* File Tabs */}
{filesToShow.map((file, index) => {
const hasFileContent = file.content.trim() !== ''
@@ -365,11 +404,9 @@ export function YamlPanel({ yamlFiles, isLoading = false, activeTab, setActiveTa
})}
- {/* File Content */}
{filesToShow.length > 0 && hasContent ? (
- {/* File Actions */}
{filesToShow[activeFile].name}
@@ -411,7 +448,6 @@ export function YamlPanel({ yamlFiles, isLoading = false, activeTab, setActiveTa
>
- {/* Direct Edit Button */}
- {/* Validation Result */}
{validationResult && (
)}
- {/* YAML Content */}
{filesToShow[activeFile].content.trim() === '' ? (
@@ -505,16 +539,16 @@ export function YamlPanel({ yamlFiles, isLoading = false, activeTab, setActiveTa
) : showDiff ? (
-
+
{renderDiff(prevYamlRef.current[filesToShow[activeFile].name] || '', filesToShow[activeFile].content)}
) : showLineNumbers ? (
-
+
{renderLineNumbers(filesToShow[activeFile].content)}
) : (
-
-
+
+
{decodeEscaped(filesToShow[activeFile].content)}