Open arp99 opened 10 months ago
Can the project admins review the issue and assign me the issue, I want to start contributing to this project
Thank you @arp99 for filing this issue. I have assigned it to you, you can start contributing it.
@Nishchit14 This seems to be a problem with the react-complex-tree
the project is using to render the collection tree, the input box is being rendered by the library itself. Correct me If I am wrong. Basically we need to get access to the synthetic event object of the click event on the input box, for this reason there is another linked issue to it. User can rename and keep blank folder or request names. Need to add a custom rename input box to handle all such situations, and remove the library dependency from that.
Let me know your thoughts on this
The input box is being rendered by the library itself.
yes, that's true
Need to add a custom rename input box to handle all such situations, and remove the library dependency from that.
we're using the react-complex-tree
for API collection tree UI to get rich accessibility. Here we can not remove the library deps easily. @lukasbach (creator of the lib ) is a very helpful person, you can ask on their own repo for the solution.
I think this solution would work @arp99
Try to check that the tree has a renaming state with this api treeRef.current.isRenaming
at this line https://github.com/firecamp-dev/firecamp/blob/85ce70c836b764b0d7a897c705b39052b65c7d79/platform/firecamp-platform/src/components/activity-bar/explorer/Explorer.tsx#L141
treeRef.current.isRenaming
here is the API https://rct.lukasbach.com/docs/api/interfaces/TreeRef#isrenaming
@arp99 have you tried it?
@arp99 have you tried it?
Bit busy with work, will try to resolve it by weekend
Describe the bug A clear and concise description of what the bug is. When the request is not opened in any tab, and the user tries to rename the request from the dropdown available in the 3 dot. It opens a input box, but when the user tries to click on the input box the request gets selected, instead of the cursor getting inside the input box.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
enter
or the square that appear on right, should rename the requestScreenshots If applicable, add screenshots to help explain your problem.
https://github.com/firecamp-dev/firecamp/assets/47218246/f4978990-407c-442c-8143-1d090982391a
Desktop (please complete the following information):
Additional context Add any other context about the problem here.