decidim-meetings 0.28.1 → 0.29.0.rc1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim-meetings might be problematic. Click here for more details.

Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/meetings/attending_organizations_list_cell.rb +1 -1
  3. data/app/cells/decidim/meetings/cancel_registration_meeting_button_cell.rb +1 -2
  4. data/app/cells/decidim/meetings/highlighted_meetings_for_component_cell.rb +1 -2
  5. data/app/cells/decidim/meetings/join_meeting_button/registration_modal.erb +1 -1
  6. data/app/cells/decidim/meetings/join_meeting_button/remaining_slots.erb +1 -0
  7. data/app/cells/decidim/meetings/join_meeting_button_cell.rb +0 -3
  8. data/app/cells/decidim/meetings/meeting_card_metadata_cell.rb +0 -3
  9. data/app/cells/decidim/meetings/meeting_cell.rb +0 -1
  10. data/app/cells/decidim/meetings/meeting_l/image.erb +3 -3
  11. data/app/cells/decidim/meetings/meeting_l_cell.rb +0 -2
  12. data/app/cells/decidim/meetings/meeting_url/show.erb +5 -5
  13. data/app/cells/decidim/meetings/meeting_url_cell.rb +0 -1
  14. data/app/cells/decidim/meetings/online_meeting_link_cell.rb +0 -2
  15. data/app/cells/decidim/meetings/question_responses/show.erb +7 -3
  16. data/app/cells/decidim/meetings/question_responses_cell.rb +0 -2
  17. data/app/commands/decidim/meetings/admin/copy_meeting.rb +2 -2
  18. data/app/commands/decidim/meetings/admin/create_agenda.rb +9 -37
  19. data/app/commands/decidim/meetings/admin/create_meeting.rb +28 -61
  20. data/app/commands/decidim/meetings/admin/destroy_meeting.rb +4 -33
  21. data/app/commands/decidim/meetings/admin/update_agenda.rb +7 -35
  22. data/app/commands/decidim/meetings/admin/update_meeting.rb +30 -68
  23. data/app/commands/decidim/meetings/admin/update_question_status.rb +1 -1
  24. data/app/commands/decidim/meetings/admin/update_questionnaire.rb +19 -11
  25. data/app/commands/decidim/meetings/admin/update_registrations.rb +20 -46
  26. data/app/commands/decidim/meetings/create_answer.rb +5 -4
  27. data/app/commands/decidim/meetings/create_meeting.rb +38 -62
  28. data/app/commands/decidim/meetings/join_meeting.rb +18 -19
  29. data/app/commands/decidim/meetings/update_meeting.rb +6 -7
  30. data/app/commands/decidim/meetings/withdraw_meeting.rb +1 -1
  31. data/app/controllers/concerns/decidim/meetings/admin/invites/filterable.rb +33 -0
  32. data/app/controllers/decidim/meetings/admin/agenda_controller.rb +1 -1
  33. data/app/controllers/decidim/meetings/admin/invites_controller.rb +6 -6
  34. data/app/controllers/decidim/meetings/admin/meetings_controller.rb +2 -2
  35. data/app/controllers/decidim/meetings/admin/meetings_poll_controller.rb +12 -0
  36. data/app/controllers/decidim/meetings/application_controller.rb +1 -1
  37. data/app/controllers/decidim/meetings/live_events_controller.rb +1 -1
  38. data/app/controllers/decidim/meetings/meetings_controller.rb +3 -33
  39. data/app/controllers/decidim/meetings/polls/answers_controller.rb +10 -2
  40. data/app/controllers/decidim/meetings/registrations_controller.rb +3 -3
  41. data/app/forms/decidim/meetings/admin/meeting_registrations_form.rb +1 -1
  42. data/app/forms/decidim/meetings/admin/question_form.rb +8 -4
  43. data/app/forms/decidim/meetings/answer_form.rb +4 -4
  44. data/app/forms/decidim/meetings/meeting_form.rb +1 -1
  45. data/app/mailers/decidim/meetings/close_meeting_reminder_mailer.rb +1 -1
  46. data/app/models/decidim/meetings/meeting.rb +15 -5
  47. data/app/models/decidim/meetings/poll.rb +8 -0
  48. data/app/models/decidim/meetings/question.rb +1 -0
  49. data/app/models/decidim/meetings/questionnaire.rb +0 -6
  50. data/app/packs/src/decidim/meetings/admin/meetings_form.js +3 -3
  51. data/app/packs/src/decidim/meetings/meetings_form.js +3 -3
  52. data/app/packs/src/decidim/meetings/meetings_polls.js +5 -0
  53. data/app/packs/src/decidim/meetings/poll.component.js +32 -4
  54. data/app/packs/stylesheets/decidim/meetings/_item.scss +109 -1
  55. data/app/packs/stylesheets/decidim/meetings/_live_event.scss +0 -94
  56. data/app/permissions/decidim/meetings/permissions.rb +20 -0
  57. data/app/presenters/decidim/meetings/admin_log/meeting_presenter.rb +0 -4
  58. data/app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb +1 -1
  59. data/app/services/decidim/meetings/calendar/component_calendar.rb +1 -1
  60. data/app/services/decidim/meetings/calendar/meeting_to_event.rb +1 -1
  61. data/app/services/decidim/meetings/close_meeting_reminder_generator.rb +12 -6
  62. data/app/services/decidim/meetings/meeting_iframe_embedder.rb +2 -2
  63. data/app/views/decidim/meetings/admin/agenda/_agenda_item.html.erb +3 -3
  64. data/app/views/decidim/meetings/admin/agenda/_agenda_item_child.html.erb +3 -3
  65. data/app/views/decidim/meetings/admin/agenda/_agenda_item_fields.html.erb +3 -3
  66. data/app/views/decidim/meetings/admin/invite_join_meeting_mailer/invite.html.erb +3 -1
  67. data/app/views/decidim/meetings/admin/invites/_form.html.erb +4 -4
  68. data/app/views/decidim/meetings/admin/invites/index.html.erb +4 -34
  69. data/app/views/decidim/meetings/admin/meetings/_form.html.erb +8 -8
  70. data/app/views/decidim/meetings/admin/meetings/_service.html.erb +3 -3
  71. data/app/views/decidim/meetings/admin/meetings/index.html.erb +2 -2
  72. data/app/views/decidim/meetings/admin/poll/_answer_option.html.erb +1 -1
  73. data/app/views/decidim/meetings/admin/poll/_answer_option_template.html.erb +1 -1
  74. data/app/views/decidim/meetings/admin/poll/_form.html.erb +26 -25
  75. data/app/views/decidim/meetings/admin/poll/_question.html.erb +18 -16
  76. data/app/views/decidim/meetings/admin/poll/edit.html.erb +4 -6
  77. data/app/views/decidim/meetings/admin/registrations/edit.html.erb +1 -1
  78. data/app/views/decidim/meetings/close_meeting_reminder_mailer/close_meeting_reminder.html.erb +1 -1
  79. data/app/views/decidim/meetings/layouts/live_event.html.erb +1 -15
  80. data/app/views/decidim/meetings/meetings/_datetime.html.erb +4 -4
  81. data/app/views/decidim/meetings/meetings/_form.html.erb +17 -17
  82. data/app/views/decidim/meetings/meetings/_meeting.html.erb +2 -1
  83. data/app/views/decidim/meetings/meetings/_meeting_agenda.html.erb +2 -2
  84. data/app/views/decidim/meetings/meetings/_meeting_aside.html.erb +3 -2
  85. data/app/views/decidim/meetings/meetings/_meeting_poll_actions.html.erb +15 -0
  86. data/app/views/decidim/meetings/polls/answers/_multiple_option.html.erb +6 -10
  87. data/app/views/decidim/meetings/polls/answers/_single_option.html.erb +4 -10
  88. data/app/views/decidim/meetings/polls/answers/admin.html.erb +34 -0
  89. data/app/views/decidim/meetings/polls/answers/index.html.erb +36 -0
  90. data/app/views/decidim/meetings/polls/questions/_closed_question.html.erb +8 -2
  91. data/app/views/decidim/meetings/polls/questions/_index_admin.html.erb +27 -24
  92. data/app/views/decidim/meetings/polls/questions/_published_question.html.erb +14 -11
  93. data/app/views/decidim/meetings/polls/questions/_question.html.erb +1 -1
  94. data/app/views/decidim/meetings/polls/questions/index.js.erb +3 -3
  95. data/app/views/decidim/meetings/polls/questions/index_admin.js.erb +3 -3
  96. data/app/views/devise/mailer/join_meeting.html.erb +3 -1
  97. data/app/views/devise/mailer/join_meeting.text.erb +3 -1
  98. data/config/locales/ar.yml +0 -11
  99. data/config/locales/bg.yml +682 -0
  100. data/config/locales/ca.yml +45 -13
  101. data/config/locales/cs.yml +24 -12
  102. data/config/locales/de.yml +44 -12
  103. data/config/locales/el.yml +0 -11
  104. data/config/locales/en.yml +44 -12
  105. data/config/locales/es-MX.yml +44 -12
  106. data/config/locales/es-PY.yml +44 -12
  107. data/config/locales/es.yml +44 -12
  108. data/config/locales/eu.yml +44 -12
  109. data/config/locales/fi-plain.yml +44 -12
  110. data/config/locales/fi.yml +44 -12
  111. data/config/locales/fr-CA.yml +44 -12
  112. data/config/locales/fr.yml +44 -12
  113. data/config/locales/ga-IE.yml +0 -5
  114. data/config/locales/gl.yml +0 -5
  115. data/config/locales/hu.yml +0 -8
  116. data/config/locales/id-ID.yml +0 -3
  117. data/config/locales/is-IS.yml +0 -3
  118. data/config/locales/it.yml +0 -9
  119. data/config/locales/ja.yml +44 -12
  120. data/config/locales/lb.yml +0 -3
  121. data/config/locales/lt.yml +0 -11
  122. data/config/locales/lv.yml +0 -3
  123. data/config/locales/nl.yml +0 -11
  124. data/config/locales/no.yml +0 -10
  125. data/config/locales/pl.yml +137 -9
  126. data/config/locales/pt-BR.yml +17 -13
  127. data/config/locales/pt.yml +0 -9
  128. data/config/locales/ro-RO.yml +0 -11
  129. data/config/locales/ru.yml +0 -3
  130. data/config/locales/sk.yml +0 -3
  131. data/config/locales/sv.yml +0 -10
  132. data/config/locales/tr-TR.yml +3 -4
  133. data/config/locales/uk.yml +0 -3
  134. data/config/locales/zh-CN.yml +0 -4
  135. data/config/locales/zh-TW.yml +0 -11
  136. data/db/migrate/20240130135858_add_withdrawn_fields_on_meetings.rb +23 -0
  137. data/decidim-meetings.gemspec +1 -1
  138. data/lib/decidim/api/meeting_type.rb +3 -0
  139. data/lib/decidim/meetings/component.rb +2 -2
  140. data/lib/decidim/meetings/engine.rb +5 -1
  141. data/lib/decidim/meetings/meeting_serializer.rb +3 -1
  142. data/lib/decidim/meetings/seeds.rb +25 -18
  143. data/lib/decidim/meetings/test/factories.rb +1 -1
  144. data/lib/decidim/meetings/test/notifications_handling.rb +1 -1
  145. data/lib/decidim/meetings/version.rb +1 -1
  146. data/lib/tasks/decidim_meetings.rake +1 -1
  147. metadata +26 -23
  148. data/app/presenters/decidim/meetings/log/resource_presenter.rb +0 -18
  149. data/app/views/decidim/meetings/admin/agenda/show.html.erb +0 -0
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-meetings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.1
4
+ version: 0.29.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
8
8
  - Marc Riera Casals
