Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@

<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo.png" />
<link rel="icon" type="image/png" href="/favicon/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/favicon/favicon.svg" />
<link rel="shortcut icon" href="/favicon/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png" />
<meta name="apple-mobile-web-app-title" content="ManagedControlPlane UI" />
<link rel="manifest" href="/favicon/site.webmanifest" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MCP</title>
<title>ManagedControlPlane UI</title>
</head>

<body>
Expand Down
Binary file added public/favicon/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions public/favicon/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions public/favicon/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "ManagedControlPlane UI",
"short_name": "MCP UI",
"icons": [
{
"src": "/favicon/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/favicon/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Binary file added public/favicon/web-app-manifest-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon/web-app-manifest-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
"subtitleMessage": "Looks like this page is not opened inside of the Hyperspace Portal. Contact admins for help."
},
"ShellBar": {
"applicationName": "ManagedControlPlane UI",
"betaButton": "Beta",
"betaButtonDescription": "This web app is currently in Beta, and may not be ready for productive use. We're actively improving the experience and would love your feedback — your input helps shape the future of the app!",
"signOutButton": "Sign Out",
Expand Down
Binary file removed public/logo.png
Binary file not shown.
Binary file added public/touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
import AppRouter from './AppRouter';
import { useAuthOnboarding } from './spaces/onboarding/auth/AuthContextOnboarding.tsx';
import '@ui5/webcomponents-icons/dist/AllIcons.d.ts';
import { useEffect } from 'react';
import { useFrontendConfig } from './context/FrontendConfigContext.tsx';
import LoginView from './views/Login.tsx';
import { BusyIndicator } from '@ui5/webcomponents-react';
import * as Sentry from '@sentry/react';

function App() {
const auth = useAuthOnboarding();
const frontendConfig = useFrontendConfig();

useEffect(() => {
if (frontendConfig && frontendConfig.landscape) {
document.title = `[${frontendConfig.landscape}] MCP`;
}
}, [frontendConfig]);

if (auth.isLoading) {
return <BusyIndicator active />;
Expand Down
1 change: 1 addition & 0 deletions src/assets/images/sap-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/components/Core/ShellBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ import { ShellBarProfileClickEventDetail } from '@ui5/webcomponents-fiori/dist/S
import PopoverPlacement from '@ui5/webcomponents/dist/types/PopoverPlacement.js';
import { useTranslation } from 'react-i18next';
import { generateInitialsForEmail } from '../Helper/generateInitialsForEmail.ts';
import SapLogo from '../../assets/images/sap-logo.svg';
import styles from './ShellBar.module.css';

export function ShellBarComponent() {
const auth = useAuthOnboarding();
const profilePopoverRef = useRef<PopoverDomRef>(null);
const [profilePopoverOpen, setProfilePopoverOpen] = useState(false);
const { t } = useTranslation();

const onProfileClick = (e: Ui5CustomEvent<ShellBarDomRef, ShellBarProfileClickEventDetail>) => {
profilePopoverRef.current!.opener = e.detail.targetRef;
Expand All @@ -44,8 +46,8 @@ export function ShellBarComponent() {
startButton={
<div className={styles.container}>
<div className={styles.logoWrapper}>
<img src="/logo.png" alt="MCP" className={styles.logo} />
<span className={styles.logoText}>MCP</span>
<img src={SapLogo} alt="" className={styles.logo} />
<span className={styles.logoText}>{t('ShellBar.applicationName')}</span>
</div>
</div>
}
Expand Down
Loading