[go: up one dir, main page]

Skip to content

Ability to drag and drop files on Repository - Files page

Problem to solve

There's no such functionality if a user/developer want to add or replace a whole file directly

Further details

If we provide such functionality it would easy to add and replace files directly into the respected own branch that a user has access to. If a user dragged and dropped a file, we can show a popup for options like Replace, Commit Message etc and receive details to fetch further as we do in performing normal Git operations.

Proposal

Drag and drop is a very common feature nowadays. We can have a button as Drag and Drop or directly allow users to drag files on Repository - Files page. (See attached file).
It might seem complicated, but it is handy to perform quick operations.

Design

drag-drop-upload

  • When the user drags over a file, the UI should respond to receive the file and should highlight the drop target as shown in the mockup below.
  • The entire page should recognize that a file is being dragged over. The drop target is the file list table in both the project overview page as well as the files page in the repository section of the project.
  • When the user drops the file the, already implemented, upload file form appears with the dropped file added to it.
  • The user can write the commit message, target branch and upload the file.

Design specs →

Edited by 🤖 GitLab Bot 🤖