code4romania / code4romania/sunrise

[NGO Admin/ Profilul meu in retea] implement "Profilul meu in retea" section

Open
#205 0 comments 0 reactions 1 assignee Claimed by @gheorghelupu17 View on GitHub
Dominant language
PHP
Stars
0
Forks
0
Avg merge
1m
Merged PRs (30d)
1

Description

### User story
As an NGO Admin user, I want to be able to configure what information will be displayed on the organisation's profile in the Sunrise Network (Retea organizatii VD).

### Description
Implement a new section in the Sunrise community module (accessible from the top bar navigation - see more details in #528), called "Profilul meu în rețea". In this section, the NGO Admin will be able to configure the information that will be displayed in the organisation's profile from the "Rețea organizații VD" section.

### Flows

**Creeaza un profil public**
1. User navigates to the "Profilul meu in retea" section from the main menu
2. User clicks on the "Creează un profil public" button
3. System retrieves the "Crează proflul meu" în rețea page ([link](https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=4596-11418&t=0nMeO2pALkoqehaS-4))
4. User fills in the information and clicks on "Salveaza modificarile" button
5. System displays the confirmation modal screen ([link](https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=10907-18711&t=0nMeO2pALkoqehaS-4))
6. User clicks on the "Afișează profilul în rețea" button
7. System publishes the profile on the "Rețea organizații VD" page/list, retrieves the profile in view mode, and displays a success message.

**Editeaza profil**
1. User navigates to the "Profilul meu in retea" page
2. User clicks on the "Editeaza" button
3. System retrieves the edit mode of the profile page ([link](https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=11099-25033&t=0nMeO2pALkoqehaS-4))
4. User performs the changes and clicks on the "Salveaza modificarile" button
5. System saves the changes in the db, retrieves the profile in view mode, and displays a success message.

**Ascunde profilul public**
1. User navigates to the "Profilul meu in retea" page
2. User clicks on the "Ascunde profilul public" button
3. System changes the status of the profile from Profil vizibil (publicat) to Profil ascuns (nepublicat), hides the profile from the "Rețea organizații VD" page/list, and displays a success message.

**Afiseaza profilul public**
1. User navigates to the "Profilul meu in retea" page
2. User clicks on the "Afiseaza profilul public" button
3. System changes the status of the profile from Profil ascuns (nepublicat) to Profil vizibil (publicat), displays the profile in the "Rețea organizații VD" page/list, and displays a success message.

**Șterge profilul organizației**
1. User navigates to the "Profilul meu in retea" page
2. User clicks on the "Editeaza" button
3. System retrieves the edit mode of the profile page ([link](https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=11099-25033&t=0nMeO2pALkoqehaS-4))
4. User clicks on the "Șterge profilul organizației" from the bottom of the page
5. System displays the confirmation modal screen ([link](https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=7958-14661&t=2U3IC042iF1gTukb-4))
6. User clicks on the "Șterge profilul public"
7. System deletes the profile from the db, it will no longer be visible in the "Rețea organizații VD" page/list, redirects the user to the **empty state** of the "Profilul meu în rețea" page, and displays a success message.

### Business rules
1. The profile is at organisational level, not at tenant level.
2. All organisations that are registered in the platform will have access to the Sunrise community module and will be able to create a profile. Until they create the profile, the organisation won't be visible in the "Rețea organizații VD" page/list.
3. The information will be displayed on the profile based on this architecture ([link](https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=10907-18571&t=8Liy8OS31uRNxttw-4))
4. The following information will be pulled from the organisation's profile from the super admin and **cannot be edited** by the user: Deține certificat de furnizor servicii social - checkbox, Serviciile sociale oferite (licențiate)
5. The following information will be pulled from the organisation's profile from the super admin and **can be edited** by the user: Nume organizație, Logo sau imagine, Site web, Număr telefon, Andresă de email
6. The values displayed in the "Domenii de activitate" field dropdown will be pulled from the Super Admin/ Rețea organization VD/ Nomenclator domenii de activitate section
7. The information about social service accreditation will be displayed only if the checkbox is selected in the Super admin panel. If not, don't display the information the organization's profile ([reference component](https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=10907-18537&t=o9JOg1QdKEelnZeA-4))

### Link to Data dictionary/ Comunitatea Sunrise tab: https://docs.google.com/spreadsheets/d/1CwWLNTUE7yhHBpwQXLC21Znl3rjrLuLmav1Vu-Go8Dc/edit?usp=sharing
### Link to Figma: https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=11650-53027&t=k3ja3S3oG9nxxoeU-4

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.