codesandbox / codesandbox/codesandbox-client

More embed query params like "?view=editor" added to the main sandbox editor

Open
#6,328 2 comments 2 reactions 0 assignees View on GitHub

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:

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) or preview
  • hidesidebar (this is a new query param I am suggesting for both the embed and the main sandbox editor) - 0 (default) or 1
  • module - 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.