thunderhub/drizzle/pg
Kilombino f62b48fa24
feat: per-channel notes (inline editing in channels table) (#744)
* 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>
2026-04-29 21:31:54 -06:00
..
meta feat: per-channel notes (inline editing in channels table) (#744) 2026-04-29 21:31:54 -06:00
0000_new_adam_warlock.sql chore: initial user and team tables 2026-04-01 17:31:01 -06:00
0001_jazzy_ezekiel.sql feat: node tables 2026-04-02 14:28:13 -06:00
0002_add_encrypted_amboss_jwt.sql chore: improve amboss auth handling 2026-04-14 11:52:39 +02:00
0003_lush_winter_soldier.sql feat: per-channel notes (inline editing in channels table) (#744) 2026-04-29 21:31:54 -06:00