lesli_admin 1.1.2 → 1.1.3

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: 7c0b0833e61d515cf38a3c8046dd0923537fcaa617dc19eb4d76a41b0826ee3f
4
- data.tar.gz: 80ae223bcd31a7943bac6df4318e95634df1b41759829472716f40d1dfc4a7d4
3
+ metadata.gz: a0836e1e00903a513f98f3cbb117f98195cc7605189cc864b607f2ac2e4d0449
4
+ data.tar.gz: 7c030c6ba6ab3450378b9faf644346fba233e2743424bf96fbd961436ac847bc
5
5
  SHA512:
6
- metadata.gz: 5f7d36a6f6d0da6e7fb876544000e7a582b2318a99e6beba67d795709709738bd5623db227f8a2aea86ec25dddb468aeaf9420d19fe01de4e19293d285d41229
7
- data.tar.gz: 664293878be75b015bd661b432d1d9a7453a78c09aba46ab542ddae5552a15de74f32077a063fd3dca59ef82fbdb4610d087472a9c3f2a4de89b672d9881bc0f
6
+ metadata.gz: 0fa2b729e658af3c7945ac6dc3b1b6f75924e905ba10b6bea9b6aea9b549c2d853d327bbc54c0777c904ef615139e743e6256e14f48b160aff64944542867906
7
+ data.tar.gz: 55d3a90049f8295d68c6e2cb43950abc808466e52edb7e1dfefc13796bff54a703f356b567741c3e8e8a76cb7bfc415d4ad5bf0e03974b906c2c4404ad0372f4
@@ -33,25 +33,10 @@ Building a better future, one line of code at a time.
33
33
  module LesliAdmin
34
34
  class DashboardsController < Lesli::Shared::DashboardsController
35
35
  def show
36
- @account_summary = AccountService.new(current_user, query).summary
37
-
38
- synchronize_dashboard_components if defined?(LesliDashboard)
39
-
40
36
  return super if defined?(LesliDashboard)
41
37
 
42
38
  render :show
43
39
  end
44
40
 
45
- private
46
-
47
- def synchronize_dashboard_components
48
- dashboard_account = current_user.account.dashboard
49
- return unless dashboard_account
50
-
51
- LesliDashboard::DashboardService.new(current_user).register(dashboard_account)
52
-
53
- dashboard = dashboard_account.dashboards.find_by(engine: "LesliAdmin")
54
- dashboard&.components&.where(component: Dashboard::RETIRED_COMPONENTS)&.destroy_all
55
- end
56
41
  end
57
42
  end
@@ -32,13 +32,11 @@ Building a better future, one line of code at a time.
32
32
 
33
33
  module LesliAdmin
34
34
  class Dashboard < Lesli::Shared::Dashboard
35
- RETIRED_COMPONENTS = %w[locations currencies settings].freeze
36
-
37
35
  COMPONENTS = [
38
- { users: { size: 4, position: 1 } },
39
- { roles: { size: 4, position: 2 } },
40
- { installed_engines: { size: 4, position: 3 } },
41
- { account_metadata: { size: 12, position: 4 } }
36
+ { users: { size: 4, position: 2 } },
37
+ { roles: { size: 4, position: 3 } },
38
+ { installed_engines: { size: 4, position: 4 } },
39
+ { account_metadata: { size: 12, position: 1 } }
42
40
  ].freeze
43
41
  end
44
42
  end
@@ -1,3 +1,6 @@
1
+ <%# Widgets also render through LesliDashboard; share one summary per view render. %>
2
+ <% @account_summary ||= LesliAdmin::AccountService.new(current_user).summary %>
3
+
1
4
  <%
2
5
  account = @account_summary[:account]
3
6
  status_classes = case account.status
@@ -1 +1,4 @@
1
+ <%# Widgets also render through LesliDashboard; share one summary per view render. %>
2
+ <% @account_summary ||= LesliAdmin::AccountService.new(current_user).summary %>
3
+
1
4
  <%= render(LesliView::Widgets::Count.new("Installed engines", @account_summary[:installed_engines])) %>
@@ -1 +1,4 @@
1
+ <%# Widgets also render through LesliDashboard; share one summary per view render. %>
2
+ <% @account_summary ||= LesliAdmin::AccountService.new(current_user).summary %>
3
+
1
4
  <%= render(LesliView::Widgets::Count.new("Roles", @account_summary[:roles])) %>
@@ -1 +1,4 @@
1
+ <%# Widgets also render through LesliDashboard; share one summary per view render. %>
2
+ <% @account_summary ||= LesliAdmin::AccountService.new(current_user).summary %>
3
+
1
4
  <%= render(LesliView::Widgets::Count.new("Users", @account_summary[:users])) %>
@@ -1,2 +1,11 @@
1
1
  ---
2
- :en: {}
2
+ en:
3
+ lesli_admin:
4
+ accounts: {}
5
+ dashboards: {}
6
+ items/attachments: {}
7
+ items/discussions: {}
8
+ items/tasks: {}
9
+ profiles: {}
10
+ settings: {}
11
+ shared: {}
@@ -1,2 +1,11 @@
1
1
  ---
2
- :es: {}
2
+ es:
3
+ lesli_admin:
4
+ accounts: {}
5
+ dashboards: {}
6
+ items/attachments: {}
7
+ items/discussions: {}
8
+ items/tasks: {}
9
+ profiles: {}
10
+ settings: {}
11
+ shared: {}
@@ -1,2 +1,3 @@
1
1
  ---
2
- :fr: {}
2
+ fr:
3
+ lesli_admin: {}
@@ -1,2 +1,3 @@
1
1
  ---
2
- :it: {}
2
+ it:
3
+ lesli_admin: {}
@@ -1,2 +1,3 @@
1
1
  ---
2
- :pt: {}
2
+ pt:
3
+ lesli_admin: {}
@@ -1,4 +1,4 @@
1
1
  module LesliAdmin
2
- VERSION = "1.1.2"
3
- BUILD = "1791607001"
2
+ VERSION = "1.1.3"
3
+ BUILD = "1794793688"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-23 00:00:00.000000000 Z
11
+ date: 2026-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lesli