Skip to content

Commit ae80365

Browse files
committed
cleanup
Signed-off-by: Atif Ali <atali@redhat.com>
1 parent 78fd81d commit ae80365

File tree

9 files changed

+10
-275
lines changed

9 files changed

+10
-275
lines changed

plugin-metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const metadata: ConsolePluginBuildMetadata = {
1616
ApplicationList: "./gitops/components/application/ApplicationListTab.tsx",
1717
ApplicationDetails: "./gitops/components/application/ApplicationNavPage.tsx",
1818
ApplicationSetList: "./gitops/components/application/ApplicationSetListTab.tsx",
19-
ApplicationSetDetailsPage: "./gitops/components/application/ApplicationSetDetailsPage.tsx",
19+
ApplicationSetDetailsPage: "./gitops/components/appset/ApplicationSetDetailsPage.tsx",
2020
yamlApplicationTemplates: "./gitops/components/application/templates/index.ts"
2121
}
2222
};

src/gitops/components/application/ApplicationSetDetailsPage.scss

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

src/gitops/components/application/application-details-title.scss

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
11
// Application Details Title Styles
2-
.argocd-application-icon {
3-
display: inline-flex;
4-
align-items: center;
5-
justify-content: center;
6-
width: 32px;
7-
height: 32px;
8-
border-radius: 4px;
9-
background-color: #E9654B;
10-
color: white;
11-
font-size: 16px;
12-
font-weight: bold;
13-
margin-right: var(--pf-v6-global--spacer--md);
14-
}
15-
162
.co-resource-item__resource-name {
173
font-size: var(--pf-v6-global--font-size--2xl);
184
font-weight: var(--pf-v6-global--font-weight--bold);

src/gitops/components/appset/AppSetNavPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import { useApplicationSetActionsProvider } from '../../hooks/useApplicationSetA
77
import { ApplicationSetKind, ApplicationSetModel } from '../../models/ApplicationSetModel';
88
import { useGitOpsTranslation } from '../../utils/hooks/useGitOpsTranslation';
99
import DetailsPageHeader from '../shared/DetailsPageHeader/DetailsPageHeader';
10+
import EventsTab from '../shared/EventsTab/EventsTab';
1011
import ResourceYAMLTab from '../shared/ResourceYAMLTab/ResourceYAMLTab';
1112

1213
import AppSetDetailsTab from './AppSetDetailsTab';
1314
import AppsTab from './AppsTab';
14-
import ApplicationSetEventsTab from './EventsTab';
1515
import GeneratorsTab from './GeneratorsTab';
1616

1717
type AppSetPageProps = {
@@ -60,7 +60,7 @@ const AppSetNavPage: React.FC<AppSetPageProps> = ({ name, namespace, kind }) =>
6060
{
6161
href: 'events',
6262
name: t('Events'),
63-
component: ApplicationSetEventsTab,
63+
component: EventsTab,
6464
},
6565
],
6666
[t],

src/gitops/components/application/ApplicationSetDetailsPage.tsx renamed to src/gitops/components/appset/ApplicationSetDetailsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22
import { useParams } from 'react-router-dom-v5-compat';
33

4-
import AppSetNavPage from '../appset/AppSetNavPage';
4+
import AppSetNavPage from './AppSetNavPage';
55

66
const ApplicationSetDetailsPage: React.FC = () => {
77
const { name, ns } = useParams<{ name: string; ns: string }>();

src/gitops/components/appset/AppsTab.tsx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import * as React from 'react';
22
import { RouteComponentProps } from 'react-router';
33

4-
import { PageSection } from '@patternfly/react-core';
5-
64
import { ApplicationSetKind } from '../../models/ApplicationSetModel';
75
import ApplicationList from '../shared/ApplicationList';
86

@@ -17,14 +15,12 @@ const AppsTab: React.FC<AppsTabProps> = ({ obj }) => {
1715
if (!obj || !namespace) return null;
1816

1917
return (
20-
<PageSection>
21-
<ApplicationList
22-
namespace={namespace}
23-
hideNameLabelFilters={false}
24-
showTitle={false}
25-
appset={obj}
26-
/>
27-
</PageSection>
18+
<ApplicationList
19+
namespace={namespace}
20+
hideNameLabelFilters={false}
21+
showTitle={false}
22+
appset={obj}
23+
/>
2824
);
2925
};
3026

src/gitops/components/appset/EventsTab.scss

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

src/gitops/components/appset/EventsTab.tsx

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

src/gitops/components/appset/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export { default as AppSetDetailsTab } from './AppSetDetailsTab';
22
export { default as AppSetNavPage } from './AppSetNavPage';
33
export { default as AppsTab } from './AppsTab';
4-
export { default as EventsTab } from './EventsTab';
54
export { default as Generators } from './Generators';
65
export { default as GeneratorsTab } from './GeneratorsTab';
76

0 commit comments

Comments
 (0)