[6.x] Assets: Create folder workflow
Bug description
When creating a new folder, I noticed a few things. Since the placeholder "new-folder" has the same text color as an already created folder, one might think that you can simply pressing Enter without having to enter a name (as is it the case in macOS Finder, for example). This leads to the following:
- screenshot 1: Just hit Enter, without typing a folder name
- screenshot 2: View after hitting Enter. New folder appears, but text-styling is different and there is an error message at the bottom-right
- screenshot 3: After a reload the "new-folder" is gone
Although there is nothing technically wrong, the UX could be improved. For example, the text ‘new-folder’ on the second screenshot could be displayed in red, or on the first screen the text color could be made more distinct to clearly indicate it is only a placeholder.
How to reproduce
See description of the screenshots above
Logs
Environment
6.0.0-alpha.7
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The other layout from the second screenshot (different text style below the folder icon) is also displayed briefly when a folder has been successfully created, before it changes to the intended style.
Besides not being able to create folders in an empty asset container. When you only have a folder with assets in it, they don't show.
For clarity, here you can see the CP state vs actual file system on the right. Possibly all related to the same root issue.