Conversation
Describe what your pull request does. If you can, add GIFs or images showing the before and after of your change. ### Change type - [ ] `bugfix` - [ ] `improvement` - [ ] `feature` - [ ] `api` - [x] `other` ### Test plan 1. Create a shape... 2. - [ ] Unit tests - [ ] End to end tests ### Release notes - Fixed a bug with… <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Introduce groups-based sidebar UI with file/group DnD, group management and invites, plus server/client mutations and routes to support group workflows. > > - **UI/Sidebar (groups frontend)**: > - New grouped sidebar with "My files" and per-group sections, inline renaming, pin indicators, and context menus. > - Drag-and-drop: reorder pinned files, move files between groups, and reorder groups (visual drop cursor). > - New dialogs: `CreateGroupDialog`, `GroupSettingsDialog` (invite link, member roles, leave/delete), `AddFileLinkDialog`. > - File menu: “Move to” group, pin/unpin per-group, duplicate-to-group, delete/forget with group context. > - **Invites & Routing**: > - Add route `GET /invite/:token` (client + worker) and accept flow `POST /invite/:token/accept`. > - `TlaInviteDialog` and handling on `/invite/:token` and in file/local pages; copy invite links from sidebar/menu. > - **Client App/State**: > - `TldrawApp` enhancements: group memberships, stable ordering, ensure-visible helpers, upload/import to specific group, new drag state, toasts, navigation, and `hasFlag` utilities. > - Hooks/utilities for flags, drag tracking, isDragging; updated ownership check (`useHasFileAdminRights`). > - **Server/Mutators**: > - New group mutations: create/update/delete, leave, set member role, regenerate invite secret, move file to group, add file link, handle file DnD, group reordering; max groups limit. > - Add `MAX_NUMBER_OF_GROUPS`, `ZErrorCode.max_groups_reached`, flag helpers (`parseFlags`, `userHasFlag`). > - Worker endpoints and DO/replicator tweaks to support groups and invites. > - **Assets/i18n**: > - Add folder icons (`icon-folder`, `-open`, `-new`) and extensive locale strings for groups/invites. > - **Misc**: > - Menu item supports right-side icon; CTA/button tweaks; tests snapshot updated. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 67b22c8. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Mitja Bezenšek <mitja.bezensek@gmail.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 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 : )