π [Feature] Create Post β consistent form input validation
Created by: Tirokk
Authored by alina-beck Closed
π Feature
Validate all fields of the create post
form in a consistent way. (Ideally, the same system can then be applied to all forms on the network.)
User Problem
It is unclear which parts of the create post
form are required and what kind of input is valid. Many users don't know that they have to select categories
or that a video by itself is not enough content (see #1876 (closed)).
Implementation
I would like it if the title
field and the main content
editor could be validated with visible feedback after the user entered their input and left the field (i.e. onBlur). Validating input too early (when the user just started typing) or too late (when the user tried to save the post) can lead to frustration.
Open questions / challenges:
- Since images are optional they probably don't need validation?
- It is unclear if the third-party editor allows for the behavior proposed above
- We need a clear message to explain to users that the length of the URL of an embed link does not count toward the minimum content length
- We need to come up with a solution for
categories
- Is the
language
required? Should it be pre-filled? - In addition to the validation (after user input) we could also mark required fields (before user input) β but how?
Design & Layout
The visual feedback for title
and content
could look like this:
Question: Do we also want to give feedback for valid content (e.g. a green border and a checkmark)?
Validation (How can we make sure that this feature solves the above problem?)
- no more bug reports about videos as posts not being accepted
- we could measure if users are faster when creating posts (are any analytics tools set up?)
- developers can see if new contributors are less confused when creating a post in a pairing session