Skip to content

add per-environment styling #573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 5, 2024
Merged

add per-environment styling #573

merged 2 commits into from
Dec 5, 2024

Conversation

panentheos
Copy link
Collaborator

@panentheos panentheos commented Nov 27, 2024

Asana task: Indicator to distinguish Screenplay environment

This adds custom colors and favicons based on the configured ENVIRONMENT_NAME. The SVG favicons should work in modern browsers, and older browsers will fall back to the ico file (which I also updated). Also converts the CSS file to use modules.

  • For features with a design/UX component, deployed branch to dev-green and let product know it's ready for review.

@panentheos panentheos requested a review from a team as a code owner November 27, 2024 16:44
@@ -34,6 +34,8 @@
<% end %>
<%= csrf_meta_tag() %>
<title>Screenplay</title>
<link rel="icon" href={Routes.static_path(@conn, "/favicon.ico")} sizes="32x32">
<link rel="icon" href={Routes.static_path(@conn, "/images/favicon-#{@environment_name || "prod"}.svg")} type="image/svg+xml">
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not certain if it's just a local bug for me, but my browser can't seem to load the prod favicon when running the branch. Dev and dev-green work though

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah nevermind, maybe a weird caching thing or something? Works now after directly loading the path to the favicon once

Copy link
Contributor

@PaulJKim PaulJKim left a comment

Choose a reason for hiding this comment

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

Looks good

@panentheos panentheos merged commit 9a9345d into main Dec 5, 2024
5 checks passed
@panentheos panentheos deleted the bhw/envs branch December 5, 2024 18:33
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