Skip to content

Conversation

@jenfonro
Copy link
Contributor

@jenfonro jenfonro commented Nov 3, 2025

Description / 描述

在复制/移动选择框中增加新建文件夹按钮

Motivation and Context / 背景

现版本在复制/移动时如果需要新文件夹,那么需要先手动到该目录新建目录,再进行该操作
新增后可以方便添加

How Has This Been Tested? / 测试

  • 对文件/目录进行复制/移动操作
image

Checklist / 检查清单

  • I have read the CONTRIBUTING document.
    我已阅读 CONTRIBUTING 文档。
  • I have formatted my code with go fmt or prettier.
    我已使用 go fmtprettier 格式化提交的代码。
  • I have added appropriate labels to this PR (or mentioned needed labels in the description if lacking permissions).
    我已为此 PR 添加了适当的标签(如无权限或需要的标签不存在,请在描述中说明,管理员将后续处理)。
  • I have requested review from relevant code authors using the "Request review" feature when applicable.
    我已在适当情况下使用"Request review"功能请求相关代码作者进行审查。
  • I have updated the repository accordingly (If it’s needed).
    我已相应更新了相关仓库(若适用)。

@xrgzs xrgzs added enhancement New feature or request javascript Pull requests that update javascript code labels Nov 8, 2025
@xrgzs xrgzs requested a review from Copilot November 8, 2025 13:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds inline folder creation functionality to the folder tree component used in copy/move dialogs. Users can now create new folders directly within the destination folder selection modal without leaving the current workflow.

Key changes:

  • Added a "Create Folder" button in the modal header that triggers inline folder creation
  • Implemented FolderNameInput component with keyboard navigation (Enter to submit, Escape to cancel)
  • Extended FolderTreeHandler interface to support triggering folder creation from parent components

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.

File Description
src/components/FolderTree.tsx Adds FolderNameInput component for inline folder creation, extends context and handler interface to support creation workflow, adds headerSlot prop to ModalFolderChoose
src/pages/home/toolbar/CopyMove.tsx Adds CreateFolderButton component and integrates it into Copy and Move modals via the new headerSlot prop

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jenfonro
Copy link
Contributor Author

@xrgzs 没什么问题的话就可以合并了吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants