Coder Social home page Coder Social logo

populatetools / decidim-module-anonymous_proposals Goto Github PK

View Code? Open in Web Editor NEW
4.0 5.0 4.0 101 KB

Allow anonymous user to submit proposals

License: GNU Affero General Public License v3.0

Ruby 80.85% HTML 10.34% JavaScript 8.81%
ruby rubyonrails decidim rubygem decidim-module

decidim-module-anonymous_proposals's People

Contributors

armandfardeau avatar carlobeltrame avatar entantoencuanto avatar ferblape avatar furilo avatar kagemaru avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

decidim-module-anonymous_proposals's Issues

Bump to new versions

Hello,
We might be interested in using this module with Decidim instances in 0.26 and maybe higher.
Do you plan to bump it or is not maintained anymore ?
Do you want to add it to Decidim ICE ?
Thanks

Modify Default Activation Setting for Anonymous Proposals

Currently, the module enables anonymous proposals by default on all proposal components (at least when the module is added to a platform)

Task: Change the default setting so that anonymous proposals are not activated by default.

Give the option to the user to assign a proposal to an account after they created it

This new improvement is designed to extend the functionality of the existing Decidim Anonymous Proposals module. It allows users to create proposals anonymously, and then either keep them anonymous or assign them to an account after they have been created.

User flow:

  1. the user comes on the platform
  2. they fill in the proposal form and submit the proposal
  3. a modal appears suggesting them to create an account to assign the proposal to it
  4. the user can choose to assign it to an account or not
  • if they choose to assign it, then the proposal author becomes the user after they authenticated
  • if they choose not to sign in, the proposal remains anonymous

Video illustration of the mockup: https://www.loom.com/share/dc251cc6dafb434c8397673c730d9d4d?sid=052cf054-79f6-454a-a8d9-a3a816e9390c

Image of a mermaid: https://drive.google.com/file/d/1xv5lhe1jLSggEkhEregfu83EOb8UrCKn/view?usp=sharing

Administration

  • Administrators can enable or disable the module for each proposals component individually.
  • Once enabled, anonymous proposals with assignment option are available by default on all proposal components.
  • Administrators can also configure additional settings related to anonymous proposals, such as whether to allow users to assign anonymous proposals to their accounts after creation.

Benefits

  • Enhances user privacy by allowing users to create proposals anonymously.
  • Improves user flexibility by giving users the option to assign anonymous proposals to an account after creation.
  • Streamlines the proposal creation process by allowing users to create proposals without having to sign in first.
  • Enables administrators to manage and customize the handling of anonymous proposals.

Future Scope

  • Enhance the module to support additional types of user contributions, such as comments and endorsements.
  • Integrate the module with other Decidim modules and components to provide a seamless user experience.

Is the module compatible with Decidim 0.24?

Hi,

I tried to test your module but I can't even load the index page of a Proposals module. Is it because I haven't set any group to be used as author?

This is the stacktrace:

ActionView::Template::Error (no implicit conversion of Hash into String):
    1: <% unless user_signed_in? %>
    2:   <%= cell(
    3:             "decidim/announcement",
    4:             announcement: { I18n.locale => t(
    5:               ".text_html",

The problem is located at line 2 in this file.

Configurable per proposals component

We have a use case where we'd like to be able to configure on each proposals component, whether anonymous proposals are allowed or not.
Would you accept a PR that implements that feature? I have some time available to implement this.

Compatibility with simple proposals and custom (+private) proposal fields

We should make sure that the module is compatible with two modules that also work with the proposal creation form:
1. Simple proposals

2. Custom (+private) proposal fields - Decidim Awesome

Enable Anonymous Proposal Submissions for Connected Users

Objective: Allow connected users to preserve their anonimity.

For connected users: Allow them to choose to submit their proposal as an anonymous user. This might be done where traditionally you can select to submit the proposal as a group.

image

Getting error when installing the module

I'm facing this error when I run bundle:

Fetching https://github.com/PopulateTools/decidim-module-anonymous_proposals
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies......
Bundler could not find compatible versions for gem "decidim-core":
  In snapshot (Gemfile.lock):
    decidim-core (= 0.23.1)

  In Gemfile:
    decidim-dev (= 0.23.1) was resolved to 0.23.1, which depends on
      decidim (= 0.23.1) was resolved to 0.23.1, which depends on
        decidim-core (= 0.23.1)

    decidim-anonymous_proposals was resolved to 0.1, which depends on
      decidim-core (>= 0.24.0)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

I have tried bundle update with no avail.

Redirect User to Proposal Creation Form After Sign-Up/Sign-In

Description:
Currently, when a user who is not signed in starts creating an anonymous proposal, they see a top banner prompting them to sign up or sign in. The expected behavior is that, after signing up or logging in, the user should be automatically redirected back to the proposal creation form they were working on. This ensures a seamless and user-friendly experience, preventing loss of progress and encouraging user engagement.

Steps to Reproduce:

  1. Visit the website as a non-signed-in user.
  2. Begin creating a proposal anonymously.
  3. Click on the sign-up/sign-in prompt in the top banner.
  4. Complete the sign-up or sign-in process.

Expected Result:
After sign-up/sign-in, the user is redirected back to the proposal creation form with any entered data retained.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.