@@ -463,16 +464,18 @@ export function GithubConnection() {
{/* Recent Activity Section */}
-
toggleSection('recentActivity')}
className="w-full bg-transparent text-left text-sm font-medium text-bolt-elements-textPrimary flex items-center gap-2"
>
Recent Activity ({connection.stats.recentActivity.length})
-
+
{expandedSections.recentActivity && (
@@ -503,16 +506,18 @@ export function GithubConnection() {
{/* Repositories Section */}
-
toggleSection('repositories')}
className="w-full bg-transparent text-left text-sm font-medium text-bolt-elements-textPrimary flex items-center gap-2"
>
Recent Repositories ({connection.stats.repos.length})
-
+
{expandedSections.repositories && (
@@ -574,4 +579,4 @@ function LoadingSpinner() {
);
-}
\ No newline at end of file
+}
diff --git a/app/components/@settings/tabs/connections/NetlifyConnection.tsx b/app/components/@settings/tabs/connections/NetlifyConnection.tsx
index 920bf646..490cb2d1 100644
--- a/app/components/@settings/tabs/connections/NetlifyConnection.tsx
+++ b/app/components/@settings/tabs/connections/NetlifyConnection.tsx
@@ -214,16 +214,18 @@ export function NetlifyConnection() {
) : (
-
setIsSitesExpanded(!isSitesExpanded)}
className="w-full bg-transparent text-left text-sm font-medium text-bolt-elements-textPrimary mb-3 flex items-center gap-2"
>
Your Sites ({connection.stats?.totalSites || 0})
-
+
{isSitesExpanded && connection.stats?.sites?.length ? (
diff --git a/app/components/header/HeaderActionButtons.client.tsx b/app/components/header/HeaderActionButtons.client.tsx
index d4ccb181..34a1e42c 100644
--- a/app/components/header/HeaderActionButtons.client.tsx
+++ b/app/components/header/HeaderActionButtons.client.tsx
@@ -33,6 +33,7 @@ export function HeaderActionButtons({}: HeaderActionButtonsProps) {
}
}
document.addEventListener('mousedown', handleClickOutside);
+
return () => document.removeEventListener('mousedown', handleClickOutside);
}, []);
@@ -109,6 +110,7 @@ export function HeaderActionButtons({}: HeaderActionButtonsProps) {
}
const fileContents = await getAllFiles(buildPath);
+
// Use chatId instead of artifact.id
const existingSiteId = localStorage.getItem(`netlify-site-${currentChatId}`);
@@ -209,65 +211,64 @@ export function HeaderActionButtons({}: HeaderActionButtonsProps) {
className="px-4 hover:bg-bolt-elements-item-backgroundActive flex items-center gap-2"
>
{isDeploying ? 'Deploying...' : 'Deploy'}
-
+
{isDropdownOpen && (
-
{
- handleDeploy();
- setIsDropdownOpen(false);
- }}
- disabled={isDeploying || !activePreview}
- className="flex items-center w-full px-4 py-2 text-sm text-bolt-elements-textPrimary hover:bg-bolt-elements-item-backgroundActive gap-2 rounded-md"
- >
-
- Deploy to Netlify
-
-
- Coming Soon
-
- Deploy to Vercel (Coming Soon)
-
-
- Coming Soon
-
- Deploy to Cloudflare (Coming Soon)
-
+
{
+ handleDeploy();
+ setIsDropdownOpen(false);
+ }}
+ disabled={isDeploying || !activePreview}
+ className="flex items-center w-full px-4 py-2 text-sm text-bolt-elements-textPrimary hover:bg-bolt-elements-item-backgroundActive gap-2 rounded-md"
+ >
+
+ Deploy to Netlify
+
+
+ Coming Soon
+
+ Deploy to Vercel (Coming Soon)
+
+
+ Coming Soon
+
+ Deploy to Cloudflare (Coming Soon)
+
)}
diff --git a/app/lib/persistence/db.ts b/app/lib/persistence/db.ts
index ca46ef5d..57b23b87 100644
--- a/app/lib/persistence/db.ts
+++ b/app/lib/persistence/db.ts
@@ -5,7 +5,7 @@ import type { ChatHistoryItem } from './useChatHistory';
export interface IChatMetadata {
gitUrl: string;
gitBranch?: string;
- netlifySiteId?: string; // Add this field
+ netlifySiteId?: string;
}
const logger = createScopedLogger('ChatHistory');