feat: add git info display to settings for development mode#973
Merged
feat: add git info display to settings for development mode#973
Conversation
Add git information (branch, commit hash, uncommitted changes) to the settings tab for developers. This feature is only enabled in development builds and completely removed from production builds via tree-shaking. Implementation: - Created buildGitInfo.mjs to retrieve git information at build time - Modified esbuild.config.mjs to inject git data as build constants - Added TypeScript type definitions for build constants - Added development info section to settings tab (dev-only) The feature is safe for production as all dev-specific code and data is eliminated during the production build process.
- Remove background styling from development info section - Move development info to bottom of settings page - Keep sleek monospace display for git information
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 8, 2025
# [2.7.0](2.6.0...2.7.0) (2025-11-08) ### Bug Fixes * format capture tags as YAML arrays ([#974](#974)) ([bc61760](bc61760)) * remove script suffix in request inputs ([#979](#979)) ([60ec853](60ec853)) * stop macros and APIs immediately when cancellations occur ([#976](#976)) ([48ea32d](48ea32d)) ### Features * add git info display to settings for development mode ([#973](#973)) ([e3b2a8b](e3b2a8b))
|
🎉 This PR is included in version 2.7.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a development information section to the QuickAdd settings tab that displays the current git branch, commit hash, and uncommitted changes status. This feature is only available in development builds and is completely removed from production builds via tree-shaking.
The information is injected at build time using esbuild's define option and appears at the bottom of the settings page with a clean monospace display.