feat: enable nested folder/collection creation via context menu#4
Draft
feat: enable nested folder/collection creation via context menu#4
Conversation
Agent-Logs-Url: https://github.com/priyanshumahey/quackAPI/sessions/074ae402-7b25-403d-958c-bf56a9641a2f Co-authored-by: priyanshumahey <72003945+priyanshumahey@users.noreply.github.com>
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 optionalonAddFolderandonAddCollectionprops; renders "New Folder" / "New Collection" buttons (withFolderPlus/FileJsonicons) at the top of the menu when provided.FolderItem— AddedonStartCreate(parentId, kind, parentRelPath)prop; wires the context menu to trigger inline creation scoped to the folder's ownrelPath; propagatesonStartCreateto recursively rendered children.TreeItem— ThreadsonStartCreatethrough toFolderItem.CollectionPanel— AddshandleStartCreatewhich auto-expands the target folder before settingcreatingstate, so the inline input row is immediately visible.Icon fix —
InlineCreateRowfor collections was incorrectly renderingFolderClosed; corrected toFileJsonat both root and nested levels.Right-clicking any folder now exposes:
Original prompt
Created from VS Code.