fix: updated folder name to not be the deprecated (#8793)

* Updated folder name to not be the deprecated

* Changed backend to use Starter Project as default folder name

* Changed docs

* Changed frontend to display pure folder name without deprecated

* Updated tests

* Added migration to change folder name

* Refactor migration to rename folder names with unique constraint checks for users. Updated upgrade and downgrade functions to streamline the renaming process for "My Projects" and "Starter Project".

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
Lucas Oliveira 2025-07-02 16:24:23 -03:00 • committed by GitHub
commit dc671ae204
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 93 additions and 46 deletions

View file

@ -79,7 +79,7 @@ test("add a flow into a folder by drag and drop", async ({ page }) => {
// Wait for the target element to be available before evaluation
await page.waitForSelector('[data-testid="sidebar-nav-My Projects"]', {
await page.waitForSelector('[data-testid="sidebar-nav-Starter Project"]', {
timeout: 100000,
});
// Create the DataTransfer and File
@ -94,7 +94,7 @@ test("add a flow into a folder by drag and drop", async ({ page }) => {
}, jsonContent);
// Now dispatch
await page.getByTestId("sidebar-nav-My Projects").dispatchEvent("drop", {
await page.getByTestId("sidebar-nav-Starter Project").dispatchEvent("drop", {
dataTransfer,
});
// wait for the file to be uploaded failed with waitforselector
@ -107,7 +107,7 @@ test("add a flow into a folder by drag and drop", async ({ page }) => {
expect(true).toBeTruthy();
}
await page.getByTestId("sidebar-nav-My Projects").click();
await page.getByTestId("sidebar-nav-Starter Project").click();
await page.waitForSelector("text=Getting Started:", {
timeout: 100000,

View file

@ -22,7 +22,7 @@ test("user must be able to move flow from folder", async ({ page }) => {
//wait for the project to be created and changed to the new project
await page.waitForTimeout(1000);
await page.getByTestId("sidebar-nav-My Projects").click();
await page.getByTestId("sidebar-nav-Starter Project").click();
await page.getByText(randomName).hover();