Skip to content

Show an environment badge in the header outside production#90

Merged
lewispb merged 1 commit into
mainfrom
header-environment-badge
Jun 10, 2026
Merged

Show an environment badge in the header outside production#90
lewispb merged 1 commit into
mainfrom
header-environment-badge

Conversation

@lewispb

@lewispb lewispb commented Jun 10, 2026

Copy link
Copy Markdown
Member

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.

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.
Copilot AI review requested due to automatic review settings June 10, 2026 13:35

Copilot AI 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.

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.env next 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;
}
@lewispb lewispb merged commit a734319 into main Jun 10, 2026
9 checks passed
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.

2 participants