decidim-ice / decidim-module-decidim_awesome

Additional components and Opt-In usability and UX tweaks for Decidim.
GNU Affero General Public License v3.0
24 stars 24 forks source link

Feat: decidim private fields #307

Closed froger closed 3 months ago

froger commented 5 months ago

Include a new feature in the Awesome module: Add private fields to custom proposals.

As a participation designer, I can define private fields for proposals to ask proposers for personal information. This personal information could be required to submit a proposal and should not involve an extra step in the proposal submission process.

Context The city of Lausanne wanted to request private fields for their Participatory Budgeting (PB) in order to:

Open Source Politics also contributes, financing adaptations for export and compatibility with version 0.27. <3

Solution

In the custom field administration, add another "custom field" zone, reserved for private fields. In the form, add a section at the end for private fields. Add an exporter, not exposed to open-data, to export personal data from the administration. Change exporters of proposals to include custom fields.

Screenshots Proposal form, user side screencapture-theme-dev-voca-city-processes-nisi-non-f-14-proposals-45-edit-draft-2024-05-14-11_25_27

Confirm screen, without private data

Screenshot 2024-05-14 at 11 26 27

Published proposal, without private data

Screenshot 2024-05-14 at 11 26 39

Visualization of the fields, admin side

Screenshot 2024-05-14 at 11 34 47

Export options for private data

Screenshot 2024-05-14 at 11 31 22

Proposal administration screencapture-theme-dev-voca-city-admin-decidim-awesome-config-proposal-custom-fields-2024-05-14-10_15_08

froger commented 5 months ago

So from the pipelines, I see I need to do at least:

froger commented 4 months ago

Putting this PR in draft the time I make the necessary updates.

simonaszilinskas commented 4 months ago

Hey @froger , just wanted to ask if you had any news concerning the requested changes

paarals commented 4 months ago

Hey @froger , just wanted to ask if you had any news concerning the requested changes

also, this feature will may be cover with https://github.com/orgs/decidim/projects/24/views/12?pane=issue&itemId=49965362.

froger commented 4 months ago

Hello all,

We still miss:

froger commented 4 months ago

Hey @froger , just wanted to ask if you had any news concerning the requested changes

also, this feature will may be cover with https://github.com/orgs/decidim/projects/24/views/12?pane=issue&itemId=49965362.

Our customer needs where quiet specifics to having a "private section" of the form. I am unsure the feature you mention will attend their need, but we can discuss on this.

microstudi commented 4 months ago

@froger if you are ok with it, we are going to finish this PR as we have time and certain pressure to finish it this month.

I'd like very much to maintain you as the author of the PR to recognize your good work. To do so, you should create this PR from a branch in this repository (I've invited you now), then we will be able to add commits to it in order to finish it.

On the other hand, we will make a new PR for the develop branch to add this feature to the 0.28 too.

froger commented 3 months ago

closing in favor of #314 @microstudi as discussed, I've open a branch local to this repository. Feel free to update the code ;) Thanks a lot for your help.

microstudi commented 3 months ago

Thanks to you @froger , we'll finish this!