Create News Page: Warnings In The Create News Form

by ADMIN 51 views

As a registered user, it is essential to have a seamless experience when creating news on a platform. To ensure that users are aware of any potential issues with their news, it is crucial to display warnings in the "Create News" form. This article will outline the requirements for the warnings in the Create News form, including the character counter, title field, source field, content field, and add image field.

Acceptance Criteria

Title Field


The title field is a critical component of the Create News form, as it sets the tone for the entire news article. To ensure that users understand the importance of the title, the following requirements must be met:

  • A character counter "0/170" must be displayed above the text box. This will give users a clear indication of the remaining characters they can use for the title.
  • If the user exceeds the 170-character limit, the counter should be highlighted in red. This will alert the user that they have exceeded the character limit and need to make adjustments.
  • The "Title" field frame should be highlighted in red if the field is left empty. This will ensure that users understand that the title field is a required field and cannot be left blank.
  • The user cannot enter more than 170 characters (character limit enforced). This will prevent users from entering excessive characters and ensure that the title field remains within the specified limit.

Source Field


The source field is another essential component of the Create News form, as it provides users with the opportunity to link to the original article or news post. To ensure that users understand the importance of the source field, the following requirements must be met:

  • A warning message "Please add the link of the original article/news/post. The link must start with http(s)://" must be displayed above the "Source" field. This will give users a clear indication of the expected format for the source link.
  • If the user fails to start the link with http:// or https://, the warning message should be highlighted in red. This will alert the user that they have entered an invalid link and need to make adjustments.

Content Field


The content field is a critical component of the Create News form, as it provides users with the opportunity to share their thoughts and ideas with others. To ensure that users understand the importance of the content field, the following requirements must be met:

  • A label must be displayed above the text box: "Must be a minimum of 20 and a maximum of 63,206 symbols." This will give users a clear indication of the expected length for the content field.
  • If the user enters fewer than 20 characters and tries to change the field, the warning should be highlighted in red. This will alert the user that they have entered an invalid length and need to make adjustments.

Add Image Field


The add image field is a critical component of the Create News form, as it provides users with the opportunity to add images to their news article. To ensure that users understand the importance of the add image field, the following requirements must be met:

  • The user should see a warning: "Upload only PNG or JPEG. File size must be less than 10MB." This will give users a clear indication of the expected file format and size for the image.
  • This warning and the image field should be highlighted in red if the user tries to upload an unsupported file format (not PNG or JPEG) or a file larger than 10MB. This will alert the user that they have entered an invalid file format or size and need to make adjustments.

Assumptions & Constraints

  1. Only registered users can create news. This ensures that only authorized users can create news on the platform.
  2. Warnings should be available in two languages (Ukrainian and the second interface language). This will ensure that users can access the warnings in their preferred language, making it easier for them to understand the requirements for the Create News form.

Frequently Asked Questions

In this article, we will address some of the most common questions related to the Create News page and the warnings in the Create News form.

Q: What is the purpose of the warnings in the Create News form?

A: The purpose of the warnings in the Create News form is to inform users of any potential issues with their news article, such as exceeding the character limit, entering an invalid link, or uploading an unsupported file format. This will help users to create news articles that meet the platform's requirements and ensure a seamless experience for both users and administrators.

Q: Why is it essential to display warnings in the Create News form?

A: Displaying warnings in the Create News form is essential because it helps users to understand the requirements for creating news articles on the platform. By providing clear and concise warnings, users can avoid common mistakes and ensure that their news articles are published successfully.

Q: What are the requirements for the title field in the Create News form?

A: The requirements for the title field in the Create News form are as follows:

  • A character counter "0/170" must be displayed above the text box.
  • If the user exceeds the 170-character limit, the counter should be highlighted in red.
  • The "Title" field frame should be highlighted in red if the field is left empty.
  • The user cannot enter more than 170 characters (character limit enforced).

Q: What are the requirements for the source field in the Create News form?

A: The requirements for the source field in the Create News form are as follows:

  • A warning message "Please add the link of the original article/news/post. The link must start with http(s)://" must be displayed above the "Source" field.
  • If the user fails to start the link with http:// or https://, the warning message should be highlighted in red.

Q: What are the requirements for the content field in the Create News form?

A: The requirements for the content field in the Create News form are as follows:

  • A label must be displayed above the text box: "Must be a minimum of 20 and a maximum of 63,206 symbols."
  • If the user enters fewer than 20 characters and tries to change the field, the warning should be highlighted in red.

Q: What are the requirements for the add image field in the Create News form?

A: The requirements for the add image field in the Create News form are as follows:

  • The user should see a warning: "Upload only PNG or JPEG. File size must be less than 10MB."
  • This warning and the image field should be highlighted in red if the user tries to upload an unsupported file format (not PNG or JPEG) or a file larger than 10MB.

Q: Why are warnings available in two languages (Ukrainian and the second interface language)?

A: Warnings are available in two languages (Ukrainian and the second interface language) to ensure that users can access the warnings in their preferred language, making it easier for them to understand the requirements for the Create News form.

Q: Who can create news on the platform?

A: Only registered users can create news on the platform. This ensures that only authorized users can create news on the platform.

By addressing these common questions, we hope to provide users with a better understanding of the Create News page and the warnings in the Create News form. If you have any further questions or concerns, please do not hesitate to contact us.