decidim-accountability 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 (161) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/accountability/content_blocks/highlighted_results_cell.rb +3 -8
  3. data/app/cells/decidim/accountability/highlighted_results/show.erb +3 -1
  4. data/app/cells/decidim/accountability/highlighted_results_for_component/show.erb +19 -19
  5. data/app/cells/decidim/accountability/highlighted_results_for_component_cell.rb +29 -6
  6. data/app/cells/decidim/accountability/project/show.erb +11 -0
  7. data/app/cells/decidim/accountability/project/timeline.erb +22 -0
  8. data/app/cells/decidim/accountability/project_cell.rb +75 -0
  9. data/app/cells/decidim/accountability/result_activity_cell.rb +1 -4
  10. data/app/cells/decidim/accountability/result_card_cell.rb +21 -0
  11. data/app/cells/decidim/accountability/result_cell.rb +2 -2
  12. data/app/cells/decidim/accountability/result_l/extra_data.erb +3 -0
  13. data/app/cells/decidim/accountability/result_l_cell.rb +30 -0
  14. data/app/cells/decidim/accountability/result_metadata/project_aside.erb +6 -0
  15. data/app/cells/decidim/accountability/result_metadata/show_footer.erb +11 -0
  16. data/app/cells/decidim/accountability/result_metadata/versions.erb +1 -0
  17. data/app/cells/decidim/accountability/result_metadata_cell.rb +136 -0
  18. data/app/cells/decidim/accountability/results/show.erb +7 -0
  19. data/app/cells/decidim/accountability/results_cell.rb +14 -0
  20. data/app/cells/decidim/accountability/status/show.erb +9 -0
  21. data/app/cells/decidim/accountability/status/status.erb +16 -0
  22. data/app/cells/decidim/accountability/status_cell.rb +91 -0
  23. data/app/commands/decidim/accountability/admin/import_projects_to_accountability.rb +37 -0
  24. data/app/controllers/concerns/decidim/accountability/admin/filterable.rb +2 -2
  25. data/app/controllers/decidim/accountability/admin/import_results_controller.rb +18 -6
  26. data/app/controllers/decidim/accountability/admin/projects_import_controller.rb +31 -0
  27. data/app/controllers/decidim/accountability/admin/results_controller.rb +4 -5
  28. data/app/controllers/decidim/accountability/admin/statuses_controller.rb +3 -3
  29. data/app/controllers/decidim/accountability/admin/timeline_entries_controller.rb +3 -3
  30. data/app/controllers/decidim/accountability/results_controller.rb +20 -2
  31. data/app/events/decidim/accountability/proposal_linked_event.rb +18 -1
  32. data/app/events/decidim/accountability/result_progress_updated_event.rb +18 -2
  33. data/app/forms/decidim/accountability/admin/import_results_form.rb +22 -0
  34. data/app/forms/decidim/accountability/admin/result_import_projects_form.rb +51 -0
  35. data/app/helpers/decidim/accountability/admin/application_helper.rb +1 -0
  36. data/app/helpers/decidim/accountability/application_helper.rb +43 -2
  37. data/app/helpers/decidim/accountability/breadcrumb_helper.rb +10 -0
  38. data/app/jobs/decidim/accountability/admin/import_projects_job.rb +72 -0
  39. data/app/mailers/decidim/accountability/import_projects_mailer.rb +25 -0
  40. data/app/models/decidim/accountability/result.rb +1 -1
  41. data/app/packs/entrypoints/decidim_accountability.js +4 -1
  42. data/app/packs/entrypoints/decidim_accountability_admin_imports.js +3 -0
  43. data/app/packs/images/decidim/accountability/breadcrumb_arrow.svg +3 -0
  44. data/app/packs/src/decidim/accountability/admin/imports.js +15 -0
  45. data/app/packs/stylesheets/accountability.scss +169 -0
  46. data/app/permissions/decidim/accountability/admin/permissions.rb +17 -6
  47. data/app/presenters/decidim/accountability/admin_log/result_presenter.rb +2 -2
  48. data/app/presenters/decidim/accountability/admin_log/status_presenter.rb +2 -2
  49. data/app/presenters/decidim/accountability/admin_log/timeline_entry_presenter.rb +2 -2
  50. data/app/queries/decidim/accountability/metrics/results_metric_manage.rb +1 -1
  51. data/app/services/decidim/accountability/results_calculator.rb +1 -1
  52. data/app/services/decidim/accountability/results_csv_importer.rb +2 -2
  53. data/app/views/decidim/accountability/admin/import_results/new.html.erb +27 -23
  54. data/app/views/decidim/accountability/admin/projects_import/new.html.erb +45 -0
  55. data/app/views/decidim/accountability/admin/results/_form.html.erb +46 -46
  56. data/app/views/decidim/accountability/admin/results/edit.html.erb +18 -7
  57. data/app/views/decidim/accountability/admin/results/index.html.erb +102 -91
  58. data/app/views/decidim/accountability/admin/results/new.html.erb +18 -8
  59. data/app/views/decidim/accountability/admin/shared/_subnav.html.erb +1 -1
  60. data/app/views/decidim/accountability/admin/statuses/_form.html.erb +15 -17
  61. data/app/views/decidim/accountability/admin/statuses/edit.html.erb +16 -6
  62. data/app/views/decidim/accountability/admin/statuses/index.html.erb +33 -36
  63. data/app/views/decidim/accountability/admin/statuses/new.html.erb +16 -6
  64. data/app/views/decidim/accountability/admin/timeline_entries/_form.html.erb +12 -14
  65. data/app/views/decidim/accountability/admin/timeline_entries/edit.html.erb +17 -6
  66. data/app/views/decidim/accountability/admin/timeline_entries/index.html.erb +35 -34
  67. data/app/views/decidim/accountability/admin/timeline_entries/new.html.erb +17 -6
  68. data/app/views/decidim/accountability/import_projects_mailer/import.html.erb +2 -0
  69. data/app/views/decidim/accountability/results/_home_categories.html.erb +28 -73
  70. data/app/views/decidim/accountability/results/_linked_results.html.erb +3 -12
  71. data/app/views/decidim/accountability/results/_project.html.erb +29 -0
  72. data/app/views/decidim/accountability/results/_projects_aside.html.erb +40 -0
  73. data/app/views/decidim/accountability/results/_scope_filters.html.erb +27 -27
  74. data/app/views/decidim/accountability/results/_search.html.erb +15 -9
  75. data/app/views/decidim/accountability/results/_stats_box.html.erb +3 -3
  76. data/app/views/decidim/accountability/results/home.html.erb +34 -8
  77. data/app/views/decidim/accountability/results/index.html.erb +15 -15
  78. data/app/views/decidim/accountability/results/index.js.erb +3 -0
  79. data/app/views/decidim/accountability/results/show.html.erb +9 -10
  80. data/app/views/decidim/accountability/versions/show.html.erb +13 -10
  81. data/app/views/decidim/participatory_spaces/_result.html.erb +4 -4
  82. data/config/assets.rb +2 -2
  83. data/config/locales/ar.yml +23 -61
  84. data/config/locales/bg.yml +0 -96
  85. data/config/locales/ca.yml +54 -31
  86. data/config/locales/cs.yml +58 -29
  87. data/config/locales/da.yml +1 -36
  88. data/config/locales/de.yml +59 -36
  89. data/config/locales/el.yml +62 -29
  90. data/config/locales/en.yml +55 -31
  91. data/config/locales/es-MX.yml +52 -29
  92. data/config/locales/es-PY.yml +52 -29
  93. data/config/locales/es.yml +55 -32
  94. data/config/locales/eu.yml +53 -30
  95. data/config/locales/fi-plain.yml +51 -28
  96. data/config/locales/fi.yml +54 -31
  97. data/config/locales/fr-CA.yml +51 -28
  98. data/config/locales/fr.yml +52 -29
  99. data/config/locales/ga-IE.yml +0 -4
  100. data/config/locales/gl.yml +0 -41
  101. data/config/locales/hu.yml +41 -29
  102. data/config/locales/id-ID.yml +1 -30
  103. data/config/locales/is-IS.yml +0 -32
  104. data/config/locales/it.yml +0 -43
  105. data/config/locales/ja.yml +55 -39
  106. data/config/locales/kaa.yml +20 -1
  107. data/config/locales/ko.yml +0 -188
  108. data/config/locales/lb.yml +1 -42
  109. data/config/locales/lt.yml +60 -41
  110. data/config/locales/lv.yml +1 -36
  111. data/config/locales/nl.yml +0 -41
  112. data/config/locales/no.yml +8 -49
  113. data/config/locales/pl.yml +17 -61
  114. data/config/locales/pt-BR.yml +41 -29
  115. data/config/locales/pt.yml +0 -42
  116. data/config/locales/ro-RO.yml +39 -66
  117. data/config/locales/ru.yml +1 -30
  118. data/config/locales/si-LK.yml +0 -4
  119. data/config/locales/sk.yml +1 -40
  120. data/config/locales/sl.yml +0 -11
  121. data/config/locales/sq-AL.yml +82 -7
  122. data/config/locales/sr-CS.yml +1 -30
  123. data/config/locales/sv.yml +36 -51
  124. data/config/locales/th-TH.yml +0 -140
  125. data/config/locales/tr-TR.yml +9 -75
  126. data/config/locales/uk.yml +1 -28
  127. data/config/locales/zh-CN.yml +1 -36
  128. data/config/locales/zh-TW.yml +52 -43
  129. data/lib/decidim/accountability/admin_engine.rb +3 -2
  130. data/lib/decidim/accountability/component.rb +4 -99
  131. data/lib/decidim/accountability/engine.rb +9 -1
  132. data/lib/decidim/accountability/result_serializer.rb +1 -1
  133. data/lib/decidim/accountability/seeds.rb +115 -0
  134. data/lib/decidim/accountability/test/factories.rb +18 -29
  135. data/lib/decidim/accountability/version.rb +1 -1
  136. data/lib/decidim/api/result_type.rb +1 -0
  137. metadata +62 -51
  138. data/app/cells/decidim/accountability/content_blocks/highlighted_results/elements.erb +0 -5
  139. data/app/cells/decidim/accountability/content_blocks/highlighted_results/heading.erb +0 -1
  140. data/app/cells/decidim/accountability/result_m/data.erb +0 -23
  141. data/app/cells/decidim/accountability/result_m/footer.erb +0 -22
  142. data/app/cells/decidim/accountability/result_m/tags.erb +0 -1
  143. data/app/cells/decidim/accountability/result_m_cell.rb +0 -37
  144. data/app/events/decidim/accountability/base_result_event.rb +0 -29
  145. data/app/packs/stylesheets/decidim/accountability/_accountability.scss +0 -4
  146. data/app/packs/stylesheets/decidim/accountability/accountability/_cards.scss +0 -11
  147. data/app/packs/stylesheets/decidim/accountability/accountability/_categories.scss +0 -121
  148. data/app/packs/stylesheets/decidim/accountability/accountability/_lines_breadcrumb.scss +0 -37
  149. data/app/packs/stylesheets/decidim/accountability/accountability/_results.scss +0 -148
  150. data/app/views/decidim/accountability/admin/results/proposals_picker.html.erb +0 -1
  151. data/app/views/decidim/accountability/result_widgets/show.html.erb +0 -2
  152. data/app/views/decidim/accountability/results/_home_header.html.erb +0 -23
  153. data/app/views/decidim/accountability/results/_results_leaf.html.erb +0 -47
  154. data/app/views/decidim/accountability/results/_results_parent.html.erb +0 -32
  155. data/app/views/decidim/accountability/results/_show_leaf.html.erb +0 -81
  156. data/app/views/decidim/accountability/results/_show_parent.html.erb +0 -30
  157. data/app/views/decidim/accountability/results/_stats.html.erb +0 -15
  158. data/app/views/decidim/accountability/results/_timeline.html.erb +0 -30
  159. data/app/views/decidim/accountability/versions/index.html.erb +0 -12
  160. data/config/locales/he-IL.yml +0 -219
  161. data/decidim-accountability.gemspec +0 -38
@@ -3,6 +3,7 @@
3
3
  module Decidim
4
4
  module Accountability
5
5
  class ResultType < Decidim::Api::Types::BaseObject
6
+ implements Decidim::Core::ComponentInterface
6
7
  implements Decidim::Core::CategorizableInterface
7
8
  implements Decidim::Comments::CommentableInterface
8
9
  implements Decidim::Core::ScopableInterface
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-accountability
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-comments
@@ -18,126 +18,126 @@ 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-core
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: :runtime
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-admin
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-assemblies
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
  - !ruby/object:Gem::Dependency
72
72
  name: decidim-comments
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.27.10
77
+ version: 0.28.0.rc4
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.27.10
84
+ version: 0.28.0.rc4
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: decidim-dev
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.27.10
91
+ version: 0.28.0.rc4
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
- version: 0.27.10
98
+ version: 0.28.0.rc4
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: decidim-meetings
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - '='
104
104
  - !ruby/object:Gem::Version
105
- version: 0.27.10
105
+ version: 0.28.0.rc4
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - '='
111
111
  - !ruby/object:Gem::Version
112
- version: 0.27.10
112
+ version: 0.28.0.rc4
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: decidim-participatory_processes
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - '='
118
118
  - !ruby/object:Gem::Version
119
- version: 0.27.10
119
+ version: 0.28.0.rc4
120
120
  type: :development
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - '='
125
125
  - !ruby/object:Gem::Version
