code4romania / sunrise

Mozilla Public License 2.0
0 stars 0 forks source link

[Case Management] Beneficiary Documents (Documente) #27

Open andrabrinzaniuc opened 5 months ago

andrabrinzaniuc commented 5 months ago

User story:

As an NGO user, I want to upload multiple copies of personal documents belonging to my beneficiary, so that I can have all the beneficiary's documents in one place in the case file.


Description:

Users should have a location to upload all the personal documents of the beneficiary, in the beneficiary's case file. This section is named Documente, and it only allows uploading, previewing, downloading and deleting uploaded files. Users can also edit metadata of documents such as document name, type & observations to the document if needed. All documents are displayed in a list.


Preconditions


Main flow

  1. User navigates to Documente section, from the Case Overview page, within an Individual Beneficiary file
  2. The system retrieves a table with all the available documents (ALT Flow - if no documents are available, user will view an empty state of the table - see figma)
  3. User clicks on Upload document (ro: Incarca document).
  4. System displays modal screen Upload document (ro: Incarca document)
  5. User fills in the fields in the modal: Selects type of document, Enters a name for the document, Enters observations, Loads document + hits Save document (ro. Adauga document)
  6. System closes modal and displays the list of documents, with the new document in portview
  7. Toast message/ Snackbar is displayed (Document incarcat cu succes)
  8. To view document, user clicks on table line to open preview
  9. The system displays the document in preview
  10. User can download the document or delete it from preview (if needed)

Business rules


Additional information

FIGMA File link: https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=4596-8399&t=Y67FQop49wG0iHQb-4

teodoranegru commented 3 months ago

@alexPopaCode4 There are several issues with the implementation of this feature:

Please consult the design and the explanations in the ticket