Tldraw/assets
Taha 4dab25be57
Open share menu when navigating from create new shared project button (#3898)
This PR ensures that the share menu is open when navigating from the
create new shared project button.

This could be achieved by calling ```editor.addOpenMenu('share-menu')```
after ```navigate('/new')``` , but that opens the menu on the local
editor first so you get a flash of that before the multiplayer editor
loads.

Instead I've used the state prop on the Navigate component/function to
pass a property called shouldOpenShareMenu.

If the user presses the back button to return to the local editor
instance then the open state of the share menu is preserved, which is
actually something we don't want in this case. Not sure how to deal with
that without adding a ton more complexity, is it worth it?

### Change Type

<!--  Please select a 'Scope' label ️ -->

- [ ] `sdk` — Changes the tldraw SDK
- [x] `dotcom` — Changes the tldraw.com web app
- [ ] `docs` — Changes to the documentation, examples, or templates.
- [ ] `vs code` — Changes to the vscode plugin
- [ ] `internal` — Does not affect user-facing stuff

<!--  Please select a 'Type' label ️ -->

- [ ] `bugfix` — Bug fix
- [ ] `feature` — New feature
- [x] `improvement` — Improving existing features
- [ ] `chore` — Updating dependencies, other boring stuff
- [ ] `galaxy brain` — Architectural changes
- [ ] `tests` — Changes to any test code
- [ ] `tools` — Changes to infrastructure, CI, internal scripts,
debugging tools, etc.
- [ ] `dunno` — I don't know


### Test Plan

1. Click create new shared project from the file menu
2. Share menu should open after navigating to the new room

### Release Notes

- Open share menu when navigating from the create new shared project
button.

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2024-06-10 08:15:55 +00:00
..
embed-icons Add desmos graph embed type (#3608) 2024-04-27 12:30:58 +00:00
fonts Use custom font (#2343) 2023-12-19 14:17:45 +00:00
icons/icon share: make share/fork/copy actions clearer (#3846) 2024-06-03 08:42:08 +00:00
translations Open share menu when navigating from create new shared project button (#3898) 2024-06-10 08:15:55 +00:00
card-repo.png Update README (#2444) 2024-01-10 14:58:44 +00:00
card_repo.svg Update README (#2444) 2024-01-10 14:58:44 +00:00
github-hero-dark-draw.png transfer-out: transfer out 2023-04-25 12:01:25 +01:00
github-hero-dark.png transfer-out: transfer out 2023-04-25 12:01:25 +01:00
github-hero-light-2.png Change licenses to tldraw (#2167) 2023-12-19 10:41:01 +00:00
github-hero-light-draw.png transfer-out: transfer out 2023-04-25 12:01:25 +01:00
github-hero-light.png transfer-out: transfer out 2023-04-25 12:01:25 +01:00
github-hero_dark-2.png Change licenses to tldraw (#2167) 2023-12-19 10:41:01 +00:00