Tldraw/packages/editor/src/lib/test/tools
David Sheldrick a3896fc492
[fix] Don't synchronize isReadOnly (#1396)
We were storing the state of whether or not a document is read-only in
the store. It does not need to be stored there, and it was creating
consistency problems for us, so let's not store it in there.

fixes https://github.com/tldraw/brivate/issues/1864 

### Change Type

<!-- 💡 Indicate the type of change your pull request is. -->
<!-- 🤷‍♀️ If you're not sure, don't select anything -->
<!-- ✂️ Feel free to delete unselected options -->

<!-- To select one, put an x in the box: [x] -->

- [ ] `patch` — Bug Fix
- [ ] `minor` — New Feature
- [x] `major` — Breaking Change
- [ ] `dependencies` — Dependency Update (publishes a `patch` release,
for devDependencies use `internal`)
- [ ] `documentation` — Changes to the documentation only (will not
publish a new version)
- [ ] `tests` — Changes to any testing-related code only (will not
publish a new version)
- [ ] `internal` — Any other changes that don't affect the published
package (will not publish a new version)

### Test Plan

1. Create a multiplayer room
2. Create a read-only link for the room
3. Paste the link into a new browser tab (not incognito, needs to have
the same session state)
4. Check the room is read-only in the new tab
5. Check the room is still writable in the previous tab.

### Release Notes

- Removes the isReadOnly value from the `user_document_settings` record
type.
2023-05-17 10:45:43 +00:00
..
__snapshots__ [feature] `check-box` geo shape (#1330) 2023-05-09 13:32:04 +00:00
TLArrowTool.test.ts [feature] ui events (#1326) 2023-05-11 22:14:58 +00:00
TLBookmarkUtil.test.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
TLDrawTool.test.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
TLEraserTool.test.ts [feature] `check-box` geo shape (#1330) 2023-05-09 13:32:04 +00:00
TLFrameTool.test.ts [feature] ui events (#1326) 2023-05-11 22:14:58 +00:00
TLGeoTool.test.ts [feature] ui events (#1326) 2023-05-11 22:14:58 +00:00
TLHandTool.test.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
TLLineTool.test.ts [feature] ui events (#1326) 2023-05-11 22:14:58 +00:00
TLNoteTool.test.ts [feature] ui events (#1326) 2023-05-11 22:14:58 +00:00
TLSelectTool.test.ts [fix] Don't synchronize isReadOnly (#1396) 2023-05-17 10:45:43 +00:00
TLTextTool.test.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
TLZoomTool.test.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
cropping.test.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
drawing.test.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
frames.test.ts [feature] `check-box` geo shape (#1330) 2023-05-09 13:32:04 +00:00
groups.test.ts [fix] Don't synchronize isReadOnly (#1396) 2023-05-17 10:45:43 +00:00
panning.test.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
resizing.test.ts [feature] `check-box` geo shape (#1330) 2023-05-09 13:32:04 +00:00
rotating.test.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
select.test.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
styles.test.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
text.test.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
translating.test.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00