-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add more environment indicators to title and navbar #3911
Conversation
08c5d1e
to
e1cdb42
Compare
current_environment = Rails.env.to_sym | ||
emoji = environments[current_environment] || '❓' | ||
%> | ||
<%= "#{emoji}:" unless Rails.env.production? %> Sequencescape : <%= controller.controller_name.capitalize %> - <%= @page_name || controller.action_name %> | ||
</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is changing the title text. It is putting an emoji between the favicon and the existing title. I think a neater way of doing this would be changing the favicon (logo) colour based on environment.
When there are too many tabs open, it looks like a clutter and emoji (proposed start of title) goes hidden.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good suggestion, thanks I'll look into it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Favicons now change based on the environment as above and emojis have been removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- These are matching the navigation bar colours.
- They remove the clutter from browser tab buttons.
- They have simplicity compared to the emojis.
- They use the top field above twirling lines as the environment colour.
- They fill the space between white twirling lines same as the top field colour, following the same design as Production icon, to provide contrast and put the purpose in the middle as well.
- For Dev and UAT icons only, a single colour could be considered if it helps distinguishing in browser tab buttons but I think it is not necessary and against the original icon design.
Additional: Login page's login panel image could use the same pattern. [Update: alt text of them needs changing as well if we do this]
Code Climate has analyzed commit 48d15c6 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 88.3% (0.0% change). View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest changing the Login page's login panel image to use the same pattern. [Update: alt text of them needs changing as well if we do this] but the current changes for navigation bar and favicons look good.
Changes proposed in this pull request
Change favicon colour for different environments
Changes background colour of the navigation bar for different environments
Instructions for Reviewers
[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to
main
]- Check story numbers included
- Check for debug code
- Check version