9
9
  - Oriol Gual Oliva
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-04-30 00:00:00.000000000 Z
13
+ date: 2024-07-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.28.1
21
+ version: 0.29.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.1
28
+ version: 0.29.0.rc1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-forms
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.28.1
35
+ version: 0.29.0.rc1
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.28.1
42
+ version: 0.29.0.rc1
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: icalendar
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -60,56 +60,56 @@ dependencies:
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.28.1
63
+ version: 0.29.0.rc1
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.28.1
70
+ version: 0.29.0.rc1
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: decidim-assemblies
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.28.1
77
+ version: 0.29.0.rc1
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.28.1
84
+ version: 0.29.0.rc1
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.28.1
91
+ version: 0.29.0.rc1
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.28.1
98
+ version: 0.29.0.rc1
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: decidim-participatory_processes
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - '='
104
104
  - !ruby/object:Gem::Version
105
- version: 0.28.1
105
+ version: 0.29.0.rc1
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.28.1
112
+ version: 0.29.0.rc1
113
113
  description: A meetings component for decidim's participatory spaces.
114
114
  email:
115
115
  - josepjaume@gmail.com
@@ -182,6 +182,7 @@ files:
182
182
  - app/commands/decidim/meetings/update_meeting.rb
183
183
  - app/commands/decidim/meetings/withdraw_meeting.rb
