-
Notifications
You must be signed in to change notification settings - Fork 7
feat: about devtron dialog #716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
98335a8
feat: add animation in tab group tabs
arunjaindev 3f1ebc0
feat: add type for unique tab group id prop
arunjaindev 1999c44
chore: remove extra css
arunjaindev 134db80
Merge branch 'develop' of https://github.com/devtron-labs/devtron-fe-…
arunjaindev aac6961
feat: remove prop for align active border with container, use default…
arunjaindev 6f1293b
feat: add about devtron dialog for oss
arunjaindev 11a2ec5
chore: update dialog layout
arunjaindev 2e56ca9
Merge branch 'develop' of https://github.com/devtron-labs/devtron-fe-…
arunjaindev fb512c6
feat: hide version in case of mismatch
arunjaindev 29a038a
Merge branch 'develop' into feat/tab-group-animations
arunjaindev ef85e86
Merge branch 'feat/about-devtron' of https://github.com/devtron-labs/…
arunjaindev 8829c4c
Merge pull request #713 from devtron-labs/feat/tab-group-animations
arunjaindev 986f418
chore: rename version compatibility variable
arunjaindev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,75 @@ | ||
| import ReactGA from 'react-ga4' | ||
|
|
||
| import DevtronCopyright from '@Common/DevtronCopyright' | ||
| import { EULA_LINK, PRIVACY_POLICY_LINK, TERMS_OF_USE_LINK } from '@Shared/constants' | ||
| import { useMainContext } from '@Shared/Providers' | ||
|
|
||
| import { Button, ButtonComponentType, ButtonStyleType, ButtonVariantType } from '../Button' | ||
| import { InstallationType } from '../Header/types' | ||
| import { Icon } from '../Icon' | ||
|
|
||
| const AboutDevtronBody = () => { | ||
| const { currentServerInfo } = useMainContext() | ||
|
|
||
| const currentVersion = currentServerInfo?.serverInfo?.currentVersion | ||
| const isEnterprise = currentServerInfo?.serverInfo?.installationType === InstallationType.ENTERPRISE | ||
|
|
||
| const handleEULAClick = () => { | ||
| ReactGA.event({ | ||
| category: 'about-devtron', | ||
| action: 'ABOUT_DEVTRON_LICENSE_AGREEMENT_CLICKED', | ||
| }) | ||
| } | ||
|
|
||
| return ( | ||
| <div className="flexbox-col p-32 dc__gap-24 br-16 border__secondary bg__secondary"> | ||
| <div className="flexbox-col dc__align-items-center dc__gap-16 text-center"> | ||
| <div className="flex p-6 border__primary br-8"> | ||
| <Icon name="ic-devtron" color="B500" size={40} /> | ||
| </div> | ||
| <div> | ||
| <p className="fs-16 cn-9 fw-6 lh-1-5 m-0">Devtron</p> | ||
| <p className="fs-13 cn-7 fw-4 lh-20 m-0">{`${isEnterprise ? 'Enterprise' : 'OSS'} Version${currentVersion ? `(${currentVersion})` : ''}`}</p> | ||
| </div> | ||
| <DevtronCopyright /> | ||
| </div> | ||
| <div className="flexbox flex-wrap dc__content-center dc__gap-4"> | ||
| <Button | ||
| dataTestId="terms-of-service" | ||
| text="Terms of service" | ||
| variant={ButtonVariantType.text} | ||
| style={ButtonStyleType.neutral} | ||
| component={ButtonComponentType.anchor} | ||
| anchorProps={{ | ||
| href: TERMS_OF_USE_LINK, | ||
| }} | ||
| /> | ||
| <span>•</span> | ||
| <Button | ||
| dataTestId="privacy-policy" | ||
| text="Privacy policy" | ||
| variant={ButtonVariantType.text} | ||
| style={ButtonStyleType.neutral} | ||
| component={ButtonComponentType.anchor} | ||
| anchorProps={{ | ||
| href: PRIVACY_POLICY_LINK, | ||
| }} | ||
| /> | ||
| <span>•</span> | ||
| <Button | ||
| dataTestId="license-agreement" | ||
| text="End-User License agreement" | ||
| variant={ButtonVariantType.text} | ||
| style={ButtonStyleType.neutral} | ||
| onClick={handleEULAClick} | ||
| component={ButtonComponentType.anchor} | ||
| anchorProps={{ | ||
| href: EULA_LINK, | ||
| }} | ||
| /> | ||
| </div> | ||
| </div> | ||
| ) | ||
| } | ||
|
|
||
| export default AboutDevtronBody | ||
This file contains hidden or 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,25 @@ | ||
| import { ComponentSizeType } from '@Shared/constants' | ||
|
|
||
| import { Backdrop } from '../Backdrop' | ||
| import { Button } from '../Button' | ||
| import AboutDevtronBody from './AboutDevtronBody' | ||
|
|
||
| const AboutDevtronDialog = ({ handleCloseLicenseInfoDialog }: { handleCloseLicenseInfoDialog }) => ( | ||
| <Backdrop onEscape={handleCloseLicenseInfoDialog}> | ||
| <div className="flexbox-col w-400 br-12 bg__primary border__primary dc__m-auto mt-40"> | ||
| <div className="p-24"> | ||
| <AboutDevtronBody /> | ||
| </div> | ||
| <div className="flex px-24 py-20 dc__content-end"> | ||
| <Button | ||
| dataTestId="license-info-okay" | ||
| text="Okay" | ||
| size={ComponentSizeType.medium} | ||
| onClick={handleCloseLicenseInfoDialog} | ||
| /> | ||
| </div> | ||
| </div> | ||
| </Backdrop> | ||
| ) | ||
|
|
||
| export default AboutDevtronDialog |
This file contains hidden or 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,2 @@ | ||
| export { default as AboutDevtronBody } from './AboutDevtronBody' | ||
| export { default as AboutDevtronDialog } from './AboutDevtronDialog' |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.