decidim-admin 0.31.0.rc2 → 0.31.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32abf87a4eb87254ce989593ab5cce3b149d143b2729094ffce3b5c1eafd0f3a
4
- data.tar.gz: 8efd5fc04ee68a48ed3af0111a055ffd23afbc757187f433077b675e9534ae87
3
+ metadata.gz: 1a18821f267957557f668de950f6b69c0ccb296745f6496515a640b0241a24fc
4
+ data.tar.gz: ea1d40254eaa5fc9e4206dbb5dd55b4594a5991496f5b2ab453f1f202f243649
5
5
  SHA512:
6
- metadata.gz: d6a53b0abbe424b34f14337ca4c3ab33aad36551eccf8f96008fbb7677c4e10b6aaf20ff8c341f053679480ba4c822e06f0c5239c82fd4fb0af5d357e1f3feca
7
- data.tar.gz: '04914cf45bf509f40a2b3f9abd4397ab470beb80256cad9ccde90b6da44cd78ec5432f86a47225a6d0261ab65bc8b088afd3db05d98d9c42c136f8368aef05dd'
6
+ metadata.gz: abc44471ea4fc4fd90c1a1104245a66388e44bd97d23904bf0b2078601c3312dc5bd5d0a3d87279695d6bcdd829797076f020bee0e1800bbf7298c5d3b4e1fc1
7
+ data.tar.gz: 1e8567d9f8d8f4f3ddcda49964c7cdb8868df8f90f1c3ba9831e9d0d98abe0ef4ee0e8fe9e4a03caacccff0a46c0cff1d7b78faf487dfb0efb543cbe925fee7d
@@ -21,7 +21,7 @@ module Decidim
21
21
  :menu_hidden,
22
22
  component,
23
23
  current_user,
24
- visibility: "all"
24
+ visibility: "admin-only"
25
25
  ) do
26
26
  component.update!(visible: false)
27
27
  end
@@ -37,7 +37,6 @@ module Decidim
37
37
  def update_component
38
38
  @previous_settings = @component.attributes["settings"].with_indifferent_access
39
39
  @component.name = form.name
40
- @component.weight = form.weight
41
40
 
42
41
  restore_readonly_settings!
43
42
 
@@ -77,7 +77,7 @@ module Decidim
77
77
  safe_join([
78
78
  content_tag(:span) { extract_html_value(key) },
79
79
  icon("arrow-right-s-line", class: "fill-secondary absolute right-2"),
80
- icon("arrow-right-s-line", class: "!fill-current !text-white absolute right-2")
80
+ icon("arrow-right-s-line", class: "fill-current text-white absolute right-2")
81
81
  ])
82
82
  end
83
83
  end
@@ -1,7 +1,7 @@
1
1
  /* global jest */
2
2
 
3
3
  import { Application } from "@hotwired/stimulus"
4
- import SlugController from "./controller"
4
+ import SlugController from "src/decidim/admin/controllers/slug/controller"
5
5
 
6
6
  describe("SlugController", () => {
7
7
  let application = null;
@@ -49,7 +49,7 @@ eu:
49
49
  customize_welcome_notification: Pertsonalizatu ongi etorri jakinarazpena
50
50
  default_locale: Kokapen lehenetsia
51
51
  description: Deskribapena
52
- enable_machine_translations: Gaitu itzulpen automatikoak
52
+ enable_machine_translations: Itzulpen automatikoak gaitu
53
53
  enable_omnipresent_banner: Erakutsi banner nonahikoa
54
54
  enable_participatory_space_filters: Gaitu iragazkiak parte hartzeko espazioan
55
55
  facebook_handler: Facebook kudeatzailea
@@ -57,6 +57,12 @@ module Decidim
57
57
  Decidim.icons.register(name: "filter-line", icon: "filter-line", category: "system", description: "", engine: :admin)
58
58
  end
59
59
 
60
+ initializer "decidim_admin.data_migrate", after: "decidim_core.data_migrate" do
61
+ DataMigrate.configure do |config|
62
+ config.data_migrations_path << root.join("db/data").to_s
63
+ end
64
+ end
65
+
60
66
  initializer "decidim_admin.mime_types" do |_app|
61
67
  # Required for importer example downloads
62
68
  Mime::Type.register Decidim::Admin::Import::Readers::XLSX::MIME_TYPE, :xlsx
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ shared_examples "accessing the component in a participatory space" do
4
+ context "when the user is a visitor" do
5
+ let(:user) { nil }
6
+
7
+ it "shows the unauthenticated message" do
8
+ expect(page).to have_content "You need to log in or create an account before continuing."
9
+ end
10
+ end
11
+
12
+ context "when the user is a normal user" do
13
+ let(:user) { create(:user, :confirmed, organization:) }
14
+ let(:unauthorized_path) { "/" }
15
+
16
+ before do
17
+ login_as user, scope: :user
18
+ end
19
+
20
+ it_behaves_like "a 404 page" do
21
+ let(:target_path) { manage_component_path(component) }
22
+ end
23
+ end
24
+
25
+ context "when the user is a process admin" do
26
+ let(:user) { create(:process_admin, :confirmed, organization:, participatory_process:) }
27
+
28
+ before do
29
+ login_as user, scope: :user
30
+ end
31
+
32
+ it "access the index page" do
33
+ expect(page).to have_content(title)
34
+ end
35
+ end
36
+ end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-admin version.
5
5
  module Admin
6
6
  def self.version
7
- "0.31.0.rc2"
7
+ "0.31.0"
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-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0.rc2
4
+ version: 0.31.0
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-10-28 00:00:00.000000000 Z
13
+ date: 2025-11-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: active_link_to
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.31.0.rc2
35
+ version: 0.31.0
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.31.0.rc2
42
+ version: 0.31.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: devise
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -94,28 +94,28 @@ dependencies:
94
94
  requirements:
95
95
  - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: 0.31.0.rc2
97
+ version: 0.31.0
98
98
  type: :development
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - '='
103
103
  - !ruby/object:Gem::Version
104
- version: 0.31.0.rc2
104
+ version: 0.31.0
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: decidim-participatory_processes
107
107
  requirement: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - '='
110
110
  - !ruby/object:Gem::Version
111
- version: 0.31.0.rc2
111
+ version: 0.31.0
112
112
  type: :development
113
113
  prerelease: false
114
114
  version_requirements: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - '='
117
117
  - !ruby/object:Gem::Version
118
- version: 0.31.0.rc2
118
+ version: 0.31.0
119
119
  description: Organization administration to manage a single organization.
120
120
  email:
121
121
  - josepjaume@gmail.com
@@ -730,6 +730,7 @@ files:
730
730
  - lib/decidim/admin/search_form_builder.rb
731
731
  - lib/decidim/admin/test.rb
732
732
  - lib/decidim/admin/test/admin_participatory_space_access_examples.rb
733
+ - lib/decidim/admin/test/admin_participatory_space_component_access_examples.rb
733
734
  - lib/decidim/admin/test/commands/create_attachment_collection_examples.rb
734
735
  - lib/decidim/admin/test/commands/publish_participatory_space_examples.rb
735
736
  - lib/decidim/admin/test/commands/update_attachment_collection_examples.rb