Lite: add support for moving commits below branches#14635
Open
OliverJAsh wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Lite workspace support for moving commits below branch rows by enriching operation resolution with HeadInfoIndex so “below branch” can resolve to the bottom of the branch’s segment rather than the branch ref itself.
Changes:
- Extend
getOperations/getOperationwith an optional operation context (headInfoIndex) and use it to enable “move below branch”. - Update workspace UI call sites to compute/pass
headInfoIndexwhen determining available operations (navigation filtering, drag/drop, keyboard controls, dry-run labels). - Implement branch “below”
RelativeToresolution viasegmentBottomRelativeTo(...)usingheadInfoIndexbranch context.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| apps/lite/ui/src/routes/project/$id/workspace/WorkspacePage.tsx | Builds headInfoIndex and uses it when filtering outline items by available operations in transfer mode. |
| apps/lite/ui/src/routes/project/$id/workspace/OutlineTree/OutlineTree.tsx | Passes headInfoIndex into dry-run operation lookup so “below branch” operations can be surfaced consistently. |
| apps/lite/ui/src/routes/project/$id/workspace/OperationTarget.tsx | Derives headInfoIndex via query select and uses it for drag/drop operation availability and tooltip labeling. |
| apps/lite/ui/src/routes/project/$id/workspace/OperationControls.tsx | Uses headInfoIndex when computing keyboard transfer operations. |
| apps/lite/ui/src/operations/operation.ts | Introduces optional operation context and enables “below branch” by resolving to the bottom of the branch’s segment. |
samhh
approved these changes
Jul 8, 2026
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.
Related: GB-1735