Skip to content

Commit 48335d2

Browse files
Merge branch 'main' into feat/cm-based-default-cluster-show
2 parents 2678e19 + 6172db0 commit 48335d2

File tree

23 files changed

+55
-142
lines changed

23 files changed

+55
-142
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"private": true,
55
"homepage": "/dashboard",
66
"dependencies": {
7-
"@devtron-labs/devtron-fe-common-lib": "0.0.43",
7+
"@devtron-labs/devtron-fe-common-lib": "0.0.44",
8+
"@rjsf/core": "^5.13.3",
9+
"@rjsf/utils": "^5.13.3",
10+
"@rjsf/validator-ajv8": "^5.13.3",
811
"@sentry/browser": "^7.3.1",
912
"@sentry/integrations": "^7.3.1",
1013
"@sentry/tracing": "^7.3.1",

src/assets/img/cluster-redirect.png

-97.4 KB
Binary file not shown.

src/components/ClusterNodes/ClusterNodeContainer.tsx

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

src/components/ClusterNodes/ClusterOverview.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ import { ReactComponent as ClusterOverviewIcon } from '../../assets/icons/cluste
2424
import { MAX_LENGTH_350, SOME_ERROR_MSG } from '../../config/constantMessaging'
2525
import ConnectingToClusterState from '../ResourceBrowser/ResourceList/ConnectingToClusterState'
2626
import { EditableTextArea } from '../common/EditableTextArea/EditableTextArea'
27+
import { importComponentFromFELibrary } from '../common'
28+
29+
const Catalog = importComponentFromFELibrary('Catalog')
2730

2831
function ClusterOverview({
2932
isSuperAdmin,
@@ -567,12 +570,13 @@ function ClusterOverview({
567570
return (
568571
<div
569572
className="pl-20 pt-20 pr-20 dc__column-gap-32 h-100 dc__overflow-auto flexbox flex-justify-center"
570-
style={{ backgroundImage: 'linear-gradient(249deg, #D4E6F7 0%, var(--N50)50.58%)' }}
573+
style={{ backgroundImage: 'linear-gradient(249deg, #D4E6F7 0%, var(--N0)50.58%)' }}
571574
>
572575
{renderSideInfoData()}
573-
<div className="dc__mxw-1068 flex-grow-1">
576+
<div className="dc__mxw-1068 flex-grow-1 mw-none">
574577
{renderCardDetails()}
575578
{renderClusterError()}
579+
{Catalog && <Catalog resourceId={clusterId} resourceType="cluster" />}
576580
<GenericDescription
577581
isClusterTerminal={true}
578582
clusterId={clusterId}

src/components/Jobs/Constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export const JOB_LIST_HEADERS = {
4242
RUN_IN_ENVIRONMENT: 'RUN IN ENVIRONMENT'
4343
}
4444

45-
export const YET_TO_RUN = 'Yet to run'
4645
export const JOBLIST_EMPTY_STATE_MESSAGING = {
4746
createJob: 'Create your first job',
4847
createJobInfoText:

src/components/Jobs/ExpandedRow/ExpandedRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { Link } from 'react-router-dom'
33
import { ReactComponent as Expand } from '../../../assets/icons/ic-dropdown-filled.svg'
44
import { ReactComponent as Settings } from '../../../assets/icons/ic-settings.svg'
55
import { ExpandedRowProps, Job, JobCIPipeline } from '../Types'
6-
import AppStatus from '../../app/AppStatus'
76
import './ExpandedRow.scss'
87
import { URLS } from '../../../config'
98
import { environmentName } from '../Utils'
109
import { DEFAULT_ENV } from '../../app/details/triggerView/Constants'
10+
import { AppStatus } from '@devtron-labs/devtron-fe-common-lib'
1111

1212
export default function ExpandedRow(props: ExpandedRowProps) {
1313
const handleEditJob = () => {

src/components/Jobs/JobList/JobListView.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import React from 'react'
2-
import { ErrorScreenManager, Progressing } from '@devtron-labs/devtron-fe-common-lib'
2+
import { AppStatus, ErrorScreenManager, Progressing } from '@devtron-labs/devtron-fe-common-lib'
33
import { Pagination } from '../../common'
44
import { Link, useHistory, useLocation } from 'react-router-dom'
55
import { ReactComponent as Edit } from '../../../assets/icons/ic-settings.svg'
66
import { ReactComponent as JobIcon } from '../../../assets/icons/ic-job-node.svg'
77
import { ReactComponent as Arrow } from '../../../assets/icons/ic-dropdown-filled.svg'
88
import { OrderBy, SortBy } from '../../app/list/types'
9-
import AppStatus from '../../app/AppStatus'
109
import { Job, JobListViewProps } from '../Types'
1110
import { JobListViewType, JOB_LIST_HEADERS } from '../Constants'
1211
import ExpandedRow from '../ExpandedRow/ExpandedRow'

src/components/app/AppStatus.tsx

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

src/components/app/Overview/EnvironmentList.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@ import React, { useMemo, useState } from 'react'
22

33
import Tippy from '@tippyjs/react'
44
import { Link, useHistory } from 'react-router-dom'
5-
import { useAsync, getRandomColor, GenericEmptyState } from '@devtron-labs/devtron-fe-common-lib'
5+
import {
6+
useAsync,
7+
getRandomColor,
8+
processDeployedTime,
9+
AppStatus,
10+
GenericEmptyState,
11+
} from '@devtron-labs/devtron-fe-common-lib'
612

713
import { ModuleNameMap, URLS } from '../../../config'
8-
import { processDeployedTime } from '../../common'
914
import { ReactComponent as VirtualEnvIcon } from '../../../assets/icons/ic-environment-temp.svg'
1015
import { ReactComponent as Database } from '../../../assets/icons/ic-env.svg'
1116
import { ReactComponent as ActivityIcon } from '../../../assets/icons/ic-activity.svg'
1217
import { ReactComponent as ArrowLineDown } from '../../../assets/icons/ic-arrow-line-down.svg'
1318
import { ReactComponent as IconForward } from '../../../assets/icons/ic-arrow-forward.svg'
1419
import { ReactComponent as DockerIcon } from '../../../assets/icons/git/docker.svg'
15-
import AppStatus from '../AppStatus'
1620
import { StatusConstants } from '../list-new/Constants'
1721
import { EMPTY_STATE_STATUS } from '../../../config/constantMessaging'
1822
import { AppMetaInfo, AppOverviewProps } from '../types'
@@ -138,12 +142,12 @@ export const EnvironmentList = ({
138142
)}
139143
<Link
140144
to={`${URLS.APP}/${appId}/details/${_env.environmentId}/`}
141-
className="fs-13 dc__ellipsis-right"
145+
className="anchor fs-13 dc__ellipsis-right"
142146
>
143147
{_env.environmentName}
144148
</Link>
145149
{_env.lastDeployedImage ? (
146-
<div className="cn-7 fs-13 flexbox">
150+
<div className="cn-7 fs-14 flexbox">
147151
<Tippy
148152
content={_env.lastDeployedImage}
149153
className="default-tt"
@@ -189,7 +193,7 @@ export const EnvironmentList = ({
189193
</span>
190194
<span>{_env.lastDeployedBy}</span>
191195
</span>
192-
<Link to={getDeploymentHistoryLink(_env)} className="cursor">
196+
<Link to={getDeploymentHistoryLink(_env)} className="anchor cursor">
193197
{processDeployedTime(_env.lastDeployed, isArgoInstalled)}
194198
</Link>
195199
</span>

src/components/app/Overview/Overview.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
.app-overview-container {
22
display: grid;
3-
grid-template-columns: 0 minmax(auto, 1400px);
3+
grid-template-columns: 0 minmax(0, 1400px);
44
justify-content: center;
55
background: linear-gradient(249deg, #D4E6F7 0%, var(--N50) 50.58%);
66
overflow: auto;
77
transition: grid-template-columns 0.2s ease-out;
88

99
&.sidebar-open {
10-
grid-template-columns: 300px minmax(auto, 1068px);
10+
grid-template-columns: 300px minmax(0, 1068px);
1111
gap: 32px;
1212
}
1313

0 commit comments

Comments
 (0)