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

feat/1304 - Namadillo: Add commit hash to Settings, link to revision #1305

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

jurevans
Copy link
Collaborator

@jurevans jurevans commented Nov 22, 2024

Resolves #1304

For Namadillo & Namada Keychain, this PR adds the current Git revision to display in the respective settings view

  • Display short revision hash (8 characters) in Settings, link to commit on Github

NOTE

  • One alternative to linking is using the CopyToClipboard control for the full revision hash. I messed around with this, would work well, but also forces user to do more. I think at the least we should have the link, but maybe in the future offer the copy-to-clipboard in addition to it? Just a thought.

Screenshots

Namadillo:
Screen Shot 2024-11-22 at 12 29 32 PM

Namada Keychain:
Screen Shot 2024-11-22 at 12 28 43 PM

"preview": "vite preview",
"dev:local": "NODE_ENV=development NAMADA_INTERFACE_LOCAL=\"true\" yarn dev",
"dev:proxy": "VITE_PROXY=true && ./scripts/start-proxies.sh && yarn dev:local",
"build": "NODE_ENV=production && yarn wasm:build && vite build",
"build:only": "NODE_ENV=production && vite build",
"build": "NODE_ENV=production && yarn wasm:build && yarn git:hashes && VITE_GIT_SHORT=$(git rev-parse --short HEAD) VITE_GIT_LONG=$(git rev-parse HEAD) vite build",
Copy link
Collaborator

Choose a reason for hiding this comment

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

can't we use only yarn git:hashes && vite here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@euharrison that was the idea, but it doesn't work for me yet. Still a WIP, I will fix soon!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Unfortunately, I couldn't get the envs to pass from one script to another, so I simplified it to one var and included where necessary. I guess this is fine for now /shrug

@jurevans jurevans changed the title WIP: feat/1304 - Namadillo: Add commit hash to Settings, link to revision feat/1304 - Namadillo: Add commit hash to Settings, link to revision Nov 22, 2024
@jurevans jurevans force-pushed the feat/1304-git-hash-version branch from 67c65d8 to 3a9f693 Compare November 22, 2024 17:35
@jurevans jurevans merged commit dedcbc7 into main Nov 25, 2024
10 checks passed
@jurevans jurevans deleted the feat/1304-git-hash-version branch November 25, 2024 10:33
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.

Namadillo: Provide git hash in version details
3 participants