Repository navigation
Schema Types sidenav item listing available node types - #946
Conversation
…closes #940) - Add SchemaTypesSubPanel component with slide-out behavior matching CollectionSubPanel - Show built-in types (task only) first, then custom schema types with section labels - 4-shape icon (triangle, square, square, diamond) in specified viewBox style - Clicking a schema type opens it as a new tab using BaseNodeViewer - Click-outside and sidebar-collapse handlers close the panel automatically - Panel handles empty state when no custom schemas are defined Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Code Review SummaryThis PR implements a Schema Types sidenav item with a slide-out panel, following the established Requirements ValidationAll acceptance criteria from issue #940 are met:
Findings[Improvement] — No error handling on
|
malibio
left a comment
There was a problem hiding this comment.
Reviewed. Approving with two improvement suggestions documented in the comment above — error handling on getAllSchemas() and test coverage for the new component logic. Neither is a blocker given project context.
- Wrap getAllSchemas() in try/catch with createLogger error logging in handleSchemaTypesClick — prevents uncaught IPC failures from silently breaking the panel open state - Deduplicate schema item SVG in schema-types-sub-panel by separating section label/separator conditionals from the #each loops Skipped: tests for SchemaTypesSubPanel grouping logic and handleSchemaClick deduplication — low-complexity derived state mirroring existing patterns, worth a follow-up issue per greenfield context. Skipped: $effect sub-panel utility refactor — future scope, not blocking. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Review AddressedAddressed (2):
Skipped (3):
All 117 test files / 3704 tests still passing. |
* Add Schema Types sidenav item with panel listing available node types (closes #940) - Add SchemaTypesSubPanel component with slide-out behavior matching CollectionSubPanel - Show built-in types (task only) first, then custom schema types with section labels - 4-shape icon (triangle, square, square, diamond) in specified viewBox style - Clicking a schema type opens it as a new tab using BaseNodeViewer - Click-outside and sidebar-collapse handlers close the panel automatically - Panel handles empty state when no custom schemas are defined Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * Address review: error handling and duplicate SVG cleanup - Wrap getAllSchemas() in try/catch with createLogger error logging in handleSchemaTypesClick — prevents uncaught IPC failures from silently breaking the panel open state - Deduplicate schema item SVG in schema-types-sub-panel by separating section label/separator conditionals from the #each loops Skipped: tests for SchemaTypesSubPanel grouping logic and handleSchemaClick deduplication — low-complexity derived state mirroring existing patterns, worth a follow-up issue per greenfield context. Skipped: $effect sub-panel utility refactor — future scope, not blocking. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Closes #940