Skip to content

Commit

Permalink
Merge pull request rancher-sandbox#5823 from jandubois/by-suse
Browse files Browse the repository at this point in the history
Display app name as "Rancher Desktop by SUSE"
  • Loading branch information
jandubois authored Oct 25, 2023
2 parents b75e32f + 7b6b63e commit 5211d09
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ Electron.app.whenReady().then(async() => {
// TODO: Update this to 2021-... as dev progresses
// also needs to be updated in electron-builder.yml
copyright: 'Copyright © 2021-2023 SUSE LLC',
applicationName: Electron.app.name,
applicationName: `${ Electron.app.name } by SUSE`,
applicationVersion: `Version ${ await getVersion() }`,
iconPath: path.join(paths.resources, 'icons', 'logo-square-512.png'),
});
Expand Down
2 changes: 1 addition & 1 deletion e2e/main.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test.describe.serial('Main App Test', () => {
test('should land on General page', async() => {
const navPage = new NavPage(page);

await expect(navPage.mainTitle).toHaveText('Welcome to Rancher Desktop');
await expect(navPage.mainTitle).toHaveText('Welcome to Rancher Desktop by SUSE');
});

test('should navigate to Port Forwarding and check elements', async() => {
Expand Down
4 changes: 2 additions & 2 deletions e2e/utils/ProfileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export async function testForFirstRunWindow(testPath: string) {

try {
await retry(async() => {
await expect(navPage.mainTitle).toHaveText('Welcome to Rancher Desktop');
await expect(navPage.mainTitle).toHaveText('Welcome to Rancher Desktop by SUSE');
});
page = openedPage;
windowCountForMainPage = windowCount;
Expand Down Expand Up @@ -252,7 +252,7 @@ export async function testForNoFirstRunWindow(testPath: string) {

try {
await retry(async() => {
await expect(navPage.mainTitle).toHaveText('Welcome to Rancher Desktop');
await expect(navPage.mainTitle).toHaveText('Welcome to Rancher Desktop by SUSE');
});
page = openedPage;
windowCountForMainPage = windowCount;
Expand Down
2 changes: 1 addition & 1 deletion pkg/rancher-desktop/assets/translations/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ portForwarding:
sortableTables:
noRows: There are no port forwarding entries to show
general:
title: Welcome to Rancher Desktop
title: Welcome to Rancher Desktop by SUSE
description: Rancher Desktop provides Kubernetes and image management through the use of a desktop application.
about:
title: About
Expand Down
14 changes: 12 additions & 2 deletions pkg/rancher-desktop/pages/FirstRun.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<div class="first-run-container">
<h2 data-test="k8s-settings-header">
Welcome to Rancher Desktop
Welcome to Rancher Desktop by SUSE
</h2>
<rd-checkbox
label="Enable Kubernetes"
Expand Down Expand Up @@ -243,6 +243,12 @@ export default Vue.extend({
});
</script>

<style lang="scss">
html {
height: initial;
}
</style>

<style lang="scss" scoped>
.button-area {
align-self: flex-end;
Expand All @@ -251,4 +257,8 @@ export default Vue.extend({
.select-k8s-version {
margin-top: 0.5rem;
}
.first-run-container {
width: 26rem;
}
</style>

0 comments on commit 5211d09

Please sign in to comment.