Repository navigation
QueryNodeViewer with Multi-View Rendering Support - #961
Conversation
Implements QueryNodeViewer as a page-level viewer that loads a schema node by nodeId, derives columns from its field definitions, executes a query for all nodes of that type, and renders results in a TableView. Row clicks open the node in another panel via navigateToNodeInOtherPane(). - QueryNodeViewer: loads schema, executes query, handles loading/error/empty states, refresh button - TableView: schema-driven column derivation (not key enumeration), clickable title column - Registered QueryNodeViewer in plugin registry for nodeType 'query' - Updated core-plugins test to expect 4 viewers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Code Review SummaryPR #961 implements FindingsCorrectness Issue (Understand Before Merging)
The query call is: backendAdapter.queryNodes({ nodeType: target.id });
However, the field being passed is named Recommendation: Add a one-line comment above line 81 explaining that Improvement
$effect(() => {
loadAndQuery(nodeId);
});
A minimal mitigation is to track a Nitpicks
Requirements Validation
|
malibio
left a comment
There was a problem hiding this comment.
Review complete. See detailed findings in the comment above. All acceptance criteria are met; the implementation is clean and follows the established viewer pattern. The race condition note and the schema-ID/nodeType equivalence comment are the items worth addressing before or after merge.
…aceholder - Add loadId sentinel to discard stale async responses on rapid nodeId changes - Add comment explaining target.id === nodeType equivalence for schema nodes - Fix clickable column detection: i === 0 → col.field === 'content' (semantic) - Fix h1 placeholder: 'Loading...' → 'Query' (consistent with tab title) Skipped: - toLabel() helper extraction: one-liner in $derived, not worth abstracting - Unit tests for getCellValue/columns: trivial string coercion, low ROI 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Review Feedback AddressedAddressed (4):
Skipped (2):
|
* feat: QueryNodeViewer with TableView rendering support (closes #441) Implements QueryNodeViewer as a page-level viewer that loads a schema node by nodeId, derives columns from its field definitions, executes a query for all nodes of that type, and renders results in a TableView. Row clicks open the node in another panel via navigateToNodeInOtherPane(). - QueryNodeViewer: loads schema, executes query, handles loading/error/empty states, refresh button - TableView: schema-driven column derivation (not key enumeration), clickable title column - Registered QueryNodeViewer in plugin registry for nodeType 'query' - Updated core-plugins test to expect 4 viewers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * Address review: race condition sentinel, semantic column check, h1 placeholder - Add loadId sentinel to discard stale async responses on rapid nodeId changes - Add comment explaining target.id === nodeType equivalence for schema nodes - Fix clickable column detection: i === 0 → col.field === 'content' (semantic) - Fix h1 placeholder: 'Loading...' → 'Query' (consistent with tab title) Skipped: - toLabel() helper extraction: one-liner in $derived, not worth abstracting - Unit tests for getCellValue/columns: trivial string coercion, low ROI 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Closes #441