-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
5
-
ODC Sprint 192, ODC Sprint 193
Description
As a user, I want the console to save my settings such that upon returning to the console on another device or browser, my settings are restored.
The purpose of this story is to make saving and restoring user settings easy for the developer.
Acceptance Criteria
- utility that can fetch user settings from the backend
- utility that can save user settings to the backend
- api to retrieve and store individual settings
- user settings should be loaded only once.
- Further discussion on the need to "watch" the user settings may change this AC
- Multiple requests to save settings in a short timeframe should be batched
Additional Details:
- Implementation ideas for hook:
Hook to get and set an individual user setting. Abstraction over browser storage and persisted storage.
useUserSettings = (key: string, defaultValue: string): [string, (value: string) => void];
const [value, setValue] = useUserSettings(key, defaultValue);