Skip to content

Commit 41c2f45

Browse files
committed
feat: navigation via tabs
1 parent 5187f80 commit 41c2f45

File tree

14 files changed

+439
-360
lines changed

14 files changed

+439
-360
lines changed

public/locales/en.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
"tableCreatedHeader": "Created",
2323
"tableVersionHeader": "Revision",
2424
"noFluxError": "Please install flux to view this component",
25-
"gitOpsTitle": "GitOps",
26-
"kustomizationsTitle": "Kustomizations",
2725
"undefinedError": "Something went wrong"
2826
},
2927
"ProvidersList": {
@@ -32,15 +30,13 @@
3230
"tableCreatedHeader": "Created"
3331
},
3432
"ManagedResources": {
35-
"header": "Managed Resources",
3633
"tableHeaderKind": "Kind",
3734
"tableHeaderName": "Name",
3835
"tableHeaderCreated": "Created",
3936
"tableHeaderSynced": "Synced",
4037
"tableHeaderReady": "Ready"
4138
},
4239
"ProvidersConfig": {
43-
"headerProviderConfigs": "Provider Configs",
4440
"tableHeaderProvider": "Provider",
4541
"tableHeaderName": "Name",
4642
"tableHeaderCreated": "Created",
@@ -195,12 +191,18 @@
195191
},
196192
"McpPage": {
197193
"accessError": "Managed Control Plane does not have access information yet",
198-
"componentsTitle": "Components",
199194
"overviewTitle": "Overview",
195+
"dashboardTitle": "Dashboard",
196+
"graphTitle": "Graph",
197+
"componentsTitle": "Components",
200198
"crossplaneTitle": "Crossplane",
201-
"gitOpsTitle": "GitOps",
202-
"landscapersTitle": "Landscapers",
203-
"graphTitle": "Graph"
199+
"providersTitle": "Providers",
200+
"providerConfigsTitle": "ProviderConfigs",
201+
"managedResourcesTitle": "Managed Resources",
202+
"fluxTitle": "Flux",
203+
"gitRepositoriesTitle": "GitRepositories",
204+
"kustomizationsTitle": "Kustomizations",
205+
"landscapersTitle": "Landscapers"
204206
},
205207
"ToastContext": {
206208
"errorMessage": "useToast must be used within a ToastProvider"
@@ -295,7 +297,6 @@
295297
"learnButton": "Learn how to do this in code"
296298
},
297299
"Providers": {
298-
"headerProviders": "Providers",
299300
"tableHeaderVersion": "Version",
300301
"tableHeaderName": "Name",
301302
"tableHeaderCreated": "Created",
@@ -350,7 +351,9 @@
350351
"remaining": "Remaining",
351352
"active": "Active",
352353
"copyToClipboardSuccessToast": "Copied to clipboard",
353-
"copyToClipboardFailedToast": "Failed to copy to clipboard"
354+
"copyToClipboardFailedToast": "Failed to copy to clipboard",
355+
"resourcesCount": "Resources ({{count}})",
356+
"itemsCount": "Items ({{count}})"
354357
},
355358
"errors": {
356359
"installError": "Install error",

src/components/ControlPlane/ComponentList.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import { AnalyticalTable, AnalyticalTableColumnDefinition } from '@ui5/webcomponents-react';
1+
import {
2+
AnalyticalTable,
3+
AnalyticalTableColumnDefinition,
4+
Panel,
5+
Title,
6+
Toolbar,
7+
ToolbarSpacer,
8+
} from '@ui5/webcomponents-react';
29
import { ControlPlaneType } from '../../lib/api/types/crate/controlPlanes';
310
import { useTranslation } from 'react-i18next';
411

@@ -40,8 +47,16 @@ export default function ComponentList({ mcp }: { mcp: ControlPlaneType }) {
4047
];
4148

4249
return (
43-
<div>
50+
<Panel
51+
fixed
52+
header={
53+
<Toolbar>
54+
<Title>{t('common.itemsCount', { count: data.length })}</Title>
55+
<ToolbarSpacer />
56+
</Toolbar>
57+
}
58+
>
4459
<AnalyticalTable scaleWidthMode="Smart" columns={componentTableColumns} minRows={0} data={data} />
45-
</div>
60+
</Panel>
4661
);
4762
}

src/components/ControlPlane/FluxList.tsx

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

0 commit comments

Comments
 (0)