carteb / carte-blanche

An isolated development space with integrated fuzz testing for your components. See them individually, explore them in different states and quickly and confidently develop them.
https://www.youtube.com/watch?v=6g3-TQ6aaw8
MIT License
1.5k stars 47 forks source link

Add autosave indicator #305

Closed mxstbr closed 8 years ago

mxstbr commented 8 years ago

We should have an indicator (similar to the Medium editor) that tells people when we're autosaving/that we've autosaved.

nikgraf commented 8 years ago

We can show the indicator right away and wait 500ms for fading out. This way it doesn't blink up for every character you type.

I suggest to have a green little box saying Saved … with position absolute at the top/right.ghts

@mxstbr thoughts?

mxstbr commented 8 years ago

Sure

lithin commented 8 years ago

We could throttle it instead? I'll see how complicated that would be :)

mxstbr commented 8 years ago

Not much, I think.

If you want to give this a shot, all the relevant code is in plugins/react/components/PlaygroundList.js, specifically you'd want to look at adding another property to the state and the changeVariation and persistVariation methods!

lithin commented 8 years ago

Awesome thanks!

nikgraf commented 8 years ago

done by @lithin 🙌