Snippets error content and required field clarity
Summary
When creating a new Snippet for the first time, the empty state verbiage indicates they could be notes or code. However, the code (File) field is required it seems, as without content in it there is an error. The error also doesn't explicitly state what caused the issue (nor displays in a location relative to the problem), leaving the user to have to figure out what hasn't been filled in.
Initial proposal
1. Per the Pajamas guidelines, all fields are required unless marked as Optional. The error doesn't occur when the File field has content but the Description field does not so it seems Description should be marked as (Optional).-
Have the error message explicitly state the required field causing the issue: The form contains the following error: The "File" field cannot be blank.
-
The label "File" makes me think of an external file. Perhaps changing the verbiage to "Snipped Content"?
-
If "File" is required, but Description is not, perhaps swap the placement of the two so that the more important (and required) field is listed first. This may also help to reduce confusion that the Description field in Snippets can be used as simply a note taking feature.
UX ready proposal
Prototype
https://sketch.cloud/s/x7MVm/a/GQz2lD/play