bcgov / cas-cif

CleanBC Industry Fund project
Apache License 2.0
6 stars 2 forks source link

As an External Operator, I want to be able to upload attachments to my application, so that I can submit all relevant documentation as part of my application #1455

Open LindsayMacfarlane opened 1 year ago

LindsayMacfarlane commented 1 year ago

Description:

Ability for proponents to upload and submit application-related documentation. The applications require a fixed set of specific documents to be uploaded, and will be presented with one upload field per document. For this iteration, the attachments page will remain the same for both EP and IA projects, and will need one "field" for Appendix A and one for Appendix B. The upload component has already been built for CCBC and can be borrowed from them.

Wireframe: https://www.figma.com/file/84BpebYIR1iYetxJThLsW6/CIF---External-User-Portal?node-id=141-1588&t=grieAJ8m5Qvvtl3C-4

Acceptance Criteria:

Given I am a Proponent When I am on the attachments page for an application Then I see a list of documents I need to upload and a changes saved indicator and a return to dashboard link

Given I am a Proponent When I click the Upload document button for a specific required document Then I am presented with a file selection window, and can select a file to upload

Given I am a Proponent When I uploaded a file and the field expects only one attachment Then the 'Upload' button changes to 'Remove'

Given I am a Proponent When I uploaded a file and the field expects more than one attachment Then the 'Upload' button allows uploading more than one file

Given I am a Proponent When I have submitted my attachments Then I can click on the uploaded file and see the file in another tab / download those attachments to confirm they are the correct ones

Development Checklist:

Notes:

Definition of Ready (Note: If any of these points are not applicable, mark N/A)

Definition of Done (Note: If any of these points are not applicable, mark N/A)

BCerki commented 1 year ago

@pbastia, will we still want a separate application attachment table, or can attachments go into the regular attachments table?

pbastia commented 1 year ago

@BCerki The attachment table right now just matches files between a project and the google cloud file UUID (and a project status that looks irrelevant now). We don't have a mechanic to assign attachment types yet - either a reporting requirement id, or an enum on the schedules. In this case we can probably have an additional application_attachment that joins an attachment record and a schedule / attachment type for the initial submission - and reuse that pattern for the reporting requirements attachments

Dianadec commented 1 year ago

Hey team! Please add your planning poker estimate with Zenhub @BCerki @dleard @pbastia @sam-warren @Sepehr-Sobhani @tmastrom @gurjmatharu

pbastia commented 1 year ago

@dleard @sam-warren @tmastrom do you mind adding your estimate?