Skip to content

feat(presence): PRES-3 tail — Tasks + Chat header stacks + whiteboard dedup#146

Merged
th3-br41n merged 1 commit into
mainfrom
feat/pres-3-tail
Jul 12, 2026
Merged

feat(presence): PRES-3 tail — Tasks + Chat header stacks + whiteboard dedup#146
th3-br41n merged 1 commit into
mainfrom
feat/pres-3-tail

Conversation

@th3-br41n

@th3-br41n th3-br41n commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Continues the presence rollout on the shipped 0.4.0 primitive — each app is now a ~3-line add.

  • Whiteboard dedup — its local presenceAwarenessFor (built its own transport) now delegates to the shared @brainstorm/sdk/presence-stack one (PRES-3b), bound to WHITEBOARD_TYPE. One transport implementation fleet-wide; behaviour unchanged (8 tests green).
  • Tasks<PresenceStack peers={usePresence(openTask.id, TASK_TYPE, useSelf())} /> in the header — who's-here on the open task.
  • Chat — same for the open channel (CHANNEL_TYPE), distinct from the channel member roster — who's live in the channel now.

Verified: per-app tsc (whiteboard/tasks/chat) + all three builds + 8 whiteboard + 443 tasks + 47 chat tests + lint — clean. Behavioural (avatars across two shells) is real-shell.

Presence now spans Whiteboard (cursors) · Notes · Tasks · Chat. Not done: Database is imperative-DOM (app.ts), so the React usePresence hook needs an island/adapter — deferred.

🤖 Generated with Claude Code

…nto the SDK

- **Whiteboard dedup**: its local `presenceAwarenessFor` (built its own transport)
  now delegates to the shared `@brainstorm/sdk/presence-stack` `presenceAwarenessFor`
  (PRES-3b), bound to WHITEBOARD_TYPE — one transport implementation across the
  fleet. 8 presence-channel tests still green (behaviour unchanged).
- **Tasks presence**: `<PresenceStack peers={usePresence(openTask.id, TASK_TYPE,
  useSelf())} />` at the leading edge of the header-right group — who's-here on the
  open task, cross-device in the shell. Three lines, thanks to the primitive.

Per-app tsc (whiteboard + tasks) + both builds + 8 whiteboard + 443 tasks tests +
lint clean. Behavioural (avatars across two shells) is real-shell.

Remaining PRES-3 tail: Database + other collaborative headers as wanted.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@th3-br41n th3-br41n merged commit e6f8ca3 into main Jul 12, 2026
2 of 3 checks passed
@th3-br41n th3-br41n deleted the feat/pres-3-tail branch July 12, 2026 13:25
@th3-br41n th3-br41n changed the title feat(presence): PRES-3 tail — Tasks header stack + whiteboard dedup feat(presence): PRES-3 tail — Tasks + Chat header stacks + whiteboard dedup Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant