-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Add Search, move Add/Upload File, delete directory & "copy path" functionality to the repo's tree view UI #35911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
brymut
wants to merge
5
commits into
go-gitea:main
Choose a base branch
from
brymut:feat-enhance-tree-view
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+416
−48
Conversation
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
3452673 to
1cf0812
Compare
ca8791e to
457f17f
Compare
f169aa3 to
809a645
Compare
Member
|
Contributor
Author
You can do so in the main repo page in the code tab, same as to how its done on Github. Since I'm not aware of a way to view the root directory except for in the main repo page on the code tab (same on Github). Or perhaps I'm not understanding what you mean. |
809a645 to
0adcc74
Compare
Contributor
Author
Member
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
🙋 Bounty claim
lgtm/need 2
This PR needs two approvals by maintainers to be considered for merging.
modifies/frontend
modifies/go
Pull requests that update Go code
modifies/templates
This PR modifies the template files
modifies/translation
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.