decidim-participatory_processes 0.29.0 → 0.29.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +3 -3
  3. data/app/presenters/decidim/participatory_processes/participatory_process_group_presenter.rb +1 -1
  4. data/app/presenters/decidim/participatory_processes/participatory_process_presenter.rb +1 -1
  5. data/config/locales/ar.yml +12 -3
  6. data/config/locales/bg.yml +0 -2
  7. data/config/locales/bn-BD.yml +1 -0
  8. data/config/locales/bs-BA.yml +32 -0
  9. data/config/locales/ca.yml +4 -4
  10. data/config/locales/cs.yml +5 -5
  11. data/config/locales/de.yml +2 -2
  12. data/config/locales/el.yml +1 -3
  13. data/config/locales/en.yml +1 -1
  14. data/config/locales/es-MX.yml +2 -2
  15. data/config/locales/es-PY.yml +2 -2
  16. data/config/locales/es.yml +2 -2
  17. data/config/locales/eu.yml +50 -50
  18. data/config/locales/fi-plain.yml +2 -2
  19. data/config/locales/fi.yml +8 -8
  20. data/config/locales/fr-CA.yml +3 -3
  21. data/config/locales/fr.yml +3 -3
  22. data/config/locales/ga-IE.yml +10 -0
  23. data/config/locales/gl.yml +12 -3
  24. data/config/locales/hu.yml +1 -3
  25. data/config/locales/id-ID.yml +11 -3
  26. data/config/locales/is-IS.yml +11 -1
  27. data/config/locales/it.yml +12 -3
  28. data/config/locales/ja.yml +1 -1
  29. data/config/locales/lb.yml +12 -3
  30. data/config/locales/lt.yml +0 -2
  31. data/config/locales/lv.yml +11 -3
  32. data/config/locales/nl.yml +11 -2
  33. data/config/locales/no.yml +2 -4
  34. data/config/locales/pl.yml +0 -2
  35. data/config/locales/pt-BR.yml +9 -3
  36. data/config/locales/pt.yml +17 -2
  37. data/config/locales/ro-RO.yml +6 -1
  38. data/config/locales/ru.yml +11 -1
  39. data/config/locales/sk.yml +11 -3
  40. data/config/locales/sv.yml +25 -19
  41. data/config/locales/tr-TR.yml +12 -3
  42. data/config/locales/uk.yml +11 -1
  43. data/config/locales/zh-CN.yml +11 -3
  44. data/config/locales/zh-TW.yml +0 -2
  45. data/decidim-participatory_processes.gemspec +1 -1
  46. data/lib/decidim/participatory_processes/query_extensions.rb +26 -0
  47. data/lib/decidim/participatory_processes/version.rb +1 -1
  48. metadata +13 -11
@@ -23,7 +23,6 @@ sk:
23
23
  promoted: propagované
24
24
  published_at: Publikované v
25
25
  related_process_ids: Súvisiace procesy
26
- scope_id: Rozsah
27
26
  scope_type_max_depth_id: Hĺbka filtra rozsahu
28
27
  scopes_enabled: Schopnosti povolené
29
28
  short_description: Stručný opis
@@ -44,6 +43,8 @@ sk:
44
43
  short_description: Stručný opis
45
44
  start_date: Dátum začatia
46
45
  title: Titul
46
+ participatory_process_type:
47
+ title: Titul
47
48
  participatory_process_user_role:
48
49
  email: E-mailom
49
50
  name: názov
@@ -115,6 +116,10 @@ sk:
115
116
  start_date: Dátum začatia
116
117
  title: Titul
117
118
  name: Participatívne krok procesu
119
+ participatory_process_type:
120
+ fields:
121
+ created_at: Vytvorené u
122
+ title: Titul
118
123
  participatory_process_user_role:
119
124
  fields:
120
125
  email: E-mailom
@@ -187,6 +192,11 @@ sk:
187
192
  update:
188
193
  error: Pri aktualizácii tohto kroku procesu participácie došlo k chybe.
189
194
  success: Úspešný krok procesu bol úspešne aktualizovaný.
195
+ participatory_process_types:
196
+ edit:
197
+ update: Aktualizácia
198
+ new:
199
+ create: Vytvoriť
190
200
  participatory_process_user_roles:
191
201
  create:
192
202
  error: Pri pridávaní používateľa pre tento participačné proces došlo k chybe.
@@ -316,8 +326,6 @@ sk:
316
326
  name: Zvýraznené procesy
317
327
  index:
318
328
  title: Participatívna procesy
319
- last_activity:
320
- new_participatory_process: Nový participačné proces
321
329
  participatory_processes:
322
330
  filters:
323
331
  counters:
@@ -10,24 +10,24 @@ sv:
10
10
  copy_steps: Kopiera steg
11
11
  decidim_area_id: Område
12
12
  description: Beskrivning
13
- developer_group: Kampanjgrupp
13
+ developer_group: Arrangör
14
14
  document: Dokument
15
15
  domain: Domän
16
16
  end_date: Slutdatum
17
17
  hashtag: Hashtag
18
- hero_image: Hembild
18
+ hero_image: Startbild
19
19
  import_attachments: Importera bilagor
20
20
  import_categories: Importera kategorier
21
21
  import_components: Importera komponenter
22
22
  import_steps: Importera steg
23
23
  local_area: Område
24
- meta_scope: Metadata för indelning
24
+ meta_scope: Omfattning
25
25
  participatory_process_group_id: Grupp av processer
26
26
  participatory_process_type_id: Typ av processer
27
- participatory_scope: Vad som bestäms
28
- participatory_structure: Hur det bestäms
27
+ participatory_scope: Vad beslutas
28
+ participatory_structure: Hur fattas beslut
29
29
  private_space: Privat process
30
- promoted: Annonserad
30
+ promoted: Utvald
31
31
  published_at: Publicerad
32
32
  related_process_ids: Relaterade processer
33
33
  scope_id: Indelning
@@ -42,20 +42,20 @@ sv:
42
42
  weight: Position i listan
43
43
  participatory_process_group:
44
44
  description: Beskrivning
45
- developer_group: Kampanjgrupp
45
+ developer_group: Arrangör
46
46
  group_url: Webbplats
47
47
  hashtag: Hashtag
48
48
  hero_image: Bild
49
49
  local_area: Område
50
- meta_scope: Metadata för indelning
50
+ meta_scope: Omfattning
51
51
  participatory_process_ids: Relaterade processer
52
- participatory_scope: Vad som beslutas
52
+ participatory_scope: Vad beslutas
53
53
  participatory_structure: Hur fattas beslut
54
54
  target: Vem deltar
55
55
  title: Titel
56
56
  participatory_process_step:
57
- cta_path: Call to Action-sökväg
58
- cta_text: Call to Action-text
57
+ cta_path: Sökväg för knapp
58
+ cta_text: Text till knapp
59
59
  description: Beskrivning
60
60
  end_date: Slutdatum
61
61
  short_description: Kort beskrivning
@@ -217,6 +217,12 @@ sv:
217
217
  last_step: Kan inte ta bort det sista steget i en process.
218
218
  success: Steget i processen har raderats.
219
219
  edit:
220
+ cta_deprecated:
221
+ body_html: |-
222
+ Konfigurering av Call to Action görs inte längre via stegen i deltagarprocessen i den här versionen.
223
+ Det görs istället på <b>Landningssidan</b>, med hjälp av <b>hero- och bild-</b>innehållsblocket.
224
+ Det här finns kvar för att du ska kunna migrera de CTAs som du behöver. Fälten <i>Call to Action-länk</i> och <i>Call to Action-text</i> kommer att tas bort i nästa version.
225
+ title: Call to Action från tidigare version
220
226
  title: Redigera steg i processen
221
227
  update: Uppdatera
222
228
  index:
@@ -358,7 +364,7 @@ sv:
358
364
  extra_data:
359
365
  developer_group: Stödd av
360
366
  name: Metadata
361
- participatory_scope: Vad som beslutas
367
+ participatory_scope: Vad beslutas
362
368
  participatory_structure: Hur fattas beslut
363
369
  target: Vem deltar
364
370
  html:
@@ -372,7 +378,7 @@ sv:
372
378
  main_data:
373
379
  name: Titel och beskrivning
374
380
  participatory_processes:
375
- active: Aktiva deltagandeprocesser
381
+ active: Pågående deltagandeprocesser
376
382
  name: Deltagandeprocesser
377
383
  stats:
378
384
  name: Statistik
@@ -390,7 +396,7 @@ sv:
390
396
  admin:
391
397
  content_blocks:
392
398
  highlighted_processes:
393
- active: Aktiv
399
+ active: Pågående
394
400
  all: Alla
395
401
  max_results: Högsta antal element att visa
396
402
  selection_criteria: Urvalskriterier
@@ -412,7 +418,7 @@ sv:
412
418
  participatory_process_steps:
413
419
  form:
414
420
  cta_path_help_html: 'Använd relativa sökvägar, inte fullständiga URL:er. Accepterar bokstäver, siffror, bindestreck och snedstreck, och måste börja med en bokstav. Om fältet inte fylls i visas inte knappen. Exempel: %{url}'
415
- cta_text_help: Om den inte är kommer knappen inte att visas.
421
+ cta_text_help: Om fältet är tomt visas inte knappen.
416
422
  participatory_processes:
417
423
  form:
418
424
  announcement_help: Den här texten visas direkt under informationen om processen.
@@ -420,7 +426,7 @@ sv:
420
426
  filters: Filter
421
427
  images: Bilder
422
428
  metadata: Metadata
423
- other: Andra
429
+ other: Övrigt
424
430
  related_processes: Relaterade processer
425
431
  scope_type_max_depth_help: Begränsa djupet på filtret för indelningen.
426
432
  select_an_area: Välj ett område
@@ -441,7 +447,7 @@ sv:
441
447
  index:
442
448
  title: Deltagandeprocesser
443
449
  last_activity:
444
- new_participatory_process: Ny process
450
+ new_participatory_process: 'Ny process:'
445
451
  pages:
446
452
  home:
447
453
  highlighted_processes:
@@ -454,10 +460,10 @@ sv:
454
460
  description:
455
461
  area_name: Område
456
462
  data: Data från processen
457
- developer_group: Kampanjgrupp
463
+ developer_group: Arrangör
458
464
  local_area: Område
459
465
  meta_scope: Indelning
460
- participatory_scope: Vad som beslutas
466
+ participatory_scope: Vad beslutas
461
467
  participatory_structure: Hur fattas beslut
462
468
  target: Vem deltar
463
469
  title: Om processen
@@ -23,7 +23,7 @@ tr:
23
23
  promoted: Tanıtılan
24
24
  published_at: Yayınlandı
25
25
  related_process_ids: İlgili süreçler
26
- scope_id: kapsam
26
+ scope_id: Kapsam
27
27
  scope_type_max_depth_id: Kapsam filtre derinliği
28
28
  scopes_enabled: Kapsamlar etkin
29
29
  short_description: Kısa Açıklama
@@ -53,6 +53,8 @@ tr:
53
53
  short_description: Kısa Açıklama
54
54
  start_date: Başlangıç tarihi
55
55
  title: Başlık
56
+ participatory_process_type:
57
+ title: Başlık
56
58
  participatory_process_user_role:
57
59
  email: E-posta
58
60
  name: isim
@@ -126,6 +128,10 @@ tr:
126
128
  start_date: Başlangıç tarihi
127
129
  title: Başlık
128
130
  name: Katılımcı süreç adımı
131
+ participatory_process_type:
132
+ fields:
133
+ created_at: Düzenlendi
134
+ title: Başlık
129
135
  participatory_process_user_role:
130
136
  fields:
131
137
  email: E-posta
@@ -198,6 +204,11 @@ tr:
198
204
  update:
199
205
  error: Bu katılımcı süreç adımı güncellenirken bir hata oluştu.
200
206
  success: Katılımcı süreç adımı başarıyla güncellendi.
207
+ participatory_process_types:
208
+ edit:
209
+ update: Güncelleştirme
210
+ new:
211
+ create: yaratmak
201
212
  participatory_process_user_roles:
202
213
  create:
203
214
  error: Bu katılımcı süreç için bir kullanıcı eklenirken bir hata oluştu.
