Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
11 changes: 7 additions & 4 deletions public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"signInButton": "Sign in"
},
"ComponentList": {
"tableComponentHeader": "Component",
"tableComponentHeader": "Name",
"tableVersionHeader": "Version"
},
"FluxList": {
Expand All @@ -20,7 +20,7 @@
"tableCreatedHeader": "Created"
},
"ManagedResources": {
"headerManagedResources": "Resources",
"header": "Managed Resources",
"tableHeaderKind": "Kind",
"tableHeaderName": "Name",
"tableHeaderCreated": "Created",
Expand Down Expand Up @@ -126,7 +126,10 @@
"title": "Projects"
},
"ControlPlaneView": {
"accessError": "Managed Control Plane does not have access information yet"
"accessError": "Managed Control Plane does not have access information yet",
"componentsTitle": "Components",
"crossplaneTitle": "Crossplane",
"gitOpsTitle": "GitOps"
},
"ToastContext": {
"errorMessage": "useToast must be used within a ToastProvider"
Expand All @@ -147,7 +150,7 @@
"tableHeaderHealthy": "Healthy"
},
"ProvidersConfig": {
"headerProvidersConfig": "Providers Config"
"header": "Provider Configs"
},
"validationErrors": {
"required": "This field is required!",
Expand Down
1 change: 1 addition & 0 deletions src/components/ControlPlane/ComponentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default function ComponentList({ mcp }: { mcp: ControlPlaneType }) {
columns={componentTableColumns}
minRows={0}
data={data}
style={{marginLeft: "12px", marginRight: "12px"}}
/>
</div>
);
Expand Down
3 changes: 2 additions & 1 deletion src/components/ControlPlane/ManagedResources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,13 @@ export function ManagedResources() {

return (
<>
<Title level="H4">{t('ManagedResources.headerManagedResources')}</Title>
<Title level="H4">{t('ManagedResources.header')}</Title>

{error && <IllustratedError error={error} />}

{!error && (
<AnalyticalTable
style={{ margin: '12px' }}
columns={columns}
data={rows}
minRows={1}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ControlPlane/ProvidersConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function ProvidersConfig() {

return (
<>
<Title level='H4'>{t('ProvidersConfig.headerProvidersConfig')}</Title>
<Title level='H4'>{t('ProvidersConfig.header')}</Title>
<AnalyticalTable
columns={columns}
data={[]}
Expand Down
1 change: 1 addition & 0 deletions src/components/Shared/ConfiguredAnalyticsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default function ConfiguredAnalyticsTable(props: Props) {
scaleWidthMode={AnalyticalTableScaleWidthMode.Smart}
loading={props.isLoading}
filterable
style={{margin: "12px"}}
/>
);
}
4 changes: 4 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
margin-bottom: -30px;
}

.cp-panel {
margin: 12px;
}

.cp-panel-crossplane {
background-color: #FFC933;
}
Expand Down
27 changes: 19 additions & 8 deletions src/views/ControlPlanes/ControlPlaneView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,18 @@ export default function ControlPlaneView() {
<ObjectPageSection
className="cp-page-section-components"
id="components"
titleText="Components"
titleText={t('ControlPlaneView.componentsTitle')}
hideTitleText
>
<Panel
className="cp-panel"
headerLevel="H2"
headerText="Panel"
header={<Title level="H3">Components</Title>}
header={
<Title level="H3">
{t('ControlPlaneView.componentsTitle')}
</Title>
}
noAnimation
>
<ComponentList mcp={mcp} />
Expand All @@ -103,14 +108,18 @@ export default function ControlPlaneView() {
<ObjectPageSection
className="cp-page-section-crossplane"
id="crossplane"
titleText="Crossplane"
titleText={t('ControlPlaneView.crossplaneTitle')}
hideTitleText
>
<Panel
className="cp-panel-crossplane"
className="cp-panel cp-panel-crossplane"
headerLevel="H3"
headerText="Panel"
header={<Title level="H3">Crossplane</Title>}
header={
<Title level="H3">
{t('ControlPlaneView.crossplaneTitle')}
</Title>
}
noAnimation
>
<ProvidersList />
Expand All @@ -119,14 +128,16 @@ export default function ControlPlaneView() {
<ObjectPageSection
className="cp-page-section-gitops"
id="gitops"
titleText="GitOps"
titleText={t('ControlPlaneView.gitOpsTitle')}
hideTitleText
>
<Panel
className="cp-panel-gitops"
className="cp-panel cp-panel-gitops"
headerLevel="H3"
headerText="Panel"
header={<Title level="H3">GitOps</Title>}
header={
<Title level="H3">{t('ControlPlaneView.gitOpsTitle')}</Title>
}
noAnimation
>
<FluxList />
Expand Down