Refactor localStorage to use functionality returned by a single function, rather than registering keys plugin-style when modules are loaded.
This avoids errors when a module tries to read a key when the module defining the key has not yet been imported.
Important Notes
None
Testing Instructions
Make sure local storage keys are loaded and saved as appropriate:
ToS and Privacy Policy modal should not reappear on reload
Displayed columns
Sidebar open state
Local root directory
Extra local root directories
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
[x] The documentation has been updated, if necessary.
[x] Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
[x] All code follows the
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
[x] Unit tests have been written where possible.
[x] ~~If meaningful changes were made to logic or tests affecting Enso Cloud integration in the libraries,
or the Snowflake database integration, a run of the Extra Tests has been scheduled.~~
If applicable, it is suggested to paste a link to a successful run of the Extra Tests.
Pull Request Description
localStorage
to use functionality returned by a single function, rather than registering keys plugin-style when modules are loaded.Important Notes
None
Testing Instructions
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
The documentation has been updated, if necessary.Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.Unit tests have been written where possible.If applicable, it is suggested to paste a link to a successful run of the Extra Tests.