Skip to content

Commit 604c85d

Browse files
Merge branch 'main' into renovate/all-minor-patch
2 parents 6e592fe + 788057d commit 604c85d

21 files changed

+183
-102
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@
7272
"sass-embedded": "^1.86.0",
7373
"typescript": "^5.7.3",
7474
"typescript-eslint": "^8.26.1",
75-
"vite": "^6.2.6"
75+
"vite": "^6.3.4"
7676
}
7777
}

public/locales/en.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,17 @@
6767
"menuDownload": "Download",
6868
"menuCopy": "Copy to clipboard"
6969
},
70-
"NoManagedControlPlaneBanner": {
70+
"IllustratedBanner": {
7171
"titleMessage": "No ManagedControlPlane",
7272
"subtitleMessage": "Create a ManagedControlPlane to get started",
7373
"helpButton": "Help"
7474
},
7575
"IntelligentBreadcrumbs": {
7676
"homeLabel": "Home"
7777
},
78+
"MCPContext": {
79+
"errorMessage": "An unknown error occurred"
80+
},
7881
"NotInLuigiView": {
7982
"titleMessage": "Opened outside of Hyperspace Portal",
8083
"subtitleMessage": "Looks like this page is not opened inside of the Hyperspace Portal. Contact admins for help."

src/components/ControlPlane/FluxList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function FluxList() {
4444
if (repoErr || kustomizationErr) {
4545
return (
4646
<IllustratedError
47-
error={repoErr || kustomizationErr}
47+
details={repoErr.message || kustomizationErr.message}
4848
title={t('FluxList.noFluxError')}
4949
/>
5050
);

src/components/ControlPlane/ManagedResources.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export function ManagedResources() {
109109
<>
110110
<Title level="H4">{t('ManagedResources.header')}</Title>
111111

112-
{error && <IllustratedError error={error} />}
112+
{error && <IllustratedError details={error.message} />}
113113

114114
{!error && (
115115
<AnalyticalTable

src/components/ControlPlane/Providers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function Providers() {
105105
<>
106106
<Title level="H4">{t('Providers.headerProviders')}</Title>
107107

108-
{error && <IllustratedError error={error} />}
108+
{error && <IllustratedError details={error.message} />}
109109

110110
{!error && (
111111
<AnalyticalTable

src/components/ControlPlanes/List/ControlPlaneListAllWorkspaces.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function ControlPlaneListAllWorkspaces({ projectName }: Props) {
2727
return <Loading />;
2828
}
2929
if (error) {
30-
return <IllustratedError error={error} />;
30+
return <IllustratedError details={error.message} />;
3131
}
3232

3333
return (

src/components/ControlPlanes/List/ControlPlaneListWorkspaceGridTile.tsx

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import '@ui5/webcomponents-fiori/dist/illustrations/NoData.js';
1010
import '@ui5/webcomponents-fiori/dist/illustrations/EmptyList.js';
1111
import '@ui5/webcomponents-icons/dist/delete';
1212
import { CopyButton } from '../../Shared/CopyButton.tsx';
13-
import { NoManagedControlPlaneBanner } from '../NoManagedControlPlaneBanner.tsx';
1413
import { ControlPlaneCard } from '../ControlPlaneCard/ControlPlaneCard.tsx';
1514
import {
1615
ListWorkspacesType,
@@ -35,6 +34,9 @@ import IllustratedError from '../../Shared/IllustratedError.tsx';
3534
import { APIError } from '../../../lib/api/error.ts';
3635
import { useTranslation } from 'react-i18next';
3736
import { YamlViewButton } from '../../Yaml/YamlViewButton.tsx';
37+
import { IllustratedBanner } from '../../Ui/IllustratedBanner/IllustratedBanner.tsx';
38+
import { useFrontendConfig } from '../../../context/FrontendConfigContext.tsx';
39+
import IllustrationMessageType from '@ui5/webcomponents-fiori/dist/types/IllustrationMessageType.js';
3840

3941
interface Props {
4042
projectName: string;
@@ -62,6 +64,8 @@ export function ControlPlaneListWorkspaceGridTile({
6264
const { trigger } = useApiResourceMutation<DeleteWorkspaceType>(
6365
DeleteWorkspaceResource(projectNamespace, workspaceName),
6466
);
67+
68+
const { links } = useFrontendConfig();
6569
const errorView = createErrorView(cpsError);
6670

6771
function createErrorView(error: APIError) {
@@ -72,7 +76,7 @@ export function ControlPlaneListWorkspaceGridTile({
7276
title={t(
7377
'ControlPlaneListWorkspaceGridTile.permissionErrorMessage',
7478
)}
75-
subtitleText={t(
79+
details={t(
7680
'ControlPlaneListWorkspaceGridTile.permissionErrorMessageSubtitle',
7781
)}
7882
/>
@@ -145,20 +149,26 @@ export function ControlPlaneListWorkspaceGridTile({
145149
>
146150
{errorView ? (
147151
errorView
152+
) : controlplanes?.length === 0 ? (
153+
<IllustratedBanner
154+
title={t('IllustratedBanner.titleMessage')}
155+
subtitle={t('IllustratedBanner.subtitleMessage')}
156+
illustrationName={IllustrationMessageType.NoData}
157+
help={{
158+
link: links.COM_PAGE_GETTING_STARTED_MCP,
159+
buttonText: t('IllustratedBanner.helpButton'),
160+
}}
161+
/>
148162
) : (
149163
<Grid defaultSpan="XL4 L4 M7 S12">
150-
{controlplanes?.length === 0 ? (
151-
<NoManagedControlPlaneBanner />
152-
) : (
153-
controlplanes?.map((cp) => (
154-
<ControlPlaneCard
155-
key={`${cp.metadata.name}--${cp.metadata.namespace}`}
156-
controlPlane={cp}
157-
projectName={projectName}
158-
workspace={workspace}
159-
/>
160-
))
161-
)}
164+
{controlplanes?.map((cp) => (
165+
<ControlPlaneCard
166+
key={`${cp.metadata.name}--${cp.metadata.namespace}`}
167+
controlPlane={cp}
168+
projectName={projectName}
169+
workspace={workspace}
170+
/>
171+
))}
162172
</Grid>
163173
)}
164174
</Panel>

src/components/ControlPlanes/NoManagedControlPlaneBanner.tsx

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)