-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as ContinuousDeliveryEE } from "git/components/DefaultBranch/DefaultBranchCE"; |
58 changes: 58 additions & 0 deletions
58
app/client/src/git/components/ContinuousDelivery/ContinuousDeliveryCE.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import { | ||
CONFIGURE_CD_DESC, | ||
CONFIGURE_CD_TITLE, | ||
TRY_APPSMITH_ENTERPRISE, | ||
createMessage, | ||
} from "ee/constants/messages"; | ||
import { Button, Text } from "@appsmith/ads"; | ||
import { useAppsmithEnterpriseLink } from "pages/Editor/gitSync/GitSettingsModal/TabBranch/hooks"; | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
export const Container = styled.div` | ||
padding-top: 8px; | ||
padding-bottom: 16px; | ||
overflow: auto; | ||
min-height: calc(360px + 52px); | ||
`; | ||
|
||
export const SectionTitle = styled(Text)` | ||
font-weight: 600; | ||
margin-bottom: 4px; | ||
`; | ||
|
||
export const SectionDesc = styled(Text)` | ||
margin-bottom: 12px; | ||
`; | ||
|
||
export const StyledButton = styled(Button)` | ||
display: inline-block; | ||
`; | ||
|
||
function ContinuousDeliveryCE() { | ||
const enterprisePricingLink = useAppsmithEnterpriseLink( | ||
"git_continuous_delivery", | ||
); | ||
|
||
return ( | ||
<Container> | ||
<SectionTitle kind="heading-s" renderAs="h3"> | ||
{createMessage(CONFIGURE_CD_TITLE)} | ||
</SectionTitle> | ||
<SectionDesc kind="body-m" renderAs="p"> | ||
{createMessage(CONFIGURE_CD_DESC)} | ||
</SectionDesc> | ||
<StyledButton | ||
href={enterprisePricingLink} | ||
kind="primary" | ||
renderAs="a" | ||
size="md" | ||
target="_blank" | ||
> | ||
{createMessage(TRY_APPSMITH_ENTERPRISE)} | ||
</StyledButton> | ||
</Container> | ||
); | ||
} | ||
|
||
export default ContinuousDeliveryCE; |
16 changes: 16 additions & 0 deletions
16
app/client/src/git/components/ContinuousDelivery/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import useGitFeatureFlags from "git/hooks/useGitFeatureFlags"; | ||
import React from "react"; | ||
import ContinuousDeliveryCE from "./ContinuousDeliveryCE"; | ||
import { ContinuousDeliveryEE } from "ee/git/components/ContinuousDelivery"; | ||
|
||
function ContinuousDelivery() { | ||
const { license_git_continuous_delivery_enabled } = useGitFeatureFlags(); | ||
|
||
if (license_git_continuous_delivery_enabled) { | ||
return <ContinuousDeliveryEE />; | ||
} | ||
|
||
return <ContinuousDeliveryCE />; | ||
} | ||
|
||
export default ContinuousDelivery; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters