mirror of
https://github.com/apotdevin/thunderhub.git
synced 2026-08-13 12:33:08 +02:00
* feat(db): add channel_notes table with Drizzle schema and migrations Adds a new `channel_notes` table (SQLite + PG) with composite PK (account_id, channel_id) to persist per-channel notes scoped to each ThunderHub account. Includes migration files for both database backends. * feat(api): add ChannelNotesService with getChannelNotes query and setChannelNote mutation Introduces ChannelNotesService (Drizzle-backed, account-scoped) with getNotes/upsertNote methods. Exposes two new GraphQL endpoints on ChannelsResolver: getChannelNotes (query) and setChannelNote (mutation). * feat(client): add inline channel notes to channels table and details panel - Adds NoteCell component to ChannelTable with click-to-edit inline input (Enter/✓ to save, Escape to cancel) - Fetches all notes on load via getChannelNotes query; updates optimistically - Adds note textarea + Save button in ChannelDetails modal below fee editor - Notes are persisted server-side and survive page refreshes * chore: table changes * chore: schema cleanup * chore: cleanup table * chore: more cleanup * chore: db ondelete --------- Co-authored-by: Anthony Potdevin <potdevin.anthony@gmail.com> |
||
|---|---|---|
| .. | ||
| pg | ||
| sqlite | ||