Skip to content

Update child node components to use reactive stores #579

Closed

Description

@malibio

Overview

Update individual node components (TextNode, TaskNode, DateNode) to directly use ReactiveNodeData and ReactiveStructureTree instead of going through intermediary services.

Background

Implementation Tasks

TextNode Component

  • Import nodeData and structureTree directly
  • Replace any calls to legacy services
  • Use $derived for reactive queries

TaskNode Component

  • Import nodeData and structureTree directly
  • Replace any calls to legacy services
  • Use $derived for reactive queries

DateNode Component

  • Import nodeData and structureTree directly
  • Replace any calls to legacy services
  • Use $derived for reactive queries

Pattern to Follow

<script lang="ts">
  import { nodeData } from '$lib/stores/reactive-node-data.svelte';
  import { structureTree } from '$lib/stores/reactive-structure-tree.svelte';

  let { nodeId } = $props();

  // Pure reactivity - NO manual subscriptions
  let node = $derived(nodeData.getNode(nodeId));
  let childIds = $derived(structureTree.getChildren(nodeId));
</script>

Acceptance Criteria

  • 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

Dependencies

Related Issues

  • Part of architecture doc section 13 (Frontend Service Simplification)

Activity

  1. self-assigned this
    on Nov 21, 2025
  2. malibio commented on Nov 21, 2025

    @malibio
    CollaboratorAuthor

    Test baseline recorded:

    Ready to implement updates for child node components to use reactive stores.

  3. malibio commented on Nov 21, 2025

    @malibio
    CollaboratorAuthor

    Closing as already implemented. Child components (TaskNode, DateNode) already import and use nodeData and structureTree from the reactive stores.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions