Skip to content

🌱 feat: show git commit hash in sidebar next to viewer count#4015

Merged
clubanderson merged 1 commit intomainfrom
fix/sidebar-commit-hash
Mar 31, 2026
Merged

🌱 feat: show git commit hash in sidebar next to viewer count#4015
clubanderson merged 1 commit intomainfrom
fix/sidebar-commit-hash

Conversation

@clubanderson
Copy link
Copy Markdown
Collaborator

Summary

  • Displays the short (7-char) git commit hash next to the active viewer count at the bottom of the sidebar
  • Uses the existing __COMMIT_HASH__ global define from vite.config.ts
  • Hover tooltip shows the full commit hash
  • Helps quickly identify which build is deployed (e.g., on console.kubestellar.io)

Test plan

  • Sidebar shows commit hash (e.g., 9b8a49d) next to the user count
  • Hover shows full hash in tooltip
  • Hash is hidden when sidebar is collapsed

Display the short (7-char) git commit hash next to the active viewer
count at the bottom of the sidebar. Uses the existing __COMMIT_HASH__
global define from vite.config.ts. Hover shows the full hash.

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Copilot AI review requested due to automatic review settings March 31, 2026 17:33
@kubestellar-prow kubestellar-prow bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Mar 31, 2026
@kubestellar-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign clubanderson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@github-actions
Copy link
Copy Markdown
Contributor

👋 Hey @clubanderson — thanks for opening this PR!

🤖 This project is developed exclusively using AI coding assistants.

Please do not attempt to code anything for this project manually.
All contributions should be authored using an AI coding tool such as:

This ensures consistency in code style, architecture patterns, test coverage,
and commit quality across the entire codebase.


This is an automated message.

@kubestellar-prow kubestellar-prow bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 31, 2026
@clubanderson clubanderson merged commit 98ce0a0 into main Mar 31, 2026
16 checks passed
@kubestellar-prow kubestellar-prow bot deleted the fix/sidebar-commit-hash branch March 31, 2026 17:33
@github-actions
Copy link
Copy Markdown
Contributor

Thank you for your contribution! Your PR has been merged.

Check out what's new:

Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Deploy Preview for kubestellarconsole ready!

Name Link
🔨 Latest commit e2941a3
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/69cc05561f27c50008d298f0
😎 Deploy Preview https://deploy-preview-4015.console-deploy-preview.kubestellar.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds build-identifying information to the main navigation sidebar by displaying the current git commit hash alongside the active viewer count, leveraging the existing Vite build-time __COMMIT_HASH__ define.

Changes:

  • Show short (7-char) commit hash next to the sidebar viewer count when the sidebar is expanded.
  • Add a hover tooltip (via title) that reveals the full commit hash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has signed the DCO. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants