Skip to main content

implement-offline-first-ui

Implement an offline-first interface with explicit freshness, queued writes, conflict handling, and recovery. Use when users must read or change data through unreliable connectivity.

소스 정보

저장소
protosphinx/sphinxstack
최근 소스 활동
2026년 7월 29일 13:55
감지된 SKILL.md 언어
영어
스타
3
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
implement-offline-first-ui
category
web
description
Implement an offline-first interface with explicit freshness, queued writes, conflict handling, and recovery. Use when users must read or change data through unreliable connectivity.
# implement-offline-first-ui Make offline state visible and every local mutation traceable to a durable sync outcome. ## Procedure 1. Define which reads and writes work offline, their freshness needs, and irreversible limits. 2. Design local records with stable IDs, versions, ownership, schema, and migration. 3. Show offline, stale, pending, failed, conflicted, and synchronized states. 4. Queue mutations idempotently with original intent, order, retry, and cancellation. 5. Choose conflict rules per field or operation rather than universal last-write-wins. 6. Reauthenticate and reauthorize queued work before applying it after reconnect. 7. Bound storage, retention, encryption, logout, account switch, and device-loss behavior. 8. Test long offline periods, clock skew, duplicate writes, conflicts, eviction, upgrades, and recovery. 9. Reconcile local, queued, server, and user-visible outcomes. ## Guardrails - Never imply a local action is complete before its durable state is clear. - Do not sync a queued action after its permission or tenant context changed. - Avoid storing unnecessary sensitive data for offline convenience. ## Done - An offline data and conflict policy report is documented - Connectivity, conflict, eviction, upgrade, and account-transition tests pass - Local, queue, server, and visible records reconcile
GitHub에서 보기