-
Notifications
You must be signed in to change notification settings - Fork 193
feat: load canvas backups menu #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Added CanvasBackup model to store user canvas backups. - Implemented backup creation based on user activity and defined intervals. - Enhanced existing functions to manage user activity timestamps and cleanup processes.
- Introduced a new endpoint to retrieve the most recent canvas backups for authenticated users. - Implemented logic to limit the number of backups returned based on a maximum configured value. - Enhanced the canvas router with JWT decoding to identify the user associated with the backups.
- Implemented CanvasBackups component to display recent canvas backups. (!backups) - Added API hooks for fetching backups and restoring selected backups. - Enhanced the pad module to include CanvasBackups and its styles.
- Changed title from "Recent Canvas Backups" to "Canvas Backups" for clarity. - Enhanced backup restoration confirmation message to include backup index. - Updated styles for improved visual consistency, including background colors, padding, and hover effects. - Added new elements for displaying backup numbers alongside timestamps. - Improved overall layout and animations for a better user experience.
- Updated the menu item titles for clarity and consistency.
- Added BackupsModal component to display and manage canvas backups. - Integrated state management for modal visibility and exit animations. - Created corresponding SCSS styles for the modal, ensuring a cohesive design. - Updated MainMenu to include the BackupsModal, enhancing user experience with backup management options.
- Deleted the CanvasBackups component and its associated files to streamline the codebase. - Updated the MainMenu to use the new BackupsDialog component for managing canvas backups. - Introduced new styles for the BackupsDialog to enhance the user interface and experience.
- Added normalizeCanvasData function to standardize canvas data by removing width and height properties and resetting collaborators. - Updated App and BackupsDialog components to utilize the new utility for consistent canvas data normalization during scene updates.
- Removed the Canvas Backups item and replaced it with a Load backup... option for clarity. - Introduced a new View group in the MainMenu, consolidating related items such as Toggle grid, View mode, and Zen mode for better organization.
- Added BackupsModal component to ExcalidrawWrapper for managing canvas backups. - Updated MainMenuConfig to include handlers for showing and closing the BackupsModal. - Enhanced styles for the AuthDialog and BackupsModal to improve UI consistency. - Adjusted BackupsModal properties for better user interaction, including size and close behavior.
…sistency - Refined styles in AuthDialog.scss to enhance the layout and structure of the authentication modal. - Expanded BackupsDialog.scss with new styles for better padding, margins, and hover effects, ensuring a cohesive design. - Adjusted BackupsModal component size for improved user interaction and visual appeal.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a new feature allowing users to load backups of their canvas:
