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

chore: replace localstorage with cache #1257

Merged
merged 4 commits into from
Oct 21, 2024

Conversation

dgarcia360
Copy link
Collaborator

@dgarcia360 dgarcia360 commented Oct 15, 2024

Closes #1230

Closes #1231

This update switches from using local storage to cookies for storing user preferences across different domains. Additionally, it ensures that system preferences for dark mode are respected.

By definition, cookies are shared between domains, whereas local storage is not.

How to test

Testing locally can be challenging since we don't have two projects using the updated theme. However, you can verify that preferences for the dark theme and the expanded bar are retained across domains using the same theme. You can also manually define the dark theme preference in Chrome using this guide.

To perform this test, ensure you're in incognito mode with a clean cache.

@dgarcia360 dgarcia360 force-pushed the dark-keep-preference branch from de35f0d to 93f6d9d Compare October 18, 2024 15:46
@dgarcia360 dgarcia360 marked this pull request as ready for review October 18, 2024 15:48
@annastuchlik
Copy link
Collaborator

Looks good. Let's release this fix and test it on other projects once the conflicts are resolved in this PR.

@dgarcia360 dgarcia360 merged commit 0ca3088 into scylladb:master Oct 21, 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
2 participants