Skip to content
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

feat(editor): Add functionality to delete and rename folders (no-changelog) #13785

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

MiloradFilipovic
Copy link
Contributor

@MiloradFilipovic MiloradFilipovic commented Mar 10, 2025

Summary

Front-end part of Folders Phase 3 project. This PR introduces delete and rename functionality and add e2e tests for the features implemented so far.
image
image

Related Linear tickets, Github issues, and Community forum posts

Closes ADO-3158
Closes ADO-3159

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@MiloradFilipovic MiloradFilipovic self-assigned this Mar 10, 2025
@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Mar 10, 2025
@MiloradFilipovic MiloradFilipovic force-pushed the ADO-3159-folders-p3-frontend branch from 92d10fa to c6edbf1 Compare March 11, 2025 11:05
Copy link
Contributor

@mutdmour mutdmour left a comment

Choose a reason for hiding this comment

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

Looks good. Just a small question.

}

onMounted(async () => {
projectFolders.value = await foldersStore.fetchProjectFolders(route.params.projectId as string);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it needed to load all project folders here, if the modal is deleting a single folder?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is used to populate dropdown if users want to move folder contents to different folder within the project:
image

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this would be inefficient if there's too many folders. Ideally this would lazy load.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree but do we have lazy loading feature in drop-downs? Alternatively, we can load them only if transfer is selected as an option here

Copy link
Contributor

Choose a reason for hiding this comment

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

Element ui selects should already support this.

mutdmour
mutdmour previously approved these changes Mar 11, 2025
Copy link
Contributor

@mutdmour mutdmour left a comment

Choose a reason for hiding this comment

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

Approving for now. Issue with fetching all folders in project will be addressed seperately

Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

Copy link

cypress bot commented Mar 11, 2025

n8n    Run #9712

Run Properties:  status check passed Passed #9712  •  git commit 090cd3b3ab: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 MiloradFilipovic 🗃️ e2e/*
Project n8n
Branch Review ADO-3159-folders-p3-frontend
Run status status check passed Passed #9712
Run duration 04m 36s
Commit git commit 090cd3b3ab: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 MiloradFilipovic 🗃️ e2e/*
Committer Milorad Filipovic
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 6
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 454
View all changes introduced in this branch ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants