readme-typing-svg
readme-typing-svg copied to clipboard
Feature Request: Persistent Configuration Settings
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
localStorageto store configuration settings. - Implement event listeners to capture changes in configuration and update the
localStorage. - On page load, check for saved settings in
localStorageand 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
- Visit the live preview
- Set custom configurations (e.g., text, color, font).
- Refresh the page.
- Observe that configurations are reset to default.
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.
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.