baseline session management

This commit is contained in:
Chad Curtis committed 2025-09-04 06:35:55 +00:00
1 parent da1d221e1d
commit 8475ca7c1a
18 files changed
+1459 -222

No files matched your search

+7
View File
@@ -18,6 +18,8 @@ import { useJSRuntime } from '@/hooks/useJSRuntime';
import { useKeepAlive } from '@/hooks/useKeepAlive';
import { GitStatusIndicator } from '@/components/GitStatusIndicator';
import { StarButton } from '@/components/StarButton';
import { useProjectSessionCleanup } from '@/hooks/useProjectSessionCleanup';
import { generateSecretKey, getPublicKey, nip19 } from 'nostr-tools';
import { bytesToHex } from 'nostr-tools/utils';
import { buildProject } from "@/lib/build";
@@ -61,6 +63,8 @@ export function ProjectView() {
]
});
const { cleanupProjectSessions } = useProjectSessionCleanup(project?.id || '');
const loadProject = useCallback(async () => {
if (!projectId) return;
@@ -190,6 +194,9 @@ BASE_DOMAIN=nostrdeploy.com`);
};
const handleProjectDeleted = () => {
if (project) {
cleanupProjectSessions();
}
setProject(null);
navigate('/');
};