126
- version: 0.27.10
126
+ version: 0.28.0.rc4
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: decidim-proposals
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - '='
132
132
  - !ruby/object:Gem::Version
133
- version: 0.27.10
133
+ version: 0.28.0.rc4
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - '='
139
139
  - !ruby/object:Gem::Version
140
- version: 0.27.10
140
+ version: 0.28.0.rc4
141
141
  description: An accountability component for decidim's participatory spaces.
142
142
  email:
143
143
  - josepjaume@gmail.com
@@ -149,24 +149,34 @@ extra_rdoc_files: []
149
149
  files:
150
150
  - README.md
151
151
  - Rakefile
152
- - app/cells/decidim/accountability/content_blocks/highlighted_results/elements.erb
153
- - app/cells/decidim/accountability/content_blocks/highlighted_results/heading.erb
154
152
  - app/cells/decidim/accountability/content_blocks/highlighted_results_cell.rb
155
153
  - app/cells/decidim/accountability/highlighted_results/show.erb
156
154
  - app/cells/decidim/accountability/highlighted_results_cell.rb
157
155
  - app/cells/decidim/accountability/highlighted_results_for_component/show.erb
158
156
  - app/cells/decidim/accountability/highlighted_results_for_component_cell.rb
157
+ - app/cells/decidim/accountability/project/show.erb
158
+ - app/cells/decidim/accountability/project/timeline.erb
159
+ - app/cells/decidim/accountability/project_cell.rb
159
160
  - app/cells/decidim/accountability/result_activity_cell.rb
161
+ - app/cells/decidim/accountability/result_card_cell.rb
160
162
  - app/cells/decidim/accountability/result_cell.rb
161
- - app/cells/decidim/accountability/result_m/data.erb
162
- - app/cells/decidim/accountability/result_m/footer.erb
163
- - app/cells/decidim/accountability/result_m/tags.erb
164
- - app/cells/decidim/accountability/result_m_cell.rb
163
+ - app/cells/decidim/accountability/result_l/extra_data.erb
164
+ - app/cells/decidim/accountability/result_l_cell.rb
165
+ - app/cells/decidim/accountability/result_metadata/project_aside.erb
166
+ - app/cells/decidim/accountability/result_metadata/show_footer.erb
167
+ - app/cells/decidim/accountability/result_metadata/versions.erb
168
+ - app/cells/decidim/accountability/result_metadata_cell.rb
169
+ - app/cells/decidim/accountability/results/show.erb
170
+ - app/cells/decidim/accountability/results_cell.rb
171
+ - app/cells/decidim/accountability/status/show.erb
172
+ - app/cells/decidim/accountability/status/status.erb
173
+ - app/cells/decidim/accountability/status_cell.rb
165
174
  - app/commands/decidim/accountability/admin/create_imported_result.rb
166
175
  - app/commands/decidim/accountability/admin/create_result.rb
167
176
  - app/commands/decidim/accountability/admin/create_status.rb
168
177
  - app/commands/decidim/accountability/admin/create_timeline_entry.rb
169
178
  - app/commands/decidim/accountability/admin/destroy_result.rb
179
+ - app/commands/decidim/accountability/admin/import_projects_to_accountability.rb
170
180
  - app/commands/decidim/accountability/admin/update_imported_result.rb
171
181
  - app/commands/decidim/accountability/admin/update_result.rb
172
182
  - app/commands/decidim/accountability/admin/update_status.rb
@@ -176,16 +186,18 @@ files:
176
186
  - app/controllers/decidim/accountability/admin/attachment_collections_controller.rb
177
187
  - app/controllers/decidim/accountability/admin/attachments_controller.rb
178
188
  - app/controllers/decidim/accountability/admin/import_results_controller.rb
189
+ - app/controllers/decidim/accountability/admin/projects_import_controller.rb
179
190
  - app/controllers/decidim/accountability/admin/results_controller.rb
180
191
  - app/controllers/decidim/accountability/admin/statuses_controller.rb
181
192
  - app/controllers/decidim/accountability/admin/timeline_entries_controller.rb
182
193
  - app/controllers/decidim/accountability/application_controller.rb
183
194
  - app/controllers/decidim/accountability/results_controller.rb
184
195
  - app/controllers/decidim/accountability/versions_controller.rb
185
- - app/events/decidim/accountability/base_result_event.rb
186
196
  - app/events/decidim/accountability/proposal_linked_event.rb
187
197
  - app/events/decidim/accountability/result_progress_updated_event.rb
198
+ - app/forms/decidim/accountability/admin/import_results_form.rb
188
199
  - app/forms/decidim/accountability/admin/result_form.rb
200
+ - app/forms/decidim/accountability/admin/result_import_projects_form.rb
189
201
  - app/forms/decidim/accountability/admin/status_form.rb
190
202
  - app/forms/decidim/accountability/admin/timeline_entry_form.rb
191
203
  - app/helpers/decidim/accountability/admin/application_helper.rb
@@ -193,23 +205,24 @@ files:
193
205
  - app/helpers/decidim/accountability/application_helper.rb
194
206
  - app/helpers/decidim/accountability/breadcrumb_helper.rb
195
207
  - app/jobs/application_job.rb
208
+ - app/jobs/decidim/accountability/admin/import_projects_job.rb
196
209
  - app/jobs/decidim/accountability/admin/import_results_csv_job.rb
197
210
  - app/mailers/decidim/accountability/import_mailer.rb
211
+ - app/mailers/decidim/accountability/import_projects_mailer.rb
198
212
  - app/models/decidim/accountability/application_record.rb
199
213
  - app/models/decidim/accountability/result.rb
200
214
  - app/models/decidim/accountability/status.rb
201
215
  - app/models/decidim/accountability/timeline_entry.rb
202
216
  - app/packs/entrypoints/decidim_accountability.js
203
217
  - app/packs/entrypoints/decidim_accountability_admin.js
218
+ - app/packs/entrypoints/decidim_accountability_admin_imports.js
219
+ - app/packs/images/decidim/accountability/breadcrumb_arrow.svg
204
220
  - app/packs/images/decidim/accountability/decidim_accountability.svg
221
+ - app/packs/src/decidim/accountability/admin/imports.js
205
222
  - app/packs/src/decidim/accountability/admin/index.js
206
223
  - app/packs/src/decidim/accountability/index.js
207
224
  - app/packs/src/decidim/accountability/version_diff.js
208
- - app/packs/stylesheets/decidim/accountability/_accountability.scss
209
- - app/packs/stylesheets/decidim/accountability/accountability/_cards.scss
210
- - app/packs/stylesheets/decidim/accountability/accountability/_categories.scss
211
- - app/packs/stylesheets/decidim/accountability/accountability/_lines_breadcrumb.scss
212
- - app/packs/stylesheets/decidim/accountability/accountability/_results.scss
225
+ - app/packs/stylesheets/accountability.scss
213
226
  - app/permissions/decidim/accountability/admin/permissions.rb
214
227
  - app/permissions/decidim/accountability/permissions.rb
215
228
  - app/presenters/decidim/accountability/admin_log/result_presenter.rb
@@ -222,11 +235,11 @@ files:
222
235
  - app/services/decidim/accountability/results_calculator.rb
223
236
  - app/services/decidim/accountability/results_csv_importer.rb
224
237
  - app/views/decidim/accountability/admin/import_results/new.html.erb
238
+ - app/views/decidim/accountability/admin/projects_import/new.html.erb
225
239
  - app/views/decidim/accountability/admin/results/_form.html.erb
226
240
  - app/views/decidim/accountability/admin/results/edit.html.erb
227
241
  - app/views/decidim/accountability/admin/results/index.html.erb
228
242
  - app/views/decidim/accountability/admin/results/new.html.erb
229
- - app/views/decidim/accountability/admin/results/proposals_picker.html.erb
230
243
  - app/views/decidim/accountability/admin/shared/_subnav.html.erb
231
244
  - app/views/decidim/accountability/admin/statuses/_form.html.erb
232
245
  - app/views/decidim/accountability/admin/statuses/edit.html.erb
@@ -237,25 +250,19 @@ files:
237
250
  - app/views/decidim/accountability/admin/timeline_entries/index.html.erb
238
251
  - app/views/decidim/accountability/admin/timeline_entries/new.html.erb
239
252
  - app/views/decidim/accountability/import_mailer/import.html.erb
240
- - app/views/decidim/accountability/result_widgets/show.html.erb
253
+ - app/views/decidim/accountability/import_projects_mailer/import.html.erb
241
254
  - app/views/decidim/accountability/results/_home_categories.html.erb
