Skip to main content

map-edit-sync

Changing how map edits are saved, loaded, or synced — local IndexedDB persistence, server sync of assignments and document metadata, optimistic concurrency, and sync-conflict resolution.

Ir para a instalação

Informações da origem

Repositório
districtr/districtr-v2
Última atividade na origem
18 de setembro de 2026 às 14:42
Idioma detectado do SKILL.md
inglês
Estrelas
6
Forks
3

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Explorador de arquivos
2 arquivos

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
map-edit-sync
description
Changing how map edits are saved, loaded, or synced — local IndexedDB persistence, server sync of assignments and document metadata, optimistic concurrency, and sync-conflict resolution.
user-invocable
false
# Map Edit Sync ## Vocabulary at this surface - **`updated_at` and `clientLastUpdated` are different clocks, not near-synonyms.** `updated_at` is the server's timestamp on the document row; `clientLastUpdated` is the browser's own clock, stamped on every write to this browser's IDB copy (local edits *and* successful syncs). Comparing them **is** the local-edit signal — equal means the last IDB write was a server sync (no local edits since); different means something local changed. There is deliberately no dirty flag: the signal is derived from two timestamps already stored for other reasons, so it cannot fall out of sync with reality. ## Where the rest lives - The `fetchDocument` load/merge walkthrough, conflict-resolution model, and server-owned metadata fields: `docs/overview.md`. - Tracing an actual IDB/server divergence: [references/debugging.md](references/debugging.md).
Ver no GitHub