Skip to content

[trees] Path Store | Mutations#505

Merged
SlexAxton merged 4 commits intomainfrom
alex/trees/phase-6
Apr 14, 2026
Merged

[trees] Path Store | Mutations#505
SlexAxton merged 4 commits intomainfrom
alex/trees/phase-6

Conversation

@SlexAxton
Copy link
Copy Markdown
Contributor

add/move/delete/batch loosely integrated, mostly just api surface at this point, but also adds in the first bits of context menu support for delete/rename.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierrejs-diff-demo Ready Ready Preview Apr 14, 2026 10:43pm
pierrejs-docs Ready Ready Preview Apr 14, 2026 10:43pm

Request Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 70ad2aafc9

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +125 to +126
return fromPath.endsWith('/') && path.startsWith(fromPath)
? `${toPath}${path.slice(fromPath.length)}`
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remap moved descendants for non-canonical directory paths

remapMovedPath only rewrites descendants when fromPath ends with /, but move() can be called with a directory lookup path like "src" (no trailing slash). In that case a move event for the directory will not remap focused/selected descendants (for example src/a.ts), so #applyMutationState drops them instead of following the move, and focus/selection behaves like a delete. This breaks the new “follow moved items” behavior for valid directory move inputs.

Useful? React with 👍 / 👎.

@SlexAxton SlexAxton merged commit 3a79e88 into main Apr 14, 2026
10 checks passed
@SlexAxton SlexAxton deleted the alex/trees/phase-6 branch April 14, 2026 22:45
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