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

x/playground: store code between sessions in user's browser #28476

Closed
ysmolski opened this issue Oct 29, 2018 · 4 comments
Closed

x/playground: store code between sessions in user's browser #28476

ysmolski opened this issue Oct 29, 2018 · 4 comments
Labels
FrozenDueToAge NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone

Comments

@ysmolski
Copy link
Member

ysmolski commented Oct 29, 2018

What do you think about adding this feature?

The most recently entered code will be automatically saved in your browser's local storage. This allows you to recover your last work even if you close the browser.
https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API

What puzzles and prevents me from drafting a patch is a need to add a new button for resetting the program code.

@andybons @bradfitz

@ysmolski ysmolski added the NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made. label Oct 29, 2018
@ysmolski ysmolski added this to the Unreleased milestone Oct 29, 2018
@andybons
Copy link
Member

I don’t think adding another caching layer to the playground (that we don’t control and is pretty opaque) is worth it. Without the proper UI it would be very confusing to have things saved in perpetuity using localStorage. Aside from this issue, has this been reported as a common problem people run into? I worry that it’s a solution in search of a (more widespread) problem.

@ysmolski
Copy link
Member Author

This was rather brainstorming and seeing if this resonates with the others. The other day I was editing the code in playground and suddenly closed the tab, losing some work. But again, this happened only twice and playground is like a throw away sketch pad for many.

Unless this bug attracts attention of some part of community, I will close it in 2 weeks.

@andybons
Copy link
Member

SGTM. Thanks, Yury.

@ysmolski ysmolski self-assigned this Oct 31, 2018
@ysmolski
Copy link
Member Author

Closing it down due the lack of resonance.

@golang golang locked and limited conversation to collaborators Nov 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Projects
None yet
Development

No branches or pull requests

3 participants