decidim-meetings 0.24.3 → 0.25.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/meetings/join_meeting_button/registration_confirm.erb +6 -0
  3. data/app/cells/decidim/meetings/join_meeting_button/show.erb +8 -6
  4. data/app/cells/decidim/meetings/meeting_m_cell.rb +4 -0
  5. data/app/cells/decidim/meetings/meeting_url/show.erb +7 -2
  6. data/app/cells/decidim/meetings/meeting_url_cell.rb +14 -2
  7. data/app/cells/decidim/meetings/meetings_map/show.erb +1 -1
  8. data/app/cells/decidim/meetings/online_meeting_cell.rb +36 -0
  9. data/app/cells/decidim/meetings/online_meeting_link/show.erb +44 -0
  10. data/app/cells/decidim/meetings/online_meeting_link_cell.rb +27 -0
  11. data/app/cells/decidim/meetings/public_participants_list/show.erb +16 -0
  12. data/app/cells/decidim/meetings/public_participants_list_cell.rb +31 -0
  13. data/app/cells/decidim/meetings/question_responses/show.erb +7 -0
  14. data/app/cells/decidim/meetings/question_responses_cell.rb +72 -0
  15. data/app/commands/decidim/meetings/admin/close_meeting.rb +3 -0
  16. data/app/commands/decidim/meetings/admin/copy_meeting.rb +0 -9
  17. data/app/commands/decidim/meetings/admin/create_meeting.rb +4 -20
  18. data/app/commands/decidim/meetings/admin/destroy_meeting.rb +2 -0
  19. data/app/commands/decidim/meetings/admin/publish_meeting.rb +72 -0
  20. data/app/commands/decidim/meetings/admin/unpublish_meeting.rb +45 -0
  21. data/app/commands/decidim/meetings/admin/update_meeting.rb +6 -3
  22. data/app/commands/decidim/meetings/admin/update_question_status.rb +57 -0
  23. data/app/commands/decidim/meetings/admin/update_questionnaire.rb +93 -0
  24. data/app/commands/decidim/meetings/close_meeting.rb +2 -0
  25. data/app/commands/decidim/meetings/create_answer.rb +52 -0
  26. data/app/commands/decidim/meetings/create_meeting.rb +3 -1
  27. data/app/commands/decidim/meetings/join_meeting.rb +2 -1
  28. data/app/commands/decidim/meetings/update_meeting.rb +2 -1
  29. data/app/controllers/concerns/decidim/meetings/admin/filterable.rb +55 -0
  30. data/app/controllers/concerns/decidim/meetings/polls_resources.rb +29 -0
  31. data/app/controllers/decidim/meetings/admin/application_controller.rb +6 -2
  32. data/app/controllers/decidim/meetings/admin/invites_controller.rb +0 -2
  33. data/app/controllers/decidim/meetings/admin/meeting_closes_controller.rb +1 -1
  34. data/app/controllers/decidim/meetings/admin/meetings_controller.rb +46 -1
  35. data/app/controllers/decidim/meetings/admin/meetings_poll_controller.rb +107 -0
  36. data/app/controllers/decidim/meetings/calendars_controller.rb +8 -0
  37. data/app/controllers/decidim/meetings/live_events_controller.rb +29 -0
  38. data/app/controllers/decidim/meetings/meeting_closes_controller.rb +1 -1
  39. data/app/controllers/decidim/meetings/polls/answers_controller.rb +37 -0
  40. data/app/controllers/decidim/meetings/polls/questions_controller.rb +45 -0
  41. data/app/events/decidim/meetings/create_meeting_event.rb +16 -0
  42. data/app/forms/decidim/meetings/admin/answer_option_form.rb +24 -0
  43. data/app/forms/decidim/meetings/admin/close_meeting_form.rb +3 -1
  44. data/app/forms/decidim/meetings/admin/meeting_form.rb +12 -1
  45. data/app/forms/decidim/meetings/admin/question_form.rb +44 -0
  46. data/app/forms/decidim/meetings/admin/questionnaire_form.rb +19 -0
  47. data/app/forms/decidim/meetings/answer_choice_form.rb +14 -0
  48. data/app/forms/decidim/meetings/answer_form.rb +65 -0
  49. data/app/forms/decidim/meetings/close_meeting_form.rb +4 -0
  50. data/app/forms/decidim/meetings/join_meeting_form.rb +1 -0
  51. data/app/forms/decidim/meetings/meeting_form.rb +9 -0
  52. data/app/helpers/decidim/meetings/admin/filterable_helper.rb +13 -0
  53. data/app/helpers/decidim/meetings/application_helper.rb +3 -2
  54. data/app/helpers/decidim/meetings/meetings_helper.rb +21 -0
  55. data/app/models/decidim/meetings/answer.rb +48 -0
  56. data/app/models/decidim/meetings/answer_choice.rb +15 -0
  57. data/app/models/decidim/meetings/answer_option.rb +24 -0
  58. data/app/models/decidim/meetings/meeting.rb +88 -42
  59. data/app/models/decidim/meetings/poll.rb +19 -0
  60. data/app/models/decidim/meetings/question.rb +54 -0
  61. data/app/models/decidim/meetings/questionnaire.rb +23 -0
  62. data/app/models/decidim/meetings/registration.rb +2 -0
  63. data/app/packs/entrypoints/decidim_meetings.js +6 -0
  64. data/app/packs/entrypoints/decidim_meetings_admin.js +5 -0
  65. data/app/{assets/images/decidim/gamification/badges/attended_meetings.svg → packs/images/decidim/gamification/badges/decidim_gamification_badges_attended_meetings.svg} +0 -0
  66. data/app/{assets/images/decidim/meetings/icon.svg → packs/images/decidim/meetings/decidim_meetings.svg} +0 -0
  67. data/app/packs/src/decidim/meetings/admin/agendas.js +159 -0
  68. data/app/{assets/javascripts/decidim/meetings/admin/destroy_meeting_alert.js.es6 → packs/src/decidim/meetings/admin/destroy_meeting_alert.js} +0 -0
  69. data/app/{assets/javascripts/decidim/meetings/admin/meetings_form.js.es6 → packs/src/decidim/meetings/admin/meetings_form.js} +7 -4
  70. data/app/{assets/javascripts/decidim/meetings/admin/registrations_form.js.es6 → packs/src/decidim/meetings/admin/registrations_form.js} +0 -0
  71. data/app/{assets/javascripts/decidim/meetings/admin/registrations_invite_form.es6 → packs/src/decidim/meetings/admin/registrations_invite_form.js} +3 -3
  72. data/app/packs/src/decidim/meetings/meetings_form.js +54 -0
  73. data/app/packs/src/decidim/meetings/meetings_polls.js +41 -0
  74. data/app/packs/src/decidim/meetings/poll.component.js +166 -0
  75. data/app/packs/stylesheets/decidim/meetings/_header.scss +52 -0
  76. data/app/packs/stylesheets/decidim/meetings/_main.scss +178 -0
  77. data/app/packs/stylesheets/decidim/meetings/_meetings.scss +2 -0
  78. data/app/permissions/decidim/meetings/admin/permissions.rb +16 -8
  79. data/app/permissions/decidim/meetings/permissions.rb +42 -17
  80. data/app/presenters/decidim/meetings/admin_log/meeting_presenter.rb +5 -1
  81. data/app/presenters/decidim/meetings/meeting_presenter.rb +25 -25
  82. data/app/queries/decidim/meetings/filtered_meetings.rb +1 -1
  83. data/app/queries/decidim/meetings/metrics/meetings_metric_manage.rb +1 -1
  84. data/app/queries/decidim/meetings/questionnaire_user_answers.rb +29 -0
  85. data/app/serializers/decidim/meetings/data_portability_invite_serializer.rb +2 -1
  86. data/app/serializers/decidim/meetings/data_portability_registration_serializer.rb +2 -1
  87. data/app/serializers/decidim/meetings/registration_serializer.rb +3 -12
  88. data/app/services/decidim/meetings/calendar/component_calendar.rb +2 -2
  89. data/app/services/decidim/meetings/calendar/meeting_calendar.rb +33 -0
  90. data/app/services/decidim/meetings/calendar_renderer.rb +2 -0
  91. data/app/services/decidim/meetings/meeting_iframe_embedder.rb +86 -0
  92. data/app/services/decidim/meetings/meeting_search.rb +2 -2
  93. data/app/views/decidim/meetings/admin/agenda/_form.html.erb +1 -1
  94. data/app/views/decidim/meetings/admin/invite_join_meeting_mailer/invite.html.erb +4 -4
  95. data/app/views/decidim/meetings/admin/invites/_form.html.erb +1 -1
  96. data/app/views/decidim/meetings/admin/meeting_closes/_form.html.erb +16 -1
  97. data/app/views/decidim/meetings/admin/meeting_copies/_form.html.erb +1 -1
  98. data/app/views/decidim/meetings/admin/meetings/_form.html.erb +16 -1
  99. data/app/views/decidim/meetings/admin/meetings/index.html.erb +39 -11
  100. data/app/views/decidim/meetings/admin/poll/_answer_option.html.erb +34 -0
  101. data/app/views/decidim/meetings/admin/poll/_answer_option_template.html.erb +7 -0
  102. data/app/views/decidim/meetings/admin/poll/_form.html.erb +63 -0
  103. data/app/views/decidim/meetings/admin/poll/_question.html.erb +96 -0
  104. data/app/views/decidim/meetings/admin/poll/edit.html.erb +9 -0
  105. data/app/views/decidim/meetings/admin/registrations/_form.html.erb +1 -1
  106. data/app/views/decidim/meetings/directory/meetings/index.html.erb +4 -4
  107. data/app/views/decidim/meetings/directory/meetings/index.js.erb +2 -0
  108. data/app/views/decidim/meetings/layouts/live_event.html.erb +50 -0
  109. data/app/views/decidim/meetings/live_events/show.html.erb +12 -0
  110. data/app/views/decidim/meetings/meeting_closes/_form.html.erb +8 -1
  111. data/app/views/decidim/meetings/meeting_closes/edit.html.erb +1 -1
  112. data/app/views/decidim/meetings/meetings/_calendar_modal.html.erb +26 -0
  113. data/app/views/decidim/meetings/meetings/_filters.html.erb +1 -1
  114. data/app/views/decidim/meetings/meetings/_form.html.erb +6 -1
  115. data/app/views/decidim/meetings/meetings/_linked_meetings.html.erb +1 -1
  116. data/app/views/decidim/meetings/meetings/_meeting_minutes.html.erb +7 -18
  117. data/app/views/decidim/meetings/meetings/edit.html.erb +1 -1
  118. data/app/views/decidim/meetings/meetings/index.html.erb +4 -4
  119. data/app/views/decidim/meetings/meetings/new.html.erb +1 -1
  120. data/app/views/decidim/meetings/meetings/show.html.erb +13 -14
  121. data/app/views/decidim/meetings/polls/answers/_multiple_option.html.erb +13 -0
  122. data/app/views/decidim/meetings/polls/answers/_single_option.html.erb +19 -0
  123. data/app/views/decidim/meetings/polls/answers/create.js.erb +5 -0
  124. data/app/views/decidim/meetings/polls/questions/_closed_question.html.erb +7 -0
  125. data/app/views/decidim/meetings/polls/questions/_index.html.erb +5 -0
  126. data/app/views/decidim/meetings/polls/questions/_index_admin.html.erb +43 -0
  127. data/app/views/decidim/meetings/polls/questions/_published_question.html.erb +29 -0
  128. data/app/views/decidim/meetings/polls/questions/_question.html.erb +7 -0
  129. data/app/views/decidim/meetings/polls/questions/index.js.erb +5 -0
  130. data/app/views/decidim/meetings/polls/questions/index_admin.js.erb +5 -0
  131. data/app/views/decidim/meetings/registration_mailer/confirmation.html.erb +5 -2
  132. data/app/views/devise/mailer/join_meeting.html.erb +6 -6
  133. data/config/assets.rb +11 -0
  134. data/config/locales/ar.yml +3 -24
  135. data/config/locales/ca.yml +36 -27
  136. data/config/locales/cs.yml +72 -26
  137. data/config/locales/de.yml +22 -27
  138. data/config/locales/el.yml +3 -24
  139. data/config/locales/en.yml +112 -26
  140. data/config/locales/es-MX.yml +13 -27
  141. data/config/locales/es-PY.yml +13 -27
  142. data/config/locales/es.yml +13 -27
  143. data/config/locales/eu.yml +3 -24
  144. data/config/locales/fi-plain.yml +70 -26
  145. data/config/locales/fi.yml +70 -26
  146. data/config/locales/fr-CA.yml +19 -26
  147. data/config/locales/fr-LU.yml +534 -0
  148. data/config/locales/fr.yml +19 -26
  149. data/config/locales/gl.yml +46 -24
  150. data/config/locales/hu.yml +5 -24
  151. data/config/locales/id-ID.yml +3 -24
  152. data/config/locales/is-IS.yml +2 -22
  153. data/config/locales/it.yml +117 -23
  154. data/config/locales/ja.yml +148 -58
  155. data/config/locales/lb-LU.yml +1 -0
  156. data/config/locales/lv.yml +3 -24
  157. data/config/locales/nl.yml +70 -25
  158. data/config/locales/no.yml +5 -26
  159. data/config/locales/pl.yml +22 -33
  160. data/config/locales/pt-BR.yml +178 -23
  161. data/config/locales/pt.yml +3 -24
  162. data/config/locales/ro-RO.yml +38 -27
  163. data/config/locales/ru.yml +3 -24
  164. data/config/locales/sk.yml +3 -24
  165. data/config/locales/sv.yml +36 -27
  166. data/config/locales/tr-TR.yml +5 -27
  167. data/config/locales/uk.yml +3 -24
  168. data/config/locales/zh-CN.yml +3 -24
  169. data/db/migrate/20210217124802_add_registration_custom_content_to_meetings.rb +8 -0
  170. data/db/migrate/20210413050756_add_published_at_to_meetings.rb +7 -0
  171. data/db/migrate/20210413050917_update_published_at_to_existing_meetings.rb +20 -0
  172. data/db/migrate/20210430123416_add_public_participation_to_decidim_meetings_registrations.rb +7 -0
  173. data/db/migrate/20210506180226_merge_meetings_minutes_into_meetings_table.rb +48 -0
  174. data/db/migrate/20210512055802_create_decidim_meetings_polls.rb +10 -0
  175. data/db/migrate/20210512100333_drop_decidim_meetings_minutes_table.rb +77 -0
  176. data/db/migrate/20210518133236_merge_minutes_with_closing_report_in_meetings_table.rb +57 -0
  177. data/db/migrate/20210520084247_create_decidim_meetings_questionnaires.rb +11 -0
  178. data/db/migrate/20210520084253_create_decidim_meetings_questions.rb +15 -0
  179. data/db/migrate/20210520084321_create_decidim_meetings_answers.rb +13 -0
  180. data/db/migrate/20210520084330_create_decidim_meetings_answer_options.rb +10 -0
  181. data/db/migrate/20210520084337_create_decidim_meetings_answer_choices.rb +13 -0
  182. data/db/migrate/20210520134834_add_status_to_meetings_questions.rb +7 -0
  183. data/db/migrate/20210602040614_add_setting_embed_iframe_to_meetings.rb +7 -0
  184. data/lib/decidim/api/linked_resources_interface.rb +8 -1
  185. data/lib/decidim/api/meeting_type.rb +19 -4
  186. data/lib/decidim/api/meetings_type.rb +2 -2
  187. data/lib/decidim/meetings/admin_engine.rb +5 -1
  188. data/lib/decidim/meetings/api.rb +0 -1
  189. data/lib/decidim/meetings/component.rb +41 -6
  190. data/lib/decidim/meetings/data_portability_user_answers_serializer.rb +33 -0
  191. data/lib/decidim/meetings/engine.rb +10 -11
  192. data/lib/decidim/meetings/meeting_serializer.rb +1 -0
  193. data/lib/decidim/meetings/polls.rb +10 -0
  194. data/lib/decidim/meetings/test/factories.rb +85 -9
  195. data/lib/decidim/meetings/user_answers_serializer.rb +47 -0
  196. data/lib/decidim/meetings/version.rb +1 -1
  197. data/lib/decidim/meetings.rb +10 -0
  198. metadata +103 -113
  199. data/app/assets/config/decidim_meetings_manifest.js +0 -9
  200. data/app/assets/javascripts/decidim/meetings/admin/agendas.js.es6 +0 -158
  201. data/app/assets/javascripts/decidim/meetings/meetings_form.js.es6 +0 -54
  202. data/app/commands/decidim/meetings/admin/create_minutes.rb +0 -55
  203. data/app/commands/decidim/meetings/admin/update_minutes.rb +0 -63
  204. data/app/controllers/decidim/meetings/admin/minutes_controller.rb +0 -69
  205. data/app/forms/decidim/meetings/admin/minutes_form.rb +0 -20
  206. data/app/models/decidim/meetings/minutes.rb +0 -22
  207. data/app/presenters/decidim/meetings/admin_log/minutes_presenter.rb +0 -42
  208. data/app/views/decidim/meetings/admin/minutes/_form.html.erb +0 -23
  209. data/app/views/decidim/meetings/admin/minutes/edit.html.erb +0 -7
  210. data/app/views/decidim/meetings/admin/minutes/new.html.erb +0 -7
  211. data/app/views/decidim/meetings/meetings/_online_meeting_link.html.erb +0 -11
  212. data/config/locales/ja-JP.yml +0 -494
  213. data/lib/decidim/api/minutes_type.rb +0 -20
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Meetings
5
+ # This class serializes the answers given by a User for questionnaire so can be
6
+ # exported to CSV, JSON or other formats.
7
+ class UserAnswersSerializer < Decidim::Exporters::Serializer
8
+ include Decidim::TranslationsHelper
9
+
10
+ # Public: Initializes the serializer with a collection of Answers.
11
+ def initialize(answers)
12
+ @answers = answers
13
+ end
14
+
15
+ # Public: Exports a hash with the serialized data for the user answers.
16
+ def serialize
17
+ @answers.each_with_index.inject({}) do |serialized, (answer, idx)|
18
+ serialized.update(
19
+ answer_translated_attribute_name(:id) => [answer.id, answer.user.id].join("_"),
20
+ answer_translated_attribute_name(:created_at) => answer.created_at.to_s(:db),
21
+ answer_translated_attribute_name(:user_status) => answer_translated_attribute_name(answer.decidim_user_id.present? ? "registered" : "unregistered"),
22
+ "#{idx + 1}. #{translated_attribute(answer.question.body)}" => normalize_body(answer)
23
+ )
24
+ end
25
+ end
26
+
27
+ private
28
+
29
+ attr_reader :answers
30
+ alias resource answers
31
+
32
+ def normalize_body(answer)
33
+ normalize_choices(answer.choices)
34
+ end
35
+
36
+ def normalize_choices(choices)
37
+ choices.map do |choice|
38
+ choice.try(:body)
39
+ end
40
+ end
41
+
42
+ def answer_translated_attribute_name(attribute)
43
+ I18n.t(attribute.to_sym, scope: "decidim.forms.user_answers_serializer")
44
+ end
45
+ end
46
+ end
47
+ end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-meetings version.
5
5
  module Meetings
6
6
  def self.version
7
- "0.24.3"
7
+ "0.25.0.rc4"
8
8
  end
9
9
  end
10
10
  end
@@ -7,11 +7,21 @@ require "decidim/meetings/admin_engine"
7
7
  require "decidim/meetings/directory"
8
8
  require "decidim/meetings/directory_engine"
9
9
  require "decidim/meetings/component"
10
+ require "decidim/meetings/polls"
10
11
 
11
12
  module Decidim
12
13
  # Base module for this engine.
13
14
  module Meetings
14
15
  autoload :Registrations, "decidim/meetings/registrations"
15
16
  autoload :MeetingSerializer, "decidim/meetings/meeting_serializer"
17
+ autoload :UserAnswersSerializer, "decidim/meetings/user_answers_serializer"
18
+ autoload :DataPortabilityUserAnswersSerializer, "decidim/meetings/data_portability_user_answers_serializer"
19
+
20
+ include ActiveSupport::Configurable
21
+
22
+ # Public Setting that defines whether proposals can be linked to meetings
23
+ config_accessor :enable_proposal_linking do
24
+ Decidim.const_defined?("Proposals")
25
+ end
16
26
  end
17
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-meetings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.3
4
+ version: 0.25.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,64 +10,36 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-06-01 00:00:00.000000000 Z
13
+ date: 2021-09-20 00:00:00.000000000 Z
14
14
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: cells-erb
17
- requirement: !ruby/object:Gem::Requirement
18
- requirements:
19
- - - "~>"
20
- - !ruby/object:Gem::Version
21
- version: 0.1.0
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- requirements:
26
- - - "~>"
27
- - !ruby/object:Gem::Version
28
- version: 0.1.0
29
- - !ruby/object:Gem::Dependency
30
- name: cells-rails
31
- requirement: !ruby/object:Gem::Requirement
32
- requirements:
33
- - - "~>"
34
- - !ruby/object:Gem::Version
35
- version: 0.0.9
36
- type: :runtime
37
- prerelease: false
38
- version_requirements: !ruby/object:Gem::Requirement
39
- requirements:
40
- - - "~>"
41
- - !ruby/object:Gem::Version
42
- version: 0.0.9
43
15
  - !ruby/object:Gem::Dependency
44
16
  name: decidim-core
45
17
  requirement: !ruby/object:Gem::Requirement
46
18
  requirements:
47
19
  - - '='
48
20
  - !ruby/object:Gem::Version
49
- version: 0.24.3
21
+ version: 0.25.0.rc4
50
22
  type: :runtime
51
23
  prerelease: false
52
24
  version_requirements: !ruby/object:Gem::Requirement
53
25
  requirements:
54
26
  - - '='
55
27
  - !ruby/object:Gem::Version
56
- version: 0.24.3
28
+ version: 0.25.0.rc4
57
29
  - !ruby/object:Gem::Dependency
58
30
  name: decidim-forms
59
31
  requirement: !ruby/object:Gem::Requirement
60
32
  requirements:
61
33
  - - '='
62
34
  - !ruby/object:Gem::Version
63
- version: 0.24.3
35
+ version: 0.25.0.rc4
64
36
  type: :runtime
65
37
  prerelease: false
66
38
  version_requirements: !ruby/object:Gem::Requirement
67
39
  requirements:
68
40
  - - '='
69
41
  - !ruby/object:Gem::Version
70
- version: 0.24.3
42
+ version: 0.25.0.rc4
71
43
  - !ruby/object:Gem::Dependency
72
44
  name: icalendar
73
45
  requirement: !ruby/object:Gem::Requirement
@@ -82,110 +54,62 @@ dependencies:
82
54
  - - "~>"
83
55
  - !ruby/object:Gem::Version
84
56
  version: '2.5'
85
- - !ruby/object:Gem::Dependency
86
- name: jquery-tmpl-rails
87
- requirement: !ruby/object:Gem::Requirement
88
- requirements:
89
- - - "~>"
90
- - !ruby/object:Gem::Version
91
- version: '1.1'
92
- type: :runtime
93
- prerelease: false
94
- version_requirements: !ruby/object:Gem::Requirement
95
- requirements:
96
- - - "~>"
97
- - !ruby/object:Gem::Version
98
- version: '1.1'
99
- - !ruby/object:Gem::Dependency
100
- name: kaminari
101
- requirement: !ruby/object:Gem::Requirement
102
- requirements:
103
- - - "~>"
104
- - !ruby/object:Gem::Version
105
- version: '1.2'
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- version: 1.2.1
109
- type: :runtime
110
- prerelease: false
111
- version_requirements: !ruby/object:Gem::Requirement
112
- requirements:
113
- - - "~>"
114
- - !ruby/object:Gem::Version
115
- version: '1.2'
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- version: 1.2.1
119
- - !ruby/object:Gem::Dependency
120
- name: searchlight
121
- requirement: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - "~>"
124
- - !ruby/object:Gem::Version
125
- version: '4.1'
126
- type: :runtime
127
- prerelease: false
128
- version_requirements: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - "~>"
131
- - !ruby/object:Gem::Version
132
- version: '4.1'
133
57
  - !ruby/object:Gem::Dependency
134
58
  name: decidim-admin
135
59
  requirement: !ruby/object:Gem::Requirement
136
60
  requirements:
137
61
  - - '='
138
62
  - !ruby/object:Gem::Version
139
- version: 0.24.3
63
+ version: 0.25.0.rc4
140
64
  type: :development
141
65
  prerelease: false
142
66
  version_requirements: !ruby/object:Gem::Requirement
143
67
  requirements:
144
68
  - - '='
145
69
  - !ruby/object:Gem::Version
146
- version: 0.24.3
70
+ version: 0.25.0.rc4
147
71
  - !ruby/object:Gem::Dependency
148
72
  name: decidim-assemblies
149
73
  requirement: !ruby/object:Gem::Requirement
150
74
  requirements:
151
75
  - - '='
152
76
  - !ruby/object:Gem::Version
153
- version: 0.24.3
77
+ version: 0.25.0.rc4
154
78
  type: :development
155
79
  prerelease: false
156
80
  version_requirements: !ruby/object:Gem::Requirement
157
81
  requirements:
158
82
  - - '='
159
83
  - !ruby/object:Gem::Version
160
- version: 0.24.3
84
+ version: 0.25.0.rc4
161
85
  - !ruby/object:Gem::Dependency
162
86
  name: decidim-dev
163
87
  requirement: !ruby/object:Gem::Requirement
164
88
  requirements:
165
89
  - - '='
166
90
  - !ruby/object:Gem::Version
167
- version: 0.24.3
91
+ version: 0.25.0.rc4
168
92
  type: :development
169
93
  prerelease: false
170
94
  version_requirements: !ruby/object:Gem::Requirement
171
95
  requirements:
172
96
  - - '='
173
97
  - !ruby/object:Gem::Version
174
- version: 0.24.3
98
+ version: 0.25.0.rc4
175
99
  - !ruby/object:Gem::Dependency
176
100
  name: decidim-participatory_processes
177
101
  requirement: !ruby/object:Gem::Requirement
178
102
  requirements:
179
103
  - - '='
180
104
  - !ruby/object:Gem::Version
181
- version: 0.24.3
105
+ version: 0.25.0.rc4
182
106
  type: :development
183
107
  prerelease: false
184
108
  version_requirements: !ruby/object:Gem::Requirement
185
109
  requirements:
186
110
  - - '='
187
111
  - !ruby/object:Gem::Version
188
- version: 0.24.3
112
+ version: 0.25.0.rc4
189
113
  description: A meetings component for decidim's participatory spaces.
190
114
  email:
191
115
  - josepjaume@gmail.com
@@ -197,15 +121,6 @@ extra_rdoc_files: []
197
121
  files:
198
122
  - README.md
199
123
  - Rakefile
200
- - app/assets/config/decidim_meetings_manifest.js
201
- - app/assets/images/decidim/gamification/badges/attended_meetings.svg
202
- - app/assets/images/decidim/meetings/icon.svg
203
- - app/assets/javascripts/decidim/meetings/admin/agendas.js.es6
204
- - app/assets/javascripts/decidim/meetings/admin/destroy_meeting_alert.js.es6
205
- - app/assets/javascripts/decidim/meetings/admin/meetings_form.js.es6
206
- - app/assets/javascripts/decidim/meetings/admin/registrations_form.js.es6
207
- - app/assets/javascripts/decidim/meetings/admin/registrations_invite_form.es6
208
- - app/assets/javascripts/decidim/meetings/meetings_form.js.es6
209
124
  - app/cells/decidim/meetings/content_blocks/highlighted_meetings/elements.erb
210
125
  - app/cells/decidim/meetings/content_blocks/highlighted_meetings/heading.erb
211
126
  - app/cells/decidim/meetings/content_blocks/highlighted_meetings_cell.rb
@@ -238,27 +153,39 @@ files:
238
153
  - app/cells/decidim/meetings/meeting_url_cell.rb
239
154
  - app/cells/decidim/meetings/meetings_map/show.erb
240
155
  - app/cells/decidim/meetings/meetings_map_cell.rb
156
+ - app/cells/decidim/meetings/online_meeting_cell.rb
157
+ - app/cells/decidim/meetings/online_meeting_link/show.erb
158
+ - app/cells/decidim/meetings/online_meeting_link_cell.rb
159
+ - app/cells/decidim/meetings/public_participants_list/show.erb
160
+ - app/cells/decidim/meetings/public_participants_list_cell.rb
161
+ - app/cells/decidim/meetings/question_responses/show.erb
162
+ - app/cells/decidim/meetings/question_responses_cell.rb
241
163
  - app/cells/decidim/meetings/reported_content/show.erb
242
164
  - app/cells/decidim/meetings/reported_content_cell.rb
243
165
  - app/commands/decidim/meetings/admin/close_meeting.rb
244
166
  - app/commands/decidim/meetings/admin/copy_meeting.rb
245
167
  - app/commands/decidim/meetings/admin/create_agenda.rb
246
168
  - app/commands/decidim/meetings/admin/create_meeting.rb
247
- - app/commands/decidim/meetings/admin/create_minutes.rb
248
169
  - app/commands/decidim/meetings/admin/destroy_meeting.rb
249
170
  - app/commands/decidim/meetings/admin/export_meeting_registrations.rb
250
171
  - app/commands/decidim/meetings/admin/invite_user_to_join_meeting.rb
172
+ - app/commands/decidim/meetings/admin/publish_meeting.rb
173
+ - app/commands/decidim/meetings/admin/unpublish_meeting.rb
251
174
  - app/commands/decidim/meetings/admin/update_agenda.rb
252
175
  - app/commands/decidim/meetings/admin/update_meeting.rb
253
- - app/commands/decidim/meetings/admin/update_minutes.rb
176
+ - app/commands/decidim/meetings/admin/update_question_status.rb
177
+ - app/commands/decidim/meetings/admin/update_questionnaire.rb
254
178
  - app/commands/decidim/meetings/admin/update_registrations.rb
