Skip to content

Conversation

@brymut
Copy link
Contributor

@brymut brymut commented Nov 10, 2025

/claim #35898
Resolves #35898

Change adds new Tree/Repo view changes to enable search, path copying functionality and directory deletion.

Summary of key changes:

  1. Add search functionality to tree view
  2. Add backend functionality to delete directory
  3. Add context menu for directories with functionality to copy path & delete a directory
  4. Move Add/Upload file dropdown to right for parity with Github UI

Detailed breakdown:

1. Add search functionality to tree view

Added search to tree view using existing searchfilterRepoFilesWeighted, 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 DeleteFilePost endpoint 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.

Screenshot 2025-11-11 at 10 08 02

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Nov 10, 2025
@github-actions github-actions bot added modifies/templates This PR modifies the template files modifies/frontend labels Nov 10, 2025
@brymut brymut changed the title Add Search, Add/Upload File, delete directory & "copy path" functionality to the repo's tree view UI Add Search, move Add/Upload File, delete directory & "copy path" functionality to the repo's tree view UI Nov 10, 2025
@brymut brymut force-pushed the feat-enhance-tree-view branch from 3452673 to 1cf0812 Compare November 10, 2025 09:58
@brymut brymut force-pushed the feat-enhance-tree-view branch from ee933ec to 3096f83 Compare November 11, 2025 02:49
@brymut brymut force-pushed the feat-enhance-tree-view branch from 3096f83 to ca8791e Compare November 11, 2025 02:51
@brymut brymut force-pushed the feat-enhance-tree-view branch from ca8791e to 457f17f Compare November 11, 2025 03:59
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Nov 11, 2025
@brymut brymut force-pushed the feat-enhance-tree-view branch 2 times, most recently from 2093a03 to f169aa3 Compare November 11, 2025 06:45
@brymut brymut force-pushed the feat-enhance-tree-view branch from f169aa3 to 809a645 Compare November 11, 2025 07:15
@brymut brymut marked this pull request as ready for review November 11, 2025 07:20
@lunny
Copy link
Member

lunny commented Nov 11, 2025

  1. When creating a new file, it currently redirects to the classic “new file” page. Instead, it should open an inline editor similar to GitHub’s implementation, keeping the left tree view visible. The same behavior should apply to Upload Files and Apply Patch actions.
  2. There is no way to add a new file for the root directory in the tree view UI.

@lunny lunny added this to the 1.26.0 milestone Nov 11, 2025
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat Request: Add Search, move Add/Upload File, delete directory & "copy path" functionality to the repo's tree view UI

3 participants