chore: snapshot before performance optimization

This commit is contained in:
Sepehr Ramezani
2026-04-17 21:14:43 +02:00
parent b6a548acd8
commit 2eceb32fd4
95 changed files with 4357 additions and 1942 deletions

View File

@@ -0,0 +1,18 @@
with open('components/note-input.tsx', 'r') as f:
content = f.read()
old_call = """ const { suggestions, isAnalyzing } = useAutoTagging({
content: type === 'text' ? fullContentForAI : '',
enabled: type === 'text' && isExpanded
})"""
new_call = """ const { suggestions, isAnalyzing } = useAutoTagging({
content: type === 'text' ? fullContentForAI : '',
enabled: type === 'text' && isExpanded,
notebookId: currentNotebookId
})"""
content = content.replace(old_call, new_call)
with open('components/note-input.tsx', 'w') as f:
f.write(content)