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

Expose UI version number in transcend.version #165

Merged
merged 5 commits into from
May 29, 2024

Conversation

eligrey
Copy link
Member

@eligrey eligrey commented May 25, 2024

@eligrey eligrey requested a review from a team May 25, 2024 03:51
Copy link

vercel bot commented May 25, 2024

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

Name Status Preview Comments Updated (UTC)
consent-manager-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2024 9:28pm

Copy link

height bot commented May 25, 2024

This pull request has been linked to and will mark 1 task as "Pending Deploy" when merged:

💡Tip: You can link multiple Height tasks to a pull request.

@eligrey eligrey changed the title Expose UI version number in transcend.version [WIP] Expose UI version number in transcend.version May 25, 2024
@anotherminh
Copy link
Member

What's the reasoning behind this PR? We don't publish ui versions independently of airgap so not sure this is useful...

@@ -91,7 +91,7 @@ export const build = async (
}
: undefined,
define: {
'process.env.version': JSON.stringify(
'process.env.VERSION': JSON.stringify(
Copy link
Member

Choose a reason for hiding this comment

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

why the casing change?

Copy link
Member Author

@eligrey eligrey May 29, 2024

Choose a reason for hiding this comment

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

best practice for env constants to prevent accidental mis-use (e.g. as a variable that can be assigned to)

anotherminh
anotherminh previously approved these changes May 29, 2024
@eligrey eligrey changed the title [WIP] Expose UI version number in transcend.version Expose UI version number in transcend.version May 29, 2024
@eligrey eligrey requested a review from anotherminh May 29, 2024 21:19
This reverts commit 4eafe04.
@eligrey
Copy link
Member Author

eligrey commented May 29, 2024

The reasoning behind this PR is to improve the debugging flow for UI bugs on customer sites so that we can immediately pinpoint their UI version.

@eligrey eligrey merged commit 95497b2 into main May 29, 2024
10 checks passed
@delete-merged-branch delete-merged-branch bot deleted the eligrey/expose-ui-version-number branch May 29, 2024 22:15
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