Skip to content

Commit

Permalink
feat: link to request integration (#4634)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek authored Sep 8, 2023
1 parent dff0420 commit 042e8d0
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { type VFC } from 'react';
import { Typography, styled } from '@mui/material';
import type { AddonTypeSchema } from 'openapi';
import useLoading from 'hooks/useLoading';
import { PageContent } from 'component/common/PageContent/PageContent';
import { PageHeader } from 'component/common/PageHeader/PageHeader';
import { IntegrationCard } from '../IntegrationCard/IntegrationCard';
import { JIRA_INFO } from '../../JiraIntegration/JiraIntegration';
import { StyledCardsGrid } from '../IntegrationList.styles';
import { Typography, styled } from '@mui/material';
import { RequestIntegrationCard } from '../RequestIntegrationCard/RequestIntegrationCard';
import { OFFICIAL_SDKS } from './SDKs';

interface IAvailableIntegrationsProps {
Expand Down Expand Up @@ -89,6 +90,7 @@ export const AvailableIntegrations: VFC<IAvailableIntegrationsProps> = ({
/>
)
)}
<RequestIntegrationCard />
</StyledCardsGrid>
</StyledSection>
<StyledSection>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import { VFC } from 'react';
import { styled, Typography } from '@mui/material';
import AddIcon from '@mui/icons-material/Add';

const StyledLink = styled('a')(({ theme }) => ({
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
padding: theme.spacing(3),
borderRadius: `${theme.shape.borderRadiusMedium}px`,
border: `1px dashed ${theme.palette.secondary.border}`,
textDecoration: 'none',
color: 'inherit',
background: theme.palette.background.elevation1,
':hover': {
backgroundColor: theme.palette.action.hover,
},
}));

const StyledAction = styled(Typography)(({ theme }) => ({
display: 'flex',
alignItems: 'center',
color: theme.palette.primary.main,
fontWeight: theme.typography.fontWeightBold,
paddingTop: theme.spacing(3),
gap: theme.spacing(0.5),
}));

export const RequestIntegrationCard: VFC = () => (
<StyledLink
href="https://docs.google.com/forms/d/e/1FAIpQLScR1_iuoQiKq89c0TKtj0gM02JVWyQ2hQ-YchBMc2GRrGf7uw/viewform"
target="_blank"
rel="noopener noreferrer"
>
<Typography variant="body2" color="text.secondary" data-loading>
Are we missing any integration that you need?
</Typography>
<Typography variant="body2" color="text.secondary" data-loading>
Go ahead and request it!
</Typography>
<StyledAction data-loading>
<AddIcon />
Request integration
</StyledAction>
</StyledLink>
);

0 comments on commit 042e8d0

Please sign in to comment.