This pull request introduces a comprehensive timeline and undo/redo functionality to the Jupyter Collaboration project. The primary goal of this feature is to enhance the collaborative experience by allowing users to track changes, restore previous versions of documents, and seamlessly undo or redo actions.
Key Features:
Timeline Slider Component:
Added a component (TimelineSliderComponent) that provides an interactive slider to navigate through the history of document changes.
The slider fetches and displays timestamps of changes, allowing users to select specific versions of the document and to restore them if needed.
Document Forking and Restoration:
Implemented functions to fork the current state of the document and create new versions.
Users can restore the document to any previous state using the restore mode.
Undo/Redo Management:
Integrated UndoManager to handle undo and redo operations for document edits.
Users can perform multiple undo/redo actions to revert or reapply changes.
API Enhancements:
Extended the existing API to support timeline fetching and document restoration.
Introduced new endpoints for creating document forks and managing undo/redo operations.
Notifications:
Implemented user notifications to provide feedback on actions such as successful document restoration or errors.
Usage:
Accessing the Timeline:
Click on the history icon in the status bar to open the timeline slider.
Use the slider to navigate through different versions of the document.
Restoring a Version:
Select a desired timestamp from the slider and click the "Restore version" button to revert the document to the selected state.
A notification will confirm the successful restoration or display an error if the operation fails.
Undo/Redo Actions:
Use the timeline slider to perform undo/redo operations by moving back and forth between timestamps.
Note: The timeline is tested with various document types, including notebooks and files in different directory structures and also YJCad files of JupyterCAD.
Description:
This pull request introduces a comprehensive timeline and undo/redo functionality to the Jupyter Collaboration project. The primary goal of this feature is to enhance the collaborative experience by allowing users to track changes, restore previous versions of documents, and seamlessly undo or redo actions.
Key Features:
TimelineSliderComponent
) that provides an interactive slider to navigate through the history of document changes.restore
mode.Usage:
Note: The timeline is tested with various document types, including notebooks and files in different directory structures and also YJCad files of JupyterCAD.
Here is a demo of the functionality