Skip to content

[pull] main from tldraw:main#273

Merged
pull[bot] merged 3 commits intocode:mainfrom
tldraw:main
Nov 19, 2025
Merged

[pull] main from tldraw:main#273
pull[bot] merged 3 commits intocode:mainfrom
tldraw:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Nov 19, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

MitjaBezensek and others added 3 commits November 19, 2025 07:32
This adds a variant of the sign in modal which automatically accepts the
group invite.

<img width="1134" height="1312" alt="CleanShot 2025-11-18 at 13 41
01@2x"
src="https://github.com/user-attachments/assets/aa29dd03-21d9-4a06-97c7-52abd6bf897c"
/>


### Change type

- [x] `other`

### Test plan

1. Create group invite link.
2. Accept it in another browser that is logged out.
3. You should see the new sign in dialog variant and after logging in
you should see the group you were invited to.


<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Adds an invite-aware sign-in flow that auto-accepts group invites,
updates invite/sign-in dialogs and routing, and refreshes related i18n
strings.
> 
> - **Auth/Invites**:
> - Add invite-aware `TlaSignInDialog` that shows group info, supports
Google/email sign-in, and triggers auto-accept via `onInviteAccepted`
with `?accept=true`.
> - Simplify `TlaInviteDialog`: remove sign-in branch; always show
“Accept and join group” (no HTML in copy).
> - **Routing/URLs**:
> - Use `routes.tlaInvite(...)` for invite links in
`GroupSettingsDialog` and Google OAuth redirect.
> - `local.tsx`: when logged out, show `TlaSignInDialog` for invites and
navigate to invite URL with `accept=true` on completion.
>   - `file.tsx`: only show `TlaInviteDialog` when user is signed in.
> - `useInviteDetails`: fetch invite by `inviteSecret` from location
state and clear it via `navigate(replace)`.
> - **i18n**:
> - Replace invite title string with plain text (`You have been invited
to join group:`) and add `Sign in or create an account to accept the
invitation.`; remove older HTML-based keys.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
1d8e53d. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
An example showing how you could use a callback with `onInteractionEnd`

### Change type

- [ ] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [x] `other`

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Adds a new example demonstrating `onInteractionEnd` to control
behavior after translating a newly created shape.
> 
> - **Examples**:
> - Add
`apps/examples/src/examples/interaction-end-callback/InteractionEndExample.tsx`
showcasing a custom `QuickShapeTool` that:
> - Creates a `geo` shape on pointer down, switches to
`select.translating`, and uses `onInteractionEnd` to update the shape's
`fill` to `pattern` and return to `quick-shape`.
> - Add `apps/examples/src/examples/interaction-end-callback/README.md`
documenting usage of `onInteractionEnd` for translate/resize/rotate
interactions.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
ecafafb. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Add an example to demonstrate the new `snapReferenceHandleId` property.

### Change type

- [ ] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [x] `other`

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Adds a new example showcasing `snapReferenceHandleId` via a custom
Y-shaped shape and accompanying README.
> 
> - **Examples**:
> - **New example**
`apps/examples/src/examples/custom-relative-snapping/CustomRelativeSnappingExample.tsx`.
> - Defines `YShape` and `YShapeUtil` with four handles; arms use
`snapReferenceHandleId: 'center'` for shift-angle snapping.
> - Renders three lines from center to arms; updates arm positions on
handle drag.
>     - On mount, creates and selects a `y-shape` at viewport center.
> - **Docs**:
> - Adds `README.md` with metadata and brief explanation of
`snapReferenceHandleId` for control-point angle snapping.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
2dd9aaf. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@pull pull Bot locked and limited conversation to collaborators Nov 19, 2025
@pull pull Bot added the ⤵️ pull label Nov 19, 2025
@pull pull Bot had a problem deploying to deploy-staging November 19, 2025 09:13 Failure
@pull pull Bot merged commit 6c95444 into code:main Nov 19, 2025
1 of 7 checks passed
@pull pull Bot had a problem deploying to deploy-production November 19, 2025 09:13 Failure
@pull pull Bot had a problem deploying to deploy-staging November 19, 2025 09:13 Failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants