Skip to content

Refactor node architecture for consistent naming conventions - #125

Merged
malibio merged 2 commits into
mainfrom
feature/node-architecture-refactoring
Sep 26, 2025
Merged

malibio merged 2 commits into
mainfrom
feature/node-architecture-refactoring

Conversation

@malibio

@malibio malibio commented Sep 26, 2025

Copy link
Copy Markdown
Collaborator

Summary

This PR refactors the NodeSpace component architecture to establish consistent naming conventions:

• TextNodeViewer → TextNode (node wrapper around BaseNode)
• DateNodeViewer → DateNode (node wrapper around BaseNode)
• DatePageViewer → DateNodeViewer (viewer wrapper around BaseNodeViewer)

Architectural Pattern Established

  • *Node = wraps BaseNode (TextNode, TaskNode, DateNode)
  • *NodeViewer = wraps BaseNodeViewer (DateNodeViewer, future TaskNodeViewer)
  • BaseNodeViewer is sufficient for text nodes (no TextNodeViewer needed)

Changes Made

  • Renamed component files and updated all imports/references
  • Removed legacy TextNode wrapper component
  • Updated CSS class names and component documentation
  • Updated plugin registry and core plugin definitions
  • Verified all TypeScript/Svelte type checks pass

Test Plan

  • Svelte type check: 0 errors, 0 warnings
  • TypeScript compilation: No errors
  • All imports resolve correctly
  • No old references remaining in codebase

🤖 Generated with Claude Code

malibio and others added 2 commits September 26, 2025 10:09
## Summary
Added comprehensive visual documentation for the new extended markdown
blocks feature (code blocks and quote blocks) to the design system patterns.

## Changes
- **Visual Examples**: Added live examples of code and quote blocks with
  proper styling and formatting
- **CSS Patterns**: Documented the styling approach with accent bars,
  backgrounds, and typography
- **Icon System**: Added square icons with {} for code blocks and " for quotes
- **Behavior Documentation**: Explained all-or-nothing principle and
  focus/blur syntax behavior
- **Implementation Guide**: Clear visual reference for developers

## Documentation Includes
- Code block examples (JavaScript and CSS)
- Quote block examples (single and multi-line)
- Icon specifications and styling
- Accessibility and behavior notes
- Complete CSS implementation patterns

This complements the PR #124 implementation with comprehensive design
system documentation for the extended markdown blocks feature.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Rename TextNodeViewer → TextNode (node wrapper)
- Rename DateNodeViewer → DateNode (node wrapper)
- Rename DatePageViewer → DateNodeViewer (viewer wrapper)
- Update all imports and references across codebase
- Remove legacy TextNode wrapper component
- Update CSS class names and component comments
- Establish clear architectural pattern:
  * *Node = wraps BaseNode
  * *NodeViewer = wraps BaseNodeViewer

All type checks pass with 0 errors/warnings.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@malibio
malibio merged commit ba7d37a into main Sep 26, 2025
@malibio
malibio deleted the feature/node-architecture-refactoring branch September 26, 2025 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant