Skip to content

Commit 56357c3

Browse files
committed
chore: fixes
1 parent 591cf02 commit 56357c3

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

src/components/ApplicationGroup/List/EnvironmentsList.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { useMemo } from 'react'
1818

1919
import {
2020
ErrorScreenManager,
21+
FeatureTitleWithInfo,
2122
FilterChips,
2223
FilterSelectPicker,
2324
GenericEmptyState,
@@ -39,6 +40,18 @@ import EnvironmentsListView from './EnvironmentListView'
3940

4041
import './EnvironmentsList.scss'
4142

43+
const renderAppGroupDescriptionContent = () =>
44+
' Application Groups represent an environment and display all applications deployed to it. They simplify deploying interdependent microservices by allowing you to build and deploy multiple applications together.'
45+
46+
const renderAdditionalHeaderInfo = () => (
47+
<FeatureTitleWithInfo
48+
title="Application Group"
49+
docLink="APP_GROUP"
50+
showInfoIconTippy
51+
renderDescriptionContent={renderAppGroupDescriptionContent}
52+
/>
53+
)
54+
4255
const EnvironmentsList = ({ isSuperAdmin }: AppGroupAdminType) => {
4356
const urlFilters = useUrlFilters<never, AppGroupUrlFiltersType>({
4457
parseSearchParams,
@@ -199,7 +212,7 @@ const EnvironmentsList = ({ isSuperAdmin }: AppGroupAdminType) => {
199212

200213
return (
201214
<div className="flexbox-col h-100 dc__overflow-auto">
202-
<PageHeader headerName="Application Groups" />
215+
<PageHeader additionalHeaderInfo={renderAdditionalHeaderInfo} />
203216
{renderBody()}
204217
</div>
205218
)

src/components/Jobs/JobList/JobsList.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ import JobListContainer from './JobListContainer'
4444

4545
import '../../app/list/list.scss'
4646

47+
// const renderAppGroupDescriptionContent = () =>
48+
// ' Application Groups represent an environment and display all applications deployed to it. They simplify deploying interdependent microservices by allowing you to build and deploy multiple applications together.'
49+
50+
// const renderAdditionalHeaderInfo = () => (
51+
// <FeatureTitleWithInfo
52+
// title="Application Group"
53+
// docLink="APP_GROUP"
54+
// showInfoIconTippy
55+
// renderDescriptionContent={renderAppGroupDescriptionContent}
56+
// />
57+
// )
58+
4759
const JobsList = () => {
4860
const { path } = useRouteMatch()
4961
const history = useHistory()

src/components/Jobs/Jobs.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
import React from 'react'
1817
import { Redirect, Route, Switch, useRouteMatch } from 'react-router-dom'
1918
import { URLS } from '../../config'
2019
import { ErrorBoundary } from '../common'

0 commit comments

Comments
 (0)