codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

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

Open jasdeepkhalsa opened this issue 4 years ago • 2 comments

🌈 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!

jasdeepkhalsa avatar Dec 01 '21 00:12 jasdeepkhalsa

Thanks for another detailed feature request @jasdeepkhalsa - I've added this to our internal board as well

JamesACS avatar Dec 02 '21 12:12 JamesACS

It would be awesome if you could also specify the default preview url for the embedded view. That way you can embed the same repository several times on a single page with different starting preview urls

EricMcWinNer avatar Sep 08 '23 02:09 EricMcWinNer