Admin/Main StreetCode Block

by ADMIN 28 views

Overview

The Admin/Main StreetCode block is a crucial component of the StreetCode system, allowing administrators to create and manage StreetCode entries. This article provides a detailed overview of the acceptance criteria for the Admin/Main StreetCode block, highlighting its key features and functionality.

Acceptance Criteria

The following fields are displayed and working according to the described details:

1. "Номер Стріткоду" Field

  • The "Номер Стріткоду" field should accept only number values.
  • This field is essential for uniquely identifying each StreetCode entry.

2. "Тип стріткоду" Dropdown

  • The "Тип стріткоду" dropdown has two options:
    • Постать (Selected by default)
    • Подія
  • The selection of this field determines the display of subsequent fields.

3. "Назва Стріткоду" Field

  • The field for "Назва Стріткоду" is displayed.
  • This field allows administrators to enter a brief description of the StreetCode entry.

4. Conditional Display of Fields

  • If Постать was selected in the previous field, the next fields "Ім'я" and "Прізвище" are displayed.
  • If Подія was selected in the previous field, "Ім'я" and "Прізвище" are NOT displayed.
  • This conditional display ensures that the correct fields are shown based on the selected type.

5. Date Picker for "Роки життя/Дата або період події"

  • The date picker for "Роки життя/Дата або період події" is not prefilled, allowing administrators to enter dates manually or select them via a calendar.
  • The first date is mandatory, and the field "РОКИ" displays how the user will see selected dates.
  • This field can be edited after the first date was selected, allowing administrators to add double dates.

6. "Теги" Dropdown

  • The "Теги" dropdown list of tags is opened with a scroll when the admin clicks on an arrow.
  • The list of tags is sorted in alphabetical order, with no more than 10 tags visible at the moment.
  • Administrators can type in the name of a tag in the dropdown, and the list of tags will be adjusted according to the entered text.
  • Clicking on a tag adds it as a separate element below and clears the text field.
  • Added tags can be deleted by pressing a 'trash bin icon'.

7. "Teaser" Text Field

  • The text field for "Teaser" displays the quantity of symbols that can be entered in the right bottom side.
  • By default, the limitation is 450 symbols including spaces.
  • In case if the paragraph was entered in the text field, the limitation should be changed to 400 symbols.

8. "Анімація" Field

  • The user can attach only one animated image in GIF format to the "Анімація" field.
  • The user can either drag and drop a file or press on a 'paper clip' to select a file from File Explorer.

9. "Чорнобіле" Field

  • The user can attach only one image to the "Чорнобіле" field.
  • The user can either drag and drop a file or press on a 'paper clip' to select a file from File Explorer.

10. "Аудіо" Field

  • The user can attach only one file in MP3 format to the "Аудіо" field.
  • The user can either drag and drop a file or press on a 'paper clip' to select a file from File Explorer.

11. "URL" Field

  • The user is able to enter a text using the latin alphabet in the "URL" field.
  • This text will be used as a text for the URL, after https://streetcode.com.ua/.
  • Each URL should be unique.
  • This field is allowed to accept small latin alphabet letters, special symbols "-", and numbers.

12. "Короткий опис (для звʼязків історії)" Field

  • The user is able to enter text in the "Короткий опис (для звʼязків історії)" field.
  • This text will be displayed on a card of this StreetCode when it is displayed on another StreetCode's section "Зв'язки історії".

13. "Для зв'язків" Field

  • The user can attach only one image to the "Для зв'язків" field.
  • This image will be used as a main image when StreetCode is displayed as a card in "Зв'язки історії" on another StreetCode.
  • If an image was not added, "Чорнобіле" must be used.

14. Symbols Limitation for Fields

  • The following fields have symbols limitations:
    • Назва стріткоду - 100
    • Ім'я - 50
    • Прізвище - 50
    • Короткий опис (для зв'язків історії) - 33
    • URL - 100
    • Теги - 50

Conclusion

Q&A

Q: What is the purpose of the Admin/Main StreetCode block?

A: The Admin/Main StreetCode block is a crucial component of the StreetCode system, allowing administrators to create and manage StreetCode entries.

Q: What are the key features of the Admin/Main StreetCode block?

A: The key features of the Admin/Main StreetCode block include:

  • Conditional display of fields based on the selected type
  • Date picker for "Роки життя/Дата або період події"
  • "Теги" dropdown with alphabetical sorting and filtering
  • "Teaser" text field with symbol limitation
  • "Анімація", "Чорнобіле", and "Аудіо" fields for attaching files
  • "URL" field for entering a unique text
  • "Короткий опис (для звʼязків історії)" field for entering a brief description
  • "Для зв'язків" field for attaching a main image

Q: How do I attach files to the "Анімація", "Чорнобіле", and "Аудіо" fields?

A: To attach files to these fields, you can either drag and drop a file or press on a 'paper clip' to select a file from File Explorer.

Q: What is the symbol limitation for the "Teaser" text field?

A: The symbol limitation for the "Teaser" text field is 450 symbols including spaces by default. However, if a paragraph is entered in the text field, the limitation changes to 400 symbols.

Q: How do I enter a unique text in the "URL" field?

A: To enter a unique text in the "URL" field, you can use small latin alphabet letters, special symbols "-", and numbers.

Q: What is the purpose of the "Короткий опис (для звʼязків історії)" field?

A: The "Короткий опис (для звʼязків історії)" field is used to enter a brief description of the StreetCode entry, which will be displayed on a card of this StreetCode when it is displayed on another StreetCode's section "Зв'язки історії".

Q: How do I attach a main image to the "Для зв'язків" field?

A: To attach a main image to the "Для зв'язків" field, you can either drag and drop a file or press on a 'paper clip' to select a file from File Explorer.

Q: What is the symbol limitation for the "Назва стріткоду", "Ім'я", "Прізвище", "Короткий опис (для зв'язків історії)", "URL", and "Теги" fields?

A: The symbol limitations for these fields are:

  • Назва стріткоду - 100
  • Ім'я - 50
  • Прізвище - 50
  • Короткий опис (для зв'язків історії) - 33
  • URL - 100
  • Теги - 50

Q: How do I delete a tag from the "Теги" dropdown?

A: To delete a tag from the "Теги" dropdown, you can press a 'trash bin icon' next to the tag.

Q: Can I edit the "РОКИ" field after the first date was selected?

A: Yes, you can edit the "РОКИ" field after the first date was selected, allowing you to add double dates.

Q: How do I sort the list of tags in the "Теги" dropdown?

A: The list of tags in the "Теги" dropdown is sorted in alphabetical order.

Conclusion

The Admin/Main StreetCode block is a complex component of the StreetCode system, and it's essential to understand its key features and requirements. This Q&A article provides a comprehensive guide to the block's functionality, answering frequently asked questions and providing clarification on its features and limitations.