Skip to content

Turn recipe projects into nestable folders - #466

Closed
dfguerrerom wants to merge 4 commits into
masterfrom
feat/recipe-folders-v2
Closed

dfguerrerom wants to merge 4 commits into
masterfrom
feat/recipe-folders-v2

Conversation

@dfguerrerom

@dfguerrerom dfguerrerom commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Replaces #425.

Recipe projects become folders. A folder holds recipes and other folders, to any depth. The projects menu, which was a filter, is gone.

Changes

Recipe list

  • The list is a folder navigator. A click opens a folder, and the breadcrumb leads back up.
  • Recipes and folders move by drag and drop onto a folder row or a breadcrumb segment, or with Move in edit mode. A notification offers Undo for 15 seconds.
  • Edit mode selects folders as well as recipes.
  • Search covers the open folder and every folder below it.
  • A folder name has at most 50 characters and is unique in its folder.

Elsewhere in the interface

  • The recipe menu has Move to folder.
  • The recipe field shows the recently used recipes first, and has a button to browse the folders.
  • The tabs show the type of the selected recipe. The tooltip of a recipe tab gives its path.
  • The Tasks page shows the path of each recipe.
  • Notifications appear in place and fade in, instead of sliding in.
  • Rows in long lists stay on one line. The full text shows on hover.

Server and database

  • Migration 003.do.folders.sql adds a folder table and recipe.folder_id, and copies each project into a folder. Where the legacy import runs after it, legacy-import/002.do.folders.sql makes the same copy.
  • project and recipe.project_id stay until the legacy import is removed. docs/database-migrations.md gives that step.
  • Routes: POST /folder saves a folder, DELETE /folder/:id removes one, and POST /folder/:id moves recipes into one (none is the root).
  • The server refuses:
    • a parent that makes a loop (FOLDER_CYCLE), or that is not a folder of the same user (FOLDER_PARENT_NOT_FOUND)
    • a move to a folder that is not the user's (FOLDER_NOT_FOUND)
    • an empty name, or a name longer than 255 characters (FOLDER_NAME_INVALID)

Behavior change

Removal of a folder that holds recipes or folders is refused (FOLDER_NOT_EMPTY). Before, removal of a project also removed its recipes.

To test

  • Existing projects show as folders at the root, with their recipes in them.
  • Create, rename and nest folders. Try a duplicate name and a name longer than 50 characters.
  • Move recipes and folders in each way: drag onto a folder row, drag onto a breadcrumb segment, Move in edit mode, and Move to folder in the recipe menu. Undo a move.
  • A folder cannot move into itself or into a folder below it.
  • Remove an empty folder, then try a folder with content.
  • Search from the root and from inside a folder.
  • In a recipe field, for example the input of a Classification: use Recent, browse the folders, and open the selected recipe.
  • Check the type above the tabs, the tab tooltip, and the paths on the Tasks page.
  • Retrieve a recipe in a folder to an asset: the suggested asset ID uses the folder, and the next retrieve from that folder suggests the same destination.

Known limits

  • The open folder is not kept after a page reload.
  • Folder saves and removals do not lock rows. Two sessions that change the same folders at the same time can leave a recipe whose folder is gone. The list then shows it at the root.

@dfguerrerom
dfguerrerom force-pushed the feat/recipe-folders-v2 branch from 546c635 to ef74b48 Compare October 30, 2026 09:12
@dfguerrerom
dfguerrerom marked this pull request as ready for review October 30, 2026 12:37
@dfguerrerom
dfguerrerom force-pushed the feat/recipe-folders-v2 branch 5 times, most recently from 5cbd3a3 to b8acbb5 Compare November 4, 2026 10:16
@dfguerrerom
dfguerrerom force-pushed the feat/recipe-folders-v2 branch from b8acbb5 to 3243cb2 Compare November 6, 2026 09:55
@lpaolini
lpaolini deleted the feat/recipe-folders-v2 branch November 18, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant