kenui 4.0.0 → 4.0.2

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: 2a46e2d4ad351a6595780f6fbffa015711b2830def552dbeb1799ad0993b636a
4
- data.tar.gz: 1ac1e93fd4d51a2ab7e73269d99f3dc59f7dacbddd3e99103c709f69bbc90ce9
3
+ metadata.gz: e98cf6e9b2bc192eb46503109e77f529e8da55495e017cd65f644478e3e370f6
4
+ data.tar.gz: 62c7c79c49b74014e4fa4cf7936a84e9adb366573f7312d7ac78aacc131d2c4c
5
5
  SHA512:
6
- metadata.gz: b53fe7ccc99f47397aa4db5c74fd7fa24dab540b1308b47ccba1fcaeb70ce71ed8db61e7518f4e7d58c86509657a91c11b700608ea5fdf3454e2e9488fc9632a
7
- data.tar.gz: cc632bf2f6c113a3bb9e02052896e68108130eb3a4b5de7c3f318a556360c787132b9d6e4fe82f4477feb893c3c65c3ecd15ca1125163863a7788e7f456e0bb2
6
+ metadata.gz: 6becd26871c62818874d4c5e3439234ca9dfce42c3edb3a83ba67ece19b1ce382e7af0dc00fc850c75f232e3c01a97adb215574da890a2120d438d736b7b662e
7
+ data.tar.gz: 750d7d06bcdc1b27e3f3216fbc66ace8e66a3e38424ce4bc9ba1dac5526332738151d813e6aa8f44440a96b48ce6bb42394c3edf136766ea05a8d0a685e967f6
@@ -24,7 +24,7 @@
24
24
  left: 0;
25
25
  right: 0;
26
26
  bottom: 0;
27
- background-color: #ccc;
27
+ background-color: var(--kb-outline-secondary);
28
28
  -webkit-transition: 0.4s;
29
29
  transition: 0.4s;
30
30
  }
@@ -36,17 +36,17 @@
36
36
  width: 16px;
37
37
  left: 2px;
38
38
  bottom: 2px;
39
- background-color: white;
39
+ background-color: var(--kb-neutral-0);
40
40
  -webkit-transition: 0.4s;
41
41
  transition: 0.4s;
42
42
  }
43
43
 
44
44
  input:checked + .slider {
45
- background-color: #00919d;
45
+ background-color: var(--kb-primary);
46
46
  }
47
47
 
48
48
  input:focus + .slider {
49
- box-shadow: 0 0 1px #2196f3;
49
+ box-shadow: 0 0 1px var(--kb-primary-400);
50
50
  }
51
51
 
52
52
  input:checked + .slider:before {
@@ -106,14 +106,14 @@ label.capitalize {
106
106
  font-weight: 600;
107
107
  font-size: 1.125rem;
108
108
  line-height: 1.75rem;
109
- color: #181d27;
109
+ color: var(--kb-on-surface-primary);
110
110
  }
111
111
 
112
112
  .configure-email-notifications-modal .modal-header .icon-container {
113
113
  display: inline-flex;
114
114
  justify-content: center;
115
115
  align-items: center;
116
- border: 0.0625rem solid #d5d7da;
116
+ border: 0.0625rem solid var(--kb-outline-secondary);
117
117
  border-radius: 0.375rem;
118
118
  width: 2.5rem;
119
119
  height: 2.5rem;
@@ -140,7 +140,7 @@ label.capitalize {
140
140
  font-size: 0.875rem !important;
141
141
  font-weight: 500 !important;
142
142
  line-height: 1.25rem !important;
143
- color: #414651 !important;
143
+ color: var(--kb-on-surface-secondary) !important;
144
144
  }
145
145
 
146
146
  .configure-email-notifications-modal .form-group.d-flex.pb-3 .form-control {
@@ -159,13 +159,13 @@ label.capitalize {
159
159
  align-items: start;
160
160
  justify-content: space-between;
161
161
  padding: 0;
162
- border-bottom: 0.0625rem solid #e9eaeb;
162
+ border-bottom: 0.0625rem solid var(--kb-outline-primary);
163
163
  }
164
164
 
165
165
  .email-notifications-index .e-notifications-details-header h2 {
166
166
  font-weight: 600;
167
167
  font-size: 1.125rem;
168
- color: #414651;
168
+ color: var(--kb-on-surface-secondary);
169
169
  margin-bottom: 1.25rem;
170
170
  }
171
171
 
@@ -190,7 +190,7 @@ label.capitalize {
190
190
  padding: 0.375rem 0.75rem !important;
191
191
  font-weight: 500;
192
192
  font-size: 0.875rem;
193
- color: #717680;
193
+ color: var(--kb-on-surface-quaternary);
194
194
  text-transform: capitalize;
195
195
  }
196
196
 
@@ -199,7 +199,7 @@ label.capitalize {
199
199
  font-weight: 500;
200
200
  font-size: 0.875rem !important;
201
201
  padding: 1rem 0.5rem !important;
202
- color: #535862 !important;
202
+ color: var(--kb-on-surface-tertiary) !important;
203
203
  text-decoration: none !important;
204
204
  white-space: wrap;
205
205
  }
@@ -224,17 +224,17 @@ label.capitalize {
224
224
  width: 20rem;
225
225
  height: 2.2rem;
226
226
  padding: 0.3rem 1rem;
227
- border: 0.0625rem solid #e5e7eb;
227
+ border: 0.0625rem solid var(--kb-outline-primary);
228
228
  border-radius: 0.375rem;
229
229
  font-weight: 500;
230
230
  font-size: 0.875rem;
231
231
  line-height: 1.25rem;
232
- color: #414651;
232
+ color: var(--kb-on-surface-secondary);
233
233
  outline: none;
234
234
  }
235
235
 
236
236
  .email-notifications-index #accounts-table_filter input:focus {
237
- border: 0.0625rem solid #1a73e8;
237
+ border: 0.0625rem solid var(--kb-primary);
238
238
  outline: none;
239
239
  box-shadow: 0;
240
240
  }
@@ -27,7 +27,7 @@ module Kenui
27
27
  events = ''
28
28
  unless email_notifications_configuration.first.is_a?(FalseClass)
29
29
  configuration = email_notifications_configuration.select { |event| event[:kbAccountId] == row.account_id }
30
- events = configuration.map { |event| event[:eventType] }.join(', ')
30
+ events = configuration.pluck(:eventType).join(', ')
31
31
  end
32
32
 
33
33
  data << [
@@ -37,12 +37,12 @@ module Kenui
37
37
  view_context.link_to('Edit'.html_safe,
38
38
  '#configureEmailNotification',
39
39
  data: { name: row.name, account_id: row.account_id,
40
- events: events, bs_toggle: 'modal', target: '#configureEmailNotification' })
40
+ events:, bs_toggle: 'modal', target: '#configureEmailNotification' })
41
41
  ]
42
42
  end
43
43
 
44
44
  respond_to do |format|
45
- format.json { render json: { data: data, recordsTotal: record_total, recordsFiltered: record_total } }
45
+ format.json { render json: { data:, recordsTotal: record_total, recordsFiltered: record_total } }
46
46
  end
47
47
  end
48
48
 
@@ -50,7 +50,7 @@ module Kenui
50
50
  data = Kenui::EmailNotificationService.get_events_to_consider(options_for_klient)
51
51
 
52
52
  respond_to do |format|
53
- format.json { render json: { data: data } }
53
+ format.json { render json: { data: } }
54
54
  end
55
55
  end
56
56
 
@@ -59,14 +59,14 @@ module Kenui
59
59
  data = Kenui::EmailNotificationService.get_configuration_per_account(account_id, options_for_klient)
60
60
 
61
61
  respond_to do |format|
62
- format.json { render json: { data: data } }
62
+ format.json { render json: { data: } }
63
63
  end
64
64
  end
65
65
 
66
66
  def set_configuration
67
67
  configuration = params.require(:configuration)
68
68
 
69
- event_types = Array(configuration[:event_types]).reject(&:blank?)
69
+ event_types = Array(configuration[:event_types]).compact_blank
70
70
 
71
71
  is_success, message = Kenui::EmailNotificationService.set_configuration_per_account(configuration[:account_id],
72
72
  event_types,
@@ -79,6 +79,9 @@ module Kenui
79
79
  flash[:error] = message
80
80
  end
81
81
  redirect_to email_notifications_path
82
+ rescue StandardError => e
83
+ flash[:error] = e.message
84
+ redirect_to email_notifications_path
82
85
  end
83
86
  end
84
87
  end
data/config/routes.rb CHANGED
@@ -6,9 +6,9 @@ Kenui::Engine.routes.draw do
6
6
  resources :email_notifications, only: [:index]
7
7
 
8
8
  scope '/email_notifications' do
9
- match '/pagination' => 'email_notifications#pagination', :via => :get, :as => 'email_notification_pagination'
10
- match '/configuration' => 'email_notifications#configuration', :via => :get, :as => 'email_notifications_get_configuration'
11
- match '/configuration' => 'email_notifications#set_configuration', :via => :post, :as => 'email_notifications_configuration'
12
- match '/events_to_consider' => 'email_notifications#events_to_consider', :via => :get, :as => 'email_notification_events_to_consider'
9
+ get '/pagination' => 'email_notifications#pagination', :as => 'email_notification_pagination'
10
+ get '/configuration' => 'email_notifications#configuration', :as => 'email_notifications_get_configuration'
11
+ post '/configuration' => 'email_notifications#set_configuration', :as => 'email_notifications_configuration'
12
+ get '/events_to_consider' => 'email_notifications#events_to_consider', :as => 'email_notification_events_to_consider'
13
13
  end
14
14
  end
data/lib/kenui/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kenui
4
- VERSION = '4.0.0'
4
+ VERSION = '4.0.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kenui
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-12 00:00:00.000000000 Z
11
+ date: 2026-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: killbill-assets-ui
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 1.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 1.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: killbill-client
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '7.0'
47
+ version: '7.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '7.0'
54
+ version: '7.2'
55
55
  description: Rails UI plugin for the Email notification plugin.
56
56
  email: killbilling-users@googlegroups.com
57
57
  executables: []
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - ">="
99
99
  - !ruby/object:Gem::Version
100
- version: '0'
100
+ version: 3.1.0
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - ">="