OpenVAA / voting-advice-application

An open-source platform for creating Voting Advice Applications (VAAs)
https://openvaa.org/en
GNU General Public License v3.0
10 stars 0 forks source link

feat: consider expiring UserSettings after a given time #503

Open kaljarv opened 6 months ago

kaljarv commented 6 months ago

User preferences, including data collection consent, feedback given and survey answered, are stored by stores.ts in a locally persistent store together with a date.

The dates are currently not used to expire these settings, but it might be good for them to expire after a given time.

All locally stored settings can be reset by using the appVersion.requireUserDataVersion setting, which is handled by stores.getItemFromLocalStorage().