242
- - app/views/decidim/accountability/results/_home_header.html.erb
243
255
  - app/views/decidim/accountability/results/_linked_results.html.erb
244
256
  - app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
245
- - app/views/decidim/accountability/results/_results_leaf.html.erb
246
- - app/views/decidim/accountability/results/_results_parent.html.erb
257
+ - app/views/decidim/accountability/results/_project.html.erb
258
+ - app/views/decidim/accountability/results/_projects_aside.html.erb
247
259
  - app/views/decidim/accountability/results/_scope_filters.html.erb
248
260
  - app/views/decidim/accountability/results/_search.html.erb
249
- - app/views/decidim/accountability/results/_show_leaf.html.erb
250
- - app/views/decidim/accountability/results/_show_parent.html.erb
251
- - app/views/decidim/accountability/results/_stats.html.erb
252
261
  - app/views/decidim/accountability/results/_stats_box.html.erb
253
- - app/views/decidim/accountability/results/_timeline.html.erb
254
262
  - app/views/decidim/accountability/results/home.html.erb
255
263
  - app/views/decidim/accountability/results/index.html.erb
256
264
  - app/views/decidim/accountability/results/index.js.erb
257
265
  - app/views/decidim/accountability/results/show.html.erb
258
- - app/views/decidim/accountability/versions/index.html.erb
259
266
  - app/views/decidim/accountability/versions/show.html.erb
260
267
  - app/views/decidim/participatory_spaces/_result.html.erb
261
268
  - config/assets.rb
@@ -291,7 +298,6 @@ files:
291
298
  - config/locales/ga-IE.yml
292
299
  - config/locales/gl.yml
293
300
  - config/locales/gn-PY.yml
294
- - config/locales/he-IL.yml
295
301
  - config/locales/hr-HR.yml
296
302
  - config/locales/hr.yml
297
303
  - config/locales/hu.yml
@@ -353,7 +359,6 @@ files:
353
359
  - db/migrate/20200827154103_add_commentable_counter_cache_to_results.rb
354
360
  - db/migrate/20220331150008_add_title_to_timeline_entries.rb
355
361
  - db/migrate/20220331150155_move_legacy_description_to_title_of_timeline_entries.rb
356
- - decidim-accountability.gemspec
357
362
  - lib/decidim/accountability.rb
358
363
  - lib/decidim/accountability/admin.rb
359
364
  - lib/decidim/accountability/admin_engine.rb
@@ -361,32 +366,38 @@ files:
361
366
  - lib/decidim/accountability/component.rb
362
367
  - lib/decidim/accountability/engine.rb
363
368
  - lib/decidim/accountability/result_serializer.rb
369
+ - lib/decidim/accountability/seeds.rb
364
370
  - lib/decidim/accountability/test/factories.rb
365
371
  - lib/decidim/accountability/version.rb
366
372
  - lib/decidim/api/accountability_type.rb
367
373
  - lib/decidim/api/result_type.rb
368
374
  - lib/decidim/api/status_type.rb
369
375
  - lib/decidim/api/timeline_entry_type.rb
370
- homepage: https://github.com/decidim/decidim
376
+ homepage: https://decidim.org
371
377
  licenses:
372
378
  - AGPL-3.0
373
- metadata: {}
379
+ metadata:
380
+ bug_tracker_uri: https://github.com/decidim/decidim/issues
381
+ documentation_uri: https://docs.decidim.org/
382
+ funding_uri: https://opencollective.com/decidim
383
+ homepage_uri: https://decidim.org
384
+ source_code_uri: https://github.com/decidim/decidim
374
385
  post_install_message:
375
386
  rdoc_options: []
376
387
  require_paths:
377
388
  - lib
378
389
  required_ruby_version: !ruby/object:Gem::Requirement
379
390
  requirements:
380
- - - "~>"
391
+ - - ">="
381
392
  - !ruby/object:Gem::Version
382
- version: 3.0.0
393
+ version: '3.1'
383
394
  required_rubygems_version: !ruby/object:Gem::Requirement
384
395
  requirements:
385
- - - ">="
396
+ - - ">"
386
397
  - !ruby/object:Gem::Version
387
- version: '0'
398
+ version: 1.3.1
388
399
  requirements: []
389
- rubygems_version: 3.2.22
400
+ rubygems_version: 3.4.20
390
401
  signing_key:
391
402
  specification_version: 4
392
403
  summary: Decidim accountability module
