codesandbox / codesandbox/codesandbox-client

Repo imported from github org as sandbox template does not display images

Open
#8,603 0 comments 0 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

🐛 bug report

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project
    adheres to.
  • I have searched the issue tracker for an issue that matches the one I want
    to file, without success.

Description of the problem

Hi. I ran into an issue creating sandbox templates in a workspace that contain images when imported from a GitHub Org. The problem is, that the images are not displayed.
If the repo is in my own account it works.

How has this issue affected you? What are you trying to accomplish?

I was trying to create templates for my students.

To Reproduce
  • Go to dashboard
  • click on button "github-icon import"
  • select last option "import template"
  • paste into form field "input placeholder GitHub URL ..." https://github.com/hbk-bs/the-archive
  • click onto "open URL"

Opens sandbox preview should show a page that looks like this:

error-sandbox

But it looks like this:

error-sandbox-in-editor

Link to sandbox: https://codesandbox.io/p/sandbox/github/hbk-bs/the-archive
Your Environment
Software Name/Version
Сodesandbox ???

macOS: 14.6.1

  • Firefox Developer Edition 131.0b4 (aarch64)
  • Brave Version 1.69.162 Chromium: 128.0.6613.120 (Official Build) (arm64)
  • Chrome Version 128.0.6613.137 (Official Build) (arm64)

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

Start at the dashboard GitHub import flow and reproduce the problem with https://github.com/hbk-bs/the-archive, then compare the imported sandbox with the linked preview and screenshots. Trace how image references are handled for organization repositories; done means images display in the sandbox preview and editor for an org-imported template without breaking imports from personal accounts.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.