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

Show the version of the app #340

Merged
merged 3 commits into from
Sep 19, 2023
Merged

Show the version of the app #340

merged 3 commits into from
Sep 19, 2023

Conversation

dabreegster
Copy link
Contributor

Now that we have more deployment environments, make it clear where we are. Also provide some warnings and contact emails.

version = "Local development";
} else if (window.location.hostname == "acteng.github.io") {
if (window.location.pathname == "/atip/browse.html") {
version = "Current development (public)";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Better terms/names welcome

Copy link
Contributor

Choose a reason for hiding this comment

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

Currently it's like this, I think "Current" is a bit redundant, will have a think.

Copy link
Contributor

Choose a reason for hiding this comment

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

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
version = "Current development (public)";
version = "Public (development)";

The Public is more important than dev/release and more widely understood. Plus shortens it. Public (release), Private (development) and Private (release) seem like reasonable options to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Updated the names in 88cad1a

@@ -2,6 +2,7 @@
// @ts-ignore no declarations
import { initAll } from "govuk-frontend";
import "../style/main.css";
import AppVersion from "lib/browse/AppVersion.svelte";
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be on all the pages? I know what we currently have is specific to browse schemes but it feels like we might want something similar in other places?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PTAL -- changed a few things about detecting the environment, mentioning it on multiple pages, etc

@dabreegster dabreegster merged commit 073f391 into main Sep 19, 2023
2 checks passed
@dabreegster dabreegster deleted the browse_about branch September 19, 2023 12:40
dabreegster added a commit that referenced this pull request Sep 19, 2023
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.

3 participants