Show error when user attempts to create wiki page with empty title
What does this MR do and why?
If the wiki title is empty or only whitepsace, do not allow the user to create or save the page.
References
- Creating wiki pages with only whitespace should... (#497418 - closed)
- ✂️ UX Paper Cuts 18.2 → USAT & bug::ux (#513103 - closed)
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
![]() |
![]() |
How to set up and validate locally
- Check out this branch
- Visit the Wiki
- Create a new page or edit an existing one
- Clear the page title field
- Attempt to submit the form
- You will see an invalid/error message on the title field saying it is required
- Edit the title to be only whitespace
- Attempt to submit the form
- You will see an invalid/error message on the title field saying it is required
- Edit the title to have non-whitespace characters in it
- Attempt to submit the form
- You will successfully submit the form
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #497418 (closed)



