thunderhub/drizzle/pg/meta/_journal.json
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

34 lines
No EOL
650 B
JSON

{
"version": "7",
"dialect": "postgresql",
"entries": [
{
"idx": 0,
"version": "7",
"when": 1775074089419,
"tag": "0000_new_adam_warlock",
"breakpoints": true
},
{
"idx": 1,
"version": "7",
"when": 1775160645885,
"tag": "0001_jazzy_ezekiel",
"breakpoints": true
},
{
"idx": 2,
"version": "7",
"when": 1776104485702,
"tag": "0002_add_encrypted_amboss_jwt",
"breakpoints": true
},
{
"idx": 3,
"version": "7",
"when": 1777519591448,
"tag": "0003_lush_winter_soldier",
"breakpoints": true
}
]
}