code4romania / onghub

Mozilla Public License 2.0
7 stars 5 forks source link

[NGO Profile] Add upload file feature for Informatii legale & Informatii financiare #589

Closed mirunaioana-msc closed 1 month ago

mirunaioana-msc commented 1 month ago

Context

Some of the apps that an NGO can request via NGO Hub need to have a more complex due diligence process which implies them to provide a set of documents which shall be requested only after registering.

What needs to be implemented

We need to add a component for file upload in two of the modules of an NGO profile - Informatii legale & Informatii financiare.

In the Informatii legale module we need to add a file upload component for uploading "Declarație de neapartenență politică". In this case, the file accepted should pe a .pdf file no larger than 25 MB. The section should be called "Declarație de neapartenență politică", the helptext being "Încarcă declarația pe proprie răspundere prin care reprezentantul legal al organizației declară că președintele și membrii Consiliul Director nu fac parte din conducerea unui partid politic și/sau nu dețin nicio funcție publică. Această declarație nu va fi afișată public. Documentul este folosit doar pentru a valida eligibilitatea organizației de a accesa anumite soluții din NGO Hub (ca de exemplu Vot ONG și RO Help). Fișiere acceptate: pdf, maxim 25 MB"

Please see figma here - https://www.figma.com/design/cfixQXmZ7FdFatiDCpUhyK/ONG-HUB?node-id=8695-16177&t=cbne48CHGhaJlJE7-4

In the Informatii financiare module we need to add a file upload component for uploading "Bilanț contabil". In this case, the file accepted should pe a .pdf file no larger than 50 MB. The section should be called "Bilanț contabil", the helptext being "Încarcă ultimul bilanțul contabil depus la Ministerul de Finanțe. Acesta nu va fi afișat public. Documentul este folosit doar pentru a valida eligibilitatea organizației de a accesa anumite soluții din NGO Hub (ca de exemplu Vot ONG și RO Help). Fișiere acceptate: pdf, maxim 50 MB"

Please see figma here - https://www.figma.com/design/cfixQXmZ7FdFatiDCpUhyK/ONG-HUB?node-id=8695-16262&t=cbne48CHGhaJlJE7-4

For both components, the behaviour should be the same as in the case of the section "Statutul organizatiei" - a simple file upload component. When no document is uploaded, the empty state should be this text: "Nu există niciun document adăugat". Also, the user should be able to upload only one document and delete it if necessary.

dragos1195 commented 1 month ago

As discussed, we're going to move the balance sheet file from the "Informatii financiare" page to "Informatii legal".

It helps with consistency in the UI while having an easier load for backend implementation, as the financial data page is not a form. Furthermore, the other pages have a 1-1 relationship for an organization entity, while the financial data does not.

dragos1195 commented 1 month ago

Deployed in PROD