Skip to content

[PB-6531]feat/skip item option in name collision - #2039

Open
jaaaaavier wants to merge 1 commit into
masterfrom
feat/skip-item-option-in-name-collision
Open

[PB-6531]feat/skip item option in name collision#2039
jaaaaavier wants to merge 1 commit into
masterfrom
feat/skip-item-option-in-name-collision

Conversation

@jaaaaavier

@jaaaaavier jaaaaavier commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Description

In this PR, we want to give the user the option, when uploading a file that already exists, to skip uploading that file and choose on a file-by-file basis what to do (move, keep or skip). To achieve this, we have implemented the new dialogue box design and modified the existing functions that handled these actions so that they operate on a per-file basis rather than on groups of files; in this way, we ensure that the user can effectively choose what to do with each file individually.

Related Issues

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

Tested uploading existing files, then, verified that all functions work as expected

Additional Notes

@jaaaaavier jaaaaavier self-assigned this Jul 13, 2026
@jaaaaavier jaaaaavier added the enhancement New feature or request label Jul 13, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4917eaf
Status: ✅  Deploy successful!
Preview URL: https://e4d78d49.drive-web.pages.dev
Branch Preview URL: https://feat-skip-item-option-in-nam.drive-web.pages.dev

View logs

@sonarqubecloud

Copy link
Copy Markdown

@jaaaaavier
jaaaaavier marked this pull request as ready for review July 13, 2026 14:03
"title": "Umbenennen",
"label": "Name"
},
"renameModal": {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: why teh change of the key?

"description": "{{itemName}} ya existe en esta carpeta. ¿Deseas reemplazarlo o mantener los dos?",
"multipleDescription": "Más de un elemento existe en esta localización. Deseas reemplazarlos o mantenerlos?",
"selectOption": "Selecciona una opción",
"description": "{{itemName}} ya existe en esta ubicación. ¿Deseas reemplazarlo por el que estás moviendo?",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

it is like always gonna move all the items and it is not the only action. The modal also is used for uploading

Comment on lines +152 to +159
{remainingItemsCount > 1 && (
<div className="flex items-center">
<Checkbox checked={applyToAll} onClick={() => setApplyToAll((prev) => !prev)} />
<p className="ml-2 select-none text-base font-medium text-gray-80">
{translate('modals.alreadyExistsModal.applyToAll')}
</p>
</div>
)}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

to keep element consistency maybe we should do that pressint the text also select/unselect the checkbox

case 'upload' + 'replace':
await replaceAndUploadSingleItem(itemToUpload as IRoot | File, itemToReplace, group.destinationUuid);
break;
case 'upload' + 'skip':

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

move + skip option should exists or is only for upload option?

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants