usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
25.28k stars 1.15k forks source link

[Feature request] Organise folders in collection by drag and drop #1568

Open jaktestowac opened 7 months ago

jaktestowac commented 7 months ago

Currently, folders within a Collection are sorted alphabetically. Users should have the ability to reorder the folders by dragging and dropping them into their preferred arrangement.

For example, similar to Postman, I want to move the Operational folder so it comes after the Users folder. obraz

To clarify how nesting folders appears: obraz

Additionally, when importing a Collection from Postman, it should be organized in Bruno to maintain the same order as in Postman. Mentioned here: https://github.com/usebruno/bruno/issues/1456

DanaEpp commented 5 months ago

I agree with this. I actually don't see a way to reorder this, even through manually editing config file.

I'd recommend you add a section in bruno.json that allows you to set the custom order of the folders within a collection, and then honor that in the UI. This way, when the runner is executed, it will follow that order precedence so that test plans can run in the proper order.

The only workaround for right now is to rename the folders to ensure the proper order. I am using numbers, but it's honestly a cludge. We should be able to reorder by drag-and-drop and not rely on the naming to accomplish the order.

lanes100 commented 3 months ago

Bumping this. I have login calls that need to run before anything else and logout calls that need to run at the end of my collection runs and there is no way to do this without first making them a subfolder under a parent using 1 or Z as a workaround. Would really appreciate a fix for this.

jamesvl commented 1 month ago

I know "chime in" comments aren't always helpful, but I would love to see this feature implemented. (I want to move my team over to Bruno vs. any of the other options out there!) [edit: reworded request - I love Bruno and know you have a lot on your plate!]

For context, we're coming from a large internal API collection where the organization of the folders makes a big difference to us. Would love to see this as well, even though I realize getting multi-level drag and drop just right for a UX perspective isn't easy.

RohanTalip commented 3 weeks ago

FYI, I was able to change the order of my collections manually on macOS by:

  1. quitting the bruno app
  2. making a backup copy of the $HOME/Library/Application Support/bruno/preferences.json file (in case I got something wrong)
  3. editing the lastOpenedCollections list in the $HOME/Library/Application Support/bruno/preferences.json file (make sure it is still valid JSON, otherwise the list is cleared - see making a backup copy above)
  4. starting the bruno app again

That said, being able to do this in the UI would also be useful, but at least there's a manual workaround.