Skip to content

feat: enable nested folder/collection creation via context menu#4

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/improve-folder-structure
Draft

feat: enable nested folder/collection creation via context menu#4
Copilot wants to merge 3 commits intomainfrom
copilot/improve-folder-structure

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 3, 2026

The folder right-click menu had no "New Folder" or "New Collection" options, making it impossible to create items inside existing folders through the UI — despite the backend fully supporting nested paths via parentRelPath.

Changes

  • ItemContextMenu — Added optional onAddFolder and onAddCollection props; renders "New Folder" / "New Collection" buttons (with FolderPlus / FileJson icons) at the top of the menu when provided.

  • FolderItem — Added onStartCreate(parentId, kind, parentRelPath) prop; wires the context menu to trigger inline creation scoped to the folder's own relPath; propagates onStartCreate to recursively rendered children.

  • TreeItem — Threads onStartCreate through to FolderItem.

  • CollectionPanel — Adds handleStartCreate which auto-expands the target folder before setting creating state, so the inline input row is immediately visible.

  • Icon fixInlineCreateRow for collections was incorrectly rendering FolderClosed; corrected to FileJson at both root and nested levels.

Right-clicking any folder now exposes:

┌─────────────────┐
│ 📁 New Folder   │  ← creates subfolder via createCollectionFolder(ws, folder.relPath, name)
│ {} New Collection│  ← creates collection inside folder
│ Open Docs       │
│ Rename          │
│ Delete          │
└─────────────────┘
Original prompt

I'd like to further improve the folder structure for the app. What i want to be ablet o do is folder within folders. I want an easy, logical way to create folders within folders

Created from VS Code.

Copilot AI and others added 2 commits April 3, 2026 00:36
Agent-Logs-Url: https://github.com/priyanshumahey/quackAPI/sessions/074ae402-7b25-403d-958c-bf56a9641a2f

Co-authored-by: priyanshumahey <72003945+priyanshumahey@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor folder structure to support nested folders feat: enable nested folder/collection creation via context menu Apr 3, 2026
Copilot AI requested a review from priyanshumahey April 3, 2026 00:38
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.

2 participants