Skip to content

Unify the frontend store layer on Svelte 5 runes #1513

Closed

Description

@malibio

Overview

The store layer runs two paradigms: legacy writable() stores and Svelte 5 rune stores, with many imperative get(store) reads (a stale-read smell) alongside reactive $store usage.

Problem Statement

Two state paradigms and imperative store reads make reactivity inconsistent and are a source of stale-read bugs.

Proposed Solution

Migrate the remaining writable() stores (collections, schemas, layout, settings, navigation, status-bar) to rune stores; eliminate get(store) reads; document the single paradigm. Aligns with ADR-049.

Acceptance Criteria

  • Legacy writable() stores migrated to rune stores
  • Imperative get(store) reads eliminated
  • Code passes bun run quality:fix; tests pass

Technical Specifications

Reference Files

  • packages/desktop-app/src/lib/stores/{collections,schemas,layout,settings,navigation,status-bar}.ts
  • Pattern: ADR-049

Related Issues

Activity

  1. malibio commented on Jul 7, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 3944 passed (150 test files)

  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