diff --git a/Makefile b/Makefile index e362b22..9b68594 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ fmt-check: check: test lint fmt-check docker: - docker build -t notebook-clone . + docker build -t source-sentinel . hooks: printf '#!/usr/bin/env bash\nset -euo pipefail\nmake check\n' > .git/hooks/pre-commit @@ -28,12 +28,12 @@ hooks: dev: @echo "Starting backend and frontend..." - cd $(SERVER_DIR) && node src/index.js & + cd $(SERVER_DIR) && npx --no-install tsx src/index.ts & cd $(WEB_DIR) && npx --no-install vite --port 5173 & wait run: - cd $(SERVER_DIR) && node src/index.js + cd $(SERVER_DIR) && npx --no-install tsx src/index.ts build: cd $(WEB_DIR) && npx --no-install vite build diff --git a/client/index.html b/client/index.html index 2507368..75cf55d 100644 --- a/client/index.html +++ b/client/index.html @@ -4,7 +4,7 @@ - NotebookLM Clone + Source Sentinel
diff --git a/client/package-lock.json b/client/package-lock.json index 29204e9..eb1e38c 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,11 +1,11 @@ { - "name": "notebook-clone-web", + "name": "source-sentinel-web", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "notebook-clone-web", + "name": "source-sentinel-web", "version": "0.1.0", "dependencies": { "react": "^19.0.0", diff --git a/client/package.json b/client/package.json index d9da773..35621ea 100644 --- a/client/package.json +++ b/client/package.json @@ -1,5 +1,5 @@ { - "name": "notebook-clone-web", + "name": "source-sentinel-web", "version": "0.1.0", "private": true, "engines": { "node": ">=18" }, diff --git a/client/src/App.jsx b/client/src/App.jsx index b89df02..e50ca33 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -1,20 +1,20 @@ import { useState } from 'react'; -import NotebookList from './components/NotebookList.jsx'; +import SourceCorpusList from './components/SourceCorpusList.jsx'; import SourcePanel from './components/SourcePanel.jsx'; import DocumentButtons from './components/DocumentButtons.jsx'; import ChatPanel from './components/ChatPanel.jsx'; import DocumentModal from './components/DocumentModal.jsx'; -import { useNotebook } from './hooks/useNotebook.js'; +import { useSourceCorpus } from './hooks/useSourceCorpus.js'; import { generateDocument } from './api/documents.js'; function App() { const { - notebooks, - activeNotebook, - selectNotebook, - createNotebook, - deleteNotebook, - } = useNotebook(); + sourceCorpora, + activeSourceCorpus, + selectSourceCorpus, + createSourceCorpus, + deleteSourceCorpus, + } = useSourceCorpus(); const [hoverState, setHoverState] = useState(null); const [sourceCount, setSourceCount] = useState(0); @@ -22,9 +22,9 @@ function App() { const [docModal, setDocModal] = useState({ open: false, type: null, document: null, loading: false }); const [chatReady, setChatReady] = useState(false); - const handleSelectNotebook = (id) => { + const handleSelectSourceCorpus = (id) => { setChatReady(false); - selectNotebook(id); + selectSourceCorpus(id); }; const handleSourceHover = (val) => { @@ -42,7 +42,7 @@ function App() { setDocModal({ open: true, type, document: null, loading: true }); try { - const res = await generateDocument(activeNotebook.id, type); + const res = await generateDocument(activeSourceCorpus.id, type); setDocModal({ open: true, type, document: res.document, loading: false }); } catch (err) { console.error('document generation failed', err); @@ -58,17 +58,17 @@ function App() { return (