---
# System prepended metadata

title: Backlog Budgets Improvements

---

Backlog Budgets Improvements
===



[Contracte](https://docs.google.com/document/d/1mR3sNnQgDTyXM_w80nyCCQ6rZSnmrMXY1juF9hc445Q/edit)


## Direct verification through the municipal census integrated with SMS verification

Ref: PB01 [BCN]

**Is your feature request related to a problem? Please describe.**
As a visitor, sometimes the registration form can be a barrier to participation, as the process seems very long if I only want to make a one-time participation. A typical example is the voting phase of a participatory budget, where my interest is to vote my preferred projects and that's it.

**Describe the solution you’d like**
I want to be able to verify myself without creating an account in order to vote directly by providing the following data:
- Type of document
- Document number
- Date of birth
- Mobile phone
- Terms of Services checkbox acceptance

:::danger
ToS mateixos de la paltaforma
:::

Once it's verified that these data match with the census, I receive a code on my mobile phone that allows me to complete the authorization and participate in the voting process.

As a visitor who has used this verification system without registration, I should receive an email invitation to create an account on the platform. For sending this invitation, after the voting process I can optionally add my email.

The name and nickname is autogenerated, we will have participants called "Participant 134111 (participant_134111)" with the user ID). The participant could change this nickname after.

**Describe alternatives you’ve considered**
To also ask name, nickname and email in the same registration form, but having more fields in this same form could bring usability problems (people have fears when having a registration form with 10 fields), so this is discarded.

We also discarded not having the name not nickname and to only have the possibility of voting in this budgets component, meaning that she will not have the possbility of creating a proposal, comment, etc. But this is really difficult to make with the current architecture of Decidim.

**Additional context**
As usual, for security and privacy reasons if the census data doesn't match then we'll show a generic error and ask for contacting to a support email or contact form.

Also if the census data match with an already verified participant we will show the same generic error. For already verified and very old participants (ie more than 1 year old) what we recommend is to revoke these verifications, as having old verifications brings also a security issues (ie what happens with people that moved out, dead people, etc).

:::warning

branch feature/bcn-budget-v0.24

As this is closely integrated with the city of Barcelona flow then this feature will only be available in this repository. In the future after we have a clearer understanding of this feature we could make a module or send a PR to decidim/decidim repository. Also for time constrains we will make it to v0.24 as v0.25 will have lots of inestability (upgrade to rails 6 and webpacker) and we need this for the Barcelona 2021 Participatory Budgeting process.


que passa amb el segon inici de sessio?? pot accedir de nou amb les mateixes dades? 
usuaris gestionats part II
:::

**Does this issue could impact on users private data?**
Yes, it's about verifying the participants.

**Acceptance criteria**

- [ ] Given that there's a component with the "Ephemerous Census Data Verification" enabled,
     When a visitor (non logged in) participant click in the "vote" button
     Then she'll see a modal that says: "Login/Register/Participate with the Census Data"
- [ ] Given that this visitor clicks in "Participate with the Census Data"
      Then she'll see a form with these fields: Type of document, Document number, Date of birth, Mobile phone and TOS checkbox acceptance.
- [ ] Given that the visitor has entered wrong data in this form
      Then she'll see a generic error with a support email or contact form link.
- [ ] Given that the visitor has entered data of an already registered participant in this form
      Then she'll see the same generic error with a support email or contact form link.
- [ ] Given that the visitor has entered data of a person that exists in the municipal census in this form and that's older than 14 years and that's not already registered
      Then she'll be able to vote in the component
      And
      She'll not be able to vote in other components nor leave a comment. 
- [ ] Given that this ephemerous participant has already voted
      Then she'll be able to leave her email 
      And 
      She'll receive an invitation to create an already verified account. 


:::danger

aquesta es un detall d'implemetnació de PB01 EMHO

## Direct registration and verification system through the authorization handlers
Ref: PB00.1 [Decidim]

This issue it can be done after the votation of  in Barcelona


**Is your feature request related to a problem? Please describe.**
As a system admin I need a way for participants to verify themselves and participate in the platform without having to create a user account.


