Platoniq / decidim-indices

Decidim InDICEs participatory platform
https://participate.indices-culture.eu
GNU Affero General Public License v3.0
2 stars 1 forks source link

Feat/sat lite and survey sections group #109

Closed apuertadelaguila closed 1 year ago

apuertadelaguila commented 2 years ago

This branch implement a new Component, "SurveySectionsGroup" and a "Lite" version of SatSets named "SatLite", following the next diagram Captura de pantalla_20221129_164042 Through this component, SurveySectionsGroup, we are going to be able to create different sections of surveys (or SurveySections) and to order them through it attribute "weight" and inside every SurveySection, to add the desired Surveys. We will also able to export our survey's answers. image After submitting a survey, we will get feedback and navigate to the next or previous unfilled survey. survey-feedback

If we access within our admin dashboard and then to "Indices", "Processes" or "Assemblies" we will be able to create our new component SurveySectionsGroup. image

"Add component" must be clicked and then SurveySectionsGroup. Next, we have to fill the field "name". The fields Order position and Announcement are inherited from the parent class Component, but right now they do not influence the operation of this development. image

By clicking on "manage" we can edit our SurveySectionGroup and to add SurveySections to it. image

After creating a new section, we can see the list of sections with its surveys and to edit or remove each of them. image

In the edit view, we will be able to add Surveys to the SurveySection parent. We can add only the surveys included in this participatory process. image

Our other feature inside this branch is the SatLite. A SatLite is a shortened version of a SatSet, which can also have an image or an iframe. image

Within InDICEs section, we will find the next Self-Assessment Tool feature: the SatLite. index-sat_lites

We can create it by clicking "New SatLite". image

A Questionnaire must be linked to the SatLite. In order to follow the SatLite logic, it should be a shortened questionnaire. A SatLite also has Feedbacks. These Feedbacks can be added just like we can do with the SatSets. image

apuertadelaguila commented 1 year ago

We have found an issue in the next context: If we want to access our component without being an administrator user, we get a forbidden permission's error. Captura de pantalla_20221205_154452 We have actually a permissions file which looks like the "pages" module permissions file. You can check the file under "decidim-module-survey_sections_group/app/permissions/decidim/survey_sections_group/permissions.rb"