code4romania / code4romania/sunrise

[NGO Admin; Specialist/ Cazuri/ Plan de interventie] Lack of Guidance on Service Configuration in 'Plan de Interventie' Module

Open
#278 1 comment 0 reactions 1 assignee Assigned to @andrabrinzaniuc View on GitHub
bug :bug:
Dominant language
PHP
Stars
0
Forks
0
Avg merge
1m
Merged PRs (30d)
1

Description

#### Description
In the "Plan de interventie" module, the user can open the "Adauga Serviciu" modal even when no services are configured.

#### Steps to Reproduce
1. Log in as Admin/Staff
2. Access a center without any services configured in the "Nomenclator servicii" page
3. Go to the "Cazuri" page and select a case without a "Plan de interventie" configured
4. Click on the "Creeaza plan" button
5. Click on the "Adauga Serviciu" button

#### Expected Result
5. The "Adauga Serviciu" button is unclickable (disabled)

#### Actual Result
5. The "Adauga Serviciu" modal opens even though no services are configured

#### Observation
The flow is confusing because the user cannot submit the form due to the mandatory "Tipul serviciului" field, which is empty.
Additionally, the user is not informed about the required action to configure services before adding one.

![image](https://github.com/user-attachments/assets/f047e1ab-5007-414a-b67d-cfe9b7276a57)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.