open-notebook/frontend/src/lib/hooks
Luis Novo 992442150e
feat: add ability to link existing sources to notebooks (OSS-311) (#177)
* fix: small issue where users cant change podcast segments

* chore: remove playwright mcp from gut

* feat: add ability to link existing sources to notebooks (OSS-311)

Implemented bidirectional source-notebook linking functionality:

Backend changes:
- Add POST endpoint to link sources to notebooks
- Include notebook associations in source detail response
- Implement idempotent linking with proper RecordID handling

Frontend changes:
- Add AddExistingSourceDialog with search and multi-select
- Add NotebookAssociations component for source detail view
- Add dropdown menu to "Add Source" button (new/existing)
- Implement useAddSourcesToNotebook hook with graceful error handling
- Fix dialog pointer-events during close animation
- Add loading states and disable checkboxes for linked sources
- Optimize dialog width with proper responsive breakpoints

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: address PR review feedback

- Fix sources.py query to use correct reference direction (OUT where IN)
- Remove debug console.log statements
- Add truncation warning for 100+ source lists

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-19 17:52:14 -03:00
..
use-ask.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
use-auth.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
use-insights.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
use-modal-manager.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
use-models.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
use-navigation.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
use-notebooks.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
use-notes.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
use-podcasts.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
use-search.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
use-settings.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
use-sources.ts feat: add ability to link existing sources to notebooks (OSS-311) (#177) 2025-10-19 17:52:14 -03:00
use-toast.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
use-transformations.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
use-version-check.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
useNotebookChat.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00
useSourceChat.ts Version 1 (#160) 2025-10-18 12:46:22 -03:00