- Dashboard Recent activity: readable details (reward name, cost, variation,
rarity, TTS, viewer message; sub tier/months; bits; raids; polls), local
times, and a Replay button. Each row now stores the overlay message that was
shown (activity_log.replay_json); older redeem/raid rows are rebuilt from the
raw Twitch event.
- Fix: redeem alerts lost polaroid/art/emote since 4fda606 (they had ended up
inside a comment), so sticker art, Power-up emotes and sound-only were gone.
- HUDFX embedded in the overlay with ?ext=hudfx (opt-in per OBS source): its
page is served from our domain with the camcorder CSS, its settings API is
forwarded, its Web Worker is started from a same-origin stand-in (the alert
box needs it; blob: workers break the site CSP), and the box sits in the
alert corner. The HUDFX URL is a field on the Settings page.
- Blerp cassette CSS kept with it (src/ext/blerp.css, pasted into the Blerp
OBS source; Blerp itself cannot be embedded: its realtime server only
accepts its own site).
- On-screen chat: Settings -> Hidden chatters and Hide ! commands.
- Outgoing raids are logged with a line in the server log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
2 KiB
Text
46 lines
2 KiB
Text
<% if (logs.length === 0) { %>
|
|
<p><em>No activity yet. Events will appear here once your overlay is connected and Twitch fires events.</em></p>
|
|
<% } else { %>
|
|
<figure>
|
|
<table class="activity">
|
|
<thead>
|
|
<tr>
|
|
<th>Time</th>
|
|
<th>Event</th>
|
|
<th>User</th>
|
|
<th>Detail</th>
|
|
<th><span title="Actions (Actions page) that fired for this event">Actions</span></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% for (const log of logs) { const d = activity.describe(log); %>
|
|
<tr>
|
|
<td><small><time datetime="<%= String(log.created_at).replace(' ', 'T') %>Z"><%= log.created_at %> UTC</time></small></td>
|
|
<td><%= d.label %></td>
|
|
<td><%= log.username || '—' %></td>
|
|
<td>
|
|
<% if (d.title) { %><strong><%= d.title %></strong><% } %>
|
|
<% for (const tag of d.tags) { %> <span class="badge badge-grey"><%= tag %></span><% } %>
|
|
<% if (d.message) { %><br><small class="activity-msg">“<%= d.message %>”</small><% } %>
|
|
<% if (!d.title && !d.tags.length && !d.message) { %>—<% } %>
|
|
</td>
|
|
<td>
|
|
<span class="badge <%= log.actions_fired > 0 ? 'badge-green' : 'badge-grey' %>">
|
|
<%= log.actions_fired %>
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<% if (activity.canReplay(log)) { %>
|
|
<button type="button" class="outline activity-replay" data-id="<%= log.id %>"
|
|
title="<%= log.replay_json ? 'Play this again on the overlay (queued like a real alert, not logged again)' : 'Older event: replays with a fresh pick of the reward\'s variations' %>"
|
|
style="width:auto; padding:.2rem .6rem; margin:0;">Replay</button>
|
|
<small class="activity-replay-status"></small>
|
|
<% } %>
|
|
</td>
|
|
</tr>
|
|
<% } %>
|
|
</tbody>
|
|
</table>
|
|
</figure>
|
|
<% } %>
|