Skip to content
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

Merged
merged 10 commits into from
Oct 30, 2023

Conversation

StephenHulme
Copy link
Contributor

@StephenHulme StephenHulme commented Oct 5, 2023

Changes proposed in this pull request

  • Change favicon colour for different environments
    Screenshot 2023-10-26 at 11 44 15

  • Changes background colour of the navigation bar for different environments

    • Development (and unknown)
      Screenshot 2023-10-05 at 14 32 15
    • Training
      Screenshot 2023-10-26 at 11 24 30
    • Staging (UAT) is unchanged
      Screenshot 2023-10-05 at 14 33 58
    • Production is unchanged
      Screenshot 2023-10-05 at 14 34 12

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

@StephenHulme StephenHulme force-pushed the sh51/add-environment-indicators branch from 08c5d1e to e1cdb42 Compare October 5, 2023 15:41
app/frontend/stylesheets/all/header.scss Show resolved Hide resolved
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>
Copy link
Member

@yoldas yoldas Oct 25, 2023

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here are proposed favicons for:

Dev
apple-icon-dev
UAT
apple-icon-uat
Training
apple-icon-training
Production (current)
apple-icon

Copy link
Contributor Author

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.

Copy link
Member

@yoldas yoldas Oct 26, 2023

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]

@codeclimate
Copy link

codeclimate bot commented Oct 26, 2023

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.

Copy link
Member

@yoldas yoldas left a 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.

@stevieing stevieing merged commit 48e18b6 into develop Oct 30, 2023
21 checks passed
@stevieing stevieing deleted the sh51/add-environment-indicators branch October 30, 2023 09:40
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.

4 participants