Skip to content

Add environment badge - #37

Merged
austin-smith merged 3 commits into
mainfrom
add-local-environment-badge
Aug 7, 2026
Merged

Add environment badge#37
austin-smith merged 3 commits into
mainfrom
add-local-environment-badge

Conversation

@austin-smith

@austin-smith austin-smith commented Aug 7, 2026

Copy link
Copy Markdown
Owner

What Changed

  • add a development-only environment badge beside the app title
  • expose branch, commit, dirty state, commit subject, and build time in an accessible popover
  • discover and validate Git metadata only when the Next development server starts
  • label detached development checkouts without blocking startup
  • bump the app version to 1.4.2

Why

Make it immediately clear when Crapdash is running in development and make the exact checkout and build easy to identify without changing self-hosted production behavior.

UI Changes

The DEV badge appears beside the app title only during development. It follows the active appearance tokens and opens build details on hover, click, keyboard activation, and touch.

Validation

  • pnpm lint
  • pnpm test (92 tests)
  • pnpm exec tsc --noEmit
  • attached and detached Git integration tests
  • isolated pnpm build
  • git diff --cached --check
  • autoreview: no actionable findings
  • verified production executable bundles exclude environment badge metadata and UI

@austin-smith
austin-smith marked this pull request as ready for review August 7, 2026 07:35

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

馃挕 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 81be49f977

鈩癸笍 About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 馃憤.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/local-build-metadata.build.ts Outdated
@austin-smith austin-smith changed the title Add local environment badge Add environment badge Aug 7, 2026
@austin-smith

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 6f16ad7d6b

鈩癸笍 About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 馃憤.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@austin-smith
austin-smith merged commit 0e29a97 into main Aug 7, 2026
1 check passed
@austin-smith
austin-smith deleted the add-local-environment-badge branch August 7, 2026 08:05
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.

1 participant