Skip to content

feat: add git info display to settings for development mode#973

Merged
chhoumann merged 3 commits intomasterfrom
dev-git-status-settings
Nov 5, 2025
Merged

feat: add git info display to settings for development mode#973
chhoumann merged 3 commits intomasterfrom
dev-git-status-settings

Conversation

@chhoumann
Copy link
Copy Markdown
Owner

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.

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
@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
quickadd Ready Ready Preview Nov 5, 2025 4:43pm

@chhoumann chhoumann merged commit e3b2a8b into master Nov 5, 2025
3 checks passed
@chhoumann chhoumann deleted the dev-git-status-settings branch November 5, 2025 16:54
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))
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 8, 2025

🎉 This PR is included in version 2.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant