Conversation
This pull request makes a minor adjustment to the order of function calls when handling the drag-and-drop creation of text and note shapes in the `useTools.tsx` file. The change ensures that the shape enters editing mode before emitting the `select-all-text` event, which may improve user experience and reliability. Most important changes: **Drag-and-drop shape creation behavior:** * In the `onDragEnd` handler for both text and note shapes, the call to `editor.setEditingShape(id)` now occurs before emitting the `select-all-text` event, rather than after. ### Change type - [x] `bugfix` - [ ] `improvement` - [ ] `feature` - [ ] `api` - [ ] `other`
This PR: • Adds comprehensive documentation for the @tldraw/state package • Documents core concepts including atoms, computed signals, and reactivity • Includes advanced topics like transactions, history tracking, and debugging utilities This PR introduces complete documentation for the @tldraw/state library, covering all major features and concepts: Core Features Documented: - Signals: Atoms and computed values with automatic dependency tracking - Reactivity: Side effects with react and reactor functions - Transactions: Batching state updates with rollback support - History & Diffs: Change tracking for undo/redo functionality - Performance: Optimization utilities like unsafe_withoutCapture - Debugging: whyAmIRunning() for tracing state changes Documentation Structure: - Clear introduction with installation and quick example - Progressive complexity from basic atoms to advanced topics - TypeScript-first approach with type safety examples - Comprehensive API coverage with practical code samples - Integration notes for React bindings ### Change type - [ ] `bugfix` - [ ] `improvement` - [ ] `feature` - [ ] `api` - [x] `other`
This pull request introduces new drag-and-drop behaviors for toolbar tools in the local editor and improves the handling of tool overrides, especially for custom shapes and icons. It also adds an `isFun` option to the editor configuration and ensures that newly created shapes have consistent default properties. The main changes are grouped below: https://github.com/user-attachments/assets/fcb5f459-c3a7-4613-a75c-b25f260a8d1e **Enhanced Tool Drag-and-Drop Stuff for Tldraw.com:** * Added the `useExtraDragIconOverrides` hook (`apps/dotcom/client/src/tla/components/TlaEditor/useExtraToolDragIcons.ts`) to provide custom drag-and-drop behavior and icons for the select, hand, and draw tools, including shape creation logic and analytics tracking for drag events. * Updated `LocalEditor` to include both file system and extra drag icon overrides in the editor's override list, enabling the new drag behaviors. **Default Shape Properties and New Tool Support:** * Modified the geo tool's drag behavior to create shapes with default width and height (`w: 200, h: 200`) for consistency. * Added drag-and-drop creation logic for the line tool, allowing users to drag the arrow tool from the toolbar to create a default line shape with predefined points. **Codebase Maintenance:** * Minor code cleanups and import updates to support the new features and maintain consistency. * ### Change type - [x] `bugfix` - [x] `improvement` - [ ] `feature` - [ ] `api` - [ ] `other` --------- Co-authored-by: alex <alex@dytry.ch>
Introduced in #6466 ### Change type - [x] `other`
This PR clarifies the phrasing around third-party backends. NOTE: The paragraph includes a little bit of repetition in reference to the preceding paragraph. This is in case someone lands on this header through a search (see the second screenshot). <figure> <img width="1262" height="525" alt="Full section screenshot" src="https://github.com/user-attachments/assets/6dbe9be6-0970-4f58-b5f3-4528e1ecf733" /> <figcaption><i>Full section</i></figcaption> </figure> <figure> <img width="1262" height="525" alt="Only third-party backends subsection" src="https://github.com/user-attachments/assets/5691434c-dc0a-4ea4-96f1-000480eb320c" /> <figcaption><i>Only third-party backends subsection</i></figcaption> </figure> ### Change type - [ ] `bugfix` - [ ] `improvement` - [ ] `feature` - [ ] `api` - [X] `other` --------- Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
* Move it to the right. * Use the same component for both logged out and logged in. * Remove references to sidebar in the css. * Make sure the cookie settings modal is on top of the cookie dialog. * Don't show cookie consent dialog if manage cookies dialog is shown. ### Change type - [x] `improvement`
This PR adds a bunch of files that should only really matter to LLMs that are trying to work in our repository. ## Context This PR adds: - CONTEXT.md files to all packages - a `refresh-context` script that will, at great expense, check whether the CONTEXT.md files are correct I'd suggest we run this script maybe once a week, since it's just used as an efficiency / quality improvement for the models. At worst, it'll be bad directions in the case of large breaking changes or re-organization within the codebase. ## Other stuff for the bots Less importantly, it also adds: - MARKETING_STYLE_GUIDE.md for writing marketing copy / technical copy - COMPANY.md for information about tldraw itself (why it exists, etc). Our GH repository is very popular and well-linked, so having information here is a good idea. ### Change type - [ ] `bugfix` - [ ] `improvement` - [ ] `feature` - [ ] `api` - [x] `other`
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.3)
Can you help keep this open source service alive? 💖 Please sponsor : )