codesandbox / codesandbox/codesandbox-client

Data Loss occurs when mobile layout is used

Open
#6,287 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

Description of the problem

The default view on smaller computers does not save ANY code. Even though it allows you to type 100's of lines of syntax highlighted code.

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

I have lost hours of work because of this bug.

To Reproduce
  1. Open a public sandbox that you have edit access to on a phone
  2. Start editing a file, for two hours while your car is being worked on
  3. When done close the tab, cry as you witness all your changes vanish

What happened

Mobile view is semi read-only, you can edit, but it won't save anything.

What should have happened

Either, show the normal editor, especially if I'm logged in and own the Sandbox.
Or, Show a big red warning that changes are not saved, and prevent closing the tab if the user will lose work.

Your Environment
Software Name/Version
Сodesandbox latest
Browser Chrome
Operating System Android on Galaxy Fold 3

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

No source file or test is identified in the issue. Start by reproducing the mobile editing flow on an Android phone with a public sandbox, then trace why edits are not saved after closing the tab. Done means mobile edits persist, or the interface clearly warns users and prevents losing unsaved work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.