184
184
  - app/controllers/concerns/decidim/meetings/admin/filterable.rb
185
+ - app/controllers/concerns/decidim/meetings/admin/invites/filterable.rb
185
186
  - app/controllers/concerns/decidim/meetings/component_filterable.rb
186
187
  - app/controllers/concerns/decidim/meetings/polls_resources.rb
187
188
  - app/controllers/decidim/meetings/admin/agenda_controller.rb
@@ -282,7 +283,6 @@ files:
282
283
  - app/presenters/decidim/meetings/admin_log/questionnaire_presenter.rb
283
284
  - app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
284
285
  - app/presenters/decidim/meetings/invite_presenter.rb
285
- - app/presenters/decidim/meetings/log/resource_presenter.rb
286
286
  - app/presenters/decidim/meetings/meeting_edition_presenter.rb
287
287
  - app/presenters/decidim/meetings/meeting_presenter.rb
288
288
  - app/presenters/decidim/meetings/official_author_presenter.rb
@@ -311,7 +311,6 @@ files:
311
311
  - app/views/decidim/meetings/admin/agenda/_form.html.erb
312
312
  - app/views/decidim/meetings/admin/agenda/edit.html.erb
313
313
  - app/views/decidim/meetings/admin/agenda/new.html.erb
314
- - app/views/decidim/meetings/admin/agenda/show.html.erb
315
314
  - app/views/decidim/meetings/admin/invite_join_meeting_mailer/invite.html.erb
316
315
  - app/views/decidim/meetings/admin/invites/_form.html.erb
317
316
  - app/views/decidim/meetings/admin/invites/index.html.erb
@@ -349,6 +348,7 @@ files:
349
348
  - app/views/decidim/meetings/meetings/_meeting_agenda.html.erb
350
349
  - app/views/decidim/meetings/meetings/_meeting_aside.html.erb
351
350
  - app/views/decidim/meetings/meetings/_meeting_minutes.html.erb
351
+ - app/views/decidim/meetings/meetings/_meeting_poll_actions.html.erb
352
352
  - app/views/decidim/meetings/meetings/edit.html.erb
353
353
  - app/views/decidim/meetings/meetings/index.html.erb
354
354
  - app/views/decidim/meetings/meetings/index.js.erb
@@ -356,7 +356,9 @@ files:
356
356
  - app/views/decidim/meetings/meetings/show.html.erb
357
357
  - app/views/decidim/meetings/polls/answers/_multiple_option.html.erb
358
358
  - app/views/decidim/meetings/polls/answers/_single_option.html.erb
359
+ - app/views/decidim/meetings/polls/answers/admin.html.erb
359
360
  - app/views/decidim/meetings/polls/answers/create.js.erb
361
+ - app/views/decidim/meetings/polls/answers/index.html.erb
360
362
  - app/views/decidim/meetings/polls/questions/_closed_question.html.erb
361
363
  - app/views/decidim/meetings/polls/questions/_index.html.erb
362
364
  - app/views/decidim/meetings/polls/questions/_index_admin.html.erb
@@ -512,6 +514,7 @@ files:
512
514
  - db/migrate/20210928095036_rename_upcoming_events_content_block_to_upcoming_meetings.rb
513
515
  - db/migrate/20211105115625_remove_not_null_on_customize_registration_email.rb
514
516
  - db/migrate/20230427105701_change_types_and_registration_types_on_meetings.rb
517
+ - db/migrate/20240130135858_add_withdrawn_fields_on_meetings.rb
515
518
  - decidim-meetings.gemspec
516
519
  - lib/decidim/api/agenda_item_type.rb
517
520
  - lib/decidim/api/agenda_type.rb
@@ -553,7 +556,7 @@ metadata:
553
556
  funding_uri: https://opencollective.com/decidim
554
557
  homepage_uri: https://decidim.org
555
558
  source_code_uri: https://github.com/decidim/decidim
556
- post_install_message:
559
+ post_install_message:
557
560
  rdoc_options: []
558
561
  require_paths:
559
562
  - lib
@@ -561,15 +564,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
561
564
  requirements:
562
565
  - - "~>"
563
566
  - !ruby/object:Gem::Version
564
- version: 3.1.0
567
+ version: 3.2.0
565
568
  required_rubygems_version: !ruby/object:Gem::Requirement
566
569
  requirements:
567
- - - ">="
570
+ - - ">"
568
571
  - !ruby/object:Gem::Version
569
- version: '0'
572
+ version: 1.3.1
570
573
  requirements: []
571
- rubygems_version: 3.5.9
572
- signing_key:
574
+ rubygems_version: 3.4.10
575
+ signing_key:
573
576
  specification_version: 4
574
577
  summary: Decidim meetings module
575
578
  test_files: []
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Meetings
5
- module Log
6
- class ResourcePresenter < Decidim::Log::ResourcePresenter
7
- private
8
-
9
- # Private: Presents resource name.
10
- #
11
- # Returns an HTML-safe String.
12
- def present_resource_name
13
- Decidim::Meetings::MeetingPresenter.new(resource).title
14
- end
15
- end
16
- end
17
- end
18
- end