Skip to content

Let remixes sync with the original and keep pull requests on the live fork head - #231

Merged
Mistium merged 30 commits into
developfrom
remix-sync
Nov 26, 2026
Merged

Mistium merged 30 commits into
developfrom
remix-sync

Conversation

@Mistium

@Mistium Mistium commented Nov 24, 2026

Copy link
Copy Markdown
Member

Summary

  • Sync with original for remixes (ForkStatus.jsx, use-remix-sync.js, ProjectCode.jsx): Maintainers of a remix that is behind its original (or whose sync state is unknown) can click Sync with original on the developer view to merge upstream changes into the remix, resolve text/asset conflicts inline via the shared conflict UI, and commit with syncHead + expectedHead + mergeTree. Disables sync with an accessible hint while the remix has uncommitted changes, preserves conflict sessions across tab switches, and resets stale/404 sessions cleanly.
  • Shared merge conflict resolution (MergeConflicts.jsx, merge-session.js): Unifies three-way merge materialization, 9-character diff3 conflict-marker detection, binary/delete-modify asset choice labels, monospace conflict editing, and cancel/retry handling across pull requests, branch merges, and remix sync.
  • Pull requests following the live fork head (PullRequest.jsx, ProjectBranches.jsx, api/git.js): Bypasses client GET caching for commits and getPull, forwards mergeSourceHead and expectedHead on pull-merge uploads, guards the merge action against deleted or non-current target branches (baseBranchMissing, target_branch_changed, target_branch_missing), drops stale in-flight diffs/responses across navigation and restarts, maps all API refusal codes (including 403/404) to translated whole-sentence messages, and guards async state updates on unmount.
  • Pairs with: Let open pull requests follow their fork head and let remixes sync with the original api#86

Screenshots

Clean remix sync (behind original -> synced)

Remix behind original with Sync with original button
Remix after clean sync

Remix sync conflict resolution (light and dark)

Sync conflicts in light theme
Sync conflicts in dark theme

Open pull request following the synced remix (Firefox) and merge / conflict resolution (Chromium)

Pull request diff after remix sync in Firefox
Pull request merged
Pull request conflict resolution
Pull request merged after resolving conflicts

Verification

  • pnpm run lint (0 errors)
  • pnpm run typecheck
  • pnpm run check:conventions
  • pnpm run check:community-css
  • pnpm run i18n:community:check (3,462 messages, 0 new, 80 locales valid) and pnpm run i18n:editor:check
  • npx jest --ci test/unit (528 suites, 4,237 tests passing; including 154 community suites / 1,088 tests)
  • End-to-end verification in Chromium (light, dark, PR conflict) and Firefox (light) against local MistWarp/api#86 with 0 console/page errors

@Mistium
Mistium merged commit 12dbf1e into develop Nov 26, 2026
1 check passed
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.

1 participant