Skip to content

Commit b93feca

Browse files
committed
feat: implement Automation Enablement Icon and update related components
1 parent 6d7705a commit b93feca

15 files changed

Lines changed: 87 additions & 70 deletions

File tree

src/Common/Dialogs/DialogForm.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export class DialogForm extends Component<PropsWithChildren<DialogFormProps>> {
5757
<div className={`modal__header ${this.props.headerClassName || ''}`}>
5858
<h1 className="modal__title">{this.props.title}</h1>
5959
<button type="button" className="dc__transparent" onClick={this.props.close}>
60-
{' '}
6160
<img src={close} alt="close" />
6261
</button>
6362
</div>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { Button, ButtonComponentType, ButtonVariantType, Icon } from '@Shared/Components'
2+
import { ComponentSizeType } from '@Shared/constants'
3+
import { ROUTER_URLS } from '@PagesDevtron2.0/index'
4+
5+
export const AutomationEnablementIcon = () => (
6+
<Button
7+
dataTestId="redirect-to-overview-btn"
8+
component={ButtonComponentType.link}
9+
size={ComponentSizeType.xs}
10+
variant={ButtonVariantType.borderLess}
11+
linkProps={{
12+
to: ROUTER_URLS.JOBS,
13+
}}
14+
icon={<Icon name="ic-bot" color={null} />}
15+
ariaLabel="Automation & Enablement"
16+
showAriaLabelInTippy
17+
/>
18+
)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './AutomationEnablementIcon'
2+
export { getAutomationEnablementBreadcrumb } from './utils'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { AutomationEnablementIcon } from './AutomationEnablementIcon'
2+
3+
export const getAutomationEnablementBreadcrumb = () => ({
4+
'automation-and-enablement': {
5+
component: <AutomationEnablementIcon />,
6+
linked: true,
7+
},
8+
})

src/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Pages-Devtron-2.0/Automation&Enablement/Overview/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './Overview'
1+
export * from './AutomationEnablementIcon'

src/Pages-Devtron-2.0/InfrastructureManagement/utils.tsx

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

src/Pages-Devtron-2.0/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export * from './ApplicationManagement'
2+
export * from './Automation&Enablement'
23
export * from './CostVisibility'
34
export * from './DataProtectionManagement'
45
export * from './InfrastructureManagement'

src/Shared/Components/CICDHistory/TriggerOutput.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,11 @@ const HistoryLogs: React.FC<HistoryLogsProps> = ({
238238
to={`${
239239
// eslint-disable-next-line no-nested-ternary
240240
triggerDetails.stage === 'DEPLOY'
241-
? `deployment-steps`
241+
? 'deployment-steps'
242242
: triggerDetails.status.toLowerCase() === 'succeeded' ||
243243
triggerDetails.IsVirtualEnvironment
244-
? `artifacts`
245-
: `logs`
244+
? 'artifacts'
245+
: 'logs'
246246
}`}
247247
replace
248248
/>

0 commit comments

Comments
 (0)