On adding a new file by typing the file name and hitting "enter", file gets created.
I think on hitting "enter", text should appears like "file.js was created" and should disappear after few seconds on the modal box.

If this enhancement is fine to community members I would like to work on this issue.
yes I also think that empty the input box and hide the created message is good, but I was thinking isn't it better to toggle the modal , an open the newly created file on the editor. @catarak what's your opinion on this?
@shakti97 But this will make creating several files a bit uneasy task.
I think this is a good idea! The component Toast.jsx should appear and disappear.
Would like to work on this issue , if @ankiiitraj has no issue in letting me work on this.
Hi @shakti97, let me try on this and if I can't do this, you can help me. Thanks
Okay no issue, go ahead @ankiiitraj
Hello @ankiiitraj @catarak ! Can I take this issue up?
Hi @saijatin28 if @shakti97 is not working on this feel free to take on.
@saijatin28 i think you can safely start working on this since there haven't been any updates in a month!
I figured maybe I should import the Toast.jsx into the NewFileForm.jsx . But I am unable to figure out how to proceed further. Any pointers? @catarak
@catarak I can give advice with the implementation, but I'm just trying to work out what the behaviour should be?
Do we:
It feels to me, option 1 is more consistent with behaviour elsewhere in the app?
The createFile action should call setToastText and showToast when a new file has been created. Both the if and else branches of the function will need these.
Look at the create collections action for an example.
Wait for handleSubmit to complete successfully and trigger a state change showing the message in the form. Setting a timeout to "reset" the form afterwards and removing the message.
In addition, the createFile action would need to not close the modal.
1. Showing global toast
The
createFileaction should callsetToastTextandshowToastwhen a new file has been created. Both theifandelsebranches of the function will need these.Look at the create collections action for an example.
Hey! @andrewn @catarak I have added the feature using the above approach and made a PR #1426
With #1731 being merged, I feel like that handles this issue.