Show an environment badge in the header outside production#90
Merged
Conversation
Adds an orange env label (e.g. "staging") after the site name so it's obvious when you're not on production; hidden in production. Adds a --color-warning (orange) palette token.
There was a problem hiding this comment.
Pull request overview
Adds a non-production environment badge to the header (e.g., “staging”) and introduces a warning/orange design token to style it consistently, helping users quickly confirm they’re not on production.
Changes:
- Render
Rails.envnext to the site name in the header when not in production. - Add header styling for the environment badge.
- Introduce
--color-warning(orange) as a semantic palette token.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| app/views/layouts/upright/_header.html.erb | Displays an environment label in the header outside production. |
| app/assets/stylesheets/upright/header.css | Styles the new environment label in the header. |
| app/assets/stylesheets/upright/_global.css | Adds an orange primitive and exposes it via --color-warning. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+41
to
+48
| .header__env { | ||
| color: var(--color-warning); | ||
| font-size: var(--text-x-small); | ||
| font-weight: 500; | ||
| letter-spacing: 0.06em; | ||
| margin-right: calc(var(--inline-space) * 2); | ||
| text-transform: uppercase; | ||
| } |
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.
Adds an orange env label (e.g.
staging) after the site name in the header, so it's obvious when you're not on production. Hidden in production. Adds a--color-warning(orange) palette token.