Repository navigation
Let remixes sync with the original and keep pull requests on the live fork head - #231
Merged
Merged
Conversation
…on the live remix head
… and let conflict sessions be cancelled
… a branch moved, and drop stale pull diffs
… and sync refusal, and label asset choices
…rget branch, and harden stale diff handling
…ary after a merge restart
…ock branches during conflicts
…anch on in-session target_branch_changed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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 withsyncHead+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.MergeConflicts.jsx,merge-session.js): Unifies three-way merge materialization, 9-characterdiff3conflict-marker detection, binary/delete-modify asset choice labels, monospace conflict editing, and cancel/retry handling across pull requests, branch merges, and remix sync.PullRequest.jsx,ProjectBranches.jsx,api/git.js): Bypasses client GET caching for commits andgetPull, forwardsmergeSourceHeadandexpectedHeadon 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.Screenshots
Clean remix sync (behind original -> synced)
Remix sync conflict resolution (light and dark)
Open pull request following the synced remix (Firefox) and merge / conflict resolution (Chromium)
Verification
pnpm run lint(0 errors)pnpm run typecheckpnpm run check:conventionspnpm run check:community-csspnpm run i18n:community:check(3,462 messages, 0 new, 80 locales valid) andpnpm run i18n:editor:checknpx jest --ci test/unit(528 suites, 4,237 tests passing; including 154 community suites / 1,088 tests)MistWarp/api#86with 0 console/page errors