Skip to content

Split the base-node-viewer god-component #1518

Closed

Description

@malibio

Overview

base-node-viewer.svelte is ~2300 lines — the viewer-side twin of the store god-object — mixing collection management, hydration, title/tab handling, and per-row reactivity.

Problem Statement

Its size makes the viewer hard to change safely and concentrates several reactivity findings (deferred title-sync, per-row subscription guards) in one place.

Proposed Solution

Split it along its concerns (collection management, viewer-local hydration, title/tab, per-row rendering) behind the same public surface.

Acceptance Criteria

  • base-node-viewer split into focused units; behavior unchanged
  • Code passes bun run quality:fix; tests pass

Technical Specifications

Reference Files

  • packages/desktop-app/src/lib/design/components/base-node-viewer.svelte (~2293 LOC)

Related Issues

Activity

  1. malibio commented on Jul 7, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 3943 passed, 1 failed (flaky perf benchmark: bulk structural ops 31.6ms vs 25ms threshold — timing noise, unrelated). 149/150 test files pass.

  2. self-assigned this
    on Jul 7, 2026
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