Show live and recording counts on /channels - #107
Merged
Merged
Conversation
The channel directory showed subscribers and a pulsing dot, but nothing about how much was on a channel. list_all_channels now returns live_count (public sessions with a host seen in the last 90 s, same rows the channel page lists as streams) and recording_count (finished, playable recordings of public sessions, same rows list_channel_recordings returns), and each card reads "6 subscribers · 0 live · 5 recordings". The return type changed so the migration drops the old signature first. Applied to prod (yuwjbjskkghlyrdkhexu) as channel_directory_counts. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
ThreatCrush Security Scan34 finding(s) HIGH/CRITICAL: 4 | MEDIUM: 26 | LOW: 4
Snippets are redacted; ThreatCrush never prints matched credential material. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Each card on https://pairux.com/channels now reads
N subscribers · N live · N recordings, with the live figure in red when non-zero.How
list_all_channelswithlive_countandrecording_count. The return type changed, so it drops the old signature first.live_countuses the exact filter the channel page's streams list uses (public session, host seen in the last 90 s).recording_countuses the exact filterlist_channel_recordingsuses (status ready, playback URL present, public session).apps/web/src/app/channels/page.tsxrenders the two figures.Prod
Migration already applied to project
yuwjbjskkghlyrdkhexuaschannel_directory_countsand verified: Mosh Coding returns 5 recordings.Checks
tsc --noEmitin apps/web: clean🤖 Generated with Claude Code