Skip to content

Mobile: local-first offline cache (SwiftData/SQLite) #4

Closed

Description

@alex-mextner

What

A persistence layer (SwiftData/SQLite): cache repos/tree/files/PRs/issues/tickets with freshness metadata. Background and on-demand sync; a merge strategy; a stale indicator. Everything downloaded works offline.

Acceptance

  • Cache of all entities survives restart and works in airplane mode
  • Pull-to-refresh + background sync; stale/offline indicator
  • Cache cleanup/limits (LRU by size)
  • Tests for online → offline → online scenarios

Why

SPEC §0/§2: local-first is a core principle; the app must work without a network.

Impact

Code/PRs/tickets available anywhere; no spinners without a network.

If not done

The app is useless offline — violating the core principle.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions