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 Request: Persistent Configuration Settings #279

Open
LakshmanKishore opened this issue Jan 8, 2024 · 2 comments
Open

Feature Request: Persistent Configuration Settings #279

LakshmanKishore opened this issue Jan 8, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@LakshmanKishore
Copy link
Contributor

Is your feature request related to a problem?
The current implementation resets all configuration settings to default upon page refresh. This can be inconvenient for users who wish to retain their customized settings.

Describe the solution you'd like
Implement a mechanism to persistently store user configuration settings using localStorage. This way, when users make changes to the configuration, the settings will be saved locally and loaded on page reload.

Describe alternatives you've considered
The alternative is to manually set configurations every time the page is refreshed, which is not user-friendly.

Additional context

  • Utilize the browser's localStorage to store configuration settings.
  • Implement event listeners to capture changes in configuration and update the localStorage.
  • On page load, check for saved settings in localStorage and apply them.

Benefits

  • User Convenience: Users won't have to reconfigure settings every time they visit the page.
  • Improved User Experience: Enhances the overall user experience by providing a seamless and personalized interaction.

Steps to Reproduce

  1. Visit the live preview
  2. Set custom configurations (e.g., text, color, font).
  3. Refresh the page.
  4. Observe that configurations are reset to default.
@LakshmanKishore LakshmanKishore added the enhancement New feature or request label Jan 8, 2024
@DenverCoder1
Copy link
Owner

Not exactly the same, but I just implemented in #311 a way to restore parameters from the URL, so if there is a configuration you want to retain, you can save or bookmark the permalink to it and continue working from it by opening the link later.

@LakshmanKishore
Copy link
Contributor Author

I'm not sure if this is a good solution,
If we cannot store it in localStorage and access it.
Then we can update the URL every time some configuration has changed so that even on the page refresh, user will be able to restore the previous configuration.

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

No branches or pull requests

2 participants