Skip to content

[Bug]: No merge strategy when editing offline and online; last version wins #45

Open

Description

@pradipNP

Description:
User edits offline, then goes online. Offline changes conflict with server version; last sync wins, data lost.

Use case:
Student starts homework offline, later connects to internet. Earlier edits lost.

Proposed solution:

  • Detect conflict (offline changes vs. server version)
  • Show merge dialog: "Keep local" / "Keep remote" / "Merge"
  • Merge by object ID (local objects + remote objects)
  • Warn user of conflicts

Code area:

// js/app.js - Offline sync handler
// Add: Conflict detection + merge strategy

Activity

  1. added
    bug
    good first issue
    help wanted
    on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issuehelp wantedmobile

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions