ita-social-projects / SpaceToStudy-Client

MIT License
24 stars 16 forks source link

close cooperation process #2900

Open nebby2105 opened 5 days ago

nebby2105 commented 5 days ago

Implemented functionality:

  1. Added the ability for a student to initiate the cooperation closing process by clicking the Close cooperation button
  2. Implemented a confirmation modal that appears when the Close cooperation button is clicked
  3. Updated logic to handle cooperation status changes:
    • Set status to Request to close after the student confirms the action.
    • Set status to Closed after the responsible user accepts the request.
  4. Added a Cooperation closing process block in the Activities tab for users whose role matches the needAction field

Click Close cooperation →

Screenshot 2024-11-27 at 20 45 50

A confirmation modal is displayed →

Screenshot 2024-11-27 at 20 54 39

Confirm by clicking Yes → Cooperation status changes to Request to close:

Screenshot 2024-11-27 at 20 54 54

User whose role is equal to needAction field sees Cooperation closing process block in the Activities tab:

Screenshot 2024-11-27 at 20 55 04

Clicking Accept updates the cooperation status to Closed:

Screenshot 2024-11-27 at 20 55 11
sonarcloud[bot] commented 1 day ago

Quality Gate Failed Quality Gate failed

Failed conditions
79.1% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud