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

Fix/cookie env #561

Merged
merged 2 commits into from
Jun 9, 2021
Merged

Fix/cookie env #561

merged 2 commits into from
Jun 9, 2021

Conversation

henriquecbuss
Copy link
Member

What issue does this PR close

Closes N/A

Changes Proposed ( a list of new changes introduced by this PR)

  • Change cookie keys depending on environment (e.g. bespiral.user becomes bespiral.user.staging on staging, bespiral.user.demo on demo and stays as bespiral.user on prod)
  • Fix bug with Profile.Summary where users couldn't scroll the page when hovering over the profile picture on desktop

How to test ( a list of instructions on how to test this PR)

Before this PR, there was a bug where users who logged on prod would see an error when they'd go to staging or demo. The steps to reproduce that error:

  1. Clear all cookies from demo/staging and prod
  2. Log into prod
  3. Go to demo/staging, see error

Now, if you do this, you shouldn't see any errors. Note: because cookies behave differently on the netlify deploy, you should test this on staging (at the time of this writing, it's already deployed there)

Comment on lines +115 to +117
type PreventScroll
= PreventScrollOnMobile
| PreventScrollAlways
Copy link
Member

Choose a reason for hiding this comment

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

nice!

@henriquecbuss henriquecbuss merged commit 76dc087 into master Jun 9, 2021
@henriquecbuss henriquecbuss deleted the fix/cookie-env branch June 9, 2021 17:18
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.

2 participants