foss42 / apidash

API Dash is a beautiful open-source cross-platform API Client built using Flutter which can help you easily create & customize your API requests, visually inspect responses and generate API integration code. A lightweight alternative to postman/insomnia.
https://apidash.dev
Apache License 2.0
1.35k stars 257 forks source link

Renaming/cloning entries #421

Open Michal-Szczepaniak opened 5 days ago

Michal-Szczepaniak commented 5 days ago

Describe the bug/problem When renaming entry, current name is being deleted instead of being left for edition. Similarly when I duplicate entry, its not " (clone)" but "(clone)". They seemed similar enough for me to put them in single issue.

Steps to Reproduce the bug/problem Add request entry and then change name or clone it.

Expected behavior It should have current name editable when renaming and cursor put at the end, and while cloning it should use current name too.

Device Info (The device where you encountered this issue):

ashitaprasad commented 4 days ago

Please add screenshots/videos

Michal-Szczepaniak commented 4 days ago

Thought it would be obvious but sure Screenshot_20240704_231717 Screenshot_20240704_231729 Screenshot_20240704_231740

people often use rename option to copy name but also having to retype entire name just to change one letter is bit of a massive pain

ashitaprasad commented 4 days ago

@Michal-Szczepaniak

  1. "untitled" is just a placeholder. It means no name has been assigned. That is why renaming it shows blank text field. You can try it for any other name, you won't have any issue.
  2. " (clone)" becomes "(clone)" due to trimming which is fine for the time being.
Michal-Szczepaniak commented 4 days ago
  1. but the name has been assigned that's what i'm telling you
  2. I don't mean " (clone)" vs "(clone)", i mean it should be "original name (clone)"