Skip to content

Sync and discard unauthenticated changes simple#2221

Merged
RodriSanchez1 merged 9 commits into
cboard-org:masterfrom
magush27:feature/sync-unauthenticated-changes-simple
Jun 12, 2026
Merged

Sync and discard unauthenticated changes simple#2221
RodriSanchez1 merged 9 commits into
cboard-org:masterfrom
magush27:feature/sync-unauthenticated-changes-simple

Conversation

@magush27

Copy link
Copy Markdown
Collaborator

Warn unauthenticated users on unlock and discard local changes on login
Simplified version of #2193.

Changes:

  • Show a warning modal when a logged-out user unlocks the board to edit, informing them that changes are saved locally only and offering options to log in/sign up or continue editing. The modal is triggered only on the lock click, not on every individual edit action.
  • Created a new UnauthenticatedEditModal component (standalone, no Redux) instead of modifying the existing LoginRequiredModal.
  • On login, discard local unauthenticated changes (boards and communicators) if the user is not a first-time user or already has saved communicators on the backend, restoring their remote state instead.
  • Fixed a stale activeBoardId bug (from Manage how to sync unauthenticated changes #2193 review): after discarding local boards, if the previously active board no longer exists in the new state, fall back to 'root' to avoid a blank board view.
  • Boards from login response are now merged directly in the LOGIN_SUCCESS reducer case instead of via a separate addBoards dispatch.

@magush27 magush27 requested review from RodriSanchez1 and tomivm June 10, 2026 21:16
@RodriSanchez1 RodriSanchez1 merged commit 980b52a into cboard-org:master Jun 12, 2026
5 checks passed
@RodriSanchez1 RodriSanchez1 deleted the feature/sync-unauthenticated-changes-simple branch June 12, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants