Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Loss After Page Navigation in Asynchronous Programming Exercise on DartPad #3043

Open
babinnepali opened this issue Aug 17, 2024 · 2 comments
Labels
type-enhancement A request for a change that isn't a bug type-ux A user experience or user interface related issue

Comments

@babinnepali
Copy link

Change Intent

To improve the user experience by ensuring that code written in DartPad during exercises is preserved even after navigating to external links or other documentation pages.

Justification

Losing code when navigating between pages can be frustrating and disrupts the learning process. Preserving the user's work in DartPad will make the learning experience more productive and less frustrating.

Impact

This change will enhance the usability of DartPad in documentation exercises by preventing loss of code, leading to a more seamless and productive learning experience.

Mitigation

To mitigate the issue, consider auto-saving the code in DartPad when a user navigates away from the page, or warn users before they leave the page that their code will be lost if they proceed.

Change Timeline

Since this is an enhancement rather than a deprecation, an immediate or near-future implementation would be ideal to improve user experience.

Associated CLs

This is a new issue being reported, so there may not be any associated CLs yet.

@dart-github-bot
Copy link

Summary: Users are losing their code in DartPad when navigating to external links or other documentation pages during asynchronous programming exercises. This disrupts the learning process and makes the experience frustrating.

@dart-github-bot dart-github-bot added the type-enhancement A request for a change that isn't a bug label Aug 17, 2024
@lrhn lrhn transferred this issue from dart-lang/sdk Aug 18, 2024
@lrhn lrhn added the type-ux A user experience or user interface related issue label Aug 18, 2024
@lrhn
Copy link
Member

lrhn commented Aug 18, 2024

I too have lost code to mistaken clicks, like pressing "back" accidentally (didn't release Alt soon enough before pressing Left-cursor).

The "old DartPad" kept the current text in some local storage, so that navigating away from the page and then back would preserve the content. Don't know if it was a cookie or a database, also doesn't matter, as long as it's the current text when I get back to the page.

I used to like prototyping in DartPad, for the quick turnaround, but I've started to avoid using it because of the risk of losing work. Definite UX degradation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug type-ux A user experience or user interface related issue
Projects
Status: In review
Development

No branches or pull requests

5 participants