scorelab / Codelabz

Codelabz
Apache License 2.0
144 stars 409 forks source link

Feat/enhancing quill as requested in feat #1131 #1152

Open nakul30 opened 7 months ago

nakul30 commented 7 months ago

Feat : Enhanced Saving Mechanisms in QuillEditor i.e. Debouncing, Manual Trigger, and Popup Reminders Issue number #1131

Description

Delayed Saving (Debouncing): Introduce a delayed saving mechanism (debouncing) so that the save operation is not triggered immediately on each change. We can set a delay of anywhere between 1-15 seconds, ensuring that the save operation is performed only after a period of inactivity. Manual Save Trigger: Provided ctrl+S that triggers the save operation. Popup Reminder: Utilizing the popup mechanism introduced in the PR https://github.com/scorelab/Codelabz/pull/1130 to display a reminder when changes are not saved. This can serve as a visual prompt, encouraging users to manually save their work.

Motivation and Context

This Feature enhances the functioning of QuillEditor

A combination of delayed saving, manual triggers, and popup reminders could provide users with flexibility and control over the saving process while mitigating unnecessary Firestore calls. Adjusting the delayed saving time can further optimize the user experience.

Screenshots or GIF (In case of UI changes):

https://github.com/scorelab/Codelabz/assets/96560834/d54f6d9c-4114-4f05-9f1b-66ad7d532a39

Types of changes

Checklist: