Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Add page to manage cookie preferences #1213

Merged
merged 1 commit into from Jan 22, 2021
Merged

Conversation

TaiWilkin
Copy link
Contributor

Overview

Gives the user the option to access a cookies preferences page where
they can choose to change the opt in or out preference that they set
when first visiting OAR.

Connects #1191

Demo

Screen Shot 2021-01-21 at 9 05 07 AM

Screen Shot 2021-01-21 at 9 21 46 AM

Testing Instructions

  • Checkout this branch and run ./scripts/server
  • Login and navigate to the user profile
  • Open the local storage and view the current settings. Click the approve/reject button.
  • The settings in local storage should be updated, and the button should toggle approve/reject.

Checklist

  • fixup! commits have been squashed
  • CI passes after rebase
  • CHANGELOG.md updated with summary of features or fixes, following Keep a Changelog guidelines

@jwalgran
Copy link
Contributor

Looking at this now.

Copy link
Contributor

@jwalgran jwalgran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straightforward, working implementation. I suggested DRYing it up a bit.

Comment on lines 60 to 72
<div>
The Open Apparel Registry uses cookies to collect and analyze
site performance and usage. By clicking the Accept button, you
agree to allow us to place cookies and share information with
Google Analytics. For more information, please visit our{' '}
<a
href="https://info.openapparel.org/tos/"
target="_blank"
rel="noopener noreferrer"
>
Terms and Conditions of Use and Privacy Policy.
</a>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider extracting this tex into a component that can be used both here and in GDPRNotification.jsx. If we need to update this language in the future it will eliminate the possibility of accidentally updating it in one place and not another.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call! Thank you for the review!

@jwalgran jwalgran assigned TaiWilkin and unassigned jwalgran Jan 21, 2021
Gives the user the option to access a cookies preferences page where
they can choose to change the opt in or out preference that they set
when first visiting OAR.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants