Skip to content

Commit 06d27e3

Browse files
authored
Merge pull request #2941 from devtron-labs/feat/nested-navigation-route
feat: nested breadcrumb in Policy & configurataion
2 parents 5515469 + 4cecd2f commit 06d27e3

File tree

7 files changed

+14
-18
lines changed

7 files changed

+14
-18
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"homepage": "/dashboard",
66
"dependencies": {
7-
"@devtron-labs/devtron-fe-common-lib": "1.20.3-pre-12",
7+
"@devtron-labs/devtron-fe-common-lib": "1.20.5-pre-5",
88
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
99
"@rjsf/core": "^5.13.3",
1010
"@rjsf/utils": "^5.13.3",

src/Pages/GlobalConfigurations/BuildInfra/ProfileForm.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,18 @@ import React, { FunctionComponent, useMemo } from 'react'
1818

1919
import {
2020
APIResponseHandler,
21-
BUILD_INFRA_BREADCRUMB,
2221
BUILD_INFRA_TEXT,
2322
BuildInfraConfigForm,
2423
BuildInfraDescriptor,
2524
BuildInfraFooter,
2625
DEFAULT_PROFILE_NAME,
27-
useBreadcrumb,
26+
FeatureTitleWithInfo,
2827
useBuildInfraForm,
2928
} from '@devtron-labs/devtron-fe-common-lib'
3029

3130
import './styles.scss'
3231

3332
const ProfileForm: FunctionComponent = () => {
34-
const { breadcrumbs } = useBreadcrumb(BUILD_INFRA_BREADCRUMB)
3533
const {
3634
isLoading,
3735
profileResponse,
@@ -68,7 +66,7 @@ const ProfileForm: FunctionComponent = () => {
6866
onSubmit={handleSubmit}
6967
>
7068
<div className="flexbox-col dc__gap-24 pt pr pb pl h-100 dc__overflow-auto">
71-
<BuildInfraDescriptor breadCrumbs={breadcrumbs} />
69+
<BuildInfraDescriptor tooltipNode={<FeatureTitleWithInfo title={BUILD_INFRA_TEXT.HEADING} />} />
7270

7371
<APIResponseHandler
7472
isLoading={isLoading}

src/components/charts/ChartGroupAdvanceDeploy.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import React, { useState, useEffect, useCallback } from 'react'
17+
import { useState, useEffect, useCallback } from 'react'
1818
import { useParams, useHistory, useLocation, useRouteMatch, Prompt } from 'react-router-dom'
1919
import {
2020
showError,
@@ -27,7 +27,6 @@ import {
2727
ToastVariantType,
2828
ToastManager,
2929
getApplicationManagementBreadcrumb,
30-
BreadcrumbText,
3130
} from '@devtron-labs/devtron-fe-common-lib'
3231
import Tippy from '@tippyjs/react'
3332
import MultiChartSummary from './MultiChartSummary'

src/components/charts/list/DiscoverCharts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ const DiscoverChartList = ({ isSuperAdmin }: { isSuperAdmin: boolean }) => {
350350
},
351351
},
352352
},
353-
[],
353+
[isLoading, chartsList],
354354
)
355355

356356
const renderBreadcrumbs = () => {

src/components/scopedVariables/Descriptor.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { DescriptorProps } from './types'
2121
import { importComponentFromFELibrary, HiddenInput } from '../common'
2222
import { ReadFileAs } from '../common/hooks/types'
2323
import { ReactComponent as ICUpload } from '../../assets/icons/ic-upload-blue.svg'
24-
import { ReactComponent as ICSearch } from '../../assets/icons/ic-search.svg'
2524
import { HEADER_TEXT } from '@Config/constants'
2625

2726
export default function Descriptor({ children, showUploadButton, readFile, searchKey, onSearch }: DescriptorProps) {
@@ -32,7 +31,7 @@ export default function Descriptor({ children, showUploadButton, readFile, searc
3231
}
3332
}
3433

35-
const additonalTippyContent = importComponentFromFELibrary('scopedVariablesHelpTippyText')
34+
const additionalTippyContent = importComponentFromFELibrary('scopedVariablesHelpTippyText')
3635

3736
return (
3837
<>
@@ -45,9 +44,9 @@ export default function Descriptor({ children, showUploadButton, readFile, searc
4544
<FeatureTitleWithInfo
4645
title={HEADER_TEXT.SCOPED_VARIABLES.title}
4746
renderDescriptionContent={() =>
48-
additonalTippyContent ? null : HEADER_TEXT.SCOPED_VARIABLES.description
47+
additionalTippyContent ? null : HEADER_TEXT.SCOPED_VARIABLES.description
4948
}
50-
additionalContent={additonalTippyContent?.()}
49+
additionalContent={additionalTippyContent?.()}
5150
docLink={HEADER_TEXT.SCOPED_VARIABLES.docLink}
5251
showInfoIconTippy
5352
/>

src/components/v2/headers/EAHeader.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const EAHeaderComponent = ({
5656
linked: false,
5757
},
5858
':clusterId': null,
59-
':appId(\\d+)': null,
59+
':appId': null,
6060
},
6161
},
6262
[params.appName],

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,9 +1722,9 @@ __metadata:
17221722
languageName: node
17231723
linkType: hard
17241724

1725-
"@devtron-labs/devtron-fe-common-lib@npm:1.20.3-pre-12":
1726-
version: 1.20.3-pre-12
1727-
resolution: "@devtron-labs/devtron-fe-common-lib@npm:1.20.3-pre-12"
1725+
"@devtron-labs/devtron-fe-common-lib@npm:1.20.5-pre-5":
1726+
version: 1.20.5-pre-5
1727+
resolution: "@devtron-labs/devtron-fe-common-lib@npm:1.20.5-pre-5"
17281728
dependencies:
17291729
"@codemirror/autocomplete": "npm:6.18.6"
17301730
"@codemirror/lang-json": "npm:6.0.1"
@@ -1776,7 +1776,7 @@ __metadata:
17761776
react-select: 5.8.0
17771777
rxjs: ^7.8.1
17781778
yaml: ^2.4.1
1779-
checksum: 10c0/33b9aec93cc00f5aadd38ac8ff47f05aa5f0872360b96cec7f4cd97197914fd26da39a173bade82e723ab2661f7142b76291df60bac203643b4f6387143cab48
1779+
checksum: 10c0/44061f044e55c6cfa4c6a16002a246813c30f601565f1854d37a704e50f2c7bd384d3be29e7cb2c6959118ce8f4a51fcefbd1381b8e5df3676fbc7aa00d4dc78
17801780
languageName: node
17811781
linkType: hard
17821782

@@ -5581,7 +5581,7 @@ __metadata:
55815581
version: 0.0.0-use.local
55825582
resolution: "dashboard@workspace:."
55835583
dependencies:
5584-
"@devtron-labs/devtron-fe-common-lib": "npm:1.20.3-pre-12"
5584+
"@devtron-labs/devtron-fe-common-lib": "npm:1.20.5-pre-5"
55855585
"@esbuild-plugins/node-globals-polyfill": "npm:0.2.3"
55865586
"@playwright/test": "npm:^1.32.1"
55875587
"@rjsf/core": "npm:^5.13.3"

0 commit comments

Comments
 (0)