usdigitalresponse / cpf-reporter

CPF Reporter application maintained by the USDR Grants program.
Apache License 2.0
0 stars 4 forks source link

Update Reporting Periods Table and Add Certification Modal #415

Closed Vikariusu closed 1 month ago

Vikariusu commented 2 months ago

Dependencies

Blocked by #410 (handles backend logic for certification and next reporting period selection)

Overview

Update the Reporting Periods page to display all reporting periods. Implement functionality to certify the current reporting period and view information about previously certified periods.

Columns

  1. Name - display reporting period's name
  2. Start Date (mm/dd/yyyy)
  3. End Date (mm/dd/yyyy)
  4. Certified At
    1. If certified, this should display: "[Date Certified] by [email of user who certified]" ex: "07/01/2024 by cvaldivia@usdigitalresponse.org"
    2. If Current reporting period, a button should display that says "Certify Reporting Period"
  5. Actions:
    1. Display edit button if reporting period is not certified
    2. Empty if reporting period is certified

Certifying a Reporting Period

If you click the "Certify Reporting Period" button, a window will pop up and ask you to confirm that you want to certify the period:

Image

If you select Cancel, the period will not be certified and you will return to the Reporting Periods Page.

If you select "Certify", the following will happen:

ClaireValdivia commented 1 month ago

@Vikariusu Confirming that templates will not display for users

ClaireValdivia commented 1 month ago

@Vikariusu the reporting period page itself looks great, thank you! When I try to certify the reporting period, however, I get an error that I am unable to certify, even though a subsequent reporting period exists. I'll create another issue for this error

Image