Skip to content

Delete 15 obsolete services replaced by LIVE SELECT #558

Closed

Description

@malibio

Overview

Delete 15 obsolete services (~9,000 lines) that have been replaced by LIVE SELECT architecture.

Self-Contained Scope

Delete these services completely:

  1. NodeManager → Direct DB queries
  2. PersistenceCoordinator → LIVE SELECT auto-persists
  3. CacheCoordinator → No manual cache needed
  4. BackendAdapter → Simplified Tauri commands
  5. TauriNodeService → Merged into simplified adapter
  6. ConflictResolvers → Database version control
  7. VersionConflictResolver → LIVE SELECT handles conflicts
  8. EventBus → Tauri events from LIVE SELECT
  9. EventTypes → Tauri event types
  10. HierarchyService → ReactiveStructureTree
  11. NodeReferenceService → Database queries
  12. MentionSyncService → LIVE SELECT auto-syncs
  13. WYSIWYGProcessor → Obsolete (moved to textarea)
  14. DecorationCoordinator → Move to components
  15. ComponentHydrationSystem → Move to components

Acceptance Criteria

  • Delete all 15 service files listed above
  • Delete corresponding test files
  • Update imports across codebase to remove references
  • All existing tests pass (or updated to new architecture)
  • Code reduction: ~9,000 lines deleted
  • Bundle size reduction: ~200KB minified
  • Memory reduction: 45% less runtime memory usage

Dependencies

Definition of Done

  • 15 services deleted
  • ~9,000 lines removed
  • All tests passing
  • No dead imports

Activity

  1. malibio commented on Nov 21, 2025

    @malibio
    CollaboratorAuthor

    Updated Dependencies

    This issue should be completed AFTER #575 (Complete beforeSiblingId removal).

    Rationale: The 15 services to be deleted contain extensive beforeSiblingId references. Completing #575 first will:

    1. Reduce merge conflicts
    2. Create cleaner diffs for easier review
    3. Ensure the deleted services don't contain outdated field references

    Recommended sequence: #575 → #557 → #558

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

    @malibio
    CollaboratorAuthor

    WIP Progress Update - Service Deletion Phase Complete

    Completed Work

    ✅ Phase 1-3: Core Deletions Complete

    • Deleted 14 obsolete service files (~9,000 lines)
    • Deleted 8 test files (~2,000 lines)
    • Updated core service imports
    • Refactored 8+ core service files

    Baseline Test Status

    • Before: 24 failed | 1659 passed | 102 skipped
    • After core deletion: Services deleted, imports being cleaned up

    Remaining Work

    101 svelte-check errors remain in test files that import from deleted services. These are mostly:

    • 26 backend-adapter imports
    • 4 event-bus imports
    • 4 event-types imports
    • 4 persistence-coordinator imports
    • Others scattered across test files

    Next Steps

    Need to systematically update test file imports to work without the deleted services.

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