Skip to content

Update child node components to use reactive stores directly - #589

Merged
malibio merged 1 commit into
mainfrom
feature/issue-579-reactive-stores-v2
Nov 21, 2025
Merged

malibio merged 1 commit into
mainfrom
feature/issue-579-reactive-stores-v2

Conversation

@malibio

@malibio malibio commented Nov 21, 2025

Copy link
Copy Markdown
Collaborator

Summary

Updates child node components (TextNode, TaskNode, DateNode) to directly use ReactiveNodeData and ReactiveStructureTree stores instead of relying on props passed from parent components.

Changes

  • All three components now import and query reactive stores directly
  • Components derive content, nodeType, and children from stores with prop fallbacks
  • Uses nullish coalescing (??) for children fallback to preserve distinction between "store not initialized" (undefined) and "no children" (empty array)
  • Follows established pattern from BaseNodeViewer (PR Refactor BaseNodeViewer to use dual reactive stores #572)

Acceptance Criteria (Issue #579)

  • ✅ All child components import reactive stores directly
  • ✅ No calls to legacy service methods
  • ✅ All reactivity uses $derived (no $effect blocks)
  • ✅ Components render correctly with reactive updates
  • ✅ All tests pass (1690 passing, 102 skipped)

Test Plan

  • Unit tests pass
  • Quality checks pass (eslint, svelte-check, clippy)
  • Pattern follows established architecture

Closes #579

🤖 Generated with Claude Code

Changes:
- TextNode, TaskNode, DateNode now import reactive stores directly
- Components query nodeData and structureTree for real-time data
- Fallback to props maintained for backward compatibility
- Uses nullish coalescing (??) for children fallback to preserve
  distinction between undefined (store not initialized) and empty array

This follows the established pattern from BaseNodeViewer (PR #572)
and aligns with architecture doc section 13.7.

Acceptance criteria from Issue #579:
- ✅ All child components import reactive stores directly
- ✅ No calls to legacy service methods
- ✅ All reactivity uses $derived (no $effect blocks)
- ✅ Components render correctly with reactive updates
- ✅ All tests pass

Closes #579

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

Co-Authored-By: Claude <[email protected]>
@malibio
malibio merged commit 1d84b02 into main Nov 21, 2025
@malibio
malibio deleted the feature/issue-579-reactive-stores-v2 branch November 21, 2025 13:24
malibio added a commit that referenced this pull request Feb 4, 2026
Changes:
- TextNode, TaskNode, DateNode now import reactive stores directly
- Components query nodeData and structureTree for real-time data
- Fallback to props maintained for backward compatibility
- Uses nullish coalescing (??) for children fallback to preserve
  distinction between undefined (store not initialized) and empty array

This follows the established pattern from BaseNodeViewer (PR #572)
and aligns with architecture doc section 13.7.

Acceptance criteria from Issue #579:
- ✅ All child components import reactive stores directly
- ✅ No calls to legacy service methods
- ✅ All reactivity uses $derived (no $effect blocks)
- ✅ Components render correctly with reactive updates
- ✅ All tests pass

Closes #579

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

Co-authored-by: Claude <[email protected]>
malibio added a commit that referenced this pull request Feb 5, 2026
Changes:
- TextNode, TaskNode, DateNode now import reactive stores directly
- Components query nodeData and structureTree for real-time data
- Fallback to props maintained for backward compatibility
- Uses nullish coalescing (??) for children fallback to preserve
  distinction between undefined (store not initialized) and empty array

This follows the established pattern from BaseNodeViewer (PR #572)
and aligns with architecture doc section 13.7.

Acceptance criteria from Issue #579:
- ✅ All child components import reactive stores directly
- ✅ No calls to legacy service methods
- ✅ All reactivity uses $derived (no $effect blocks)
- ✅ Components render correctly with reactive updates
- ✅ All tests pass

Closes #579

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

Co-authored-by: Claude <[email protected]>
malibio added a commit that referenced this pull request Feb 26, 2026
Changes:
- TextNode, TaskNode, DateNode now import reactive stores directly
- Components query nodeData and structureTree for real-time data
- Fallback to props maintained for backward compatibility
- Uses nullish coalescing (??) for children fallback to preserve
  distinction between undefined (store not initialized) and empty array

This follows the established pattern from BaseNodeViewer (PR #572)
and aligns with architecture doc section 13.7.

Acceptance criteria from Issue #579:
- ✅ All child components import reactive stores directly
- ✅ No calls to legacy service methods
- ✅ All reactivity uses $derived (no $effect blocks)
- ✅ Components render correctly with reactive updates
- ✅ All tests pass

Closes #579

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

Co-authored-by: Claude <[email protected]>
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.

Update child node components to use reactive stores

1 participant