-
Notifications
You must be signed in to change notification settings - Fork 168
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
add allo version switch button to the footer #2895
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This PR is 90.69767441860465% new code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
🥷 Code experts: carlbarrdahl, codenamejason carlbarrdahl, codenamejason have most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame: To learn more about /:\ gitStream - Visit our Docs |
This PR allows to switch the Allo version configuration at runtime in the front-end.
It adds a switch button to the footer that save an ovverride variable in local storage and reloads the page.
The default allo version is set as an environment variable and parsed to
config.allo.version
.Only when
REACT_APP_ENV
isdevelopment
(local and staging-preview environments),config.allo.version
is overridden with a value set inlocalStorage
(configOverrides["allo-version"]
).Clicking on the switch buttons toggles the version in local storage and reload the page allowing us to test with the other version.