ita-social-projects / StreetCode

MIT License
17 stars 8 forks source link

Admin/Interesting facts block #123

Open vladnvp opened 1 year ago

vladnvp commented 1 year ago

As a user, I want to be able to add, edit and delete facts in the interesting fact block

Acceptance Criteria

  1. Admin can add a new fact via a "+" button. 1.1. System opens a modal window where an Admin can add an image, title and text. All fields are mandatory. 1.2. Admin can input up to a maximum of 600 characters in the main text field and 68 characters in the title field. A dynamic "symbols left" counter is displayed for both fields. 1.3. Admin can add only one photo to each fact. The accepted photo formats for upload are: '.jpeg', '.png', ' .jpg', '.webp'. 1.4. Admin can add a description for an attached photo. This is not a mandatory field, limited to a maximum of 200 characters. A dynamic "symbols left" counter is displayed for the field.
  2. Admin can edit existing facts via a "pencil" icon.
  3. Admin can delete existing facts via a "trash" icon.
  4. All facts are displayed as small blocks with titles.
  5. Admin can reorder facts by drag and drop functionality.

Epic link

vladnvp commented 1 year ago

UPD 1.2. Admin can add no more than 600 symbols to main text field and 62 symbols to title.

vladnvp commented 1 year ago

UPD This is not a mandatory field, limited up to 100 200 symbols.