solid_cache_dashboard 0.0.1 → 0.2.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 +18 -1
- data/app/assets/javascripts/solid_cache_dashboard/application.js +2 -1
- data/app/assets/stylesheets/solid_cache_dashboard/application.css +778 -12
- data/app/assets/stylesheets/solid_cache_dashboard/tailwind.css +8 -8
- data/app/controllers/solid_cache_dashboard/cache_entries_controller.rb +16 -3
- data/app/controllers/solid_cache_dashboard/cache_events_controller.rb +9 -3
- data/app/views/layouts/solid_cache_dashboard/application.html.erb +1 -1
- data/app/views/solid_cache_dashboard/application/_footer.html.erb +2 -2
- data/app/views/solid_cache_dashboard/application/_navbar.html.erb +28 -7
- data/app/views/solid_cache_dashboard/application/_pagination.html.erb +61 -0
- data/app/views/solid_cache_dashboard/cache_entries/index.html.erb +75 -27
- data/app/views/solid_cache_dashboard/cache_entries/show.html.erb +172 -39
- data/app/views/solid_cache_dashboard/cache_events/index.html.erb +34 -28
- data/app/views/solid_cache_dashboard/dashboard/index.html.erb +41 -41
- data/app/views/solid_cache_dashboard/stats/index.html.erb +55 -55
- data/lib/solid_cache_dashboard/cache_entry.rb +33 -0
- data/lib/solid_cache_dashboard/decorators/cache_entry_decorator.rb +92 -11
- data/lib/solid_cache_dashboard/engine.rb +13 -0
- data/lib/solid_cache_dashboard/instrumentation.rb +18 -9
- data/lib/solid_cache_dashboard/version.rb +1 -1
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61499ab71b0da718198b3a3c9151a2170ef3488c764a4653ca0ab102ceea1664
|
4
|
+
data.tar.gz: 5098ed766fe8ebc3cf37acd942f90385cc647d36dab171bc29a22a619a849041
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3568ee5a7463557b73b5f596c7276a5793f80b1b4688105f928f1bfb241741d4fb1831b7af60a192957b47cf37fee15e2422268ea53fb6b896b4d844756359d
|
7
|
+
data.tar.gz: fac32592fc8847e60bc88b396549cb620ba0f5f924d4a45d86f2c707f7b975c2d96cc432a59ce5e4b97b8a0c5d60020d826c0c3f6a2e22de203a0610a44c4c7a
|
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
A beautiful dashboard for [solid_cache](https://github.com/rails/solid_cache). Monitor your Rails application cache performance with detailed stats and visualizations.
|
4
4
|
|
5
|
+
Inspired by [Solid Queue Dashboard](https://github.com/akodkod/solid-queue-dashboard)
|
6
|
+
|
5
7
|
## Features
|
6
8
|
|
7
9
|
- Real-time monitoring of cache hits, misses, writes, and deletes
|
@@ -13,7 +15,22 @@ A beautiful dashboard for [solid_cache](https://github.com/rails/solid_cache). M
|
|
13
15
|
|
14
16
|
## Screenshots
|
15
17
|
|
16
|
-
|
18
|
+
<p align="center">
|
19
|
+
<picture>
|
20
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/afomera/solid_cache_dashboard/refs/heads/main/docs/screenshots/dashboard_dark_v2.png">
|
21
|
+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/afomera/solid_cache_dashboard/refs/heads/main/docs/screenshots/dashboard_light_v2.png">
|
22
|
+
<img alt="Solid Cache Dashboard for Rails" src="https://raw.githubusercontent.com/afomera/solid_cache_dashboard/refs/heads/main/docs/screenshots/dashboard_light_v2.png">
|
23
|
+
</picture>
|
24
|
+
</p>
|
25
|
+
---
|
26
|
+
|
27
|
+
<p align="center">
|
28
|
+
<picture>
|
29
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/afomera/solid_cache_dashboard/refs/heads/main/docs/screenshots/stats_dark_v2.png">
|
30
|
+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/afomera/solid_cache_dashboard/refs/heads/main/docs/screenshots/stats_light_v2.png">
|
31
|
+
<img alt="Solid Cache Dashboard for Rails" src="https://raw.githubusercontent.com/afomera/solid_cache_dashboard/refs/heads/main/docs/screenshots/stats_light_v2.png">
|
32
|
+
</picture>
|
33
|
+
</p>
|
17
34
|
|
18
35
|
## Installation
|
19
36
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
// Lovingly borrowed from solid_queue_dashboard
|
2
|
+
// https://github.com/akodkod/solid-queue-dashboard
|
1
3
|
document.addEventListener('DOMContentLoaded', function() {
|
2
4
|
// Handle clickable rows
|
3
5
|
document.body.addEventListener('mouseup', function(event) {
|
@@ -54,7 +56,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
54
56
|
}
|
55
57
|
|
56
58
|
function refreshHomePage() {
|
57
|
-
// TODO: Implement a smart refresh strategy using Fetch or Turbo
|
58
59
|
window.location.reload();
|
59
60
|
}
|
60
61
|
});
|