Skip to content

Commit

Permalink
Merge branch 'improvement/change-theme-usage' into q/127.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bert-e committed Jan 3, 2024
2 parents 641a6a2 + dae35db commit 8fd8998
Show file tree
Hide file tree
Showing 37 changed files with 1,541 additions and 1,619 deletions.
13 changes: 12 additions & 1 deletion salt/metalk8s/addons/ui/config/metalk8s-shell-ui-config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,15 @@ spec:
darkRebrand: /brand/assets/logo-darkRebrand.svg
favicon: /brand/favicon-metalk8s.svg
canChangeLanguage: false
canChangeTheme: false
canChangeTheme: true
themes:
dark:
type: "core-ui"
name: "darkRebrand"
logoPath: "/brand/assets/logo-dark.svg"

light:
type: "core-ui"
name: "artescaLight"
logoPath: "/brand/assets/logo-light.svg"

60 changes: 34 additions & 26 deletions shell-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions shell-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"@testing-library/react": "^11.2.5",
"@testing-library/react-hooks": "^5.1.1",
"@testing-library/user-event": "^13.0.10",
"@types/react": "^17.0.39",
"@types/react-dom": "^17.0.11",
"@types/react-router": "^5.1.20",
"@types/styled-components": "^5.1.26",
"babel-jest": "^26.6.3",
Expand Down Expand Up @@ -55,8 +57,8 @@
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@fortawesome/react-fontawesome": "^0.2.0",
"@js-temporal/polyfill": "^0.4.4",
"@scality/core-ui": "github:scality/core-ui#0.109.0",
"@scality/module-federation": "github:scality/module-federation.git#1.1.0",
"@scality/core-ui": "github:scality/core-ui#0.110.0",
"@scality/module-federation": "github:scality/module-federation.git#1.2.0",
"canvas": "^2.9.3",
"downshift": "^8.0.0",
"oidc-client": "^1.11.3",
Expand Down
15 changes: 14 additions & 1 deletion shell-ui/public/shell/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,18 @@
"subLogin": []
},
"discoveryUrl": "/shell/deployed-ui-apps.json",
"productName": "MetalK8s"
"productName": "MetalK8s",
"canChangeTheme": true,
"themes": {
"dark": {
"type": "core-ui",
"name": "darkRebrand",
"logoPath": "/brand/assets/logo-dark.svg"
},
"light": {
"type": "core-ui",
"name": "artescaLight",
"logoPath": "/brand/assets/logo-light.svg"
}
}
}
8 changes: 8 additions & 0 deletions shell-ui/src/FederatedApp.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,14 @@ export const configurationHandlers = [
subLogin: [],
},
discoveryUrl: '/shell/deployed-ui-apps.json',
canChangeTheme: true,
themes: {
dark: {
type: 'core-ui',
name: 'darkRebrand',
logoPath: '/brand/assets/logo-dark.svg',
},
},
}),
);
}),
Expand Down

0 comments on commit 8fd8998

Please sign in to comment.