Skip to content

Commit 0596384

Browse files
committed
feat: add ask tab in side panel
1 parent e2816d6 commit 0596384

File tree

11 files changed

+351
-37
lines changed

11 files changed

+351
-37
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"react-csv": "^2.2.2",
2929
"react-dates": "^21.8.0",
3030
"react-dom": "^17.0.2",
31+
"react-draggable": "^4.4.5",
3132
"react-ga4": "^1.4.1",
3233
"react-gtm-module": "^2.0.11",
3334
"react-mde": "^11.5.0",

src/Pages/GlobalConfigurations/ClustersAndEnvironments/CreateCluster/EnterpriseTrialDialog.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ import {
1010

1111
import { EnterpriseTrialDialogProps } from './types'
1212

13-
const EnterpriseTrialDialog = ({ featureTitle, featureDescription }: EnterpriseTrialDialogProps) => {
13+
const EnterpriseTrialDialog = ({ featureTitle, featureDescription, showBorder = true }: EnterpriseTrialDialogProps) => {
1414
const testimonialCount = TESTIMONIAL_CARD_DATA.length
1515
const randomNumber = Math.round(Math.random() * testimonialCount) % testimonialCount
1616
const testimonialConfig = TESTIMONIAL_CARD_DATA[randomNumber]
1717

1818
return (
19-
<div className="flexbox-col br-16 border__primary dc__overflow-hidden enterprise-trial-dialog">
19+
<div
20+
className={`flexbox-col ${showBorder ? 'border__primary br-16' : ''} dc__overflow-hidden enterprise-trial-dialog`}
21+
>
2022
<div className="p-24 flexbox-col dc__gap-16 border__secondary--bottom">
2123
<Icon name="ic-enterprise-tag" size={null} color={null} />
2224
<div className="flexbox-col dc__gap-8 ">

src/Pages/GlobalConfigurations/ClustersAndEnvironments/CreateCluster/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ export enum FooterComponentChildKey {
3636
export interface EnterpriseTrialDialogProps {
3737
featureTitle: string
3838
featureDescription: string
39+
showBorder?: boolean
3940
}

src/assets/img/ic-maintenance.svg

Lines changed: 130 additions & 0 deletions
Loading

src/components/common/SidePanel/SidePanel.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import {
1212
} from '@devtron-labs/devtron-fe-common-lib'
1313

1414
import { SIDE_PANEL_ASIDE_DRAG_HANDLE, SIDE_PANEL_MAX_ASIDE_WIDTH, SIDE_PANEL_MIN_ASIDE_WIDTH } from './constants'
15-
import { SidePanelDocumentation } from './SidePanelDocumentation'
16-
import { SidePanelProps } from './types'
15+
import { SidePanelContent } from './SidePanelContent'
16+
import { SidePanelProps, SidePanelTab } from './types'
1717

1818
import './SidePanel.scss'
1919

@@ -93,7 +93,7 @@ export const SidePanel = ({ asideWidth }: SidePanelProps) => {
9393
className={`flex-grow-1 dc__position-rel mt-8 mr-8 mb-8 br-6 bg__primary flexbox-col dc__overflow-hidden ${appTheme === AppThemeType.dark ? 'border__primary-translucent' : ''}`}
9494
>
9595
{contentOverlay && <div className="dc__position-abs w-100 h-100 dc__zi-1" />}
96-
<SidePanelDocumentation onClose={handleClose} />
96+
<SidePanelContent onClose={handleClose} initialTab={SidePanelTab.DOCUMENTATION} />
9797
</div>
9898
</motion.aside>
9999
)}

0 commit comments

Comments
 (0)