Add configurable environment badge beside the header brand - #1743
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot started reviewing on behalf of
David Pine (IEvangelist)
September 24, 2026 17:22
View session
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved blocking issues were identified.
Review effort: Lite
Findings: None
What changed in this PR
Adds a configurable environment badge beside the header brand, with responsive styling, safe escaping, tests, and documentation.
Changes:
- Supports
PUBLIC_ENVIRONMENT_BADGEwith local-development defaults. - Adds theme-aware styling and label truncation.
- Adds unit coverage and configuration guidance.
| File | Description |
|---|---|
src/frontend/tests/unit/header-environment-badge.vitest.test.ts |
Tests defaults, overrides, blank values, trimming, and escaping. |
src/frontend/src/components/starlight/Header.astro |
Renders and styles the environment badge. |
CONTRIBUTING.md |
Documents environment badge configuration and deployment usage. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Eric Erhardt (eerhardt)
approved these changes
Sep 24, 2026
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.
Summary
PUBLIC_ENVIRONMENT_BADGEat frontend build time.localhostduring local development; omit the badge for production builds when unset or explicitly empty.Merge into public
main, then bring the change intorelease/13.6. A separate Azure DevOps PR againstdeploy-vnext-releasewill configure the vnext build label; live builds remain unchanged.Third-party links and affiliations
None.
Validation
git diff --checkpassed.