Repository navigation
C1a: Consolidate the node-CRUD transport layer — fold tauri-commands node half into backendAdapter - #1255
Conversation
…ough backendAdapter (#1251) Deletes the 19 node-CRUD pass-through functions (createNode, getNode, updateNode, updateTaskNode, deleteNode, getChildren, getDescendants, getChildrenTree, moveNode, createMention, deleteMention, getOutgoing/ IncomingMentions, getMentioningRoots, queryNodes, mentionAutocomplete, createContainerNode) and their type re-exports from tauri-commands.ts. All call sites — shared-node-store, reactive-node-service, node-card-inline, ai-chat-node-viewer, navigation-service, and base-node — now import backendAdapter directly. Test spies and module mocks moved from tauri-commands to backendAdapter accordingly. tauri-commands.ts is now the non-node Tauri system commands module only. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Code Review — C1a: Consolidate node-CRUD transport layer (#1251)Review Type: Initial Review Requirements Check
FindingsNitpicksNit: Stale comment in // Create node using Tauri commands (works in Tauri environment)The call site now uses Nit: Stale comment in // tauriCommands mock running and need a way to assert theThe Nit: Stale deprecation in * @deprecated Use tauri-commands insteadThe SummaryThis is a clean, well-scoped transport consolidation. The implementation is mechanically precise: every node-CRUD call site has been migrated, the non-node The three nits are all stale comments — none affect correctness or the transport boundary. The PR is a net improvement by eliminating a redundant abstraction layer. Recommendation: APPROVE |
malibio
left a comment
There was a problem hiding this comment.
Review status: APPROVE — all acceptance criteria met, full test suite passes (132 files / 3873 tests). Three stale comments flagged as nits, none affect correctness. Clean elimination of a redundant wrapper layer.
Update three comments left behind after the C1a transport migration: - base-node.svelte: clarify backendAdapter routes across all three implementations - shared-node-store.svelte.ts: update test JSDoc to reference backendAdapter mock - test-node-helpers.ts: update deprecated notice to point to backendAdapter Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
Addressed all 3 review nits in a follow-up commit:\n- |
…node half into backendAdapter (#1255) * C1a: Remove node-CRUD facade from tauri-commands, route consumers through backendAdapter (#1251) Deletes the 19 node-CRUD pass-through functions (createNode, getNode, updateNode, updateTaskNode, deleteNode, getChildren, getDescendants, getChildrenTree, moveNode, createMention, deleteMention, getOutgoing/ IncomingMentions, getMentioningRoots, queryNodes, mentionAutocomplete, createContainerNode) and their type re-exports from tauri-commands.ts. All call sites — shared-node-store, reactive-node-service, node-card-inline, ai-chat-node-viewer, navigation-service, and base-node — now import backendAdapter directly. Test spies and module mocks moved from tauri-commands to backendAdapter accordingly. tauri-commands.ts is now the non-node Tauri system commands module only. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * Address review nits: update stale tauri-commands references in comments Update three comments left behind after the C1a transport migration: - base-node.svelte: clarify backendAdapter routes across all three implementations - shared-node-store.svelte.ts: update test JSDoc to reference backendAdapter mock - test-node-helpers.ts: update deprecated notice to point to backendAdapter Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --------- Co-authored-by: Michael Libio <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Closes #1251