as-ideas / oil

191 stars 56 forks source link

TV2DK-2493: Preserve CPC settings when navigating between views #268

Closed JeppeSigaard closed 4 years ago

JeppeSigaard commented 5 years ago

Related issue: https://github.com/as-ideas/oil/issues/256

Problem When navigating between default view and CPC view, the purpose settings will reset to advanced_settings_purposes_default from configuration, effectively reverting any user feedback. This may result in users experiencing unresponsive settings, where input does not propagate properly into the desired sections, which can potentially impact the end user's feeling of trust.

Solution Add a state-like, mutatable array, which will hold user input temporarily, while navigating between screens and store intended consent settings, regardless of on which screen the final consent is given.

Changes

Examples Changes in this PR will propagate into all demos. A production version is implemented on https://tv2.dk

JeppeSigaard commented 4 years ago

Closing for tidying my open PR's, feel free to re-open if needed.