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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09a73398182f19129a70796f91eb3b4158a9c8872232dabc1443f6e9da47f98e'
4
- data.tar.gz: 84fe4d09d5bb5e8c24ec5b4211858eb80b19161bf126284ed278498d9bb7ae5c
3
+ metadata.gz: 2e6cc2792ac8e61248b57b513ac64f02426ee651bb9cf07c3d4557760f8d7d31
4
+ data.tar.gz: 9450f4745f01d22c8eef4e5988c745d89f7951d318a7f625a8839b1eebd371f5
5
5
  SHA512:
6
- metadata.gz: 263c8f31daa5ec9335379d343a660a5e2150c111b1ba53ec8fe58917c56251426e8e14e51b44f00bdaf2aaed147505957155cbee5780247b5d0d5583181b8ef2
7
- data.tar.gz: 78ff657191d4b9eae502a1a05d051984e0a2146b49bb66a61ca99fdad7656cf3b41777c9d2c431ee6e304dd2eb84dfac101f2cd8f7a53041a51da87f1c9dc267
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::Backend
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::OverflowError, Pagy::VariableError do |exception|
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, items: params[:per_page] || 25)
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"><%== pagy_info(@pagy) %></small>
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
- <%== pagy_bootstrap_nav(@pagy) if @pagy.pages > 1 %>
398
+ <%== @pagy.series_nav(:bootstrap) if @pagy.pages > 1 %>
399
399
  </div>
400
400
  <% else %>
401
401
  <div class="text-center py-5">
@@ -1,3 +1,3 @@
1
1
  module RailsErrorDashboard
2
- VERSION = "0.1.37"
2
+ VERSION = "0.1.38"
3
3
  end
@@ -7,7 +7,6 @@ require "rails_error_dashboard/manual_error_reporter"
7
7
 
8
8
  # External dependencies
9
9
  require "pagy"
10
- require "pagy/extras/bootstrap"
11
10
  require "browser"
12
11
  require "groupdate"
13
12
  require "httparty"
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.37
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: '9.0'
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: '9.0'
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.37\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n\U0001F195
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