-
Type:
Story
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Data Explorer
-
None
Add a checkbox to the restore tab modal that allows a user to remember their preference (e.g. "Do not show this again").
If the checkbox is checked when the user dismisses the modal, we should save their preference to PreferencesStorage under a new field (e.g. `enableRestoreWorkspaces`). We should add the field here: https://github.com/mongodb-js/compass/blob/29dae920d1fcce03b41e56f5bef12c843e465e69/packages/compass-preferences-model/src/preferences-schema.tsx#L326
Then, each time a user reopens Compass (/Web), we need to query PreferencesStorage to check the value of this preference. Based on this value, we decide whether or not to show the restore tabs modal.
We also need to add a new setting to the preferences UI so that a user can undo their preference. Namely, if the user previously selected the checkbox to make the restore tabs modal stop appearing, they need a way to make the modal start showing up again if they change their mind later