Comments (23)
It's now possible to delete stuff via https://svelte.dev/apps
from sites.
'Delete' could just remove them from your list but leave the repl untouched? Sounds like the problem is noise in your repl list rather than actually needing a repl deleted specifically.
from sites.
Sorting alphabetically would be nice too.
from sites.
I can share codepens and delete it at will, I can share jsfiddle and delete it at will. jsfiddle and codepen allow you to create anon repls which you can share and cannot be deleted.
from sites.
from sites.
If deleting a saved REPL is a problem, maybe the function... hide in the list https://svelte.dev/apps?
Because it's really about getting this list right.
It can work like this:
- you click "hide" button
- a saved REPL turns gray and moves to the bottom of the list - regardless of the date when the saved REPL was updated
The code is still there, the REPL link is still working, Google is still indexing it.
And that's all. Is this a good compromise?
from sites.
Just to give my two cents to the discussion, and specially because I think svelte repl is an esential tool to showcase svelte, teach how it works, report issues, and brag about it with the rest of the frameworks:
- Don't do deletes in the databse, just hide it visually
if it's not really a problem to have all those dead repl hanging around, I'm ok with that - I guess the option two would be to just delete them, and leave everything as if it never existed
Unresolved questions:
Taking the first option, I would mark the "visually deleted" items as archived
- How to display hidden repls, in a custom section (needs design)? or just dim the repl?
After you log in and go to your saved apps you will only see the active repls (those which are not archived
) and a link with the see archived repls
next to Your apps
title
Once you click see archived repls
the link should turn into see active repls
, and only the archived repls should be listed
Another option would be to make a show archived repls
checkbox, initially unchecked, and only when you check it archived repls would appear right next to the rest of the repls.
- How do we let users unhide hidden repls? Do we need to?
When you are browsing active repls, an archive
link should appear next to each repl, and when you are browsing archived links there should be an unarchive
link next to each repl.
Optionally each repl could also have a delete
link, that would effectively delete it, in case we want to have both options (logical and physical delete, to name it somehow)
- How should we communicate that something will be hidden?
Not sure about this one, I can imagine the following options
- do nothing, just make the repl disappear from the repl list, it will appear in the list of archived repls
- confirmation box
Are you sure you want to archive this repl
- Floating
undo repl archive
link for a couple of seconds
I think the most comfortable one for the user would be the third option, although I guess it would be a bit harder to implement
from sites.
My main use case is that seeing all my old REPL's is a bunch of noise when I'm trying to find a specific one, so having the ability to hide/show them would be great, and maybe in the future being able to tag REPL's would be even better. And being able to create lists/groups/categories of REPL's would be even more better...er :-)
I wouldn't necessarily take completely deleting REPL's off the table, but make it tough to do so, which would require a explicit and extensive action by the author to delete the REPL.
from sites.
Being a noob myself, this are just my random thoughts and may not be accurate.
Have you considered that this requested feature would not be desirable in the context of a shared environment such as Svelte.dev where the examples on the REPL need to be accessible for others to view, and accidental erasure could lead to losing examples required for issue reports?
I don't yet know the structure of the REPL but, Would it be possible for you to simply delete the generated sub-directories on the command line to clean up on your forked version?
from sites.
Very True, I suppose its just a matter of building the desired feature tied to a user ID and a no-delete flag.
What I should have said is that with limited development resources, I guess it will depend on how many people see your feature request as being valuable enough before it will get attention.
from sites.
Another reason to be able to delete saved REPLs:
I don't know if it's a bug with the REPL, GitHub authentication, Firefox, or some combination of the three, but when I work on a single REPL, login, then save it a single time, I get the following in my saved apps list. Note: I named the app "Recursive" because I was testing out <svelte:self>
, not because I expected this result. It is pretty ironic though...
from sites.
I agree, the option to delete (or at least remove them from my own list) would be fantastic. I've accidentally hit save on the Hello World
REPL an embarrassing number of times...
That being said, maybe the Delete action should have some type of prompt in place: a kind of "ARE YOU SURE?" message to avoid accidental deletions as well.
from sites.
yep...we definitely need this feature....
Especially when we have duplicate Repls ...also named same ...🤷🏼♂️
from sites.
I think that with a fine warning message (ARE YOU SURE?) would be enough. If the owner of the repl decide to break existing references that's fine, as long as he is not doing it by accident. Moreover, the owner can alway edit the repl and leave it empty, so it's the same.
Another nice thing would be to add an Archive option, to take it out of your list but leave it there for references.
from sites.
...Or when the App.svelte is left empty, it should be removed.
from sites.
...Or when the App.svelte is left empty, it should be removed.
What I do is rename the title to empty.
from sites.
If I have a repl with private data in it, I want to be able to remove it from your server. This should be reason enough to allow people to delete their repls. If I add data, I should be able to remove it.
from sites.
Please svelte team, We need this! And the autosave, Why don't you make a better REPL interface?
from sites.
I tried to tackle this a few weeks ago. It wasn't hard to support deleting repls from the database. The main issue was that there isn't a clear consensus how should we fix this.
From the discussion, we know that:
- Don't do deletes in the database, just hide it visually (comment)
- ??
Unresolved questions:
- How should we communicate that something will be hidden?
confirm()
? Custom UI? - How do we let users unhide hidden repls? Do we need to?
- How to display hidden repls, in a custom section (needs design)? or just dim the repl?
Before one actually sends a PR for this, we need these questions resolved. Otherwise, we'll only get them answered when the PR is reviewed (and probably cause wasted work).
from sites.
FWIW - my $0.02 would be: keep it really simple at least at first:
- have a "Delete" button on the list
- present a big warning upon clicking
- done (including removing from DB)
At some point later we can think of more sophisticated stuff like archive/unarchive for example - if really needed.
from sites.
Note: We're currently migrating the site to https://github.com/sveltejs/sites through #78, which will be using a new backend at https://github.com/sveltejs/api.svelte.dev. If anyone wants to tackle this, I'd hold off until the PR is merged.
from sites.
FWIW - my $0.02 would be: keep it really simple at least at first:
- have a "Delete" button on the list
- present a big warning upon clicking
- done (including removing from DB)
At some point later we can think of more sophisticated stuff like archive/unarchive for example - if really needed.
This is simple but destructive, there is no walking that option back. I'd opt for just hiding it for now.
To do this we need to store some hidden/ viewable metadata along with the gist.
from sites.
Yes, perhaps it's better to go directly for the tagging option and handle deleted ones with an archived
tag.
The metadata to add could be a comma separated list of tags, and the ui could have an option to delete/undetele repls that would just add and remove the archived
tag.
from sites.
Related Issues (20)
- REPL user menu is inaccessible HOT 3
- REPL breaks when deleting attributes HOT 2
- Todo app layout broken in animate tutorial
- Improve the component-binding example HOT 2
- Double clicking a filename other than `App.svelte` then clicking the editing area erases all the component
- Add emmet to the Repl HOT 1
- Svelte pages with REPLs start draining significant resources on Firefox when left open for a while
- Svelte REPL component name crash
- Allow loading a local folder when working on the repl
- Blog light mode style has red subtext
- Svelte docs: ts-toggle button doesn't work HOT 2
- Copy button in code blocks scrolls with overflowing content
- REPL: Add `HTML Output` tab
- HN: add https://news.ycombinator.com/best
- Unify Svelte and SvelteKit Websites HOT 1
- REPL broken / stuck on "loading editor"
- Store Svelte version in REPL and add it to `/apps` links
- REPL: Rename of file without changing name clears the file contents
- REPL: "noop" is not exported by "https://unpkg.com/[email protected]/internal/index.js" HOT 2
- It Is Time To Redesign Svelte and SvelteKit Websites HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sites.