Pro-Enviro / IDNI

0 stars 0 forks source link

Add file system #180

Open SillyMonkey1925 opened 1 week ago

SillyMonkey1925 commented 1 week ago

Add a file system to upload and display reports

SillyMonkey1925 commented 1 week ago

@mila-proenviro

Please make it look nice, Then upload all reports that are done. James can give you a list

@adamshelley31 Have a look at the pdf reader i used on ECP and add to this.

EDIT also add upload for admin and consultants, currently upload only via backend

Thanks

adamshelley31 commented 6 days ago

Added pdf viewer. Ready for testing, and perhaps some styling @mila-proenviro.

mila-proenviro commented 6 days ago

@adamshelley31 The file list table needs to include only the files from the report section because they are pdf files. Maybe Capital Dev confused you, because under data there are pdf files,excel files, but we will need only the report pdfs in the table.

Screenshot 2024-11-11 at 11 07 16
mila-proenviro commented 5 days ago

tested on branch 180 and it is working

mila-proenviro commented 3 days ago

To DO:

  1. -[x] create upload for files
  2. -[x] this section needs to be visible only for admin and consultants
  3. -[x] the file needs to get attached to the company when uploaded
  4. -[x] if statement for the 2 types of file - data or report file
  5. -[x] rearrange the filesize
  6. -[x] after the file is uploaded we need success message and the form to be cleared
  7. -[x] we need to be able to upload more than 1 file
  8. -[x] the uploaded files needs to display in the 'file list' table
  9. -[x] add guide on how to upload files to the system, maybe use screenshot ? if needed
  10. -[x] when I upload new file I need to see the updated number of dataFileCount and reportFileCount
  11. -[x] after i upload the file the fileUpload should be cleared
  12. -[x] clear console logs and comments
mila-proenviro commented 1 day ago

@adamshelley31 Adam , can you please test when you have the time - test if you can upload files, (1 file or multiple files - maximum 3), are they saving on the database to the correct company. When you upload file do you see it listed on the table? and check when you upload file if the count is changing.