avo 2.3.1.pre.5 → 2.3.1.pre.6

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

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6256e502b9bb22a7d924ea43f8d0f6d7dbe6a28f9ad58877515f8d0a6954d481
4
- data.tar.gz: 17956bd16b76b1f7017b20cbff9f841e8a7b942d7ad5d73c3442658e8bcfb7f1
3
+ metadata.gz: aa5d2395db02e3b37f787b0680a4cae6748c99049f369d8e2a3db2fb6c2a2dd8
4
+ data.tar.gz: 4de2e1dcc865e6ebbc693ddefd4e5407f9d6a6c60f3c1153deeb8d7dcc6ba17b
5
5
  SHA512:
6
- metadata.gz: cfea2ebe1abcbfcea4dfaf340791f44c7691a1b9b41ccfea534218aab32c0c4ec283a5494cb0369025690a0e4c73da42b04c3351aa9a5acf81bc30cf47d5af88
7
- data.tar.gz: 6078470d3fe8efdb049f4bc49735589b6db7fb55bafe1417bd0130d5046a4b60a20246cff2c65464b72c6977ecea8b4bf4d141c53b95129c8be816056f552c58
6
+ metadata.gz: 498b612171a47529d988c8ba89ac0330013afef141a0a4d74df9d41fe60b7d00543777be08b0fa35bf1a5972c06f512a2be76510f4b5a9fd90d779c7fc90a2e8
7
+ data.tar.gz: fefaff30ae62e0c5de60d64f3e5952bca7b1ae816d454613f3803ca268b2724505231dff2d9d9ce348a625a7ecf74fc9c669179fbbf03366f2c4c26a52c9b277
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.3.1.pre.5)
4
+ avo (2.3.1.pre.6)
5
5
  active_link_to
6
6
  addressable
7
7
  breadcrumbs_on_rails
@@ -46,8 +46,8 @@
46
46
  <% end %>
47
47
  <dt class="font-semibold text-sm">Last fetched at</dt>
48
48
  <dd><%= license.response['fetched_at'] %> <br>
49
- <% if license.response['fetched_at'].present? %>
50
- (<%= time_ago_in_words license.response['fetched_at'] %> ago)</dd>
49
+ <% if license.response['fetched_at'].present? %>
50
+ (<%= time_ago_in_words license.response['fetched_at'] %> ago)</dd>
51
51
  <% end %>
52
52
  <dt class="font-semibold text-sm">Cache store</dt>
53
53
  <dd><%= Avo::App.cache_store.class.to_s %> - <%= Avo::App.cache_store.options.inspect %></dd>
@@ -67,25 +67,9 @@
67
67
  </div>
68
68
  </div>
69
69
  <div class="relative bg-white rounded shadow-panel p-4 space-y-4 col-span-2">
70
- <div class="font-semibold">Debug report</div>
71
- <div>
72
- <% if defined?(ap) %>
73
- <%== ap Avo::App.debug_report(request) %>
74
- <% else %>
75
- <pre><%== JSON.pretty_generate(Avo::App.debug_report(request)) %></pre>
76
- <% end %>
77
- </div>
78
- <div class="flex justify-end">
79
- <%= a_button icon: 'heroicons/outline/clipboard',
80
- style: :primary,
81
- data: {
82
- controller: 'copy-to-clipboard',
83
- action: "click->copy-to-clipboard#copy",
84
- text: Avo::App.debug_report(request),
85
- } do %>
86
- Copy debug info
87
- <% end %>
88
- </div>
70
+ <turbo-frame id="debug-report" src="/admin/avo_private/debug/report" target="_top" class="block">
71
+ Loading...
72
+ </turbo-frame>
89
73
  </div>
90
74
  </div>
91
75
  <% end %>
@@ -0,0 +1,21 @@
1
+ <turbo-frame id="debug-report">
2
+ <div class="font-semibold">Debug report</div>
3
+ <div>
4
+ <% if defined?(ap) %>
5
+ <%== ap Avo::App.debug_report(request) %>
6
+ <% else %>
7
+ <pre><%== JSON.pretty_generate(Avo::App.debug_report(request)) %></pre>
8
+ <% end %>
9
+ </div>
10
+ <div class="flex justify-end">
11
+ <%= a_button icon: 'heroicons/outline/clipboard',
12
+ style: :primary,
13
+ data: {
14
+ controller: 'copy-to-clipboard',
15
+ action: "click->copy-to-clipboard#copy",
16
+ text: Avo::App.debug_report(request),
17
+ } do %>
18
+ Copy debug info
19
+ <% end %>
20
+ </div>
21
+ </turbo-frame>
data/config/routes.rb CHANGED
@@ -41,6 +41,7 @@ Avo::Engine.routes.draw do
41
41
 
42
42
  scope "/avo_private", as: "avo_private" do
43
43
  get "/debug", to: "debug#index", as: "debug_index"
44
+ get "/debug/report", to: "debug#report", as: "debug_report"
44
45
  post "/debug/refresh_license", to: "debug#refresh_license"
45
46
  end
46
47
 
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.3.1.pre.5" unless const_defined?(:VERSION)
2
+ VERSION = "2.3.1.pre.6" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1.pre.5
4
+ version: 2.3.1.pre.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -1097,6 +1097,7 @@ files:
1097
1097
  - app/views/avo/dashboards/card.html.erb
1098
1098
  - app/views/avo/dashboards/show.html.erb
1099
1099
  - app/views/avo/debug/index.html.erb
1100
+ - app/views/avo/debug/report.html.erb
1100
1101
  - app/views/avo/home/_actions.html.erb
1101
1102
  - app/views/avo/home/_docs.html.erb
1102
1103
  - app/views/avo/home/_filters.html.erb