Add Search, move Add/Upload File, delete directory & "copy path" functionality to the repo's tree view UI #35911
+368
−36
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.
/claim #35898
Resolves #35898
Change adds new Tree/Repo view changes to enable search, path copying functionality and directory deletion.
Summary of key changes:
Detailed breakdown:
1. Add search functionality to tree view
Added search to tree view using existing search
filterRepoFilesWeighted, with new modal to display the search results. User can navigate through search results using keyboard to scroll, select and escape the search on top of using mouse. No matches found notice when no results are found.Screen.Recording.2025-11-11.at.09.51.16.mov
2. Add backend functionality to delete directory
Modified the
DeleteFilePostendpoint to also allow for deletion of whole directories to support the "Delete directory" menu option added to the context menu.3. Add context menu for directories with functionality to copy path & delete a directory
Added context menu for "Copy path", "Copy Permalink" & "Delete directory" supported by backend change listed above.
Screen.Recording.2025-11-11.at.10.10.41.mov
4. Move Add/Upload file dropdown to right for parity with Github UI
Minor change to move this option to the right since already existed.