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
Toggle Folders with Routes #1188
Comments
Hi I would like to take a look into this. Please let me know! Thanks |
@santiagocarod sure you can, I will assign the issue to you. My opinion on this proposed feature: I would like to avoid adding a new status on the folder in the data model.
Main tasks that would be required:
Questions: should all this be recursive? Meaning, toggling applies to all the children, recursively. Same for the red bar indicator. Should it take into account all the children toggle states recursively? I would say no, to simplify this PR. Happy to discuss here or on Discord. |
@255kb Perfect, thanks I'm checking it out right now as a first look. I understand that you would like to avoid adding the status for the Folder data model, should I go with the same approach as the project currently has with disabledRoutes and collapsedFolders? |
@santiagocarod I think we could go without adding any new state. For example, disabling from the folder menu could disable all the children route one by one. Like that we keep the feature small enough. What do you think? |
Yes, agree! |
Toggle all direct children from folder mockoon mockoon#1188
Feature Request for Mockoon: Toggle Folders with Routes
Overview
Mockoon is a great tool for developers, as it provides the capability to organize routes into folders. This feature request aims to enhance the user experience even further by allowing folders containing routes to be toggled on and off (enabled/disabled) with a single action. By including this feature, users will be able to quickly and easily manage the availability of a group of routes without manually toggling each route individually.
Proposed Functionality
Folder Toggle Icon: Add a toggle icon inside the dropdown of a folder in the route list, which allows users to enable or disable all routes within that folder simultaneously.
Folder Toggle State: The folder should indicate the current state (enabled/disabled) of its associated routes by providing a clear visual cue for the user, such as a red line similar to the one used for routes.
Mixed State: In case the folder contains a mix of enabled and disabled routes, the folder should show a mixed state (e.g., an orange line) to reflect this.
Inheritance: When adding a new route to a folder, the route should inherit the toggle state of the folder it's being added to by default.
Bulk Toggling: When the user toggles a folder on or off, all the routes within that folder should also be enabled or disabled accordingly, making it easy to manage groups of routes quickly.
Implementing this folder toggle feature will empower Mockoon users to work more effectively and efficiently with their route configurations. The ability to enable or disable multiple routes within a folder with a single action will save users time and contribute to an enhanced user experience overall.
The text was updated successfully, but these errors were encountered: