www.fgks.org   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist Yearly Reading Goals banner preferences #8892

Merged
merged 4 commits into from
Mar 20, 2024

Conversation

QuantuM410
Copy link
Contributor

Closes #8814

Technical

This PR addresses the issue where the Yearly Reading Goal banner reappears upon each login. The solution involves persisting the banner preference on the User, preventing the banner from displaying every time a user logs in.

Testing

  • Dismiss the "Your Reading Goal" banner
  • You can monitor browser storage for the respective cookie starting with "yrg" stored locally
  • Remove the cookies or open another browser
  • Log in and check the "yrg" cookies being stored as per the user preference leading to no display of the YRG banner

Screenshot

Stakeholders

@jimchamp

@jimchamp jimchamp changed the title Issue/#8814 Persist Yearly Reading Goals banner preferences Mar 11, 2024
Copy link
Collaborator
@jimchamp jimchamp left a comment

Choose a reason for hiding this comment

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

Thanks, @QuantuM410!

Just a few small changes and this will be ready to merge.

openlibrary/plugins/openlibrary/api.py Outdated Show resolved Hide resolved
openlibrary/plugins/upstream/account.py Outdated Show resolved Hide resolved
openlibrary/plugins/upstream/account.py Outdated Show resolved Hide resolved
@QuantuM410
Copy link
Contributor Author

@jimchamp I have updated the code with the required changes, Thanks :)

Copy link
Collaborator
@jimchamp jimchamp left a comment

Choose a reason for hiding this comment

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

Lgtm! Thanks, @QuantuM410

@jimchamp jimchamp merged commit 0f19a3c into internetarchive:master Mar 20, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't show the Yearly Reading Goal banner every login
2 participants