feat(presence): PRES-3 tail — Tasks + Chat header stacks + whiteboard dedup#146
Merged
Conversation
…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>
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.
Continues the presence rollout on the shipped 0.4.0 primitive — each app is now a ~3-line add.
presenceAwarenessFor(built its own transport) now delegates to the shared@brainstorm/sdk/presence-stackone (PRES-3b), bound to WHITEBOARD_TYPE. One transport implementation fleet-wide; behaviour unchanged (8 tests green).<PresenceStack peers={usePresence(openTask.id, TASK_TYPE, useSelf())} />in the header — who's-here on the open task.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 ReactusePresencehook needs an island/adapter — deferred.🤖 Generated with Claude Code