firecamp-dev / firecamp

Developer-first OpenSource API DevTool, Postman/Insomnia alternative.
https://firecamp.dev
GNU Affero General Public License v3.0
2.1k stars 137 forks source link

[bug]: user should not be allowed to create folders with same name inside a single collection #141

Open Nick-h4ck3r opened 1 year ago

Nick-h4ck3r commented 1 year ago

Describe the bug Currently, users can create folders with the same name inside a single collection. This should not be the ideal scenario.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Collection Explorer'
  2. Create a collection with the name 'anyname'.
  3. Create a folder inside it as 'test'.
  4. Create another folder inside 'anyname' collection as 'test'.

Expected behavior

Creating a file/folder with the same name, inside the same parent directory should be disabled. The user should get a prompt with a similar error as follows.

image Image screenshot from vscode

Screenshots firecamp Current scenario in firecamp

Desktop (please complete the following information):

Nick-h4ck3r commented 1 year ago

I would like to work on this issue, @Nishchit14 assign me this one.

Nishchit14 commented 1 year ago

Thank you for bringing the PR quickly @Nick-h4ck3r