@@ -354,8 +365,6 @@ tr:
354
365
  name: Vurgulanan süreçler
355
366
  index:
356
367
  title: Katılımcı süreçler
357
- last_activity:
358
- new_participatory_process: Yeni katılımcı süreç
359
368
  participatory_process_steps:
360
369
  index:
361
370
  back_to_process: Süreç sayfasına geri dön
@@ -21,7 +21,6 @@ uk:
21
21
  promoted: Висвітлено
22
22
  published_at: 'Оприлюднено:'
23
23
  related_process_ids: Супутні рухи
24
- scope_id: Обсяг
25
24
  scopes_enabled: Обсяги увімкнено
26
25
  short_description: Стислий опис
27
26
  slug: Скорочена веб-адреса
@@ -39,6 +38,8 @@ uk:
39
38
  short_description: Стислий опис
40
39
  start_date: Дата початку
41
40
  title: Назва
41
+ participatory_process_type:
42
+ title: Назва
42
43
  participatory_process_user_role:
43
44
  email: Адреса електронної пошти
44
45
  name: Ім'я
@@ -109,6 +110,10 @@ uk:
109
110
  start_date: Дата початку
110
111
  title: Назва
111
112
  name: Крок руху співучасті
113
+ participatory_process_type:
114
+ fields:
115
+ created_at: 'Додано:'
116
+ title: Назва
112
117
  participatory_process_user_role:
113
118
  fields:
114
119
  email: Адреса електронної пошти
@@ -171,6 +176,11 @@ uk:
171
176
  update:
172
177
  error: При спробі оновити цей крок руху співучасті сталася помилка.
173
178
  success: Крок руху співучасті успішно оновлено.
179
+ participatory_process_types:
180
+ edit:
181
+ update: Оновити
182
+ new:
183
+ create: Створити
174
184
  participatory_process_user_roles:
175
185
  create:
176
186
  error: При спробі додати учасника в цей рух співучасті сталася помилка.
@@ -23,7 +23,6 @@ zh-CN:
23
23
  promoted: 已升级
24
24
  published_at: 发布于
25
25
  related_process_ids: 相关进程
26
- scope_id: 范围
27
26
  scope_type_max_depth_id: 范围过滤器深度:
28
27
  scopes_enabled: 范围已启用
29
28
  short_description: 简短描述
@@ -44,6 +43,8 @@ zh-CN:
44
43
  short_description: 简短描述
45
44
  start_date: 开始日期
46
45
  title: 标题
46
+ participatory_process_type:
47
+ title: 标题
47
48
  participatory_process_user_role:
48
49
  email: 电子邮件地址
49
50
  name: 名称
@@ -106,6 +107,10 @@ zh-CN:
106
107
  start_date: 开始日期
107
108
  title: 标题
108
109
  name: 参与进程阶段
110
+ participatory_process_type:
111
+ fields:
112
+ created_at: 创建于
113
+ title: 标题
109
114
  participatory_process_user_role:
110
115
  fields:
111
116
  email: 电子邮件地址
@@ -178,6 +183,11 @@ zh-CN:
178
183
  update:
179
184
  error: 在更新这一阶段的参与进程时遇到了问题。
180
185
  success: 参与阶段更新成功。
186
+ participatory_process_types:
187
+ edit:
188
+ update: 更新
189
+ new:
190
+ create: 创建
181
191
  participatory_process_user_roles:
182
192
  create:
183
193
  error: 在这个参与进程中增加参与者时遇到了问题。
@@ -312,8 +322,6 @@ zh-CN:
312
322
  name: 高亮的进程
313
323
  index:
314
324
  title: 参与进程
315
- last_activity:
316
- new_participatory_process: 新的参与进程
317
325
  participatory_process_steps:
318
326
  index:
319
327
  back_to_process: 返回进程页面
@@ -400,8 +400,6 @@ zh-TW:
400
400
  name: 精選程序
401
401
  index:
402
402
  title: 參與程序
403
- last_activity:
404
- new_participatory_process: 新的參與程序
405
403
  participatory_process_steps:
406
404
  index:
407
405
  back_to_process: 返回程序頁
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.version = Decidim::ParticipatoryProcesses.version
9
9
  s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
