rails_error_dashboard 0.1.29 → 0.1.30
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/README.md +34 -6
- data/app/controllers/rails_error_dashboard/errors_controller.rb +22 -0
- data/app/helpers/rails_error_dashboard/application_helper.rb +79 -7
- data/app/helpers/rails_error_dashboard/backtrace_helper.rb +149 -0
- data/app/models/rails_error_dashboard/application.rb +1 -1
- data/app/models/rails_error_dashboard/error_log.rb +44 -16
- data/app/views/layouts/rails_error_dashboard.html.erb +66 -1237
- data/app/views/rails_error_dashboard/errors/_error_row.html.erb +10 -2
- data/app/views/rails_error_dashboard/errors/_source_code.html.erb +76 -0
- data/app/views/rails_error_dashboard/errors/_timeline.html.erb +18 -82
- data/app/views/rails_error_dashboard/errors/index.html.erb +64 -31
- data/app/views/rails_error_dashboard/errors/overview.html.erb +181 -3
- data/app/views/rails_error_dashboard/errors/platform_comparison.html.erb +2 -1
- data/app/views/rails_error_dashboard/errors/settings/_value_badge.html.erb +286 -0
- data/app/views/rails_error_dashboard/errors/settings.html.erb +146 -480
- data/app/views/rails_error_dashboard/errors/show.html.erb +44 -20
- data/db/migrate/20251223000000_create_rails_error_dashboard_complete_schema.rb +188 -0
- data/db/migrate/20251224000001_create_rails_error_dashboard_error_logs.rb +5 -0
- data/db/migrate/20251224081522_add_better_tracking_to_error_logs.rb +3 -0
- data/db/migrate/20251224101217_add_controller_action_to_error_logs.rb +3 -0
- data/db/migrate/20251225071314_add_optimized_indexes_to_error_logs.rb +4 -0
- data/db/migrate/20251225074653_remove_environment_from_error_logs.rb +3 -0
- data/db/migrate/20251225085859_add_enhanced_metrics_to_error_logs.rb +3 -0
- data/db/migrate/20251225093603_add_similarity_tracking_to_error_logs.rb +3 -0
- data/db/migrate/20251225100236_create_error_occurrences.rb +3 -0
- data/db/migrate/20251225101920_create_cascade_patterns.rb +3 -0
- data/db/migrate/20251225102500_create_error_baselines.rb +3 -0
- data/db/migrate/20251226020000_add_workflow_fields_to_error_logs.rb +3 -0
- data/db/migrate/20251226020100_create_error_comments.rb +3 -0
- data/db/migrate/20251229111223_add_additional_performance_indexes.rb +4 -0
- data/db/migrate/20260106094220_create_rails_error_dashboard_applications.rb +3 -0
- data/db/migrate/20260106094233_add_application_to_error_logs.rb +3 -0
- data/db/migrate/20260106094318_finalize_application_foreign_key.rb +5 -0
- data/lib/generators/rails_error_dashboard/install/install_generator.rb +32 -0
- data/lib/generators/rails_error_dashboard/install/templates/initializer.rb +37 -4
- data/lib/rails_error_dashboard/configuration.rb +160 -3
- data/lib/rails_error_dashboard/configuration_error.rb +24 -0
- data/lib/rails_error_dashboard/engine.rb +17 -0
- data/lib/rails_error_dashboard/helpers/user_model_detector.rb +138 -0
- data/lib/rails_error_dashboard/queries/dashboard_stats.rb +19 -4
- data/lib/rails_error_dashboard/queries/errors_list.rb +20 -8
- data/lib/rails_error_dashboard/services/error_normalizer.rb +143 -0
- data/lib/rails_error_dashboard/services/git_blame_reader.rb +195 -0
- data/lib/rails_error_dashboard/services/github_link_generator.rb +159 -0
- data/lib/rails_error_dashboard/services/source_code_reader.rb +214 -0
- data/lib/rails_error_dashboard/version.rb +1 -1
- data/lib/rails_error_dashboard.rb +6 -0
- metadata +13 -10
- data/app/assets/stylesheets/rails_error_dashboard/_catppuccin_mocha.scss +0 -107
- data/app/assets/stylesheets/rails_error_dashboard/_components.scss +0 -625
- data/app/assets/stylesheets/rails_error_dashboard/_layout.scss +0 -257
- data/app/assets/stylesheets/rails_error_dashboard/_theme_variables.scss +0 -203
- data/app/assets/stylesheets/rails_error_dashboard/application.css +0 -15
- data/app/assets/stylesheets/rails_error_dashboard/application.css.map +0 -7
- data/app/assets/stylesheets/rails_error_dashboard/application.scss +0 -61
- data/app/views/layouts/rails_error_dashboard/application.html.erb +0 -55
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
// =============================================================================
|
|
2
|
-
// Catppuccin Mocha Theme - Color Palette
|
|
3
|
-
// =============================================================================
|
|
4
|
-
// Official Catppuccin color palette for the Mocha flavor (dark theme)
|
|
5
|
-
// https://github.com/catppuccin/catppuccin
|
|
6
|
-
//
|
|
7
|
-
// This file defines both SCSS variables and CSS custom properties for
|
|
8
|
-
// maximum flexibility in styling components.
|
|
9
|
-
// =============================================================================
|
|
10
|
-
|
|
11
|
-
// -----------------------------------------------------------------------------
|
|
12
|
-
// SCSS Variables - Accent Colors
|
|
13
|
-
// -----------------------------------------------------------------------------
|
|
14
|
-
// Use these for compile-time color calculations and SCSS functions
|
|
15
|
-
|
|
16
|
-
$ctp-rosewater: #f5e0dc !default; // Soft highlights, subtle accents
|
|
17
|
-
$ctp-flamingo: #f2cdcd !default; // Gentle warnings, soft alerts
|
|
18
|
-
$ctp-pink: #f5c2e7 !default; // Playful accents, decorative
|
|
19
|
-
$ctp-mauve: #cba6f7 !default; // Primary brand color, links
|
|
20
|
-
$ctp-red: #f38ba8 !default; // Errors, critical states
|
|
21
|
-
$ctp-maroon: #eba0ac !default; // Secondary errors, warnings
|
|
22
|
-
$ctp-peach: #fab387 !default; // Warnings, cautionary states
|
|
23
|
-
$ctp-yellow: #f9e2af !default; // Highlights, important info
|
|
24
|
-
$ctp-green: #a6e3a1 !default; // Success, positive states
|
|
25
|
-
$ctp-teal: #94e2d5 !default; // Info, neutral positive
|
|
26
|
-
$ctp-sky: #89dceb !default; // Links, interactive elements
|
|
27
|
-
$ctp-sapphire: #74c7ec !default; // Accents, decorative
|
|
28
|
-
$ctp-blue: #89b4fa !default; // Info, primary actions
|
|
29
|
-
$ctp-lavender: #b4befe !default; // Soft accents, highlights
|
|
30
|
-
|
|
31
|
-
// -----------------------------------------------------------------------------
|
|
32
|
-
// SCSS Variables - Neutral Colors
|
|
33
|
-
// -----------------------------------------------------------------------------
|
|
34
|
-
// Background and text colors for UI structure
|
|
35
|
-
|
|
36
|
-
$ctp-text: #cdd6f4 !default; // Primary text
|
|
37
|
-
$ctp-subtext1: #bac2de !default; // Secondary text
|
|
38
|
-
$ctp-subtext0: #a6adc8 !default; // Tertiary text, muted
|
|
39
|
-
$ctp-overlay2: #9399b2 !default; // Hover states, highlights
|
|
40
|
-
$ctp-overlay1: #7f849c !default; // Subtle backgrounds
|
|
41
|
-
$ctp-overlay0: #6c7086 !default; // Muted elements, disabled
|
|
42
|
-
$ctp-surface2: #585b70 !default; // Secondary surfaces
|
|
43
|
-
$ctp-surface1: #45475a !default; // Interactive elements
|
|
44
|
-
$ctp-surface0: #313244 !default; // Component backgrounds (cards)
|
|
45
|
-
$ctp-base: #1e1e2e !default; // Main background
|
|
46
|
-
$ctp-mantle: #181825 !default; // Alternate background
|
|
47
|
-
$ctp-crust: #11111b !default; // Borders, edges
|
|
48
|
-
|
|
49
|
-
// -----------------------------------------------------------------------------
|
|
50
|
-
// CSS Custom Properties (CSS Variables)
|
|
51
|
-
// -----------------------------------------------------------------------------
|
|
52
|
-
// These can be changed at runtime and accessed from JavaScript
|
|
53
|
-
// Use these for theme switching and dynamic styling
|
|
54
|
-
|
|
55
|
-
:root {
|
|
56
|
-
// Accent colors as CSS variables
|
|
57
|
-
--ctp-rosewater: #{$ctp-rosewater};
|
|
58
|
-
--ctp-flamingo: #{$ctp-flamingo};
|
|
59
|
-
--ctp-pink: #{$ctp-pink};
|
|
60
|
-
--ctp-mauve: #{$ctp-mauve};
|
|
61
|
-
--ctp-red: #{$ctp-red};
|
|
62
|
-
--ctp-maroon: #{$ctp-maroon};
|
|
63
|
-
--ctp-peach: #{$ctp-peach};
|
|
64
|
-
--ctp-yellow: #{$ctp-yellow};
|
|
65
|
-
--ctp-green: #{$ctp-green};
|
|
66
|
-
--ctp-teal: #{$ctp-teal};
|
|
67
|
-
--ctp-sky: #{$ctp-sky};
|
|
68
|
-
--ctp-sapphire: #{$ctp-sapphire};
|
|
69
|
-
--ctp-blue: #{$ctp-blue};
|
|
70
|
-
--ctp-lavender: #{$ctp-lavender};
|
|
71
|
-
|
|
72
|
-
// Neutral colors as CSS variables
|
|
73
|
-
--ctp-text: #{$ctp-text};
|
|
74
|
-
--ctp-subtext1: #{$ctp-subtext1};
|
|
75
|
-
--ctp-subtext0: #{$ctp-subtext0};
|
|
76
|
-
--ctp-overlay2: #{$ctp-overlay2};
|
|
77
|
-
--ctp-overlay1: #{$ctp-overlay1};
|
|
78
|
-
--ctp-overlay0: #{$ctp-overlay0};
|
|
79
|
-
--ctp-surface2: #{$ctp-surface2};
|
|
80
|
-
--ctp-surface1: #{$ctp-surface1};
|
|
81
|
-
--ctp-surface0: #{$ctp-surface0};
|
|
82
|
-
--ctp-base: #{$ctp-base};
|
|
83
|
-
--ctp-mantle: #{$ctp-mantle};
|
|
84
|
-
--ctp-crust: #{$ctp-crust};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// -----------------------------------------------------------------------------
|
|
88
|
-
// Utility Functions
|
|
89
|
-
// -----------------------------------------------------------------------------
|
|
90
|
-
|
|
91
|
-
// Add opacity to a Catppuccin color
|
|
92
|
-
// Usage: background-color: ctp-opacity($ctp-red, 0.1);
|
|
93
|
-
@function ctp-opacity($color, $opacity) {
|
|
94
|
-
@return rgba($color, $opacity);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Lighten a Catppuccin color (for hover states)
|
|
98
|
-
// Usage: background-color: ctp-lighten($ctp-mauve, 10%);
|
|
99
|
-
@function ctp-lighten($color, $amount) {
|
|
100
|
-
@return lighten($color, $amount);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// Darken a Catppuccin color (for active states)
|
|
104
|
-
// Usage: background-color: ctp-darken($ctp-mauve, 10%);
|
|
105
|
-
@function ctp-darken($color, $amount) {
|
|
106
|
-
@return darken($color, $amount);
|
|
107
|
-
}
|