spacing cleanup

This commit is contained in:
Chad Curtis committed 2025-08-20 15:35:00 +00:00
1 parent b3d4deedc8
commit 78dd85ad50
2 files changed
+1 -11

No files matched your search

-9
View File
@@ -27,8 +27,6 @@ interface ChatPaneProps {
onBuildComplete?: (projectId: string) => void;
}
type AIMessage = (CoreUserMessage | CoreAssistantMessage | CoreToolMessage) & { id: string };
export function ChatPane({ projectId, projectName, onBuildComplete }: ChatPaneProps) {
@@ -72,8 +70,6 @@ export function ChatPane({ projectId, projectName, onBuildComplete }: ChatPanePr
});
};
const runBuild = async () => {
if (isBuildLoading) return;
@@ -187,8 +183,6 @@ BASE_DOMAIN=nostrdeploy.com`);
throw new Error('AI settings not configured');
}
// Create a custom fetch function for the AI provider
const customFetch = async (url: string, options: RequestInit) => {
return fetch(url, {
@@ -326,9 +320,6 @@ When creating new components or pages, follow the existing patterns in the codeb
} catch (error) {
console.error('AI chat error:', error);
// Handle other types of errors with the original logic
const errorMessage: AIMessage = {
id: generateId(),
role: 'assistant',
+1 -2
View File
@@ -67,8 +67,6 @@ export const AssistantContent = memo(({ content, toolResults = [] }: AssistantCo
return { isError: toolResult.isError || false };
};
// Helper function to check and render build action
const renderBuildAction = (text: string, key: number | string) => {
if (!/(✅|❌|⏸️|🔄|🎉|🎉)/.test(text) || !/(Agent completed successfully|Auto-build|Build|Deploy|Building|Deploying)/i.test(text)) {
@@ -118,6 +116,7 @@ export const AssistantContent = memo(({ content, toolResults = [] }: AssistantCo
if (buildAction) {
return buildAction;
}
return (
<div className="prose prose-sm max-w-none dark:prose-invert">
<ReactMarkdown