solid_log-ui 0.1.0 → 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/app/channels/solid_log/ui/log_stream_channel.rb +28 -25
- data/lib/solid_log/ui/version.rb +3 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be225408f280d041373a099b8a84c853b70c4c6b19a2acd329309e8d69e4047b
|
|
4
|
+
data.tar.gz: 94afcfdc410d1aeb9a409433e094d58e5921fb1d10b533c43fa996e34f6f2a61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7311b463e1c17a1c08b49d6310a2af66fff87212a6f479241e60531ee474e51d469771b7c81fd762eb52fc45c8e24149f48f1e0d9558fcca6d7271405ec3a06
|
|
7
|
+
data.tar.gz: 32fb42aeb73501410d46a389e4fc8e88228ca34c6d26a6b5d4b2289230ef95feec113e8709d059b22f35b620517ebe898146377fa3dee294075688bd0ffd5632
|
|
@@ -81,32 +81,35 @@ module SolidLog
|
|
|
81
81
|
def handle_new_entries(entry_ids)
|
|
82
82
|
return if entry_ids.blank?
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
84
|
+
# Wrap in without_logging to prevent ActionCable logs from being captured by SolidLog
|
|
85
|
+
SolidLog.without_logging do
|
|
86
|
+
$stderr.puts "[LogStreamChannel] Received broadcast with #{entry_ids.size} entry IDs: #{entry_ids.first(5)}" if ENV['SOLIDLOG_DEBUG']
|
|
87
|
+
|
|
88
|
+
# Fetch entries matching these IDs
|
|
89
|
+
entries = SolidLog::Entry.where(id: entry_ids).order(:id)
|
|
90
|
+
$stderr.puts "[LogStreamChannel] Found #{entries.size} entries in database" if ENV['SOLIDLOG_DEBUG']
|
|
91
|
+
|
|
92
|
+
# Filter to only entries matching this client's filters
|
|
93
|
+
transmitted_count = 0
|
|
94
|
+
entries.each do |entry|
|
|
95
|
+
matches = entry_matches_filters?(entry)
|
|
96
|
+
$stderr.puts "[LogStreamChannel] Entry #{entry.id} matches filters: #{matches}" if ENV['SOLIDLOG_DEBUG']
|
|
97
|
+
next unless matches
|
|
98
|
+
|
|
99
|
+
# Render HTML for this specific entry with proper route context
|
|
100
|
+
html = SolidLog::UI::BaseController.render(
|
|
101
|
+
partial: "solid_log/ui/streams/log_row",
|
|
102
|
+
locals: { entry: entry, query: nil },
|
|
103
|
+
layout: false
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
# Transmit to this specific client
|
|
107
|
+
transmit({ html: html, entry_id: entry.id })
|
|
108
|
+
transmitted_count += 1
|
|
109
|
+
end
|
|
108
110
|
|
|
109
|
-
|
|
111
|
+
$stderr.puts "[LogStreamChannel] Transmitted #{transmitted_count} entries to client (filter: #{@filter_key})" if ENV['SOLIDLOG_DEBUG']
|
|
112
|
+
end
|
|
110
113
|
end
|
|
111
114
|
|
|
112
115
|
def entry_matches_filters?(entry)
|
data/lib/solid_log/ui/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solid_log-ui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dan Loman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: solid_log-core
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 0.2.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.
|
|
26
|
+
version: 0.2.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rails
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -100,14 +100,14 @@ dependencies:
|
|
|
100
100
|
requirements:
|
|
101
101
|
- - "~>"
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: '
|
|
103
|
+
version: '6.0'
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
108
|
- - "~>"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: '
|
|
110
|
+
version: '6.0'
|
|
111
111
|
- !ruby/object:Gem::Dependency
|
|
112
112
|
name: combustion
|
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|