Add Client-Side Validation for empty title when saving shared page

Description

Title is necessary for page. Currently when saving page with empty title, request goes to backend resulting in blue error screen. Frontend validation should be added to tell user to fill the title when he tries to publish page without it.

Inspired by https://warsaw-dynamics.atlassian.net/servicedesk/customer/portal/1/SUP-445 , but the error found by client is different (for the client no title parameter is sent at all, where as during my local tests empty value for this parameter is sent when value is removed). It is possible that client’s issue will need some more investigation.

Linked issues

relates to
Issue Type Icon SUP-445 Issues editing content Priority: Medium
Closed

Activity

Parsa Shiva 27 December 2023, 18:31

@Michał Improvement implemented - QA environment.

Automation for Jira 27 December 2023, 18:31

Hello @Michał,

Please merge code to dev branch.
This is the best moment to add more information that can be helpful to prepare release notes.

  • Can you prepare short overview of change that can be used in release notes?
  • Please provide short GIF that showcase feature.
  • If GIF make no sense, can you provide image that highlights feature that can be used in release notes (cropped & annotated)?
Automation for Jira 20 December 2023, 12:12

Hello @Michał ]

This is the best moment to add more information that can be helpful for tester.

  • What areas are affected?
  • What are potential edge cases?
  • Was it checked for XSS problems?
  • Does change affect security, is new data exposed?

Please attach - Before / After screenshot if possible.

Kamil Zarychta 20 December 2023, 12:03

@Michał approved

Automation for Jira 15 December 2023, 19:22

Hello @Kamil Zarychta,
Task is ready for review.

@Michał please make sure reviewer
have easy access to contend to be reviewed.

If this is code change. Please make sure PR is created.
If this is new documentation, blogpost, etc. Please provide link to page.