open-notebook/frontend/src/lib/api
Luis Novo 301dd4e20a
fix: async insight creation to prevent transaction conflicts (#512)
Migrate insight creation to the command system with automatic retry logic
to prevent SurrealDB transaction conflicts during batch imports.

Changes:
- Add create_insight_command with retry logic for transaction conflicts
- Add run_transformation_command for async transformation execution
- Make Source.add_insight() fire-and-forget (returns command_id)
- Update POST /sources/{id}/insights to return 202 Accepted immediately
- Frontend polls command status until complete, then refreshes
- Auto-update notebook page icon when source gains insights
- Add i18n keys for insight generation feedback

Related to #489
2026-01-31 15:51:27 -03:00
..
chat.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
CLAUDE.md docs: generate comprehensive CLAUDE.md reference documentation across codebase 2026-01-03 16:27:52 -03:00
client.ts fix: increase timeout for Ollama and local LLM operations 2025-12-14 11:31:03 -03:00
embedding.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
insights.ts fix: async insight creation to prevent transaction conflicts (#512) 2026-01-31 15:51:27 -03:00
models.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
notebooks.ts feat: add cascade deletion for notebooks with delete preview (#471) 2026-01-25 14:56:14 -03:00
notes.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
podcasts.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
query-client.ts fix: query key consistency and timeout configuration 2025-12-14 21:55:38 -03:00
search.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
settings.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
source-chat.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
sources.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
transformations.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00