Live view: realtime presence and live counts (Supabase Realtime)
Show who else is on a post right now via small overlapping avatars; show typing indicator on the comment composer; live-update vote_count and comment_count without a refresh. Powered by Supabase Realtime broadcast + presence channels (one channel per post id). Lightweight - no new tables required, presence state is ephemeral.
UI surfaces: post detail header (presence row), feedback list (live vote count ticking), team chat composer (typing dots). Tight scope - no edit conflict resolution, no "user X is editing" locks; just visibility primitives. Pairs nicely with team chat to make collaborative triage feel alive.
Comments (1)
- Elsama· 2 months ago
PR ready for review: https://github.com/El-SaMa/hollahoop/pull/39
Supabase Realtime only (no new tables): presence avatars on post detail, typing indicators on comment composers, live vote/comment counts on detail + feedback list. One channel per post (
post:<id>) over a shared websocket.No migration needed. Default Realtime config should work; if Realtime auth is locked down, allow anon/authenticated on
post:*broadcast/presence topics.Verified: 302 vitest passed, tsc, eslint, build.
Join the discussion
Sign in to leave a comment on this thread.