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

add allo version switch button to the footer #2895

Merged
merged 5 commits into from
Feb 7, 2024

Conversation

gravityblast
Copy link
Contributor

@gravityblast gravityblast commented Feb 6, 2024

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 is development (local and staging-preview environments), config.allo.version is overridden with a value set in localStorage (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.

@gravityblast gravityblast requested review from a team as code owners February 6, 2024 19:59
Copy link

vercel bot commented Feb 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
builder ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2024 9:17pm
builder-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2024 9:17pm
explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2024 9:17pm
explorer-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2024 9:17pm
manager ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2024 9:17pm
manager-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2024 9:17pm

Copy link

gitstream-cm bot commented Feb 6, 2024

This PR is 90.69767441860465% new code.

Copy link
Contributor

@bhargavaparoksham bhargavaparoksham left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link

gitstream-cm bot commented Feb 7, 2024

🥷 Code experts: carlbarrdahl, codenamejason

carlbarrdahl, codenamejason have most 👩‍💻 activity in the files.
carlbarrdahl, thelostone-mc have most 🧠 knowledge in the files.

See details

packages/builder/tailwind.config.js

Activity based on git-commit:

carlbarrdahl codenamejason
FEB
JAN
DEC
NOV
OCT
SEP

Knowledge based on git-blame:

packages/common/src/components/Footer.tsx

Activity based on git-commit:

carlbarrdahl codenamejason
FEB 6 additions & 1 deletions
JAN
DEC
NOV
OCT
SEP

Knowledge based on git-blame:
thelostone-mc: 75%

packages/common/src/config.ts

Activity based on git-commit:

carlbarrdahl codenamejason
FEB 16 additions & 0 deletions
JAN
DEC
NOV
OCT
SEP

Knowledge based on git-blame:

packages/grant-explorer/src/features/common/DefaultLayout.tsx

Activity based on git-commit:

carlbarrdahl codenamejason
FEB
JAN 26 additions & 4 deletions
DEC
NOV 2 additions & 2 deletions
OCT 26 additions & 0 deletions
SEP

Knowledge based on git-blame:
carlbarrdahl: 100%

To learn more about /:\ gitStream - Visit our Docs

@gravityblast gravityblast merged commit e4160fe into main Feb 7, 2024
20 checks passed
@gravityblast gravityblast deleted the allo-version-switch-button branch February 7, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants