Commit 06d5688
authored
Update runt schema upsert fix (#216)
* Update @runt/schema to include upsert fixes
Use commit d360a01c14d76f638d9545b44487c17b9cafb8b4 which includes:
- onConflict handling for NotebookInitialized materializer
- onConflict handling for all other insert operations
This resolves UNIQUE constraint errors when multiple clients
(headless runtime + web client) initialize the same notebook.
* Update to use key-value notebook metadata approach
- Update @runt/schema to commit 305edf9 with key-value metadata
- Remove notebook initialization logic from Root.tsx
- Update NotebookViewer.tsx to use notebookMetadata table
- Update DebugPanel to display metadata as key-value pairs
- No more initialization race conditions or UNIQUE constraint errors
- Notebook metadata is set on-demand via notebookMetadataSet events
* Fix types and remove manual type assertions
- Use full commit hash to ensure proper cache invalidation
- Remove 'as Array<{ key: string; value: string }>' type assertions
- Import and use NotebookMetadataData type properly
- Fix readonly vs mutable type issues
- All types now properly inferred from schema
* Update @runt/schema to b2f5f12 with debug table rename
- Update to commit b2f5f1264cd1ddf51c881192aef6791a968f2b8b
- Includes rename of debugPin table to debug (removes dash from table name)
- Eliminates SQL compatibility issues with dashes in table names
* Fix tests to use notebookMetadata instead of notebook table
- Update edge-cases.test.ts to query metadata and find title
- Update execution-flow.test.ts to use metadataQuery$ and check metadata changes
- Keep existing notebookInitialized event calls (they work via materializer)
- All 60 tests now passing ✅1 parent 232eed0 commit 06d5688
7 files changed
Lines changed: 492 additions & 528 deletions
File tree
- src
- components/notebook
- test
- integration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments