decidim-participatory_processes 0.23.6 → 0.24.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/participatory_process_groups/content_block_cell.rb +17 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters.erb +22 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters_small_view.erb +18 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/participatory_space_filters.erb +6 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/show.erb +7 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/title_filter_order.erb +8 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes_cell.rb +65 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/html/show.erb +3 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/html_cell.rb +13 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/metadata/show.erb +28 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/metadata_cell.rb +15 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/stats/show.erb +13 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/stats_cell.rb +17 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/title/show.erb +43 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/title_cell.rb +56 -0
- data/app/cells/decidim/participatory_process_groups/process_filters_cell.rb +78 -0
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/show.erb +2 -16
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/single_process.erb +32 -28
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb +33 -10
- data/app/cells/decidim/participatory_processes/filtered_participatory_processes/show.erb +3 -0
- data/app/cells/decidim/participatory_processes/filtered_participatory_processes_cell.rb +56 -0
- data/app/cells/decidim/participatory_processes/process_cell.rb +6 -1
- data/app/cells/decidim/participatory_processes/process_filters_cell.rb +1 -1
- data/app/cells/decidim/participatory_processes/process_group_cell.rb +6 -1
- data/app/cells/decidim/participatory_processes/process_group_m_cell.rb +3 -1
- data/app/cells/decidim/participatory_processes/process_group_s/image.erb +1 -0
- data/app/cells/decidim/participatory_processes/process_group_s/show.erb +8 -0
- data/app/cells/decidim/participatory_processes/process_group_s_cell.rb +23 -0
- data/app/cells/decidim/participatory_processes/process_s/image.erb +1 -0
- data/app/cells/decidim/participatory_processes/process_s/show.erb +14 -0
- data/app/cells/decidim/participatory_processes/process_s_cell.rb +35 -0
- data/app/cells/decidim/participatory_processes/statistic/show.erb +3 -3
- data/app/cells/decidim/participatory_processes/statistics/show.erb +1 -1
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process.rb +1 -0
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_group.rb +11 -2
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process.rb +1 -0
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_group.rb +11 -2
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_step.rb +1 -0
- data/app/controllers/decidim/participatory_processes/admin/imports_controller.rb +14 -0
- data/app/controllers/decidim/participatory_processes/admin/moderations/reports_controller.rb +18 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_group_landing_page_content_blocks_controller.rb +48 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_group_landing_page_controller.rb +53 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_groups_controller.rb +3 -1
- data/app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb +1 -2
- data/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb +14 -1
- data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +1 -0
- data/app/forms/decidim/participatory_processes/admin/participatory_process_group_form.rb +34 -2
- data/app/forms/decidim/participatory_processes/admin/participatory_process_step_form.rb +1 -1
- data/app/helpers/decidim/participatory_processes/admin/participatory_processes_menu_helper.rb +23 -0
- data/app/helpers/decidim/participatory_processes/admin/process_groups_for_select_helper.rb +1 -1
- data/app/helpers/decidim/participatory_processes/application_helper.rb +0 -12
- data/app/helpers/decidim/participatory_processes/participatory_process_helper.rb +35 -0
- data/app/models/decidim/participatory_process_group.rb +9 -1
- data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_group_presenter.rb +10 -2
- data/app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb +67 -0
- data/app/presenters/decidim/participatory_processes/participatory_process_presenter.rb +3 -4
- data/app/presenters/decidim/participatory_processes/participatory_process_stats_presenter.rb +3 -3
- data/app/queries/decidim/participatory_processes/group_participatory_processes.rb +16 -0
- data/app/queries/decidim/participatory_processes/group_published_participatory_processes.rb +21 -0
- data/app/queries/decidim/participatory_processes/organization_participatory_processes.rb +1 -1
- data/app/queries/decidim/participatory_processes/organization_published_participatory_processes.rb +1 -1
- data/app/queries/decidim/participatory_processes/promoted_participatory_process_groups.rb +12 -0
- data/app/queries/decidim/participatory_processes/stats_followers_count.rb +18 -4
- data/app/queries/decidim/participatory_processes/stats_participants_count.rb +18 -4
- data/app/queries/decidim/participatory_processes/visible_participatory_process_groups.rb +6 -2
- data/app/serializers/decidim/participatory_processes/participatory_process_importer.rb +1 -1
- data/app/serializers/decidim/participatory_processes/participatory_process_serializer.rb +1 -1
- data/app/services/decidim/participatory_processes/participatory_process_search.rb +2 -1
- data/app/views/decidim/participatory_processes/admin/participatory_process_copies/new.html.erb +2 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/_form.html.erb +68 -13
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/edit.html.erb +7 -14
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/index.html.erb +14 -5
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/new.html.erb +2 -8
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/show.html.erb +10 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/edit.html.erb +1 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/index.html.erb +6 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/edit.html.erb +2 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/index.html.erb +8 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/new.html.erb +2 -0
- data/app/views/decidim/participatory_processes/admin/participatory_processes/_form.html.erb +4 -0
- data/app/views/decidim/participatory_processes/admin/participatory_processes/index.html.erb +15 -4
- data/app/views/decidim/participatory_processes/admin/participatory_processes/new.html.erb +2 -0
- data/app/views/decidim/participatory_processes/admin/shared/_secondary_nav.html.erb +2 -16
- data/app/views/decidim/participatory_processes/participatory_process_groups/show.html.erb +18 -8
- data/app/views/decidim/participatory_processes/participatory_process_groups/show.js.erb +12 -0
- data/app/views/decidim/participatory_processes/participatory_processes/_participatory_process_group.html.erb +4 -0
- data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process_group.html.erb +31 -0
- data/app/views/decidim/participatory_processes/participatory_processes/index.html.erb +4 -2
- data/app/views/decidim/participatory_processes/participatory_processes/show.html.erb +4 -4
- data/app/views/layouts/decidim/admin/participatory_process.html.erb +8 -1
- data/app/views/layouts/decidim/admin/participatory_process_group.html.erb +17 -0
- data/config/locales/ar.yml +0 -10
- data/config/locales/ca.yml +6 -9
- data/config/locales/cs.yml +63 -16
- data/config/locales/de.yml +52 -5
- data/config/locales/el.yml +0 -6
- data/config/locales/en.yml +52 -5
- data/config/locales/es-MX.yml +0 -9
- data/config/locales/es-PY.yml +0 -9
- data/config/locales/es.yml +0 -9
- data/config/locales/eu.yml +0 -6
- data/config/locales/fi-plain.yml +53 -6
- data/config/locales/fi.yml +53 -6
- data/config/locales/fr-CA.yml +52 -5
- data/config/locales/fr.yml +52 -5
- data/config/locales/gl.yml +0 -41
- data/config/locales/hu.yml +0 -6
- data/config/locales/id-ID.yml +0 -5
- data/config/locales/is-IS.yml +0 -3
- data/config/locales/it.yml +5 -6
- data/config/locales/ja.yml +0 -5
- data/config/locales/lv.yml +0 -7
- data/config/locales/nl.yml +48 -6
- data/config/locales/no.yml +0 -6
- data/config/locales/pl.yml +37 -20
- data/config/locales/pt-BR.yml +0 -6
- data/config/locales/pt.yml +0 -6
- data/config/locales/ro-RO.yml +19 -29
- data/config/locales/ru.yml +1 -9
- data/config/locales/sk.yml +0 -8
- data/config/locales/sv.yml +7 -6
- data/config/locales/tr-TR.yml +51 -5
- data/config/locales/uk.yml +1 -9
- data/config/locales/zh-CN.yml +0 -5
- data/db/migrate/20170220110740_remove_steps_short_description.rb +1 -1
- data/db/migrate/20201007215105_add_hashtag_to_participatory_process_groups.rb +7 -0
- data/db/migrate/20201008154315_add_metadata_columns_to_participatory_process_groups.rb +13 -0
- data/db/migrate/20201013105520_rename_name_column_to_title_in_decidim_participatory_process_groups.rb +39 -0
- data/db/migrate/20201030133444_add_promoted_flag_to_decidim_participatory_process_groups.rb +7 -0
- data/db/migrate/20210204154593_add_weight_field_to_participatory_processes.rb +7 -0
- data/lib/decidim/api/participatory_process_group_type.rb +17 -0
- data/{app/types/decidim/participatory_processes → lib/decidim/api}/participatory_process_input_filter.rb +0 -0
- data/{app/types/decidim/participatory_processes → lib/decidim/api}/participatory_process_input_sort.rb +2 -2
- data/lib/decidim/api/participatory_process_step_type.rb +23 -0
- data/lib/decidim/api/participatory_process_type.rb +50 -0
- data/lib/decidim/participatory_processes/admin_engine.rb +49 -1
- data/lib/decidim/participatory_processes/api.rb +11 -0
- data/lib/decidim/participatory_processes/engine.rb +90 -8
- data/lib/decidim/participatory_processes/participatory_space.rb +47 -24
- data/lib/decidim/participatory_processes/query_extensions.rb +18 -20
- data/lib/decidim/participatory_processes/test/factories.rb +15 -2
- data/lib/decidim/participatory_processes/version.rb +1 -1
- data/lib/decidim/participatory_processes.rb +2 -6
- metadata +60 -19
- data/app/functions/decidim/participatory_processes/participatory_process_finder.rb +0 -10
- data/app/functions/decidim/participatory_processes/participatory_process_list.rb +0 -11
- data/app/types/decidim/participatory_processes/participatory_process_group_type.rb +0 -20
- data/app/types/decidim/participatory_processes/participatory_process_step_type.rb +0 -28
- data/app/types/decidim/participatory_processes/participatory_process_type.rb +0 -54
@@ -7,13 +7,14 @@ require "decidim/core/test/factories"
|
|
7
7
|
|
8
8
|
FactoryBot.define do
|
9
9
|
sequence(:participatory_process_slug) do |n|
|
10
|
-
"#{Faker::Internet.slug(nil, "-")}-#{n}"
|
10
|
+
"#{Decidim::Faker::Internet.slug(words: nil, glue: "-")}-#{n}"
|
11
11
|
end
|
12
12
|
|
13
13
|
factory :participatory_process, class: "Decidim::ParticipatoryProcess" do
|
14
14
|
title { generate_localized_title }
|
15
15
|
slug { generate(:participatory_process_slug) }
|
16
16
|
subtitle { generate_localized_title }
|
17
|
+
weight { 1 }
|
17
18
|
short_description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
|
18
19
|
description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
|
19
20
|
organization
|
@@ -85,10 +86,22 @@ FactoryBot.define do
|
|
85
86
|
end
|
86
87
|
|
87
88
|
factory :participatory_process_group, class: "Decidim::ParticipatoryProcessGroup" do
|
88
|
-
|
89
|
+
title { generate_localized_title }
|
89
90
|
description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
|
90
91
|
hero_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") }
|
91
92
|
organization
|
93
|
+
hashtag { Faker::Internet.slug }
|
94
|
+
group_url { Faker::Internet.url }
|
95
|
+
developer_group { generate_localized_title }
|
96
|
+
local_area { generate_localized_title }
|
97
|
+
meta_scope { Decidim::Faker::Localized.word }
|
98
|
+
target { generate_localized_title }
|
99
|
+
participatory_scope { generate_localized_title }
|
100
|
+
participatory_structure { generate_localized_title }
|
101
|
+
|
102
|
+
trait :promoted do
|
103
|
+
promoted { true }
|
104
|
+
end
|
92
105
|
|
93
106
|
trait :with_participatory_processes do
|
94
107
|
after(:create) do |participatory_process_group|
|
@@ -1,16 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "decidim/participatory_processes/admin"
|
4
|
+
require "decidim/participatory_processes/api"
|
4
5
|
require "decidim/participatory_processes/engine"
|
5
6
|
require "decidim/participatory_processes/admin_engine"
|
6
7
|
require "decidim/participatory_processes/participatory_space"
|
7
8
|
|
8
9
|
module Decidim
|
9
10
|
# Base module for the participatory processes engine.
|
10
|
-
module ParticipatoryProcesses
|
11
|
-
# Public: Stores an instance of ViewHooks
|
12
|
-
def self.view_hooks
|
13
|
-
@view_hooks ||= ViewHooks.new
|
14
|
-
end
|
15
|
-
end
|
11
|
+
module ParticipatoryProcesses; end
|
16
12
|
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.
|
4
|
+
version: 0.24.0.rc1
|
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: 2021-
|
13
|
+
date: 2021-03-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,42 +18,42 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.24.0.rc1
|
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.
|
28
|
+
version: 0.24.0.rc1
|
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.
|
35
|
+
version: 0.24.0.rc1
|
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.
|
42
|
+
version: 0.24.0.rc1
|
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.
|
49
|
+
version: 0.24.0.rc1
|
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.
|
56
|
+
version: 0.24.0.rc1
|
57
57
|
description: Participatory processes component for decidim.
|
58
58
|
email:
|
59
59
|
- josepjaume@gmail.com
|
@@ -71,12 +71,30 @@ files:
|
|
71
71
|
- app/assets/javascripts/decidim/participatory_processes/admin/participatory_processes.js.es6
|
72
72
|
- app/assets/javascripts/decidim/participatory_processes/filters.js.es6
|
73
73
|
- app/cells/decidim/participatory_process_activity_cell.rb
|
74
|
+
- app/cells/decidim/participatory_process_groups/content_block_cell.rb
|
75
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters.erb
|
76
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters_small_view.erb
|
77
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/participatory_space_filters.erb
|
78
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/show.erb
|
79
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/title_filter_order.erb
|
80
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes_cell.rb
|
81
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/html/show.erb
|
82
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/html_cell.rb
|
83
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/metadata/show.erb
|
84
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/metadata_cell.rb
|
85
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/stats/show.erb
|
86
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/stats_cell.rb
|
87
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/title/show.erb
|
88
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/title_cell.rb
|
89
|
+
- app/cells/decidim/participatory_process_groups/process_filters_cell.rb
|
74
90
|
- app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/_all_processes.erb
|
75
91
|
- app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/show.erb
|
76
92
|
- app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/single_process.erb
|
77
93
|
- app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb
|
78
94
|
- app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form/show.erb
|
79
95
|
- app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form_cell.rb
|
96
|
+
- app/cells/decidim/participatory_processes/filtered_participatory_processes/show.erb
|
97
|
+
- app/cells/decidim/participatory_processes/filtered_participatory_processes_cell.rb
|
80
98
|
- app/cells/decidim/participatory_processes/process_cell.rb
|
81
99
|
- app/cells/decidim/participatory_processes/process_filters/filter_tabs.erb
|
82
100
|
- app/cells/decidim/participatory_processes/process_filters/show.erb
|
@@ -84,10 +102,16 @@ files:
|
|
84
102
|
- app/cells/decidim/participatory_processes/process_group_cell.rb
|
85
103
|
- app/cells/decidim/participatory_processes/process_group_m/footer.erb
|
86
104
|
- app/cells/decidim/participatory_processes/process_group_m_cell.rb
|
105
|
+
- app/cells/decidim/participatory_processes/process_group_s/image.erb
|
106
|
+
- app/cells/decidim/participatory_processes/process_group_s/show.erb
|
107
|
+
- app/cells/decidim/participatory_processes/process_group_s_cell.rb
|
87
108
|
- app/cells/decidim/participatory_processes/process_m/data.erb
|
88
109
|
- app/cells/decidim/participatory_processes/process_m/footer.erb
|
89
110
|
- app/cells/decidim/participatory_processes/process_m/tags.erb
|
90
111
|
- app/cells/decidim/participatory_processes/process_m_cell.rb
|
112
|
+
- app/cells/decidim/participatory_processes/process_s/image.erb
|
113
|
+
- app/cells/decidim/participatory_processes/process_s/show.erb
|
114
|
+
- app/cells/decidim/participatory_processes/process_s_cell.rb
|
91
115
|
- app/cells/decidim/participatory_processes/statistic/show.erb
|
92
116
|
- app/cells/decidim/participatory_processes/statistic_cell.rb
|
93
117
|
- app/cells/decidim/participatory_processes/statistics/show.erb
|
@@ -119,11 +143,15 @@ files:
|
|
119
143
|
- app/controllers/decidim/participatory_processes/admin/components_controller.rb
|
120
144
|
- app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
|
121
145
|
- app/controllers/decidim/participatory_processes/admin/exports_controller.rb
|
146
|
+
- app/controllers/decidim/participatory_processes/admin/imports_controller.rb
|
147
|
+
- app/controllers/decidim/participatory_processes/admin/moderations/reports_controller.rb
|
122
148
|
- app/controllers/decidim/participatory_processes/admin/moderations_controller.rb
|
123
149
|
- app/controllers/decidim/participatory_processes/admin/participatory_process_attachment_collections_controller.rb
|
124
150
|
- app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
|
125
151
|
- app/controllers/decidim/participatory_processes/admin/participatory_process_copies_controller.rb
|
126
152
|
- app/controllers/decidim/participatory_processes/admin/participatory_process_exports_controller.rb
|
153
|
+
- app/controllers/decidim/participatory_processes/admin/participatory_process_group_landing_page_content_blocks_controller.rb
|
154
|
+
- app/controllers/decidim/participatory_processes/admin/participatory_process_group_landing_page_controller.rb
|
127
155
|
- app/controllers/decidim/participatory_processes/admin/participatory_process_groups_controller.rb
|
128
156
|
- app/controllers/decidim/participatory_processes/admin/participatory_process_imports_controller.rb
|
129
157
|
- app/controllers/decidim/participatory_processes/admin/participatory_process_publications_controller.rb
|
@@ -148,9 +176,8 @@ files:
|
|
148
176
|
- app/forms/decidim/participatory_processes/admin/participatory_process_import_form.rb
|
149
177
|
- app/forms/decidim/participatory_processes/admin/participatory_process_step_form.rb
|
150
178
|
- app/forms/decidim/participatory_processes/admin/participatory_process_user_role_form.rb
|
151
|
-
- app/functions/decidim/participatory_processes/participatory_process_finder.rb
|
152
|
-
- app/functions/decidim/participatory_processes/participatory_process_list.rb
|
153
179
|
- app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
|
180
|
+
- app/helpers/decidim/participatory_processes/admin/participatory_processes_menu_helper.rb
|
154
181
|
- app/helpers/decidim/participatory_processes/admin/process_groups_for_select_helper.rb
|
155
182
|
- app/helpers/decidim/participatory_processes/admin/processes_for_select_helper.rb
|
156
183
|
- app/helpers/decidim/participatory_processes/application_helper.rb
|
@@ -167,6 +194,7 @@ files:
|
|
167
194
|
- app/presenters/decidim/participatory_processes/admin_log/step_presenter.rb
|
168
195
|
- app/presenters/decidim/participatory_processes/admin_log/value_types/role_presenter.rb
|
169
196
|
- app/presenters/decidim/participatory_processes/participatory_process_group_presenter.rb
|
197
|
+
- app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb
|
170
198
|
- app/presenters/decidim/participatory_processes/participatory_process_metric_charts_presenter.rb
|
171
199
|
- app/presenters/decidim/participatory_processes/participatory_process_presenter.rb
|
172
200
|
- app/presenters/decidim/participatory_processes/participatory_process_stats_presenter.rb
|
@@ -174,6 +202,8 @@ files:
|
|
174
202
|
- app/queries/decidim/participatory_processes/admin/moderators.rb
|
175
203
|
- app/queries/decidim/participatory_processes/filtered_participatory_process_groups.rb
|
176
204
|
- app/queries/decidim/participatory_processes/filtered_participatory_processes.rb
|
205
|
+
- app/queries/decidim/participatory_processes/group_participatory_processes.rb
|
206
|
+
- app/queries/decidim/participatory_processes/group_published_participatory_processes.rb
|
177
207
|
- app/queries/decidim/participatory_processes/highlighted_participatory_processes.rb
|
178
208
|
- app/queries/decidim/participatory_processes/metrics/participatory_process_followers_metric_measure.rb
|
179
209
|
- app/queries/decidim/participatory_processes/metrics/participatory_processes_metric_manage.rb
|
@@ -184,6 +214,7 @@ files:
|
|
184
214
|
- app/queries/decidim/participatory_processes/organization_published_participatory_processes.rb
|
185
215
|
- app/queries/decidim/participatory_processes/participatory_processes_by_group.rb
|
186
216
|
- app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb
|
217
|
+
- app/queries/decidim/participatory_processes/promoted_participatory_process_groups.rb
|
187
218
|
- app/queries/decidim/participatory_processes/promoted_participatory_processes.rb
|
188
219
|
- app/queries/decidim/participatory_processes/published_participatory_processes.rb
|
189
220
|
- app/queries/decidim/participatory_processes/stats_followers_count.rb
|
@@ -193,11 +224,6 @@ files:
|
|
193
224
|
- app/serializers/decidim/participatory_processes/participatory_process_importer.rb
|
194
225
|
- app/serializers/decidim/participatory_processes/participatory_process_serializer.rb
|
195
226
|
- app/services/decidim/participatory_processes/participatory_process_search.rb
|
196
|
-
- app/types/decidim/participatory_processes/participatory_process_group_type.rb
|
197
|
-
- app/types/decidim/participatory_processes/participatory_process_input_filter.rb
|
198
|
-
- app/types/decidim/participatory_processes/participatory_process_input_sort.rb
|
199
|
-
- app/types/decidim/participatory_processes/participatory_process_step_type.rb
|
200
|
-
- app/types/decidim/participatory_processes/participatory_process_type.rb
|
201
227
|
- app/views/decidim/participatory_process_groups/_participatory_process_group.html.erb
|
202
228
|
- app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb
|
203
229
|
- app/views/decidim/participatory_processes/_participatory_process.html.erb
|
@@ -225,11 +251,14 @@ files:
|
|
225
251
|
- app/views/decidim/participatory_processes/admin/participatory_processes/new.html.erb
|
226
252
|
- app/views/decidim/participatory_processes/admin/shared/_secondary_nav.html.erb
|
227
253
|
- app/views/decidim/participatory_processes/participatory_process_groups/show.html.erb
|
254
|
+
- app/views/decidim/participatory_processes/participatory_process_groups/show.js.erb
|
228
255
|
- app/views/decidim/participatory_processes/participatory_process_steps/_timeline.html.erb
|
229
256
|
- app/views/decidim/participatory_processes/participatory_process_steps/index.html.erb
|
230
257
|
- app/views/decidim/participatory_processes/participatory_processes/_metrics.html.erb
|
231
258
|
- app/views/decidim/participatory_processes/participatory_processes/_order_by_processes.html.erb
|
259
|
+
- app/views/decidim/participatory_processes/participatory_processes/_participatory_process_group.html.erb
|
232
260
|
- app/views/decidim/participatory_processes/participatory_processes/_promoted_process.html.erb
|
261
|
+
- app/views/decidim/participatory_processes/participatory_processes/_promoted_process_group.html.erb
|
233
262
|
- app/views/decidim/participatory_processes/participatory_processes/_statistics.html.erb
|
234
263
|
- app/views/decidim/participatory_processes/participatory_processes/all_metrics.html.erb
|
235
264
|
- app/views/decidim/participatory_processes/participatory_processes/index.html.erb
|
@@ -239,6 +268,7 @@ files:
|
|
239
268
|
- app/views/layouts/decidim/_process_header_steps.html.erb
|
240
269
|
- app/views/layouts/decidim/_process_navigation.html.erb
|
241
270
|
- app/views/layouts/decidim/admin/participatory_process.html.erb
|
271
|
+
- app/views/layouts/decidim/admin/participatory_process_group.html.erb
|
242
272
|
- app/views/layouts/decidim/admin/participatory_process_groups.html.erb
|
243
273
|
- app/views/layouts/decidim/admin/participatory_processes.html.erb
|
244
274
|
- app/views/layouts/decidim/participatory_process.html.erb
|
@@ -349,13 +379,24 @@ files:
|
|
349
379
|
- db/migrate/20200320105924_index_foreign_keys_in_decidim_participatory_process_user_roles.rb
|
350
380
|
- db/migrate/20200320105925_index_foreign_keys_in_decidim_participatory_processes.rb
|
351
381
|
- db/migrate/20201006072346_fix_attachments_titles.rb
|
382
|
+
- db/migrate/20201007215105_add_hashtag_to_participatory_process_groups.rb
|
383
|
+
- db/migrate/20201008154315_add_metadata_columns_to_participatory_process_groups.rb
|
384
|
+
- db/migrate/20201013105520_rename_name_column_to_title_in_decidim_participatory_process_groups.rb
|
385
|
+
- db/migrate/20201030133444_add_promoted_flag_to_decidim_participatory_process_groups.rb
|
386
|
+
- db/migrate/20210204154593_add_weight_field_to_participatory_processes.rb
|
352
387
|
- db/seeds/Exampledocument.pdf
|
353
388
|
- db/seeds/city.jpeg
|
354
389
|
- db/seeds/city2.jpeg
|
355
390
|
- db/seeds/homepage_image.jpg
|
391
|
+
- lib/decidim/api/participatory_process_group_type.rb
|
392
|
+
- lib/decidim/api/participatory_process_input_filter.rb
|
393
|
+
- lib/decidim/api/participatory_process_input_sort.rb
|
394
|
+
- lib/decidim/api/participatory_process_step_type.rb
|
395
|
+
- lib/decidim/api/participatory_process_type.rb
|
356
396
|
- lib/decidim/participatory_processes.rb
|
357
397
|
- lib/decidim/participatory_processes/admin.rb
|
358
398
|
- lib/decidim/participatory_processes/admin_engine.rb
|
399
|
+
- lib/decidim/participatory_processes/api.rb
|
359
400
|
- lib/decidim/participatory_processes/engine.rb
|
360
401
|
- lib/decidim/participatory_processes/participatory_space.rb
|
361
402
|
- lib/decidim/participatory_processes/query_extensions.rb
|
@@ -373,14 +414,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
373
414
|
requirements:
|
374
415
|
- - ">="
|
375
416
|
- !ruby/object:Gem::Version
|
376
|
-
version: '2.
|
417
|
+
version: '2.7'
|
377
418
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
378
419
|
requirements:
|
379
|
-
- - "
|
420
|
+
- - ">"
|
380
421
|
- !ruby/object:Gem::Version
|
381
|
-
version:
|
422
|
+
version: 1.3.1
|
382
423
|
requirements: []
|
383
|
-
rubygems_version: 3.
|
424
|
+
rubygems_version: 3.1.2
|
384
425
|
signing_key:
|
385
426
|
specification_version: 4
|
386
427
|
summary: Decidim participatory processes module
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module ParticipatoryProcesses
|
5
|
-
# Adds slug finder for participatory_processes
|
6
|
-
class ParticipatoryProcessFinder < Decidim::Core::ParticipatorySpaceFinder
|
7
|
-
argument :slug, types.String, "The slug of the participatory process"
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module ParticipatoryProcesses
|
5
|
-
# Adds some filter values for participatory_processes
|
6
|
-
class ParticipatoryProcessList < Decidim::Core::ParticipatorySpaceListBase
|
7
|
-
argument :filter, ParticipatoryProcessInputFilter, "This argument let's you filter the results"
|
8
|
-
argument :order, ParticipatoryProcessInputSort, "This argument let's you order the results"
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module ParticipatoryProcesses
|
5
|
-
# This type represents a ParticipatoryProcess.
|
6
|
-
ParticipatoryProcessGroupType = GraphQL::ObjectType.define do
|
7
|
-
name "ParticipatoryProcessGroup"
|
8
|
-
description "A participatory process group"
|
9
|
-
|
10
|
-
field :id, !types.ID, "ID of this participatory process group"
|
11
|
-
field :name, Decidim::Core::TranslatedFieldType, "The name of this participatory process group"
|
12
|
-
field :description, Decidim::Core::TranslatedFieldType, "The description of this participatory process group", property: :description
|
13
|
-
field :participatoryProcesses, !types[ParticipatoryProcessType] do
|
14
|
-
description "Lists all the participatory processes belonging to this group"
|
15
|
-
property :participatory_processes
|
16
|
-
end
|
17
|
-
field :heroImage, types.String, "The hero image for this participatory process group", property: :hero_image
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module ParticipatoryProcesses
|
5
|
-
# This type represents a step on a participatory process.
|
6
|
-
ParticipatoryProcessStepType = GraphQL::ObjectType.define do
|
7
|
-
name "ParticipatoryProcessStep"
|
8
|
-
description "A participatory process step"
|
9
|
-
|
10
|
-
field :id, !types.ID, "The unique ID of this step."
|
11
|
-
|
12
|
-
field :participatoryProcess do
|
13
|
-
type !ParticipatoryProcessType
|
14
|
-
description "The participatory process in which this step belongs to."
|
15
|
-
property :participatory_process
|
16
|
-
end
|
17
|
-
|
18
|
-
field :title, !Decidim::Core::TranslatedFieldType, "The title of this step"
|
19
|
-
field :description, Decidim::Core::TranslatedFieldType, "The description of this step"
|
20
|
-
field :startDate, Decidim::Core::DateType, "This step's start date", property: :start_date
|
21
|
-
field :endDate, Decidim::Core::DateType, "This step's end date", property: :end_date
|
22
|
-
field :callToActionPath, types.String, "A call to action URL for this step", property: :cta_path
|
23
|
-
field :callToActionText, Decidim::Core::TranslatedFieldType, "The call to action text for this step", property: :cta_text
|
24
|
-
field :active, types.Boolean, "If this step is the active one"
|
25
|
-
field :position, types.Int, "Ordering position among all the steps"
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module ParticipatoryProcesses
|
5
|
-
# This type represents a ParticipatoryProcess.
|
6
|
-
ParticipatoryProcessType = GraphQL::ObjectType.define do
|
7
|
-
interfaces [
|
8
|
-
-> { Decidim::Core::ParticipatorySpaceInterface },
|
9
|
-
-> { Decidim::Core::ParticipatorySpaceResourceableInterface },
|
10
|
-
-> { Decidim::Core::ScopableInterface },
|
11
|
-
-> { Decidim::Core::AttachableInterface }
|
12
|
-
]
|
13
|
-
|
14
|
-
name "ParticipatoryProcess"
|
15
|
-
description "A participatory process"
|
16
|
-
|
17
|
-
field :id, !types.ID, "The internal ID for this participatory process"
|
18
|
-
field :slug, !types.String
|
19
|
-
field :hashtag, types.String, "The hashtag for this participatory process"
|
20
|
-
field :createdAt, !Decidim::Core::DateTimeType, "The time this page was created", property: :created_at
|
21
|
-
field :updatedAt, !Decidim::Core::DateTimeType, "The time this page was updated", property: :updated_at
|
22
|
-
field :publishedAt, !Decidim::Core::DateTimeType, "The time this page was published", property: :published_at
|
23
|
-
field :subtitle, Decidim::Core::TranslatedFieldType, "The subtitle of this participatory process."
|
24
|
-
field :description, Decidim::Core::TranslatedFieldType, "The description of this participatory process.", property: :description
|
25
|
-
field :shortDescription, Decidim::Core::TranslatedFieldType, "The short description of this participatory process.", property: :short_description
|
26
|
-
field :startDate, Decidim::Core::DateType, "This participatory process' start date.", property: :start_date
|
27
|
-
field :endDate, Decidim::Core::DateType, "This participatory process' end date.", property: :end_date
|
28
|
-
|
29
|
-
field :bannerImage, types.String, "The banner image for this participatory process", property: :banner_image
|
30
|
-
field :heroImage, types.String, "The hero image for this participatory process", property: :hero_image
|
31
|
-
field :promoted, types.Boolean, "If this participatory process is promoted (therefore in the homepage)"
|
32
|
-
field :developerGroup, Decidim::Core::TranslatedFieldType, "The promoter group of this participatory process.", property: :developer_group
|
33
|
-
field :metaScope, Decidim::Core::TranslatedFieldType, "The scope metadata of this participatory process.", property: :meta_scope
|
34
|
-
field :localArea, Decidim::Core::TranslatedFieldType, "The organization area of this participatory process.", property: :local_area
|
35
|
-
field :target, Decidim::Core::TranslatedFieldType, "Who participates in this participatory process."
|
36
|
-
field :participatoryScope, Decidim::Core::TranslatedFieldType, "What is decided on this participatory process.", property: :participatory_scope
|
37
|
-
field :participatoryStructure, Decidim::Core::TranslatedFieldType, "How it is decided on this participatory process.", property: :participatory_structure
|
38
|
-
field :showMetrics, types.Boolean, "If this participatory process should show metrics", property: :show_metrics
|
39
|
-
field :showStatistics, types.Boolean, "If this participatory process should show statistics", property: :show_statistics
|
40
|
-
field :scopesEnabled, types.Boolean, "If this participatory process has scopes enabled", property: :scopes_enabled
|
41
|
-
|
42
|
-
field :announcement, Decidim::Core::TranslatedFieldType, "Highlighted announcement for this participatory process."
|
43
|
-
|
44
|
-
field :reference, types.String, "Reference prefix for this participatory process"
|
45
|
-
field :steps, !types[ParticipatoryProcessStepType], "All the steps of this process."
|
46
|
-
field :categories, !types[Decidim::Core::CategoryType], "Categories for this participatory process"
|
47
|
-
|
48
|
-
field :participatoryProcessGroup, ParticipatoryProcessGroupType do
|
49
|
-
description "The participatory process group in which this process belong to"
|
50
|
-
property :participatory_process_group
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|