255
179
  - app/commands/decidim/meetings/admin/validate_registration_code.rb
256
180
  - app/commands/decidim/meetings/close_meeting.rb
181
+ - app/commands/decidim/meetings/create_answer.rb
257
182
  - app/commands/decidim/meetings/create_meeting.rb
258
183
  - app/commands/decidim/meetings/decline_invitation.rb
259
184
  - app/commands/decidim/meetings/join_meeting.rb
260
185
  - app/commands/decidim/meetings/leave_meeting.rb
261
186
  - app/commands/decidim/meetings/update_meeting.rb
187
+ - app/controllers/concerns/decidim/meetings/admin/filterable.rb
188
+ - app/controllers/concerns/decidim/meetings/polls_resources.rb
262
189
  - app/controllers/decidim/meetings/admin/agenda_controller.rb
263
190
  - app/controllers/decidim/meetings/admin/application_controller.rb
264
191
  - app/controllers/decidim/meetings/admin/attachment_collections_controller.rb
@@ -267,14 +194,17 @@ files:
267
194
  - app/controllers/decidim/meetings/admin/meeting_closes_controller.rb
268
195
  - app/controllers/decidim/meetings/admin/meeting_copies_controller.rb
269
196
  - app/controllers/decidim/meetings/admin/meetings_controller.rb
270
- - app/controllers/decidim/meetings/admin/minutes_controller.rb
197
+ - app/controllers/decidim/meetings/admin/meetings_poll_controller.rb
271
198
  - app/controllers/decidim/meetings/admin/registration_form_controller.rb
272
199
  - app/controllers/decidim/meetings/admin/registrations_controller.rb
273
200
  - app/controllers/decidim/meetings/application_controller.rb
274
201
  - app/controllers/decidim/meetings/calendars_controller.rb
275
202
  - app/controllers/decidim/meetings/directory/meetings_controller.rb
203
+ - app/controllers/decidim/meetings/live_events_controller.rb
276
204
  - app/controllers/decidim/meetings/meeting_closes_controller.rb
277
205
  - app/controllers/decidim/meetings/meetings_controller.rb
206
+ - app/controllers/decidim/meetings/polls/answers_controller.rb
207
+ - app/controllers/decidim/meetings/polls/questions_controller.rb
278
208
  - app/controllers/decidim/meetings/registrations_controller.rb
279
209
  - app/controllers/decidim/meetings/versions_controller.rb
280
210
  - app/controllers/decidim/meetings/widgets_controller.rb
@@ -286,6 +216,7 @@ files:
286
216
  - app/events/decidim/meetings/registration_code_validated_event.rb
287
217
  - app/events/decidim/meetings/upcoming_meeting_event.rb
288
218
  - app/events/decidim/meetings/update_meeting_event.rb
219
+ - app/forms/decidim/meetings/admin/answer_option_form.rb
289
220
  - app/forms/decidim/meetings/admin/close_meeting_form.rb
290
221
  - app/forms/decidim/meetings/admin/meeting_agenda_form.rb
291
222
  - app/forms/decidim/meetings/admin/meeting_agenda_items_form.rb
@@ -294,12 +225,16 @@ files:
294
225
  - app/forms/decidim/meetings/admin/meeting_registration_invite_form.rb
295
226
  - app/forms/decidim/meetings/admin/meeting_registrations_form.rb
296
227
  - app/forms/decidim/meetings/admin/meeting_service_form.rb
297
- - app/forms/decidim/meetings/admin/minutes_form.rb
228
+ - app/forms/decidim/meetings/admin/question_form.rb
229
+ - app/forms/decidim/meetings/admin/questionnaire_form.rb
298
230
  - app/forms/decidim/meetings/admin/validate_registration_code_form.rb
231
+ - app/forms/decidim/meetings/answer_choice_form.rb
232
+ - app/forms/decidim/meetings/answer_form.rb
299
233
  - app/forms/decidim/meetings/close_meeting_form.rb
300
234
  - app/forms/decidim/meetings/join_meeting_form.rb
301
235
  - app/forms/decidim/meetings/meeting_form.rb
302
236
  - app/helpers/decidim/meetings/admin/application_helper.rb
237
+ - app/helpers/decidim/meetings/admin/filterable_helper.rb
303
238
  - app/helpers/decidim/meetings/application_helper.rb
304
239
  - app/helpers/decidim/meetings/map_helper.rb
305
240
  - app/helpers/decidim/meetings/meeting_cells_helper.rb
@@ -309,17 +244,36 @@ files:
309
244
  - app/mailers/decidim/meetings/registration_mailer.rb
310
245
  - app/models/decidim/meetings/agenda.rb
311
246
  - app/models/decidim/meetings/agenda_item.rb
247
+ - app/models/decidim/meetings/answer.rb
248
+ - app/models/decidim/meetings/answer_choice.rb
249
+ - app/models/decidim/meetings/answer_option.rb
312
250
  - app/models/decidim/meetings/application_record.rb
313
251
  - app/models/decidim/meetings/invite.rb
314
252
  - app/models/decidim/meetings/meeting.rb
315
- - app/models/decidim/meetings/minutes.rb
253
+ - app/models/decidim/meetings/poll.rb
254
+ - app/models/decidim/meetings/question.rb
255
+ - app/models/decidim/meetings/questionnaire.rb
316
256
  - app/models/decidim/meetings/registration.rb
317
257
  - app/models/decidim/meetings/service.rb
258
+ - app/packs/entrypoints/decidim_meetings.js
259
+ - app/packs/entrypoints/decidim_meetings_admin.js
260
+ - app/packs/images/decidim/gamification/badges/decidim_gamification_badges_attended_meetings.svg
261
+ - app/packs/images/decidim/meetings/decidim_meetings.svg
262
+ - app/packs/src/decidim/meetings/admin/agendas.js
263
+ - app/packs/src/decidim/meetings/admin/destroy_meeting_alert.js
264
+ - app/packs/src/decidim/meetings/admin/meetings_form.js
265
+ - app/packs/src/decidim/meetings/admin/registrations_form.js
266
+ - app/packs/src/decidim/meetings/admin/registrations_invite_form.js
267
+ - app/packs/src/decidim/meetings/meetings_form.js
268
+ - app/packs/src/decidim/meetings/meetings_polls.js
269
+ - app/packs/src/decidim/meetings/poll.component.js
270
+ - app/packs/stylesheets/decidim/meetings/_header.scss
271
+ - app/packs/stylesheets/decidim/meetings/_main.scss
272
+ - app/packs/stylesheets/decidim/meetings/_meetings.scss
318
273
  - app/permissions/decidim/meetings/admin/permissions.rb
319
274
  - app/permissions/decidim/meetings/permissions.rb
320
275
  - app/presenters/decidim/meetings/admin_log/invite_presenter.rb
321
276
  - app/presenters/decidim/meetings/admin_log/meeting_presenter.rb
322
- - app/presenters/decidim/meetings/admin_log/minutes_presenter.rb
323
277
  - app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
324
278
  - app/presenters/decidim/meetings/invite_presenter.rb
325
279
  - app/presenters/decidim/meetings/log/resource_presenter.rb
@@ -329,15 +283,18 @@ files:
329
283
  - app/queries/decidim/meetings/filtered_meetings.rb
330
284
  - app/queries/decidim/meetings/metrics/meeting_followers_metric_measure.rb
331
285
  - app/queries/decidim/meetings/metrics/meetings_metric_manage.rb
286
+ - app/queries/decidim/meetings/questionnaire_user_answers.rb
332
287
  - app/serializers/decidim/meetings/data_portability_invite_serializer.rb
333
288
  - app/serializers/decidim/meetings/data_portability_registration_serializer.rb
334
289
  - app/serializers/decidim/meetings/registration_serializer.rb
335
290
  - app/services/decidim/meetings/calendar/base_calendar.rb
336
291
  - app/services/decidim/meetings/calendar/component_calendar.rb
292
+ - app/services/decidim/meetings/calendar/meeting_calendar.rb
337
293
  - app/services/decidim/meetings/calendar/meeting_to_event.rb
338
294
  - app/services/decidim/meetings/calendar/organization_calendar.rb
339
295
  - app/services/decidim/meetings/calendar_renderer.rb
340
296
  - app/services/decidim/meetings/diff_renderer.rb
297
+ - app/services/decidim/meetings/meeting_iframe_embedder.rb
341
298
  - app/services/decidim/meetings/meeting_search.rb
342
299
  - app/views/decidim/meetings/_calendar_modal.html.erb
343
300
  - app/views/decidim/meetings/admin/agenda/_agenda_item.html.erb
@@ -362,17 +319,22 @@ files:
362
319
  - app/views/decidim/meetings/admin/meetings/edit.html.erb
363
320
  - app/views/decidim/meetings/admin/meetings/index.html.erb
364
321
  - app/views/decidim/meetings/admin/meetings/new.html.erb
365
- - app/views/decidim/meetings/admin/minutes/_form.html.erb
366
- - app/views/decidim/meetings/admin/minutes/edit.html.erb
367
- - app/views/decidim/meetings/admin/minutes/new.html.erb
322
+ - app/views/decidim/meetings/admin/poll/_answer_option.html.erb
323
+ - app/views/decidim/meetings/admin/poll/_answer_option_template.html.erb
324
+ - app/views/decidim/meetings/admin/poll/_form.html.erb
325
+ - app/views/decidim/meetings/admin/poll/_question.html.erb
326
+ - app/views/decidim/meetings/admin/poll/edit.html.erb
368
327
  - app/views/decidim/meetings/admin/registrations/_form.html.erb
369
328
  - app/views/decidim/meetings/admin/registrations/edit.html.erb
370
329
  - app/views/decidim/meetings/directory/meetings/_meetings.html.erb
371
330
  - app/views/decidim/meetings/directory/meetings/index.html.erb
372
331
  - app/views/decidim/meetings/directory/meetings/index.js.erb
332
+ - app/views/decidim/meetings/layouts/live_event.html.erb
333
+ - app/views/decidim/meetings/live_events/show.html.erb
373
334
  - app/views/decidim/meetings/meeting_closes/_form.html.erb
374
335
  - app/views/decidim/meetings/meeting_closes/edit.html.erb
375
336
  - app/views/decidim/meetings/meeting_closes/proposals_picker.html.erb
337
+ - app/views/decidim/meetings/meetings/_calendar_modal.html.erb
376
338
  - app/views/decidim/meetings/meetings/_count.html.erb
377
339
  - app/views/decidim/meetings/meetings/_datetime.html.erb
378
340
  - app/views/decidim/meetings/meetings/_filters.html.erb
@@ -382,12 +344,21 @@ files:
382
344
  - app/views/decidim/meetings/meetings/_meeting_agenda.html.erb
383
345
  - app/views/decidim/meetings/meetings/_meeting_minutes.html.erb
384
346
  - app/views/decidim/meetings/meetings/_meetings.html.erb
385
- - app/views/decidim/meetings/meetings/_online_meeting_link.html.erb
386
347
  - app/views/decidim/meetings/meetings/edit.html.erb
387
348
  - app/views/decidim/meetings/meetings/index.html.erb
388
349
  - app/views/decidim/meetings/meetings/index.js.erb
389
350
  - app/views/decidim/meetings/meetings/new.html.erb
390
351
  - app/views/decidim/meetings/meetings/show.html.erb
352
+ - app/views/decidim/meetings/polls/answers/_multiple_option.html.erb
353
+ - app/views/decidim/meetings/polls/answers/_single_option.html.erb
354
+ - app/views/decidim/meetings/polls/answers/create.js.erb
355
+ - app/views/decidim/meetings/polls/questions/_closed_question.html.erb
356
+ - app/views/decidim/meetings/polls/questions/_index.html.erb
357
+ - app/views/decidim/meetings/polls/questions/_index_admin.html.erb
358
+ - app/views/decidim/meetings/polls/questions/_published_question.html.erb
359
+ - app/views/decidim/meetings/polls/questions/_question.html.erb
360
+ - app/views/decidim/meetings/polls/questions/index.js.erb
361
+ - app/views/decidim/meetings/polls/questions/index_admin.js.erb
391
362
  - app/views/decidim/meetings/registration_mailer/confirmation.html.erb
392
363
  - app/views/decidim/meetings/versions/index.html.erb
393
364
  - app/views/decidim/meetings/versions/show.html.erb
@@ -395,6 +366,7 @@ files:
395
366
  - app/views/decidim/participatory_spaces/_upcoming_meeting_for_card.html.erb
396
367
  - app/views/devise/mailer/join_meeting.html.erb
397
368
  - app/views/devise/mailer/join_meeting.text.erb
369
+ - config/assets.rb
398
370
  - config/locales/am-ET.yml
399
371
  - config/locales/ar-SA.yml
400
372
  - config/locales/ar.yml
@@ -421,6 +393,7 @@ files:
421
393
  - config/locales/fi-plain.yml
422
394
  - config/locales/fi.yml
423
395
  - config/locales/fr-CA.yml
396
+ - config/locales/fr-LU.yml
424
397
  - config/locales/fr.yml
425
398
  - config/locales/ga-IE.yml
426
399
  - config/locales/gl.yml
@@ -431,10 +404,10 @@ files:
431
404
  - config/locales/is-IS.yml
432
405
  - config/locales/is.yml
433
406
  - config/locales/it.yml
434
- - config/locales/ja-JP.yml
435
407
  - config/locales/ja.yml
436
408
  - config/locales/ko-KR.yml
437
409
  - config/locales/ko.yml
410
+ - config/locales/lb-LU.yml
438
411
  - config/locales/lt-LT.yml
439
412
  - config/locales/lt.yml
440
413
  - config/locales/lv.yml
@@ -497,13 +470,27 @@ files:
497
470
  - db/migrate/20201016065302_fix_meetings_registration_terms.rb
498
471
  - db/migrate/20201016112641_add_registration_type_and_url_to_meetings.rb
499
472
  - db/migrate/20201111133246_add_salt_to_decidim_meetings.rb
473
+ - db/migrate/20210217124802_add_registration_custom_content_to_meetings.rb
500
474
  - db/migrate/20210310120731_add_followable_counter_cache_to_meetings.rb
475
+ - db/migrate/20210413050756_add_published_at_to_meetings.rb
476
+ - db/migrate/20210413050917_update_published_at_to_existing_meetings.rb
477
+ - db/migrate/20210430123416_add_public_participation_to_decidim_meetings_registrations.rb
478
+ - db/migrate/20210506180226_merge_meetings_minutes_into_meetings_table.rb
479
+ - db/migrate/20210512055802_create_decidim_meetings_polls.rb
480
+ - db/migrate/20210512100333_drop_decidim_meetings_minutes_table.rb
481
+ - db/migrate/20210518133236_merge_minutes_with_closing_report_in_meetings_table.rb
482
+ - db/migrate/20210520084247_create_decidim_meetings_questionnaires.rb
483
+ - db/migrate/20210520084253_create_decidim_meetings_questions.rb
484
+ - db/migrate/20210520084321_create_decidim_meetings_answers.rb
485
+ - db/migrate/20210520084330_create_decidim_meetings_answer_options.rb
486
+ - db/migrate/20210520084337_create_decidim_meetings_answer_choices.rb
487
+ - db/migrate/20210520134834_add_status_to_meetings_questions.rb
488
+ - db/migrate/20210602040614_add_setting_embed_iframe_to_meetings.rb
501
489
  - lib/decidim/api/agenda_item_type.rb
502
490
  - lib/decidim/api/agenda_type.rb
503
491
  - lib/decidim/api/linked_resources_interface.rb
504
492
  - lib/decidim/api/meeting_type.rb
505
493
  - lib/decidim/api/meetings_type.rb
506
- - lib/decidim/api/minutes_type.rb
507
494
  - lib/decidim/api/service_type.rb
508
495
  - lib/decidim/api/services_interface.rb
509
496
  - lib/decidim/meetings.rb
@@ -511,15 +498,18 @@ files:
511
498
  - lib/decidim/meetings/admin_engine.rb
512
499
  - lib/decidim/meetings/api.rb
513
500
  - lib/decidim/meetings/component.rb
501
+ - lib/decidim/meetings/data_portability_user_answers_serializer.rb
514
502
  - lib/decidim/meetings/directory.rb
515
503
  - lib/decidim/meetings/directory_engine.rb
516
504
  - lib/decidim/meetings/engine.rb
517
505
  - lib/decidim/meetings/meeting_serializer.rb
506
+ - lib/decidim/meetings/polls.rb
518
507
  - lib/decidim/meetings/registrations.rb
519
508
  - lib/decidim/meetings/registrations/code_generator.rb
520
509
  - lib/decidim/meetings/seeds/Exampledocument.pdf
521
510
  - lib/decidim/meetings/seeds/city.jpeg
522
511
  - lib/decidim/meetings/test/factories.rb
512
+ - lib/decidim/meetings/user_answers_serializer.rb
523
513
  - lib/decidim/meetings/version.rb
524
514
  - lib/tasks/decidim_meetings.rake
525
515
  homepage: https://github.com/decidim/decidim
@@ -537,9 +527,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
537
527
  version: '2.7'
538
528
  required_rubygems_version: !ruby/object:Gem::Requirement
539
529
  requirements:
540
- - - ">="
530
+ - - ">"
541
531
  - !ruby/object:Gem::Version
542
- version: '0'
532
+ version: 1.3.1
543
533
  requirements: []
544
534
  rubygems_version: 3.1.2
545
535
  signing_key:
@@ -1,9 +0,0 @@
1
- //= link decidim/meetings/meetings_form.js
2
- //= link decidim/meetings/admin/meetings_form.js
3
- //= link decidim/meetings/admin/registrations_form.js
4
- //= link decidim/meetings/admin/registrations_invite_form.js
5
- //= link decidim/meetings/admin/meetings_form.js
6
- //= link decidim/meetings/meetings_form.js
7
- //= link decidim/meetings/admin/agendas.js
8
- //= link decidim/meetings/admin/destroy_meeting_alert.js
9
- //= link_tree ../images/decidim