documentation update

This commit is contained in:
Storme-bit
2026-04-18 23:37:32 -07:00
parent 1fc6e8a66d
commit e1375e7d1b
5 changed files with 145 additions and 98 deletions

View File

@@ -302,14 +302,16 @@ function ChatInput({ value, onChange, onSend, placeholder, autoFocus }) {
function NotesSection({ projectId, initialNotes }) {
const [notes, setNotes] = useState(initialNotes);
const [savedNotes, setSavedNotes] = useState(initialNotes);
const [saving, setSaving] = useState(false);
const isDirty = notes !== initialNotes;
const isDirty = notes !== savedNotes;
async function handleSave() {
setSaving(true);
try {
await updateProject(projectId, { notes });
setSavedNotes(notes);
} catch (err) {
console.error('[NotesSection] Save failed:', err.message);
} finally {