**Describe the solution you’d like**
As a system admin I want to have a register/login option using the authorization handlers.

**Describe alternatives you’ve considered**
A clear and concise description of any alternative solutions or features you’ve considered.

**Additional context**
Add any other context or screenshots about the feature request here.

**Does this issue could impact on users private data?**
Ex. issues related with user’s sign up/sign in process, verifications, invitations, sensitive data like email, IP addresses, etc.

**Acceptance criteria**

- [ ] As an admin ...
:::


## To be able to add the scope limitation when enabling the authorization by census
Ref: PB02 [BCN]

https://github.com/AjuntamentdeBarcelona/decidim-barcelona/issues/358

## Improvement of the budget landing page design
Ref: PB03 [BCN]

https://github.com/AjuntamentdeBarcelona/decidim-barcelona/issues/359

## Improvement of the scopes list view on the Budgets component landing page
Ref: PB04 [Decidim]

https://github.com/AjuntamentdeBarcelona/decidim-barcelona/issues/360


## Improvement of the visibility of the progress box in budgets component

Ref: PB05

https://github.com/AjuntamentdeBarcelona/decidim-barcelona/issues/361

## Improve leaving site confirm dialog on budget voting

Ref: PB06


:::danger

No es pot canviar aquest missatge:

Note: this feature is implemented using the beforeunload event, that doesn't allow to know what is the target URL or to change the alert message (only IE allows it).
https://github.com/decidim/decidim/issues/5713


https://stackoverflow.com/questions/38879742/is-it-possible-to-display-a-custom-message-in-the-beforeunload-popup

:::

**Is your feature request related to a problem? Please describe.**

As a participant when I close an ongoing budget voting I see a confirm dialog that says "Leave site? Changes you made may not be saved. Cancel - Leave". I think this is not clear. 

**Describe the solution you’d like**
The Message should say:
"Are you sure you want to leave? You haven't finished the voting process yet. Cancel - Leave"

**Describe alternatives you’ve considered**
Other alternative text if improve the readibility

**Additional context**
Chrome message:
![](https://i.imgur.com/H32cwvN.png)

Related to [Decidim issue #5713: Show an error if a Participant close Budgets voting without saving them](https://github.com/decidim/decidim/issues/5713)

**Does this issue could impact on users private data?**
No

**Acceptance criteria**

- [ ] As a participant I want to see the new message when I leave the Budget projects list page and I have projects on my voting list but I haven't casted my vote.

----


## CSS and HTML improvements of the participatory budget process main page
Ref: PB07
:::warning
De moment aquesta es queda al congelador.
És la mateixa que la PB04 no??
:::

**Is your feature request related to a problem? Please describe.**
It is necessary to improve the design of this page […]

**Describe the solution you’d like**
A clear and concise description of what you want to happen.

**Describe alternatives you’ve considered**
A clear and concise description of any alternative solutions or features you’ve considered.

**Additional context**
Add any other context or screenshots about the feature request here.

**Does this issue could impact on users private data?**
Ex. issues related with user’s sign up/sign in process, verifications, invitations, sensitive data like email, IP addresses, etc.

**Acceptance criteria**

- [ ] As an admin ...


[PB09] [BCN] Afegir mapa d’accés directe a cada districte a la pàgina principal de decidim.barcelona

## Map content block at the home of decidim
Ref: PB08

:::warning
Aixo ja esta funcionant a preprod, el vaig posar a sota de tot
:::

**Is your feature request related to a problem? Please describe.**
As a visitor, I want to easily see in which districte are every one of the different votings of budgets.


**Describe the solution you’d like**
There's already a module made by Platoniq that works with this kind of maps and lets you do polygons and other shapes:
https://github.com/Platoniq/decidim-module-navigation_maps

**Describe alternatives you’ve considered**
We could use HTML and CSS in the html block but it is too complex.

**Additional context**
No

**Does this issue could impact on users private data?**
No

**Acceptance criteria**

- [ ] As a visitor I want to see a map where I can locate the different budgets votation to each district (areas)
- [ ] As an administrator, I want to be able to define which regions you link with which district
- [ ] As an administrator, I want to enable/disable this block at the home page of decidim.