tldraw/packages
Lu Wilson 3bbb34eba8
(1/2) Cursor Chat - Presence (#1487)
This PR adds support for seeing **another user**'s chat messages.

It's part 1 of two PRs relating to Cursor Chat.
And it's needed for the much bigger part 2:
https://github.com/tldraw/brivate/pull/1981

# Presence

You can see another person's chat messages!

![2023-06-02 at 17 42 33 - Blush
Capybara](https://github.com/tldraw/tldraw/assets/15892272/8f3efb5f-9c05-459c-aa7e-24842be75e58)

If they have a name, it gets popped on top.

![2023-06-02 at 17 45 34 - Sapphire
Meerkat](https://github.com/tldraw/tldraw/assets/15892272/749bd924-c1f5-419b-a028-1fafe1b61292)

That's it!
With this PR, there's no way of actually *typing* your chat messages.
That comes with the [next
one](https://github.com/tldraw/brivate/pull/1981)!

# Admin

### To-do

- [x] Store chat message
- [x] Allow overflowing chat
- [x] Presence for chat message
- [x] Display chat message to others

### Change Type

- [x] `minor` — New Feature

### Test Plan

To test this, I recommend checking out both `lu/cursor-chat` branches,
and opening two browser sessions in the same shared project.

1. In one session, type some cursor chat by pressing the Enter key while
on the canvas (and typing).
2. On the other session, check that you can see the chat message appear.
3. Repeat this while being both named, and unnamed.

I recommend just focusing on the visible presense in this PR.
The [other PR](https://github.com/tldraw/brivate/pull/1981) is where we
can focus about how we _input_ the cursor chat.

### Release Notes

- [dev] Added support for cursor chat presence.

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-06-15 15:10:08 +00:00
..
assets Asset improvements (#1557) 2023-06-09 11:43:01 +00:00
editor (1/2) Cursor Chat - Presence (#1487) 2023-06-15 15:10:08 +00:00
file-format Add optional generic to updateShapes / createShapes (#1579) 2023-06-13 18:02:17 +00:00
indices update lazyrepo 2023-06-05 18:32:32 +01:00
polyfills update lazyrepo 2023-06-05 18:32:32 +01:00
primitives [refactor] snapping (#1589) 2023-06-15 14:36:46 +00:00
store update lazyrepo 2023-06-05 18:32:32 +01:00
tldraw mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
tlschema (1/2) Cursor Chat - Presence (#1487) 2023-06-15 15:10:08 +00:00
ui (1/2) Cursor Chat - Presence (#1487) 2023-06-15 15:10:08 +00:00
utils mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
validate mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00