decidim-participatory_processes 0.27.10 → 0.28.0.rc4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/cells/decidim/participatory_process_groups/content_block_cell.rb +5 -1
  4. data/app/cells/decidim/participatory_process_groups/content_blocks/extra_data/recent_users.erb +1 -0
  5. data/app/cells/decidim/participatory_process_groups/content_blocks/extra_data_cell.rb +71 -0
  6. data/app/cells/decidim/participatory_process_groups/content_blocks/main_data/content.erb +30 -0
  7. data/app/cells/decidim/participatory_process_groups/content_blocks/main_data_cell.rb +77 -0
  8. data/app/cells/decidim/participatory_process_groups/content_blocks/related_processes_cell.rb +47 -0
  9. data/app/cells/decidim/participatory_process_groups/content_blocks/statistics_cell.rb +2 -2
  10. data/app/cells/decidim/participatory_process_groups/process_filters_cell.rb +4 -4
  11. data/app/cells/decidim/participatory_processes/content_block_cell.rb +21 -0
  12. data/app/cells/decidim/participatory_processes/content_blocks/extra_data/active_step.erb +1 -0
  13. data/app/cells/decidim/participatory_processes/content_blocks/extra_data_cell.rb +60 -0
  14. data/app/cells/decidim/participatory_processes/content_blocks/hero_cell.rb +29 -0
  15. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb +14 -27
  16. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form/show.erb +1 -1
  17. data/app/cells/decidim/participatory_processes/content_blocks/main_data_cell.rb +34 -0
  18. data/app/cells/decidim/participatory_processes/content_blocks/metadata_cell.rb +23 -0
  19. data/app/cells/decidim/participatory_processes/content_blocks/metrics_cell.rb +25 -0
  20. data/app/cells/decidim/participatory_processes/content_blocks/processes_settings_form/show.erb +3 -0
  21. data/app/cells/decidim/participatory_processes/content_blocks/processes_settings_form_cell.rb +28 -0
  22. data/app/cells/decidim/participatory_processes/content_blocks/related_processes/content.erb +1 -0
  23. data/app/cells/decidim/participatory_processes/content_blocks/related_processes_cell.rb +53 -0
  24. data/app/cells/decidim/participatory_processes/content_blocks/stats_cell.rb +17 -0
  25. data/app/cells/decidim/participatory_processes/filtered_participatory_processes_cell.rb +1 -1
  26. data/app/cells/decidim/participatory_processes/process_cell.rb +2 -2
  27. data/app/cells/decidim/participatory_processes/process_dropdown_metadata/metadata.erb +22 -0
  28. data/app/cells/decidim/participatory_processes/process_dropdown_metadata_cell.rb +39 -0
  29. data/app/cells/decidim/participatory_processes/process_filters/show.erb +4 -5
  30. data/app/cells/decidim/participatory_processes/process_filters/type_filter.erb +1 -1
  31. data/app/cells/decidim/participatory_processes/process_filters_cell.rb +6 -6
  32. data/app/cells/decidim/participatory_processes/process_g_cell.rb +31 -0
  33. data/app/cells/decidim/participatory_processes/process_group_cell.rb +2 -2
  34. data/app/cells/decidim/participatory_processes/process_group_g_cell.rb +23 -0
  35. data/app/cells/decidim/participatory_processes/process_group_metadata_cell.rb +46 -0
  36. data/app/cells/decidim/participatory_processes/process_group_s_cell.rb +5 -13
  37. data/app/cells/decidim/participatory_processes/process_metadata_cell.rb +44 -0
  38. data/app/cells/decidim/participatory_processes/process_metadata_g_cell.rb +15 -0
  39. data/app/cells/decidim/participatory_processes/process_s_cell.rb +5 -25
  40. data/app/cells/decidim/participatory_processes/process_step/show.erb +48 -0
  41. data/app/cells/decidim/participatory_processes/process_step_cell.rb +30 -0
  42. data/app/cells/decidim/participatory_processes/processes/show.erb +16 -0
  43. data/app/cells/decidim/participatory_processes/processes_cell.rb +24 -0
  44. data/app/commands/decidim/participatory_processes/admin/activate_participatory_process_step.rb +1 -1
  45. data/app/commands/decidim/participatory_processes/admin/copy_participatory_process.rb +2 -2
  46. data/app/commands/decidim/participatory_processes/admin/create_participatory_process.rb +3 -1
  47. data/app/commands/decidim/participatory_processes/admin/create_participatory_process_group.rb +4 -2
  48. data/app/commands/decidim/participatory_processes/admin/create_participatory_process_step.rb +1 -1
  49. data/app/commands/decidim/participatory_processes/admin/create_participatory_process_type.rb +1 -1
  50. data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_group.rb +1 -1
  51. data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_step.rb +1 -1
  52. data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_type.rb +1 -1
  53. data/app/commands/decidim/participatory_processes/admin/import_participatory_process.rb +1 -1
  54. data/app/commands/decidim/participatory_processes/admin/reorder_participatory_process_steps.rb +1 -1
  55. data/app/commands/decidim/participatory_processes/admin/update_participatory_process.rb +1 -1
  56. data/app/commands/decidim/participatory_processes/admin/update_participatory_process_group.rb +2 -2
  57. data/app/commands/decidim/participatory_processes/admin/update_participatory_process_step.rb +1 -1
  58. data/app/commands/decidim/participatory_processes/admin/update_participatory_process_type.rb +1 -1
  59. data/app/constraints/decidim/participatory_processes/current_participatory_process.rb +1 -1
  60. data/app/controllers/decidim/participatory_processes/admin/application_controller.rb +29 -0
  61. data/app/controllers/decidim/participatory_processes/admin/categories_controller.rb +2 -0
  62. data/app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb +3 -1
  63. data/app/controllers/decidim/participatory_processes/admin/moderations/reports_controller.rb +1 -1
  64. data/app/controllers/decidim/participatory_processes/admin/moderations_controller.rb +1 -1
  65. data/app/controllers/decidim/participatory_processes/admin/participatory_process_attachment_collections_controller.rb +5 -0
  66. data/app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb +5 -0
  67. data/app/controllers/decidim/participatory_processes/admin/participatory_process_group_landing_page_content_blocks_controller.rb +1 -5
  68. data/app/controllers/decidim/participatory_processes/admin/participatory_process_group_landing_page_controller.rb +24 -7
  69. data/app/controllers/decidim/participatory_processes/admin/participatory_process_groups_controller.rb +16 -0
  70. data/app/controllers/decidim/participatory_processes/admin/participatory_process_imports_controller.rb +14 -0
  71. data/app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_content_blocks_controller.rb +37 -0
  72. data/app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_controller.rb +37 -0
  73. data/app/controllers/decidim/participatory_processes/admin/participatory_process_publications_controller.rb +9 -29
  74. data/app/controllers/decidim/participatory_processes/admin/participatory_process_step_activations_controller.rb +1 -1
  75. data/app/controllers/decidim/participatory_processes/admin/participatory_process_steps_controller.rb +16 -4
  76. data/app/controllers/decidim/participatory_processes/admin/participatory_process_types_controller.rb +19 -0
  77. data/app/controllers/decidim/participatory_processes/admin/participatory_process_user_roles_controller.rb +8 -91
  78. data/app/controllers/decidim/participatory_processes/admin/participatory_processes_controller.rb +3 -0
  79. data/app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb +14 -1
  80. data/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb +19 -4
  81. data/app/events/decidim/participatory_process_role_assigned_event.rb +6 -6
  82. data/app/events/decidim/participatory_process_step_activated_event.rb +5 -4
  83. data/app/events/decidim/participatory_process_step_changed_event.rb +5 -4
  84. data/app/forms/decidim/participatory_processes/admin/participatory_process_copy_form.rb +1 -1
  85. data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +1 -1
  86. data/app/forms/decidim/participatory_processes/admin/participatory_process_import_form.rb +1 -1
  87. data/app/forms/decidim/participatory_processes/admin/participatory_process_step_form.rb +2 -2
  88. data/app/forms/decidim/participatory_processes/admin/participatory_process_user_role_form.rb +2 -18
  89. data/app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb +1 -0
  90. data/app/helpers/decidim/participatory_processes/application_helper.rb +5 -0
  91. data/app/helpers/decidim/participatory_processes/participatory_process_helper.rb +37 -9
  92. data/app/helpers/decidim/participatory_processes/participatory_space_content_blocks_helper.rb +17 -0
  93. data/app/jobs/decidim/participatory_processes/change_active_step_job.rb +35 -0
  94. data/app/models/decidim/participatory_process.rb +5 -5
  95. data/app/models/decidim/participatory_process_group.rb +4 -0
  96. data/app/models/decidim/participatory_process_user_role.rb +5 -34
  97. data/app/packs/entrypoints/decidim_participatory_processes.js +0 -2
  98. data/app/packs/src/decidim/participatory_processes/admin/participatory_processes.js +2 -2
  99. data/app/permissions/decidim/participatory_processes/permissions.rb +11 -15
  100. data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_group_presenter.rb +2 -2
  101. data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_presenter.rb +2 -2
  102. data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_type_presenter.rb +2 -2
  103. data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_user_role_presenter.rb +2 -2
  104. data/app/presenters/decidim/participatory_processes/admin_log/step_presenter.rb +2 -2
  105. data/app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb +4 -40
  106. data/app/presenters/decidim/participatory_processes/participatory_process_metric_charts_presenter.rb +0 -68
  107. data/app/presenters/decidim/participatory_processes/participatory_process_presenter.rb +6 -0
  108. data/app/presenters/decidim/participatory_processes/participatory_process_stats_presenter.rb +3 -42
  109. data/app/queries/decidim/participatory_processes/admin/admin_users.rb +1 -1
  110. data/app/queries/decidim/participatory_processes/admin/moderators.rb +1 -1
  111. data/app/serializers/decidim/participatory_processes/participatory_process_importer.rb +4 -4
  112. data/app/views/decidim/participatory_processes/admin/participatory_process_copies/_form.html.erb +24 -29
  113. data/app/views/decidim/participatory_processes/admin/participatory_process_copies/new.html.erb +16 -5
  114. data/app/views/decidim/participatory_processes/admin/participatory_process_groups/_form.html.erb +72 -50
  115. data/app/views/decidim/participatory_processes/admin/participatory_process_groups/edit.html.erb +15 -9
  116. data/app/views/decidim/participatory_processes/admin/participatory_process_groups/index.html.erb +49 -54
  117. data/app/views/decidim/participatory_processes/admin/participatory_process_groups/new.html.erb +28 -5
  118. data/app/views/decidim/participatory_processes/admin/participatory_process_imports/_form.html.erb +33 -39
  119. data/app/views/decidim/participatory_processes/admin/participatory_process_imports/new.html.erb +18 -5
  120. data/app/views/decidim/participatory_processes/admin/participatory_process_steps/_form.html.erb +18 -25
  121. data/app/views/decidim/participatory_processes/admin/participatory_process_steps/edit.html.erb +16 -5
  122. data/app/views/decidim/participatory_processes/admin/participatory_process_steps/index.html.erb +54 -54
  123. data/app/views/decidim/participatory_processes/admin/participatory_process_steps/new.html.erb +18 -5
  124. data/app/views/decidim/participatory_processes/admin/participatory_process_steps/show.html.erb +2 -2
  125. data/app/views/decidim/participatory_processes/admin/participatory_process_types/_form.html.erb +6 -8
  126. data/app/views/decidim/participatory_processes/admin/participatory_process_types/edit.html.erb +14 -6
  127. data/app/views/decidim/participatory_processes/admin/participatory_process_types/index.html.erb +47 -50
  128. data/app/views/decidim/participatory_processes/admin/participatory_process_types/new.html.erb +14 -6
  129. data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/_form.html.erb +14 -18
  130. data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/edit.html.erb +17 -6
  131. data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/index.html.erb +59 -60
  132. data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/new.html.erb +16 -5
  133. data/app/views/decidim/participatory_processes/admin/participatory_processes/_form.html.erb +193 -146
  134. data/app/views/decidim/participatory_processes/admin/participatory_processes/edit.html.erb +25 -11
  135. data/app/views/decidim/participatory_processes/admin/participatory_processes/index.html.erb +111 -128
  136. data/app/views/decidim/participatory_processes/admin/participatory_processes/new.html.erb +16 -9
  137. data/app/views/decidim/participatory_processes/participatory_process_groups/show.html.erb +6 -10
  138. data/app/views/decidim/participatory_processes/participatory_processes/_collection.html.erb +8 -0
  139. data/app/views/decidim/participatory_processes/participatory_processes/all_metrics.html.erb +21 -8
  140. data/app/views/decidim/participatory_processes/participatory_processes/index.html.erb +19 -17
  141. data/app/views/decidim/participatory_processes/participatory_processes/index.js.erb +1 -8
  142. data/app/views/decidim/participatory_processes/participatory_processes/show.html.erb +14 -128
  143. data/app/views/layouts/decidim/_process_header.html.erb +15 -26
  144. data/app/views/layouts/decidim/_process_nav_item.html.erb +6 -0
  145. data/app/views/layouts/decidim/admin/_manage_processes.html.erb +36 -0
  146. data/app/views/layouts/decidim/admin/participatory_process.html.erb +12 -14
  147. data/app/views/layouts/decidim/admin/participatory_process_group.html.erb +23 -13
  148. data/app/views/layouts/decidim/admin/participatory_process_groups.html.erb +13 -0
  149. data/app/views/layouts/decidim/admin/participatory_process_type.html.erb +13 -11
  150. data/app/views/layouts/decidim/admin/participatory_processes.html.erb +14 -8
  151. data/app/views/layouts/decidim/participatory_process.html.erb +7 -14
  152. data/config/locales/ar.yml +1 -55
  153. data/config/locales/bg.yml +0 -518
  154. data/config/locales/ca.yml +50 -70
  155. data/config/locales/cs.yml +51 -71
  156. data/config/locales/de.yml +52 -72
  157. data/config/locales/el.yml +8 -64
  158. data/config/locales/en.yml +52 -72
  159. data/config/locales/es-MX.yml +49 -69
  160. data/config/locales/es-PY.yml +49 -69
  161. data/config/locales/es.yml +49 -69
  162. data/config/locales/eu.yml +89 -112
  163. data/config/locales/fi-plain.yml +50 -70
  164. data/config/locales/fi.yml +57 -77
  165. data/config/locales/fr-CA.yml +51 -71
  166. data/config/locales/fr.yml +52 -72
  167. data/config/locales/ga-IE.yml +0 -16
  168. data/config/locales/gl.yml +0 -67
  169. data/config/locales/hu.yml +6 -66
  170. data/config/locales/id-ID.yml +1 -55
  171. data/config/locales/is-IS.yml +0 -24
  172. data/config/locales/it.yml +0 -67
  173. data/config/locales/ja.yml +51 -71
  174. data/config/locales/lb.yml +1 -153
  175. data/config/locales/lt.yml +39 -65
  176. data/config/locales/lv.yml +1 -59
  177. data/config/locales/nl.yml +0 -67
  178. data/config/locales/no.yml +0 -92
  179. data/config/locales/pl.yml +0 -124
  180. data/config/locales/pt-BR.yml +1 -113
  181. data/config/locales/pt.yml +0 -67
  182. data/config/locales/ro-RO.yml +4 -64
  183. data/config/locales/ru.yml +0 -49
  184. data/config/locales/sk.yml +1 -56
  185. data/config/locales/sl.yml +0 -7
  186. data/config/locales/sr-CS.yml +0 -4
  187. data/config/locales/sv.yml +148 -240
  188. data/config/locales/tr-TR.yml +7 -68
  189. data/config/locales/uk.yml +0 -49
  190. data/config/locales/zh-CN.yml +2 -63
  191. data/config/locales/zh-TW.yml +3 -63
  192. data/db/migrate/20220315100140_change_steps_dates_to_datetime.rb +8 -0
  193. data/lib/decidim/api/participatory_process_step_type.rb +2 -2
  194. data/lib/decidim/participatory_processes/admin_engine.rb +20 -139
  195. data/lib/decidim/participatory_processes/content_blocks/registry_manager.rb +278 -0
  196. data/lib/decidim/participatory_processes/engine.rb +13 -103
  197. data/lib/decidim/participatory_processes/menu.rb +190 -0
  198. data/lib/decidim/participatory_processes/participatory_space.rb +7 -204
  199. data/lib/decidim/participatory_processes/query_extensions.rb +2 -2
  200. data/lib/decidim/participatory_processes/seeds.rb +164 -0
  201. data/lib/decidim/participatory_processes/test/factories.rb +58 -66
  202. data/lib/decidim/participatory_processes/version.rb +1 -1
  203. data/lib/tasks/decidim_participatory_processes.rake +8 -0
  204. metadata +62 -67
  205. data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters.erb +0 -21
  206. data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters_small_view.erb +0 -18
  207. data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/participatory_space_filters.erb +0 -6
  208. data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/show.erb +0 -8
  209. data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/title_filter_order.erb +0 -8
  210. data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes_cell.rb +0 -60
  211. data/app/cells/decidim/participatory_process_groups/content_blocks/html/show.erb +0 -3
  212. data/app/cells/decidim/participatory_process_groups/content_blocks/html_cell.rb +0 -13
  213. data/app/cells/decidim/participatory_process_groups/content_blocks/metadata/show.erb +0 -28
  214. data/app/cells/decidim/participatory_process_groups/content_blocks/metadata_cell.rb +0 -15
  215. data/app/cells/decidim/participatory_process_groups/content_blocks/title/show.erb +0 -43
  216. data/app/cells/decidim/participatory_process_groups/content_blocks/title_cell.rb +0 -64
  217. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/_all_processes.erb +0 -9
  218. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/show.erb +0 -14
  219. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/single_process.erb +0 -48
  220. data/app/cells/decidim/participatory_processes/process_group_m/footer.erb +0 -8
  221. data/app/cells/decidim/participatory_processes/process_group_m_cell.rb +0 -60
  222. data/app/cells/decidim/participatory_processes/process_group_s/image.erb +0 -1
  223. data/app/cells/decidim/participatory_processes/process_group_s/show.erb +0 -8
  224. data/app/cells/decidim/participatory_processes/process_m/data.erb +0 -21
  225. data/app/cells/decidim/participatory_processes/process_m/footer.erb +0 -14
  226. data/app/cells/decidim/participatory_processes/process_m/tags.erb +0 -8
  227. data/app/cells/decidim/participatory_processes/process_m_cell.rb +0 -87
  228. data/app/cells/decidim/participatory_processes/process_s/image.erb +0 -1
  229. data/app/cells/decidim/participatory_processes/process_s/show.erb +0 -14
  230. data/app/commands/decidim/participatory_processes/admin/create_participatory_process_admin.rb +0 -58
  231. data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_admin.rb +0 -58
  232. data/app/commands/decidim/participatory_processes/admin/notify_role_assigned_to_participatory_process.rb +0 -22
  233. data/app/commands/decidim/participatory_processes/admin/publish_participatory_process.rb +0 -40
  234. data/app/commands/decidim/participatory_processes/admin/unpublish_participatory_process.rb +0 -40
  235. data/app/commands/decidim/participatory_processes/admin/update_participatory_process_admin.rb +0 -56
  236. data/app/controllers/decidim/participatory_processes/participatory_process_steps_controller.rb +0 -28
  237. data/app/controllers/decidim/participatory_processes/widgets_controller.rb +0 -37
  238. data/app/packs/src/decidim/participatory_processes/filters.js +0 -28
  239. data/app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb +0 -16
  240. data/app/views/decidim/participatory_processes/participatory_process_steps/_timeline.html.erb +0 -7
  241. data/app/views/decidim/participatory_processes/participatory_process_steps/index.html.erb +0 -18
  242. data/app/views/decidim/participatory_processes/participatory_processes/_metrics.html.erb +0 -10
  243. data/app/views/decidim/participatory_processes/participatory_processes/_order_by_processes.html.erb +0 -1
  244. data/app/views/decidim/participatory_processes/participatory_processes/_participatory_process_group.html.erb +0 -4
  245. data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process.html.erb +0 -39
  246. data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process_group.html.erb +0 -31
  247. data/app/views/layouts/decidim/_process_header_steps.html.erb +0 -37
  248. data/app/views/layouts/decidim/_process_navigation.html.erb +0 -20
  249. data/config/locales/he-IL.yml +0 -1
  250. data/db/seeds/Exampledocument.pdf +0 -0
  251. data/db/seeds/city.jpeg +0 -0
  252. data/db/seeds/city2.jpeg +0 -0
  253. data/db/seeds/homepage_image.jpg +0 -0
  254. data/decidim-participatory_processes.gemspec +0 -31
@@ -11,26 +11,23 @@ FactoryBot.define do
11
11
  end
12
12
 
13
13
  factory :participatory_process, class: "Decidim::ParticipatoryProcess" do
14
- transient do
15
- skip_injection { false }
16
- end
17
- title { generate_localized_title(:participatory_process_title, skip_injection: skip_injection) }
14
+ title { generate_localized_title }
18
15
  slug { generate(:participatory_process_slug) }
19
- subtitle { generate_localized_title(:participatory_process_subtitle, skip_injection: skip_injection) }
16
+ subtitle { generate_localized_title }
20
17
  weight { 1 }
21
- short_description { generate_localized_description(:participatory_process_short_description, skip_injection: skip_injection) }
22
- description { generate_localized_description(:participatory_process_description, skip_injection: skip_injection) }
18
+ short_description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
19
+ description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
23
20
  organization
24
21
  hero_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") } # Keep after organization
25
22
  banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") } # Keep after organization
26
23
  published_at { Time.current }
27
- meta_scope { generate_localized_word(:participatory_process_meta_scope, skip_injection: skip_injection) }
28
- developer_group { generate_localized_title(:participatory_process_developer_group, skip_injection: skip_injection) }
29
- local_area { generate_localized_title(:participatory_process_local_area, skip_injection: skip_injection) }
30
- target { generate_localized_title(:participatory_process_target, skip_injection: skip_injection) }
31
- participatory_scope { generate_localized_title(:participatory_process_participatory_scope, skip_injection: skip_injection) }
32
- participatory_structure { generate_localized_title(:participatory_process_participatory_structure, skip_injection: skip_injection) }
33
- announcement { generate_localized_title(:participatory_process_announcement, skip_injection: skip_injection) }
24
+ meta_scope { Decidim::Faker::Localized.word }
25
+ developer_group { generate_localized_title }
26
+ local_area { generate_localized_title }
27
+ target { generate_localized_title }
28
+ participatory_scope { generate_localized_title }
29
+ participatory_structure { generate_localized_title }
30
+ announcement { generate_localized_title }
34
31
  show_metrics { true }
35
32
  show_statistics { true }
36
33
  private_space { false }
@@ -61,8 +58,7 @@ FactoryBot.define do
61
58
  create(:participatory_process_step,
62
59
  active: true,
63
60
  end_date: evaluator.current_step_ends,
64
- skip_injection: evaluator.skip_injection,
65
- participatory_process: participatory_process)
61
+ participatory_process:)
66
62
  participatory_process.reload
67
63
  participatory_process.steps.reload
68
64
  end
@@ -85,46 +81,54 @@ FactoryBot.define do
85
81
 
86
82
  trait :with_scope do
87
83
  scopes_enabled { true }
88
- scope { create :scope, organization: organization }
84
+ scope { create :scope, organization: }
85
+ end
86
+
87
+ trait :with_content_blocks do
88
+ transient { blocks_manifests { [:process_hero] } }
89
+
90
+ after(:create) do |participatory_process, evaluator|
91
+ evaluator.blocks_manifests.each do |manifest_name|
92
+ create(
93
+ :content_block,
94
+ organization: participatory_process.organization,
95
+ scope_name: :participatory_process_homepage,
96
+ manifest_name:,
97
+ scoped_resource_id: participatory_process.id
98
+ )
99
+ end
100
+ end
89
101
  end
90
102
  end
91
103
 
92
104
  factory :participatory_process_group, class: "Decidim::ParticipatoryProcessGroup" do
93
- transient do
94
- skip_injection { false }
95
- end
96
- title { generate_localized_title(:participatory_process_group_title, skip_injection: skip_injection) }
97
- description { generate_localized_description(:participatory_process_group_description, skip_injection: skip_injection) }
105
+ title { generate_localized_title }
106
+ description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
98
107
  hero_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") }
99
108
  organization
100
109
  hashtag { Faker::Internet.slug }
101
110
  group_url { Faker::Internet.url }
102
- developer_group { generate_localized_title(:participatory_process_group_developer_group, skip_injection: skip_injection) }
103
- local_area { generate_localized_title(:participatory_process_group_local_area, skip_injection: skip_injection) }
111
+ developer_group { generate_localized_title }
112
+ local_area { generate_localized_title }
104
113
  meta_scope { Decidim::Faker::Localized.word }
105
- target { generate_localized_title(:participatory_process_group_target, skip_injection: skip_injection) }
106
- participatory_scope { generate_localized_title(:participatory_process_group_participatory_scope, skip_injection: skip_injection) }
107
- participatory_structure { generate_localized_title(:participatory_process_group_participatory_structure, skip_injection: skip_injection) }
114
+ target { generate_localized_title }
115
+ participatory_scope { generate_localized_title }
116
+ participatory_structure { generate_localized_title }
108
117
 
109
118
  trait :promoted do
110
119
  promoted { true }
111
120
  end
112
121
 
113
122
  trait :with_participatory_processes do
114
- after(:create) do |participatory_process_group, evaluator|
115
- create_list(:participatory_process, 2, :published, organization: participatory_process_group.organization, participatory_process_group: participatory_process_group,
116
- skip_injection: evaluator.skip_injection)
123
+ after(:create) do |participatory_process_group|
124
+ create_list(:participatory_process, 2, :published, organization: participatory_process_group.organization, participatory_process_group:)
117
125
  end
118
126
  end
119
127
  end
120
128
 
121
129
  factory :participatory_process_step, class: "Decidim::ParticipatoryProcessStep" do
122
- transient do
123
- skip_injection { false }
124
- end
125
- title { generate_localized_title(:participatory_process_step_title, skip_injection: skip_injection) }
126
- description { generate_localized_description(:participatory_process_step_description, skip_injection: skip_injection) }
127
- cta_text { generate_localized_description(:participatory_process_step_cta_text, skip_injection: skip_injection) }
130
+ title { generate_localized_title }
131
+ description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
128
132
  start_date { 1.month.ago }
129
133
  end_date { 2.months.from_now }
130
134
  position { nil }
@@ -141,31 +145,25 @@ FactoryBot.define do
141
145
  end
142
146
 
143
147
  factory :participatory_process_type, class: "Decidim::ParticipatoryProcessType" do
144
- transient do
145
- skip_injection { false }
146
- end
147
- title { generate_localized_title(:participatory_process_type_title, skip_injection: skip_injection) }
148
+ title { generate_localized_title }
148
149
  organization
149
150
 
150
151
  trait :with_active_participatory_processes do
151
- after(:create) do |participatory_process_type, evaluator|
152
- create_list(:participatory_process, 2, :active, :published, organization: participatory_process_type.organization, participatory_process_type: participatory_process_type,
153
- skip_injection: evaluator.skip_injection)
152
+ after(:create) do |participatory_process_type|
153
+ create_list(:participatory_process, 2, :active, :published, organization: participatory_process_type.organization, participatory_process_type:)
154
154
  end
155
155
  end
156
156
 
157
157
  trait :with_past_participatory_processes do
158
- after(:create) do |participatory_process_type, evaluator|
159
- create_list(:participatory_process, 2, :past, :published, organization: participatory_process_type.organization, participatory_process_type: participatory_process_type,
160
- skip_injection: evaluator.skip_injection)
158
+ after(:create) do |participatory_process_type|
159
+ create_list(:participatory_process, 2, :past, :published, organization: participatory_process_type.organization, participatory_process_type:)
161
160
  end
162
161
  end
163
162
  end
164
163
 
165
164
  factory :process_admin, parent: :user, class: "Decidim::User" do
166
165
  transient do
167
- skip_injection { false }
168
- participatory_process { create(:participatory_process, skip_injection: skip_injection) }
166
+ participatory_process { create(:participatory_process) }
169
167
  end
170
168
 
171
169
  organization { participatory_process.organization }
@@ -173,16 +171,15 @@ FactoryBot.define do
173
171
 
174
172
  after(:create) do |user, evaluator|
175
173
  create :participatory_process_user_role,
176
- user: user,
174
+ user:,
177
175
  participatory_process: evaluator.participatory_process,
178
- role: :admin, skip_injection: evaluator.skip_injection
176
+ role: :admin
179
177
  end
180
178
  end
181
179
 
182
180
  factory :process_collaborator, parent: :user, class: "Decidim::User" do
183
181
  transient do
184
- skip_injection { false }
185
- participatory_process { create(:participatory_process, skip_injection: skip_injection) }
182
+ participatory_process { create(:participatory_process) }
186
183
  end
187
184
 
188
185
  organization { participatory_process.organization }
@@ -190,16 +187,15 @@ FactoryBot.define do
190
187
 
191
188
  after(:create) do |user, evaluator|
192
189
  create :participatory_process_user_role,
193
- user: user,
190
+ user:,
194
191
  participatory_process: evaluator.participatory_process,
195
- role: :collaborator, skip_injection: evaluator.skip_injection
192
+ role: :collaborator
196
193
  end
197
194
  end
198
195
 
199
196
  factory :process_moderator, parent: :user, class: "Decidim::User" do
200
197
  transient do
201
- skip_injection { false }
202
- participatory_process { create(:participatory_process, skip_injection: skip_injection) }
198
+ participatory_process { create(:participatory_process) }
203
199
  end
204
200
 
205
201
  organization { participatory_process.organization }
@@ -207,16 +203,15 @@ FactoryBot.define do
207
203
 
208
204
  after(:create) do |user, evaluator|
209
205
  create :participatory_process_user_role,
210
- user: user,
206
+ user:,
211
207
  participatory_process: evaluator.participatory_process,
212
- role: :moderator, skip_injection: evaluator.skip_injection
208
+ role: :moderator
213
209
  end
214
210
  end
215
211
 
216
212
  factory :process_valuator, parent: :user, class: "Decidim::User" do
217
213
  transient do
218
- skip_injection { false }
219
- participatory_process { create(:participatory_process, skip_injection: skip_injection) }
214
+ participatory_process { create(:participatory_process) }
220
215
  end
221
216
 
222
217
  organization { participatory_process.organization }
@@ -224,18 +219,15 @@ FactoryBot.define do
224
219
 
225
220
  after(:create) do |user, evaluator|
226
221
  create :participatory_process_user_role,
227
- user: user,
222
+ user:,
228
223
  participatory_process: evaluator.participatory_process,
229
- role: :valuator, skip_injection: evaluator.skip_injection
224
+ role: :valuator
230
225
  end
231
226
  end
232
227
 
233
228
  factory :participatory_process_user_role, class: "Decidim::ParticipatoryProcessUserRole" do
234
- transient do
235
- skip_injection { false }
236
- end
237
229
  user
238
- participatory_process { create :participatory_process, organization: user.organization, skip_injection: skip_injection }
230
+ participatory_process { create :participatory_process, organization: user.organization }
239
231
  role { "admin" }
240
232
  end
241
233
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-participatory_processes version.
5
5
  module ParticipatoryProcesses
6
6
  def self.version
7
- "0.27.10"
7
+ "0.28.0.rc4"
8
8
  end
9
9
  end
10
10
  end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ namespace :decidim_participatory_processes do
4
+ desc "Change active step automatically in participatory processes"
5
+ task :change_active_step, [] => :environment do
6
+ Decidim::ParticipatoryProcesses::ChangeActiveStepJob.perform_later
7
+ end
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-participatory_processes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.10
4
+ version: 0.28.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2025-03-20 00:00:00.000000000 Z
13
+ date: 2023-12-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,56 +18,56 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.27.10
21
+ version: 0.28.0.rc4
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.27.10
28
+ version: 0.28.0.rc4
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-admin
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.27.10
35
+ version: 0.28.0.rc4
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.27.10
42
+ version: 0.28.0.rc4
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: decidim-dev
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.27.10
49
+ version: 0.28.0.rc4
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.27.10
56
+ version: 0.28.0.rc4
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: decidim-meetings
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.27.10
63
+ version: 0.28.0.rc4
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.27.10
70
+ version: 0.28.0.rc4
71
71
  description: Participatory processes component for decidim.
72
72
  email:
73
73
  - josepjaume@gmail.com
@@ -81,64 +81,61 @@ files:
81
81
  - Rakefile
82
82
  - app/cells/decidim/participatory_process_activity_cell.rb
83
83
  - app/cells/decidim/participatory_process_groups/content_block_cell.rb
84
- - app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters.erb
85
- - app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters_small_view.erb
86
- - app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/participatory_space_filters.erb
87
- - app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/show.erb
88
- - app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/title_filter_order.erb
89
- - app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes_cell.rb
90
- - app/cells/decidim/participatory_process_groups/content_blocks/html/show.erb
91
- - app/cells/decidim/participatory_process_groups/content_blocks/html_cell.rb
92
- - app/cells/decidim/participatory_process_groups/content_blocks/metadata/show.erb
93
- - app/cells/decidim/participatory_process_groups/content_blocks/metadata_cell.rb
84
+ - app/cells/decidim/participatory_process_groups/content_blocks/extra_data/recent_users.erb
85
+ - app/cells/decidim/participatory_process_groups/content_blocks/extra_data_cell.rb
86
+ - app/cells/decidim/participatory_process_groups/content_blocks/main_data/content.erb
87
+ - app/cells/decidim/participatory_process_groups/content_blocks/main_data_cell.rb
88
+ - app/cells/decidim/participatory_process_groups/content_blocks/related_processes_cell.rb
94
89
  - app/cells/decidim/participatory_process_groups/content_blocks/statistics_cell.rb
95
- - app/cells/decidim/participatory_process_groups/content_blocks/title/show.erb
96
- - app/cells/decidim/participatory_process_groups/content_blocks/title_cell.rb
97
90
  - app/cells/decidim/participatory_process_groups/process_filters_cell.rb
98
- - app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/_all_processes.erb
99
- - app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/show.erb
100
- - app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/single_process.erb
91
+ - app/cells/decidim/participatory_processes/content_block_cell.rb
92
+ - app/cells/decidim/participatory_processes/content_blocks/extra_data/active_step.erb
93
+ - app/cells/decidim/participatory_processes/content_blocks/extra_data_cell.rb
94
+ - app/cells/decidim/participatory_processes/content_blocks/hero_cell.rb
101
95
  - app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb
102
96
  - app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form/show.erb
103
97
  - app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form_cell.rb
98
+ - app/cells/decidim/participatory_processes/content_blocks/main_data_cell.rb
99
+ - app/cells/decidim/participatory_processes/content_blocks/metadata_cell.rb
100
+ - app/cells/decidim/participatory_processes/content_blocks/metrics_cell.rb
101
+ - app/cells/decidim/participatory_processes/content_blocks/processes_settings_form/show.erb
102
+ - app/cells/decidim/participatory_processes/content_blocks/processes_settings_form_cell.rb
103
+ - app/cells/decidim/participatory_processes/content_blocks/related_processes/content.erb
104
+ - app/cells/decidim/participatory_processes/content_blocks/related_processes_cell.rb
105
+ - app/cells/decidim/participatory_processes/content_blocks/stats_cell.rb
104
106
  - app/cells/decidim/participatory_processes/filtered_participatory_processes/show.erb
105
107
  - app/cells/decidim/participatory_processes/filtered_participatory_processes_cell.rb
106
108
  - app/cells/decidim/participatory_processes/process_cell.rb
109
+ - app/cells/decidim/participatory_processes/process_dropdown_metadata/metadata.erb
110
+ - app/cells/decidim/participatory_processes/process_dropdown_metadata_cell.rb
107
111
  - app/cells/decidim/participatory_processes/process_filters/filter_tabs.erb
108
112
  - app/cells/decidim/participatory_processes/process_filters/show.erb
109
113
  - app/cells/decidim/participatory_processes/process_filters/type_filter.erb
110
114
  - app/cells/decidim/participatory_processes/process_filters_cell.rb
115
+ - app/cells/decidim/participatory_processes/process_g_cell.rb
111
116
  - app/cells/decidim/participatory_processes/process_group_cell.rb
112
- - app/cells/decidim/participatory_processes/process_group_m/footer.erb
113
- - app/cells/decidim/participatory_processes/process_group_m_cell.rb
114
- - app/cells/decidim/participatory_processes/process_group_s/image.erb
115
- - app/cells/decidim/participatory_processes/process_group_s/show.erb
117
+ - app/cells/decidim/participatory_processes/process_group_g_cell.rb
118
+ - app/cells/decidim/participatory_processes/process_group_metadata_cell.rb
116
119
  - app/cells/decidim/participatory_processes/process_group_s_cell.rb
117
- - app/cells/decidim/participatory_processes/process_m/data.erb
118
- - app/cells/decidim/participatory_processes/process_m/footer.erb
119
- - app/cells/decidim/participatory_processes/process_m/tags.erb
120
- - app/cells/decidim/participatory_processes/process_m_cell.rb
121
- - app/cells/decidim/participatory_processes/process_s/image.erb
122
- - app/cells/decidim/participatory_processes/process_s/show.erb
120
+ - app/cells/decidim/participatory_processes/process_metadata_cell.rb
121
+ - app/cells/decidim/participatory_processes/process_metadata_g_cell.rb
123
122
  - app/cells/decidim/participatory_processes/process_s_cell.rb
123
+ - app/cells/decidim/participatory_processes/process_step/show.erb
124
+ - app/cells/decidim/participatory_processes/process_step_cell.rb
125
+ - app/cells/decidim/participatory_processes/processes/show.erb
126
+ - app/cells/decidim/participatory_processes/processes_cell.rb
124
127
  - app/commands/decidim/participatory_processes/admin/activate_participatory_process_step.rb
125
128
  - app/commands/decidim/participatory_processes/admin/copy_participatory_process.rb
126
129
  - app/commands/decidim/participatory_processes/admin/create_participatory_process.rb
127
- - app/commands/decidim/participatory_processes/admin/create_participatory_process_admin.rb
128
130
  - app/commands/decidim/participatory_processes/admin/create_participatory_process_group.rb
129
131
  - app/commands/decidim/participatory_processes/admin/create_participatory_process_step.rb
130
132
  - app/commands/decidim/participatory_processes/admin/create_participatory_process_type.rb
131
- - app/commands/decidim/participatory_processes/admin/destroy_participatory_process_admin.rb
132
133
  - app/commands/decidim/participatory_processes/admin/destroy_participatory_process_group.rb
133
134
  - app/commands/decidim/participatory_processes/admin/destroy_participatory_process_step.rb
134
135
  - app/commands/decidim/participatory_processes/admin/destroy_participatory_process_type.rb
135
136
  - app/commands/decidim/participatory_processes/admin/import_participatory_process.rb
136
- - app/commands/decidim/participatory_processes/admin/notify_role_assigned_to_participatory_process.rb
137
- - app/commands/decidim/participatory_processes/admin/publish_participatory_process.rb
138
137
  - app/commands/decidim/participatory_processes/admin/reorder_participatory_process_steps.rb
139
- - app/commands/decidim/participatory_processes/admin/unpublish_participatory_process.rb
140
138
  - app/commands/decidim/participatory_processes/admin/update_participatory_process.rb
141
- - app/commands/decidim/participatory_processes/admin/update_participatory_process_admin.rb
142
139
  - app/commands/decidim/participatory_processes/admin/update_participatory_process_group.rb
143
140
  - app/commands/decidim/participatory_processes/admin/update_participatory_process_step.rb
144
141
  - app/commands/decidim/participatory_processes/admin/update_participatory_process_type.rb
@@ -162,6 +159,8 @@ files:
162
159
  - app/controllers/decidim/participatory_processes/admin/participatory_process_group_landing_page_controller.rb
163
160
  - app/controllers/decidim/participatory_processes/admin/participatory_process_groups_controller.rb
164
161
  - app/controllers/decidim/participatory_processes/admin/participatory_process_imports_controller.rb
162
+ - app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_content_blocks_controller.rb
163
+ - app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_controller.rb
165
164
  - app/controllers/decidim/participatory_processes/admin/participatory_process_publications_controller.rb
166
165
  - app/controllers/decidim/participatory_processes/admin/participatory_process_step_activations_controller.rb
167
166
  - app/controllers/decidim/participatory_processes/admin/participatory_process_step_ordering_controller.rb
@@ -174,9 +173,7 @@ files:
174
173
  - app/controllers/decidim/participatory_processes/admin/reminders_controller.rb
175
174
  - app/controllers/decidim/participatory_processes/application_controller.rb
176
175
  - app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb
177
- - app/controllers/decidim/participatory_processes/participatory_process_steps_controller.rb
178
176
  - app/controllers/decidim/participatory_processes/participatory_processes_controller.rb
179
- - app/controllers/decidim/participatory_processes/widgets_controller.rb
180
177
  - app/events/decidim/participatory_process_role_assigned_event.rb
181
178
  - app/events/decidim/participatory_process_step_activated_event.rb
182
179
  - app/events/decidim/participatory_process_step_changed_event.rb
@@ -193,6 +190,8 @@ files:
193
190
  - app/helpers/decidim/participatory_processes/application_helper.rb
194
191
  - app/helpers/decidim/participatory_processes/participatory_process_helper.rb
195
192
  - app/helpers/decidim/participatory_processes/participatory_process_steps_helper.rb
193
+ - app/helpers/decidim/participatory_processes/participatory_space_content_blocks_helper.rb
194
+ - app/jobs/decidim/participatory_processes/change_active_step_job.rb
196
195
  - app/models/decidim/participatory_process.rb
197
196
  - app/models/decidim/participatory_process_group.rb
198
197
  - app/models/decidim/participatory_process_step.rb
@@ -202,7 +201,6 @@ files:
202
201
  - app/packs/entrypoints/decidim_participatory_processes_admin.js
203
202
  - app/packs/images/decidim/participatory_processes/decidim_participatory_processes.svg
204
203
  - app/packs/src/decidim/participatory_processes/admin/participatory_processes.js
205
- - app/packs/src/decidim/participatory_processes/filters.js
206
204
  - app/permissions/decidim/participatory_processes/permissions.rb
207
205
  - app/presenters/decidim/log/value_types/participatory_process_type_presenter.rb
208
206
  - app/presenters/decidim/participatory_processes/admin_log/participatory_process_group_presenter.rb
@@ -243,7 +241,6 @@ files:
243
241
  - app/serializers/decidim/participatory_processes/participatory_process_importer.rb
244
242
  - app/serializers/decidim/participatory_processes/participatory_process_serializer.rb
245
243
  - app/views/decidim/participatory_process_groups/_participatory_process_group.html.erb
246
- - app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb
247
244
  - app/views/decidim/participatory_processes/_participatory_process.html.erb
248
245
  - app/views/decidim/participatory_processes/admin/participatory_process_copies/_form.html.erb
249
246
  - app/views/decidim/participatory_processes/admin/participatory_process_copies/new.html.erb
@@ -272,21 +269,15 @@ files:
272
269
  - app/views/decidim/participatory_processes/admin/participatory_processes/new.html.erb
273
270
  - app/views/decidim/participatory_processes/participatory_process_groups/show.html.erb
274
271
  - app/views/decidim/participatory_processes/participatory_process_groups/show.js.erb
275
- - app/views/decidim/participatory_processes/participatory_process_steps/_timeline.html.erb
276
- - app/views/decidim/participatory_processes/participatory_process_steps/index.html.erb
277
- - app/views/decidim/participatory_processes/participatory_processes/_metrics.html.erb
278
- - app/views/decidim/participatory_processes/participatory_processes/_order_by_processes.html.erb
279
- - app/views/decidim/participatory_processes/participatory_processes/_participatory_process_group.html.erb
280
- - app/views/decidim/participatory_processes/participatory_processes/_promoted_process.html.erb
281
- - app/views/decidim/participatory_processes/participatory_processes/_promoted_process_group.html.erb
272
+ - app/views/decidim/participatory_processes/participatory_processes/_collection.html.erb
282
273
  - app/views/decidim/participatory_processes/participatory_processes/_statistics.html.erb
283
274
  - app/views/decidim/participatory_processes/participatory_processes/all_metrics.html.erb
284
275
  - app/views/decidim/participatory_processes/participatory_processes/index.html.erb
285
276
  - app/views/decidim/participatory_processes/participatory_processes/index.js.erb
286
277
  - app/views/decidim/participatory_processes/participatory_processes/show.html.erb
287
278
  - app/views/layouts/decidim/_process_header.html.erb
288
- - app/views/layouts/decidim/_process_header_steps.html.erb
289
- - app/views/layouts/decidim/_process_navigation.html.erb
279
+ - app/views/layouts/decidim/_process_nav_item.html.erb
280
+ - app/views/layouts/decidim/admin/_manage_processes.html.erb
290
281
  - app/views/layouts/decidim/admin/participatory_process.html.erb
291
282
  - app/views/layouts/decidim/admin/participatory_process_group.html.erb
292
283
  - app/views/layouts/decidim/admin/participatory_process_groups.html.erb
@@ -326,7 +317,6 @@ files:
326
317
  - config/locales/ga-IE.yml
327
318
  - config/locales/gl.yml
328
319
  - config/locales/gn-PY.yml
329
- - config/locales/he-IL.yml
330
320
  - config/locales/hr-HR.yml
331
321
  - config/locales/hr.yml
332
322
  - config/locales/hu.yml
@@ -421,11 +411,7 @@ files:
421
411
  - db/migrate/20210310120750_add_followable_counter_cache_to_participatory_processes.rb
422
412
  - db/migrate/20210415163339_allow_null_file_column_in_decidim_attachments_table.rb
423
413
  - db/migrate/20211125202008_create_decidim_participatory_process_types.rb
424
- - db/seeds/Exampledocument.pdf
425
- - db/seeds/city.jpeg
426
- - db/seeds/city2.jpeg
427
- - db/seeds/homepage_image.jpg
428
- - decidim-participatory_processes.gemspec
414
+ - db/migrate/20220315100140_change_steps_dates_to_datetime.rb
429
415
  - lib/decidim/api/participatory_process_group_type.rb
430
416
  - lib/decidim/api/participatory_process_input_filter.rb
431
417
  - lib/decidim/api/participatory_process_input_sort.rb
@@ -436,31 +422,40 @@ files:
436
422
  - lib/decidim/participatory_processes/admin.rb
437
423
  - lib/decidim/participatory_processes/admin_engine.rb
438
424
  - lib/decidim/participatory_processes/api.rb
425
+ - lib/decidim/participatory_processes/content_blocks/registry_manager.rb
439
426
  - lib/decidim/participatory_processes/engine.rb
427
+ - lib/decidim/participatory_processes/menu.rb
440
428
  - lib/decidim/participatory_processes/participatory_space.rb
441
429
  - lib/decidim/participatory_processes/query_extensions.rb
430
+ - lib/decidim/participatory_processes/seeds.rb
442
431
  - lib/decidim/participatory_processes/test/factories.rb
443
432
  - lib/decidim/participatory_processes/version.rb
444
- homepage: https://github.com/decidim/decidim
433
+ - lib/tasks/decidim_participatory_processes.rake
434
+ homepage: https://decidim.org
445
435
  licenses:
446
436
  - AGPL-3.0
447
- metadata: {}
437
+ metadata:
438
+ bug_tracker_uri: https://github.com/decidim/decidim/issues
439
+ documentation_uri: https://docs.decidim.org/
440
+ funding_uri: https://opencollective.com/decidim
441
+ homepage_uri: https://decidim.org
442
+ source_code_uri: https://github.com/decidim/decidim
448
443
  post_install_message:
449
444
  rdoc_options: []
450
445
  require_paths:
451
446
  - lib
452
447
  required_ruby_version: !ruby/object:Gem::Requirement
453
448
  requirements:
454
- - - "~>"
449
+ - - ">="
455
450
  - !ruby/object:Gem::Version
456
- version: 3.0.0
451
+ version: '3.1'
457
452
  required_rubygems_version: !ruby/object:Gem::Requirement
458
453
  requirements:
459
- - - ">="
454
+ - - ">"
460
455
  - !ruby/object:Gem::Version
461
- version: '0'
456
+ version: 1.3.1
462
457
  requirements: []
463
- rubygems_version: 3.2.22
458
+ rubygems_version: 3.4.20
464
459
  signing_key:
465
460
  specification_version: 4
466
461
  summary: Decidim participatory processes module
@@ -1,21 +0,0 @@
1
- <%= filter_form_for filter, decidim_participatory_processes.participatory_process_group_path(participatory_process_group) do |form| %>
2
- <div class="columns mediumlarge-6 large-5">
3
- <%= cell(
4
- "decidim/scopes_picker",
5
- form,
6
- attribute: :with_any_scope,
7
- multiple: true,
8
- legend_title: I18n.t("decidim.scopes.scopes"),
9
- label: false,
10
- checkboxes_on_top: false
11
- ) %>
12
- </div>
13
- <div class="columns mediumlarge-6 large-5">
14
- <%= form.areas_select :with_area,
15
- areas_for_select(current_organization),
16
- legend_title: t("decidim.shared.participatory_space_filters.filters.areas"),
17
- label: "",
18
- selected: filter.with_area,
19
- include_blank: t("decidim.shared.participatory_space_filters.filters.select_an_area") %>
20
- </div>
21
- <% end %>
@@ -1,18 +0,0 @@
1
- <div class="filters-controls hide-for-mediumlarge">
2
- <button data-open="filter-box" class="filters-controls__trigger" aria-controls="filter-box" aria-haspopup="dialog">
3
- <%= t("filter", scope: "decidim.searches.filters_small_view") %>
4
- <%= icon "caret-bottom", class: "icon--small float-right", aria_label: t("unfold", scope: "decidim.searches.filters_small_view"), role: "img" %>
5
- </button>
6
- </div>
7
-
8
- <div class="reveal" id="filter-box" data-reveal role="dialog" aria-modal="true" aria-labelledby="filter-box-label">
9
- <div class="reveal__header">
10
- <h3 id="filter-box-label" class="reveal__title"><%= t("filter_by", scope: "decidim.searches.filters_small_view") %>:</h3>
11
- <button class="close-button" data-close aria-label="<%= 't("close_modal", scope: "decidim.searches.filters_small_view")' %>" type="button">
12
- <span aria-hidden="true">&times;</span>
13
- </button>
14
- </div>
15
- <div class="filters">
16
- <%= render :filters %>
17
- </div>
18
- </div>
@@ -1,6 +0,0 @@
1
- <div class="row" id="participatory-space-filters">
2
- <%= render :filters_small_view %>
3
- <div class="show-for-mediumlarge">
4
- <%= render :filters %>
5
- </div>
6
- </div>
@@ -1,8 +0,0 @@
1
- <section class="section" id="<%= block_id %>">
2
- <%= render :title_filter_order %>
3
- <%= render :participatory_space_filters %>
4
- <p class="loading"><%= t("loading", scope: "decidim.participatory_processes.participatory_processes.index") %></p>
5
- <div class="row small-up-1 medium-up-2 large-up-3 card-grid">
6
- <%= cell "decidim/participatory_processes/filtered_participatory_processes", filtered_relation, default_filter: default_date_filter %>
7
- </div>
8
- </section>
@@ -1,8 +0,0 @@
1
- <div class="processes-grid-order-by">
2
- <%= cell(
3
- "decidim/participatory_process_groups/process_filters",
4
- participatory_process_group,
5
- base_relation: filtered_relation,
6
- default_filter: default_date_filter
7
- ) %>
8
- </div>