diff --git a/public/locales/en.json b/public/locales/en.json index 986a9410..1db60e95 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -6,7 +6,7 @@ "signInButton": "Sign in" }, "Entities": { - "ManagedControlPlane": "Managed Control Plane", + "ManagedControlPlane": "ManagedControlPlane", "Project": "Project", "Workspace": "Workspace", "Users": "Users", @@ -104,11 +104,8 @@ "subtitleMessage": "Sorry, we couldn’t find what you are looking for.
The link may be incorrect or the {{entityType}} might have been removed.", "navigateHome": "Back to Homepage" }, - "IntelligentBreadcrumbs": { - "homeLabel": "Home", - "projects": "Projects", - "workspaces": "Workspaces", - "mcps": "MCPs" + "PathAwareBreadcrumbs": { + "projectsLabel": "Projects" }, "MCPContext": { "errorMessage": "An unknown error occurred" diff --git a/src/Routes.ts b/src/Routes.ts new file mode 100644 index 00000000..fd3ef0a1 --- /dev/null +++ b/src/Routes.ts @@ -0,0 +1,5 @@ +export const Routes = { + Home: '/', + Project: '/mcp/projects/:projectName', + Mcp: '/mcp/projects/:projectName/workspaces/:workspaceName/mcps/:controlPlaneName', +} as const; diff --git a/src/components/Core/BreadcrumbFeedbackHeader.tsx b/src/components/Core/BreadcrumbFeedbackHeader.tsx new file mode 100644 index 00000000..4d4a4745 --- /dev/null +++ b/src/components/Core/BreadcrumbFeedbackHeader.tsx @@ -0,0 +1,63 @@ +import { Button, FlexBox, FlexBoxAlignItems, Menu, MenuItem } from '@ui5/webcomponents-react'; + +import { useTranslation } from 'react-i18next'; +import { FeedbackButton } from './FeedbackButton.tsx'; +import { BetaButton } from './BetaButton.tsx'; +import { useRef, useState } from 'react'; +import { useAuthOnboarding } from '../../spaces/onboarding/auth/AuthContextOnboarding.tsx'; +import { SearchParamToggleVisibility } from '../Helper/FeatureToggleExistance.tsx'; +import { PathAwareBreadcrumbs } from './PathAwareBreadcrumbs/PathAwareBreadcrumbs.tsx'; + +export function BreadcrumbFeedbackHeader() { + return ( + + + + + { + if (params === undefined) return false; + if (params.get('showHeaderBar') === null) return false; + return params?.get('showHeaderBar') === 'false'; + }} + > + + + + ); +} + +function LogoutMenu() { + const auth = useAuthOnboarding(); + const { t } = useTranslation(); + + const buttonRef = useRef(null); + const [menuIsOpen, setMenuIsOpen] = useState(false); + return ( + <> +