scribbler icon indicating copy to clipboard operation
scribbler copied to clipboard

Enhancement: Add Notebook Versioning System

Open adityasingh-0803 opened this issue 7 months ago • 11 comments

Allow users to:

Save versions of .jsnb notebooks.

View and restore previous versions.

Prevent accidental data loss or overwrite.

adityasingh-0803 avatar May 20 '25 17:05 adityasingh-0803

Can you provide details how you are going to do this.. will you have a button to create check point? will do checkpoints at a certain frequency? how will you show all the versions of a notebook in the UI?

this ia great feature if implmented well

gopi-suvanam avatar May 22 '25 06:05 gopi-suvanam

Provide details and you can start working on it

gopi-suvanam avatar May 22 '25 06:05 gopi-suvanam

Key Features: Save Versions: Store .jsnb snapshots manually or automatically.

View Versions: List all saved versions with timestamps.

Restore Versions: Revert to any saved version.

Prevent Data Loss: Users can recover from mistakes or overwrites.

How to Implement: Use IndexedDB (preferred) or localStorage for storing versions.

Add a "Save Version" button in the UI.

Create a "Version History" panel with options to restore/delete.

Each version stores: timestamp, notebook content, and optional name.

adityasingh-0803 avatar May 23 '25 08:05 adityasingh-0803

how will you save versions? will users have to click a save version button? or auto-save?

gopi-suvanam avatar May 23 '25 08:05 gopi-suvanam

Users will click a "Save Version" button to manually save notebook versions.

There will also be an optional auto-save toggle in settings to save versions automatically every few minutes or on notebook save.

Versions will be stored in IndexedDB with timestamp and content.

adityasingh-0803 avatar May 23 '25 10:05 adityasingh-0803

Ok.. this invloves changes in UI and Js both.. please do carefully and host your fork on githubpages os that i can thoroughly test before accepting PR

thanks

gopi-suvanam avatar May 24 '25 06:05 gopi-suvanam

@adityasingh-0803 are you working on this? please share a workign fork if you have made some progress thanks!

gopi-suvanam avatar Aug 01 '25 08:08 gopi-suvanam

sir didnt get the time will look once

adityasingh-0803 avatar Aug 04 '25 14:08 adityasingh-0803

I really want to work on this Can you assign me this Thank you!

Pratyushanand26 avatar Oct 10 '25 04:10 Pratyushanand26

Hi this is a big change . Can u host it on GitHub pages so that we can test thoroughly

You Can easily do by going to GitHub pages in settings

gopi-suvanam avatar Oct 11 '25 05:10 gopi-suvanam

live link->https://pratyushanand26.github.io/scribbler/

Pratyushanand26 avatar Oct 11 '25 05:10 Pratyushanand26