codesandbox / codesandbox/codesandbox-client
More embed query params like "?view=editor" added to the main sandbox editor
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🌈 More embed query params like "?view=editor" added to the main sandbox editor
It would be extremely useful to share a sandbox URL with a guest / collaborator that:
- Starts with only the code editor visible and preview pane collapsed e.g. https://codesandbox.io/s/crazy-spence-c25y6?
view=editor - Starts with multiple tabs already open which I've specified, the settings sidebar hidden (this is a new query param I am suggesting for both the embed and the main sandbox editor) and the preview pane is collapsed too e.g. https://codesandbox.io/s/crazy-spence-c25y6?
view=editor&module=/package.json,/index.html&hidesidebar=1
In summary, I believe the following query params (in order of priority) would be really useful for the main sandbox editor, borrowed from the embed editor:
view-editor,split(default) orpreviewhidesidebar(this is a new query param I am suggesting for both the embed and the main sandbox editor) -0(default) or1module- paths to module(s) (starting with/and comma separated) or entry path (default)
Please thumbs up this feature if you would like to see it get implemented!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests, so start by locating the main sandbox editor and the existing embed query-parameter handling. Verify how view, module, and hidesidebar should affect the editor and preview layout, then confirm the documented URL examples work for the requested states.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100