faultline-rails 0.4.0 → 0.7.0
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 +14 -0
- data/app/assets/stylesheets/faultline/application.css +0 -41
- data/app/assets/stylesheets/faultline/dashboard.css +961 -0
- data/app/controllers/faultline/logged_exceptions_controller.rb +81 -8
- data/app/helpers/faultline/logged_exceptions_helper.rb +84 -5
- data/app/javascript/controllers/faultline_controller.js +349 -7
- data/app/javascript/faultline/controllers/sidebar_controller.js +21 -0
- data/app/javascript/faultline/controllers/theme_controller.js +48 -0
- data/app/models/faultline/logged_exception.rb +10 -0
- data/app/views/faultline/logged_exceptions/_exceptions.html.erb +132 -84
- data/app/views/faultline/logged_exceptions/_show.html.erb +281 -60
- data/app/views/faultline/logged_exceptions/index.html.erb +192 -123
- data/app/views/faultline/logged_exceptions/show.html.erb +1 -1
- data/app/views/layouts/faultline/application.html.erb +116 -51
- data/faultline-rails.gemspec +1 -0
- data/lib/faultline/cleanup.rb +32 -0
- data/lib/faultline/configuration.rb +172 -4
- data/lib/faultline/engine.rb +22 -0
- data/lib/faultline/logger.rb +188 -0
- data/lib/faultline/notifications.rb +80 -0
- data/lib/faultline/ransack_config.rb +2 -24
- data/lib/faultline/version.rb +1 -1
- data/lib/faultline.rb +10 -0
- data/lib/generators/faultline/customize_generator.rb +117 -0
- data/lib/generators/faultline/install_generator.rb +15 -0
- data/lib/generators/faultline/templates/faultline.rb +70 -37
- data/lib/generators/faultline/templates/javascript/controllers/faultline_controller.js +310 -0
- data/lib/generators/faultline/templates/views/faultline/logged_exceptions/_exceptions.html.erb +124 -0
- data/lib/generators/faultline/templates/views/faultline/logged_exceptions/_show.html.erb +83 -0
- data/lib/generators/faultline/templates/views/faultline/logged_exceptions/index.html.erb +113 -0
- data/lib/generators/faultline/templates/views/layouts/faultline/application.html.erb +133 -0
- data/lib/tasks/faultline.rake +147 -0
- metadata +15 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24fbd55d2484532bff1b060c9526e48e05192bb6199c38f05530958711b8dc53
|
|
4
|
+
data.tar.gz: f736030fb9ce0e5d9cb40ad8751499bb27997be0126ab781b0907ac9901925c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b4e8ec5a835b68a52cf24c9b9875a652733db1a59a82e255aff0b579b0e210ec42c8f4ea4a4ec1fd1b92db428dbc8de582ba9166801c5bacc7c66967eafe12e
|
|
7
|
+
data.tar.gz: 68cdb0c541e6b50305bee182b0f739bb70551acf81b576191915da68a9079d9bdfadbee88d151b08aff54b2ef5bcb588b3e75ac3cca00e96f6452b995d0298c8
|
data/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Faultline Rails
|
|
2
2
|
|
|
3
|
+
[](https://rubygems.org/gems/faultline-rails)
|
|
4
|
+
[](https://github.com/sponsors/tamiru)
|
|
5
|
+
|
|
3
6
|
Faultline is a production-friendly exception dashboard for Rails 8. It records unhandled application exceptions and gives your team a fast, searchable view of messages, requests, environments, and backtraces.
|
|
4
7
|
|
|
5
8
|
The dashboard is server-rendered and progressively enhanced with:
|
|
@@ -256,6 +259,17 @@ bin/rails test
|
|
|
256
259
|
|
|
257
260
|
The repository includes a Rails dummy application under `test/dummy` for engine integration testing.
|
|
258
261
|
|
|
262
|
+
## Support
|
|
263
|
+
|
|
264
|
+
If you find Faultline useful, consider supporting the project:
|
|
265
|
+
|
|
266
|
+
- ⭐ **Star the repo** — Help others discover Faultline
|
|
267
|
+
- 🐛 **Report issues** — Help improve the gem
|
|
268
|
+
- 💡 **Contribute** — Submit pull requests
|
|
269
|
+
- 💰 **Sponsor** — [GitHub Sponsors](https://github.com/sponsors/tamiru)
|
|
270
|
+
|
|
271
|
+
Your support helps maintain and improve Faultline for the Rails community.
|
|
272
|
+
|
|
259
273
|
## License
|
|
260
274
|
|
|
261
275
|
Faultline Rails is released under the [MIT License](MIT-LICENSE).
|
|
@@ -124,45 +124,4 @@ table { border-collapse: collapse; width: 100%; }
|
|
|
124
124
|
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
|
|
125
125
|
.sr-only-focusable:focus { position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; border: 0; }
|
|
126
126
|
|
|
127
|
-
/* ═══════════════════════════════════════════════════════════════════
|
|
128
|
-
TAILWIND OVERRIDES (used when Tailwind CSS IS available)
|
|
129
|
-
═══════════════════════════════════════════════════════════════════ */
|
|
130
|
-
|
|
131
|
-
/* Tailwind-compatible pagination */
|
|
132
|
-
.fl-pagination .pagination {
|
|
133
|
-
@apply flex flex-wrap gap-2 items-center list-none m-0 p-0;
|
|
134
|
-
}
|
|
135
|
-
.fl-pagination .pagination a {
|
|
136
|
-
@apply px-3 py-1.5 rounded-md text-indigo-600 hover:bg-indigo-50 no-underline text-sm;
|
|
137
|
-
}
|
|
138
|
-
.fl-pagination .pagination span.current {
|
|
139
|
-
@apply px-3 py-1.5 rounded-md bg-indigo-600 text-white font-semibold text-sm;
|
|
140
|
-
}
|
|
141
|
-
.fl-pagination .pagination span.gap {
|
|
142
|
-
@apply px-2 py-1.5 text-gray-400 text-sm;
|
|
143
|
-
}
|
|
144
127
|
|
|
145
|
-
/* Tailwind-compatible search input */
|
|
146
|
-
.fl-search input[type="search"] {
|
|
147
|
-
@apply flex-1 min-w-0 px-3 py-2 border border-gray-300 rounded-md text-sm focus:ring-indigo-500 focus:border-indigo-500 focus:outline-none;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/* Tailwind-compatible buttons */
|
|
151
|
-
.fl-btn {
|
|
152
|
-
@apply inline-flex items-center justify-center px-4 py-2 border border-transparent rounded-md text-sm font-semibold cursor-pointer no-underline;
|
|
153
|
-
}
|
|
154
|
-
.fl-btn-primary {
|
|
155
|
-
@apply bg-indigo-600 text-white hover:bg-indigo-700;
|
|
156
|
-
}
|
|
157
|
-
.fl-btn-danger {
|
|
158
|
-
@apply bg-red-600 text-white hover:bg-red-700;
|
|
159
|
-
}
|
|
160
|
-
.fl-btn-outline {
|
|
161
|
-
@apply bg-transparent border border-gray-300 text-red-700 hover:bg-red-50;
|
|
162
|
-
}
|
|
163
|
-
.fl-btn-sm {
|
|
164
|
-
@apply px-3 py-1.5 text-xs;
|
|
165
|
-
}
|
|
166
|
-
.fl-btn-ghost {
|
|
167
|
-
@apply bg-transparent text-gray-500 hover:bg-gray-100;
|
|
168
|
-
}
|