code4romania / code4romania/vic
Contracts List
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
## User Story
As a user, I want to view a table listing all generated contracts, so that I can review them as needed.
## Description
The page is organized into two distinct sections:
* **Counters Section**: this area displays key metrics, showing information such as the number of active contracts, contracts awaiting signatures, saved (but not sent) contracts, and contracts approaching their expiration date.
* **Templates List Section**: this section includes a table displaying all generated contracts, with columns for contract number, volunteer name, contract start and end dates, and contract status.
## Actors
* Web Users
## Preconditions
* User must be logged in and have navigated to the 'Lista Contracte' page
* The list must contains several entries
## Main Flow
1. The application displays a table listing all generated contracts.
2. User can scroll through the table to view all available templates.
3. User is able to download all approved contracts at once.
## Business Rules
1. The 'Contracte active' counter must display the total number of contracts with an 'Activ' status.
2. The 'Contracte in curs de semnare' counter must show the total number of contracts with 'Validare voluntar' and 'Validare ONG' statuses.
3. The 'Contracte salvate (netrimise)' counter must indicate the total number of contracts with a 'Salvat' status.
4. The 'Contracte care expira curand' counter must display the total number of contracts expiring within a specified timeframe. [**to be defined**]
5. Use can Delete Contract only if was not signed by any parties.
## Acceptance Criteria
1. The table must accurately reflect all generated contracts with up-to-date information in each column.
2. Clicking the "Descarca aprobate" button should generate and download a zip file containing all existing contracts with approved status.
## Additional Information
* Figma references: [here](https://www.figma.com/design/fBxQarllPrE9kEt22bIBa1/VIC-(Management-de-voluntari)-%2F-ex.-TEO?node-id=11236-25614&t=PN7WZg2L86f52m15-4)
Contributor guide
Assessment
This issue has not been assessed yet.