rails_error_dashboard 0.1.37 → 0.1.38
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 +4 -4
- data/app/controllers/rails_error_dashboard/application_controller.rb +2 -5
- data/app/controllers/rails_error_dashboard/errors_controller.rb +1 -3
- data/app/views/rails_error_dashboard/errors/index.html.erb +2 -2
- data/lib/rails_error_dashboard/version.rb +1 -1
- data/lib/rails_error_dashboard.rb +0 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e6cc2792ac8e61248b57b513ac64f02426ee651bb9cf07c3d4557760f8d7d31
|
|
4
|
+
data.tar.gz: 9450f4745f01d22c8eef4e5988c745d89f7951d318a7f625a8839b1eebd371f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49a0c0f2988e1dfe03a40599693411d4a55690be71b7f7921d3dc6e305bc9f2bb54e2792bea7ad8a956127a7d87abf565b81e935536e8b37adbfe844fd017025
|
|
7
|
+
data.tar.gz: c040c6f3ea54b21d6c23addd72c9a787075e17cc4413c5a88c911c7e06c6376e3d5969bea85f106c53bb8b226a155b5ad01646626372488496120f580475cec7
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module RailsErrorDashboard
|
|
2
2
|
class ApplicationController < ActionController::Base
|
|
3
|
-
include Pagy::
|
|
3
|
+
include Pagy::Method
|
|
4
4
|
|
|
5
5
|
# Enable features that are disabled in API-only mode
|
|
6
6
|
# These are ONLY enabled for Error Dashboard routes, not the entire app
|
|
@@ -12,9 +12,6 @@ module RailsErrorDashboard
|
|
|
12
12
|
|
|
13
13
|
protect_from_forgery with: :exception
|
|
14
14
|
|
|
15
|
-
# Make Pagy helpers available in views
|
|
16
|
-
helper Pagy::Frontend
|
|
17
|
-
|
|
18
15
|
# CRITICAL: Ensure dashboard errors never break the app
|
|
19
16
|
# Catch all exceptions and render user-friendly error page
|
|
20
17
|
# NOTE: rescue_from is checked in reverse declaration order (last = highest priority).
|
|
@@ -46,7 +43,7 @@ module RailsErrorDashboard
|
|
|
46
43
|
end
|
|
47
44
|
|
|
48
45
|
# Handle Pagy pagination errors — redirect to page 1
|
|
49
|
-
rescue_from Pagy::
|
|
46
|
+
rescue_from Pagy::RangeError, Pagy::OptionError do |exception|
|
|
50
47
|
Rails.logger.warn("[RailsErrorDashboard] Pagination error: #{exception.message}")
|
|
51
48
|
redirect_to request.path, status: :moved_permanently
|
|
52
49
|
end
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
module RailsErrorDashboard
|
|
4
4
|
class ErrorsController < ApplicationController
|
|
5
|
-
include Pagy::Backend
|
|
6
|
-
|
|
7
5
|
before_action :authenticate_dashboard_user!
|
|
8
6
|
before_action :set_application_context
|
|
9
7
|
|
|
@@ -60,7 +58,7 @@ module RailsErrorDashboard
|
|
|
60
58
|
errors_query = Queries::ErrorsList.call(filter_params)
|
|
61
59
|
|
|
62
60
|
# Paginate with Pagy
|
|
63
|
-
@pagy, @errors = pagy(errors_query,
|
|
61
|
+
@pagy, @errors = pagy(:offset, errors_query, limit: params[:per_page] || 25)
|
|
64
62
|
|
|
65
63
|
# Get dashboard stats using Query (pass application filter)
|
|
66
64
|
@stats = Queries::DashboardStats.call(application_id: @current_application_id)
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
<div class="card">
|
|
330
330
|
<div class="card-header bg-white d-flex justify-content-between align-items-center">
|
|
331
331
|
<h5 class="mb-0">Recent Errors</h5>
|
|
332
|
-
<small class="text-muted"><%==
|
|
332
|
+
<small class="text-muted"><%== @pagy.info_tag %></small>
|
|
333
333
|
</div>
|
|
334
334
|
|
|
335
335
|
<!-- Batch Actions Toolbar -->
|
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
|
|
396
396
|
<!-- Pagination -->
|
|
397
397
|
<div class="p-3">
|
|
398
|
-
<%==
|
|
398
|
+
<%== @pagy.series_nav(:bootstrap) if @pagy.pages > 1 %>
|
|
399
399
|
</div>
|
|
400
400
|
<% else %>
|
|
401
401
|
<div class="text-center py-5">
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_error_dashboard
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.38
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anjan Jagirdar
|
|
@@ -29,14 +29,14 @@ dependencies:
|
|
|
29
29
|
requirements:
|
|
30
30
|
- - "~>"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '
|
|
32
|
+
version: '43.0'
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '
|
|
39
|
+
version: '43.0'
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: browser
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -449,7 +449,7 @@ metadata:
|
|
|
449
449
|
documentation_uri: https://AnjanJ.github.io/rails_error_dashboard
|
|
450
450
|
bug_tracker_uri: https://github.com/AnjanJ/rails_error_dashboard/issues
|
|
451
451
|
post_install_message: "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n
|
|
452
|
-
\ Rails Error Dashboard v0.1.
|
|
452
|
+
\ Rails Error Dashboard v0.1.38\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n\U0001F195
|
|
453
453
|
First time? Quick start:\n rails generate rails_error_dashboard:install\n rails
|
|
454
454
|
db:migrate\n # Add to config/routes.rb:\n mount RailsErrorDashboard::Engine
|
|
455
455
|
=> '/error_dashboard'\n\n\U0001F504 Upgrading from v0.1.x?\n rails db:migrate\n
|