telegram_bot_engine 0.6.0 → 0.6.1

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: d27dbf5fec7cb1c9192332eca34672baea537c79d75ae46df0f6b7cfd13e576a
4
- data.tar.gz: 188cc7fa3fb070f8b090f3bcc4b91cddbca17dbbe94354186752c612ba7e0d3d
3
+ metadata.gz: 5a19547e129a7f585caf36e658c8a4b9528748c3bf341e21560712fd6cbfe4b4
4
+ data.tar.gz: 20f6b578e870360046ccda8fa7bdbabc3000946993f04ad46cf283b50833a53c
5
5
  SHA512:
6
- metadata.gz: fe5cc14a578d95d084f9ca21adee8b201fc3763100d0e32814e15938c31e1a0e8cbb2b25813636457501f0ea6ed021ed6bf308176cf4a8bfcb57be284c901297
7
- data.tar.gz: 1e3bac86d76c1a1e871eee18d68b884c41ced5500ad718c5eb9fa98b18a9253dbfd547533825eeebc291c3edf4b88060f55d4b9b6148747607a435b71a9ae604
6
+ metadata.gz: 0e3e16b2474d963dc96d668127e6bb3d8f780bae94573584541302bb43aaa121344488bd05b93fa5f0a8ab4d6aeac1b0894173f9fe1b54e629a7e6ec532f4abe
7
+ data.tar.gz: 3a571d76696c824e738c2af23b9fba542857c606b09ade295cd48160cf7d5d4529f494d1118958e1343269a02e3aa026cd59230f4c7e67d029504cc8bedb913c
data/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
  While the gem is pre-1.0, minor bumps may widen the API in backward-compatible ways.
8
8
 
9
+ ## [0.6.1] - 2026-06-25
10
+
11
+ ### Added
12
+ - **Bot column in the events admin table** — the `/telegram/admin/events` table now shows the bot name per row (mapped from `event.bot_id`), instead of leaving bot identity buried in the Details JSON. Command events with no bot (e.g. `start`/`stop`/`help`) render `-`.
13
+
14
+ ### Changed
15
+ - The redundant `bot` key is dropped from the events Details JSON column now that the bot is shown in its own column.
16
+
9
17
  ## [0.6.0] - 2026-06-25
10
18
 
11
19
  ### Added
@@ -56,12 +56,14 @@
56
56
  <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Timestamp</th>
57
57
  <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
58
58
  <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Action</th>
59
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Bot</th>
59
60
  <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Username</th>
60
61
  <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Chat ID</th>
61
62
  <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Details</th>
62
63
  </tr>
63
64
  </thead>
64
65
  <tbody class="bg-white divide-y divide-gray-200">
66
+ <% bot_names = @bots.each_with_object({}) { |bot, h| h[bot.id] = bot.name } %>
65
67
  <% @events.each do |event| %>
66
68
  <tr>
67
69
  <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
@@ -84,6 +86,9 @@
84
86
  <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
85
87
  <%= event.action %>
86
88
  </td>
89
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">
90
+ <%= bot_names[event.bot_id] || "-" %>
91
+ </td>
87
92
  <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">
88
93
  <%= event.username || "-" %>
89
94
  </td>
@@ -91,14 +96,15 @@
91
96
  <%= event.chat_id || "-" %>
92
97
  </td>
93
98
  <td class="px-6 py-4 text-gray-500 max-w-md break-words" style="font-size: 0.7rem; line-height: 1.15rem;">
94
- <%= event.details.present? ? event.details.to_json : "-" %>
99
+ <% detail_data = event.details.is_a?(Hash) ? event.details.except("bot", :bot) : event.details %>
100
+ <%= detail_data.present? ? detail_data.to_json : "-" %>
95
101
  </td>
96
102
  </tr>
97
103
  <% end %>
98
104
 
99
105
  <% if @events.empty? %>
100
106
  <tr>
101
- <td colspan="6" class="px-6 py-12 text-center text-sm text-gray-500">
107
+ <td colspan="7" class="px-6 py-12 text-center text-sm text-gray-500">
102
108
  No events found.
103
109
  </td>
104
110
  </tr>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TelegramBotEngine
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telegram_bot_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomáš Landovský