Skip to content
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

Feature: Save the diagram on localStorage, add export/import diagram #29

Closed
rubenmate opened this issue Jun 4, 2024 · 1 comment · Fixed by #40
Closed

Feature: Save the diagram on localStorage, add export/import diagram #29

rubenmate opened this issue Jun 4, 2024 · 1 comment · Fixed by #40
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@rubenmate
Copy link
Owner

rubenmate commented Jun 4, 2024

Background:

The app state is volatile, when the page is refreshed it will start over.

Goal:

Implement a feature that saves the diagram to localhost so when the page is refreshed it will check if there is something there and load it.
This allows to import diagrams imported as JSON.

Proposed Solution:

Save the diagram structure in localhost. When the component is mounted check if there is a diagram saved and load it.
Add export/import buttons to export/import the diagram as JSON.

@rubenmate rubenmate added enhancement New feature or request important Important issue that should be top priority labels Jun 4, 2024
@rubenmate rubenmate added this to the Sprint 4 milestone Jun 4, 2024
@rubenmate rubenmate self-assigned this Jun 4, 2024
@rubenmate rubenmate removed the important Important issue that should be top priority label Jun 20, 2024
@rubenmate
Copy link
Owner Author

rubenmate commented Jul 3, 2024

I have also added buttons to export/import the diagram as JSON.

@rubenmate rubenmate changed the title Feature: Save the diagram on localhost Feature: Save the diagram on localhost, add export/import diagram Jul 3, 2024
@rubenmate rubenmate linked a pull request Jul 4, 2024 that will close this issue
@rubenmate rubenmate changed the title Feature: Save the diagram on localhost, add export/import diagram Feature: Save the diagram on localStorage, add export/import diagram Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant