Commit f0dedc7
authored
feat(dotcom): update default welcome template content (tldraw#9272)
In order to refresh the content new tldraw.com workspaces are seeded
with, this PR re-exports the committed default welcome snapshot from the
staging "workspace template" board. The new canvas is a workspace
onboarding walkthrough — creating a workspace, what a workspace is,
inviting your team with an invite link, moving files into a workspace,
pinning files, and managing members (roles, removing people) — replacing
the previous three-panel comic.
This default is only used for a fresh workspace's first file when no
file has been marked as the welcome template (fresh dev/preview/prod).
Once an admin marks a welcome-template file, its published snapshot
supersedes this default.
The snapshot is the baked JSON of a `RoomSnapshot`, exported via
`editor.store.serialize('document')` and scrubbed of authoring identity
(no `user` records). The first-viewport bounds check in
`welcome.test.ts` is widened (`x < 1550`, `y < 1050`) to fit the new
design's larger extent, since new files open at the default camera with
no zoom-to-fit.
### Change type
- [x] `improvement`
### Test plan
1. On a fresh workspace (no welcome template marked), create a new file
and confirm it opens seeded with the new onboarding board, content
visible at the default camera.
- [x] Unit tests
### Code changes
| Section | LOC change |
| --------------- | ------------ |
| Tests | +2 / -2 |
| Apps | +4308 / -997 |
### Release notes
- Update the default welcome content new tldraw.com workspaces are
seeded with.1 parent 9ec2308 commit f0dedc7
3 files changed
Lines changed: 4321 additions & 1010 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments