Conversation
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 -->
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
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 : )