10
10
  s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
11
- s.license = "AGPL-3.0"
11
+ s.license = "AGPL-3.0-or-later"
12
12
  s.homepage = "https://decidim.org"
13
13
  s.metadata = {
14
14
  "bug_tracker_uri" => "https://github.com/decidim/decidim/issues",
@@ -11,6 +11,22 @@ module Decidim
11
11
  #
12
12
  # Returns nothing.
13
13
  def self.included(type)
14
+ type.field :participatory_processes,
15
+ [Decidim::ParticipatoryProcesses::ParticipatoryProcessType],
16
+ null: true,
17
+ description: "Lists all participatory_processes" do
18
+ argument :filter, Decidim::ParticipatoryProcesses::ParticipatoryProcessInputFilter, "This argument lets you filter the results", required: false
19
+ argument :order, Decidim::ParticipatoryProcesses::ParticipatoryProcessInputSort, "This argument lets you order the results", required: false
20
+ end
21
+
22
+ type.field :participatory_process,
23
+ Decidim::ParticipatoryProcesses::ParticipatoryProcessType,
24
+ null: true,
25
+ description: "Finds a participatory_process" do
26
+ argument :id, GraphQL::Types::ID, "The ID of the participatory space", required: false
27
+ argument :slug, String, "The slug of the participatory process", required: false
28
+ end
29
+
14
30
  type.field :participatory_process_groups, [ParticipatoryProcessGroupType],
15
31
  null: false,
16
32
  description: "Lists all participatory process groups"
@@ -30,6 +46,16 @@ module Decidim
30
46
  end
31
47
  end
32
48
 
49
+ def participatory_processes(filter: {}, order: {})
50
+ manifest = Decidim.participatory_space_manifests.select { |m| m.name == :participatory_processes }.first
51
+ Decidim::Core::ParticipatorySpaceListBase.new(manifest:).call(object, { filter:, order: }, context)
52
+ end
53
+
54
+ def participatory_process(id: nil, slug: nil)
55
+ manifest = Decidim.participatory_space_manifests.select { |m| m.name == :participatory_processes }.first
56
+ Decidim::Core::ParticipatorySpaceFinderBase.new(manifest:).call(object, { id:, slug: }, context)
57
+ end
58
+
33
59
  def participatory_process_groups(*)
34
60
  Decidim::ParticipatoryProcessGroup.where(
35
61
  organization: context[:current_organization]
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-participatory_processes version.
5
5
  module ParticipatoryProcesses
6
6
  def self.version
7
- "0.29.0"
7
+ "0.29.2"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-participatory_processes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.29.2
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: 2024-09-10 00:00:00.000000000 Z
13
+ date: 2025-02-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,56 +18,56 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.29.0
21
+ version: 0.29.2
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.29.0
28
+ version: 0.29.2
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-admin
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.29.0
35
+ version: 0.29.2
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.29.0
42
+ version: 0.29.2
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: decidim-dev
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.29.0
49
+ version: 0.29.2
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.29.0
56
+ version: 0.29.2
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: decidim-meetings
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.29.0
63
+ version: 0.29.2
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.29.0
70
+ version: 0.29.2
71
71
  description: Participatory processes component for decidim.
72
72
  email:
73
73
  - josepjaume@gmail.com
@@ -284,6 +284,8 @@ files:
284
284
  - config/locales/ar.yml
285
285
  - config/locales/bg-BG.yml
286
286
  - config/locales/bg.yml
287
+ - config/locales/bn-BD.yml
288
+ - config/locales/bs-BA.yml
287
289
  - config/locales/ca.yml
288
290
  - config/locales/cs-CZ.yml
289
291
  - config/locales/cs.yml
@@ -430,7 +432,7 @@ files:
430
432
  - lib/tasks/decidim_participatory_processes.rake
431
433
  homepage: https://decidim.org
432
434
  licenses:
433
- - AGPL-3.0
435
+ - AGPL-3.0-or-later
434
436
  metadata:
435
437
  bug_tracker_uri: https://github.com/decidim/decidim/issues
436
438
  documentation_uri: https://docs.decidim.org/