@@ -1,5 +0,0 @@
1
- <div class="row small-up-1 medium-up-2 mediumlarge-up-3 large-up-3 card-grid">
2
- <% elements.each do |element| %>
3
- <%= card_for element, context: { show_space: true } %>
4
- <% end %>
5
- </div>
@@ -1 +0,0 @@
1
- <h2 class="section-heading"><%= t("decidim.accountability.content_blocks.highlighted_results.results") %></h2>
@@ -1,23 +0,0 @@
1
- <% if has_dates? %>
2
- <div class="card__icondata">
3
- <ul class="card-data">
4
- <li class="card-data__item">
5
- <%= icon "datetime", class: "icon--big", role: "img", aria_label: t("decidim.accountability.content_blocks.highlighted_results.dates") %>
6
- </li>
7
- <li class="card-data__item">
8
- <div class="card-data__item--centerblock">
9
- <strong><%= t("activemodel.attributes.result.start_date") %></strong>
10
- <br>
11
- <%= start_date ? l(start_date, format: :decidim_short) : t("decidim.accountability.content_blocks.highlighted_results.unspecified") %>
12
- </div>
13
- </li>
14
- <li class="card-data__item">
15
- <div class="card-data__item--centerblock">
16
- <strong><%= t("activemodel.attributes.result.end_date") %></strong>
17
- <br>
18
- <%= end_date ? l(end_date, format: :decidim_short) : t("decidim.accountability.content_blocks.highlighted_results.unspecified") %>
19
- </div>
20
- </li>
21
- </ul>
22
- </div>
23
- <% end %>
@@ -1,22 +0,0 @@
1
- <div class="card__footer">
2
- <div class="card__support">
3
- <% if progress.present? %>
4
- <div id="<%= "accountability-result-#{model.id}-progress" %>" class="progress__bar">
5
- <div class="progress__bar__title">
6
- <span class="progress__bar__number"><%= progress_text %></span>
7
- <span class="progress__bar__text"><%= t("decidim.accountability.result_m.executed") %></span>
8
- </div>
9
- <div class="progress progress__bar__bar" role="progressbar" tabindex="0" aria-valuenow="<%= progress %>" aria-valuemin="0" aria-valuetext="<%= progress %> percent" aria-valuemax="100">
10
- <div class="progress-meter progress__bar__bar--complete" style="width: <%= progress %>%"></div>
11
- <div class="progress__bar__bar--incomplete" style="width:calc(100% - <%= progress %>%);"></div>
12
- </div>
13
- </div>
14
- <% end %>
15
-
16
- <%= link_to(
17
- t("decidim.accountability.result_m.view"),
18
- resource_path,
19
- class: "card__button button button--sc secondary light small"
20
- ) %>
21
- </div>
22
- </div>
@@ -1 +0,0 @@
1
- <%= cell "decidim/tags", model, context: { extra_classes: ["tags--result"] } %>
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "cell/partial"
4
-
5
- module Decidim
6
- module Accountability
7
- # This cell renders the Medium (:m) result card
8
- # for an instance of a Result
9
- class ResultMCell < Decidim::CardMCell
10
- include Decidim::SanitizeHelper
11
- include Decidim::TranslationsHelper
12
- include ActiveSupport::NumberHelper
13
-
14
- delegate :start_date, :end_date, :progress, to: :model
15
-
16
- private
17
-
18
- def resource_path
19
- resource_locator(model).path
20
- end
21
-
22
- def progress_text
23
- return if progress.blank?
24
-
25
- number_to_percentage(progress, precision: 1, strip_insignificant_zeros: true, locale: I18n.locale, format: "%n%")
26
- end
27
-
28
- def statuses
29
- []
30
- end
31
-
32
- def has_dates?
33
- start_date.present? && end_date.present?
34
- end
35
- end
36
- end
37
- end
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Accountability
5
- class BaseResultEvent < Decidim::Events::SimpleEvent
6
- i18n_attributes :proposal_title, :proposal_path
7
-
8
- def resource_text
9
- translated_attribute(resource.description)
10
- end
11
-
12
- def proposal_title
13
- @proposal_title ||= decidim_sanitize_translated(proposal.title)
14
- end
15
-
16
- def proposal_path
17
- @proposal_path ||= Decidim::ResourceLocatorPresenter.new(proposal).path
18
- end
19
-
20
- def proposal
21
- @proposal ||= resource.linked_resources(:proposals, "included_proposals").find_by(id: extra[:proposal_id])
22
- end
23
-
24
- def hidden_resource?
25
- super || (proposal.respond_to?(:hidden?) && proposal.hidden?)
26
- end
27
- end
28
- end
29
- end
@@ -1,4 +0,0 @@
1
- @import "stylesheets/decidim/accountability/accountability/cards";
2
- @import "stylesheets/decidim/accountability/accountability/categories";
3
- @import "stylesheets/decidim/accountability/accountability/lines_breadcrumb";
4
- @import "stylesheets/decidim/accountability/accountability/results";
@@ -1,11 +0,0 @@
1
- .accountability{
2
- .card__link--block{
3
- display: block;
4
- }
5
-
6
- .card--meta{
7
- span{
8
- margin-right: .5rem;
9
- }
10
- }
11
- }
@@ -1,121 +0,0 @@
1
- .accountability{
2
- .categories{
3
- a:hover{
4
- text-decoration: underline;
5
- }
6
-
7
- a:focus{
8
- outline: $anchor-outline-focus;
9
- }
10
-
11
- .categories--header{
12
- border-bottom: 1px solid $medium-gray;
13
- padding-bottom: 1rem;
14
- margin-bottom: 1rem;
15
-
16
- .icon--arrow-bottom{
17
- fill: lighten($dark-gray, 50);
18
- }
19
-
20
- span{
21
- font-size: 1.15rem;
22
- color: lighten($dark-gray, 50);
23
- }
24
- }
25
-
26
- .categories--group{
27
- margin-bottom: 2rem;
28
-
29
- @include breakpoint(medium){
30
- display: flex;
31
- margin-bottom: 4rem;
32
- }
33
-
34
- .category--title{
35
- background: $white;
36
- padding: 1.5rem 2rem;
37
- min-height: 9rem;
38
-
39
- @include breakpoint(medium){
40
- height: calc(100% - 1.875rem);
41
- }
42
-
43
- p{
44
- font-weight: 600;
45
- margin-bottom: .75rem;
46
- }
47
-
48
- .progress{
49
- margin-bottom: .5rem;
50
- }
51
-
52
- .progress-info{
53
- position: relative;
54
- margin-bottom: 1.5rem;
55
-
56
- .progress-figure{
57
- display: inline-block;
58
- }
59
-
60
- .category--count{
61
- position: absolute;
62
- right: 0;
63
- top: .5rem;
64
- color: lighten($dark-gray, 50);
65
- }
66
- }
67
- }
68
-
69
- .card__link{
70
- .category--line{
71
- background-color: $light-gray-dark;
72
- border-radius: 4px;
73
- min-height: 9rem;
74
- padding: 1rem;
75
- margin-bottom: 1.875rem;
76
- position: relative;
77
-
78
- strong{
79
- font-weight: 600;
80
- color: var(--secondary);
81
- }
82
-
83
- .progress-figure{
84
- position: absolute;
85
- bottom: 1rem;
86
- }
87
-
88
- .category--count{
89
- color: lighten($secondary, 50);
90
- position: absolute;
91
- right: 1rem;
92
- bottom: 1rem;
93
- font-size: 80%;
94
- }
95
- }
96
-
97
- &:hover{
98
- .category--count{
99
- color: lighten($secondary, 50);
100
- }
101
-
102
- strong{
103
- color: scale-color($anchor-color, $lightness: -14%);
104
- }
105
- }
106
- }
107
- }
108
-
109
- .category--elements.active{
110
- display: block !important;
111
-
112
- .medium-4:first-child{
113
- margin-top: 1rem;
114
- }
115
- }
116
-
117
- .progress-figure{
118
- color: lighten($dark-gray, 50);
119
- }
120
- }
121
- }
@@ -1,37 +0,0 @@
1
- .lines-breadcrumb{
2
- margin-bottom: 2rem;
3
-
4
- .breadcrumb--separator{
5
- color: darken($light-gray, 40);
6
- padding: 0 .25rem;
7
- }
8
-
9
- div{
10
- display: inline-block;
11
- }
12
-
13
- a{
14
- font-weight: 600;
15
- color: $dark-gray;
16
-
17
- &:hover{
18
- text-decoration: underline;
19
- }
20
-
21
- &:focus{
22
- outline: 2px solid $secondary;
23
- }
24
- }
25
-
26
- ul{
27
- list-style: none;
28
- margin-left: 0;
29
- }
30
-
31
- .percentage{
32
- color: darken($light-gray, 40);
33
- font-weight: 400;
34
- padding-left: .15rem;
35
- display: inline-block;
36
- }
37
- }