Integrations: design fixes and remove feature flag (#4003)
* Integrations: design fixes and remove feature flag * Fix
This commit is contained in:
@ -1,22 +0,0 @@
|
||||
export enum IntegrationType {
|
||||
Use = 'Use',
|
||||
Goto = 'Goto',
|
||||
Soon = 'Soon',
|
||||
}
|
||||
|
||||
export interface Integration {
|
||||
from: { key: string; image: string };
|
||||
to: { key: string; image: string } | null;
|
||||
type: IntegrationType;
|
||||
linkText?: string;
|
||||
link: string;
|
||||
text: string;
|
||||
}
|
||||
|
||||
export interface IntegrationCategory {
|
||||
key: string;
|
||||
title: string;
|
||||
hyperlinkText?: string;
|
||||
hyperlink: string | null;
|
||||
integrations: Integration[];
|
||||
}
|
||||
@ -1,12 +0,0 @@
|
||||
import { IntegrationCategory } from './IntegrationTypes';
|
||||
import requestIntegrations from './Request';
|
||||
import windmillIntegrations from './Windmill';
|
||||
import zapierIntegrations from './Zapier';
|
||||
|
||||
const integrationCategories: IntegrationCategory[] = [
|
||||
zapierIntegrations,
|
||||
windmillIntegrations,
|
||||
requestIntegrations,
|
||||
];
|
||||
|
||||
export default integrationCategories;
|
||||
@ -1,19 +0,0 @@
|
||||
import { IntegrationCategory, IntegrationType } from './IntegrationTypes';
|
||||
|
||||
const requestIntegrations: IntegrationCategory = {
|
||||
key: 'request',
|
||||
title: 'Request an integration',
|
||||
hyperlink: null,
|
||||
integrations: [
|
||||
{
|
||||
from: { key: 'github', image: '/images/integrations/Github.png' },
|
||||
to: null,
|
||||
type: IntegrationType.Goto,
|
||||
text: 'Request an integration on Github conversations',
|
||||
link: 'https://github.com/twentyhq/twenty/issues/new/choose',
|
||||
linkText: 'Go to GitHub',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default requestIntegrations;
|
||||
@ -0,0 +1,10 @@
|
||||
import { SETTINGS_INTEGRATION_REQUEST_CATEGORY } from '~/pages/settings/integrations/constants/SettingsIntegrationRequest';
|
||||
import { SETTINGS_INTEGRATION_WINDMILL_CATEGORY } from '~/pages/settings/integrations/constants/SettingsIntegrationWindmill';
|
||||
import { SETTINGS_INTEGRATION_ZAPIER_CATEGORY } from '~/pages/settings/integrations/constants/SettingsIntegrationZapier';
|
||||
import { SettingsIntegrationCategory } from '~/pages/settings/integrations/types/SettingsIntegrationCategory';
|
||||
|
||||
export const SETTINGS_INTEGRATION_CATEGORIES: SettingsIntegrationCategory[] = [
|
||||
SETTINGS_INTEGRATION_ZAPIER_CATEGORY,
|
||||
SETTINGS_INTEGRATION_WINDMILL_CATEGORY,
|
||||
SETTINGS_INTEGRATION_REQUEST_CATEGORY,
|
||||
];
|
||||
@ -0,0 +1,18 @@
|
||||
import { SettingsIntegrationCategory } from '~/pages/settings/integrations/types/SettingsIntegrationCategory';
|
||||
|
||||
export const SETTINGS_INTEGRATION_REQUEST_CATEGORY: SettingsIntegrationCategory =
|
||||
{
|
||||
key: 'request',
|
||||
title: 'Request an integration',
|
||||
hyperlink: null,
|
||||
integrations: [
|
||||
{
|
||||
from: { key: 'github', image: '/images/integrations/github-logo.png' },
|
||||
to: null,
|
||||
type: 'Goto',
|
||||
text: 'Request an integration on Github conversations',
|
||||
link: 'https://github.com/twentyhq/twenty/discussions/categories/ideas',
|
||||
linkText: 'Go to GitHub',
|
||||
},
|
||||
],
|
||||
};
|
||||
@ -0,0 +1,21 @@
|
||||
import { SettingsIntegrationCategory } from '~/pages/settings/integrations/types/SettingsIntegrationCategory';
|
||||
|
||||
export const SETTINGS_INTEGRATION_WINDMILL_CATEGORY: SettingsIntegrationCategory =
|
||||
{
|
||||
key: 'windmill',
|
||||
title: 'With Windmill',
|
||||
hyperlink: null,
|
||||
integrations: [
|
||||
{
|
||||
from: {
|
||||
key: 'windmill',
|
||||
image: '/images/integrations/windmill-logo.png',
|
||||
},
|
||||
to: null,
|
||||
type: 'Goto',
|
||||
text: 'Create a workflow with Windmill',
|
||||
link: 'https://www.windmill.dev',
|
||||
linkText: 'Go to Windmill',
|
||||
},
|
||||
],
|
||||
};
|
||||
@ -0,0 +1,42 @@
|
||||
import { SettingsIntegrationCategory } from '~/pages/settings/integrations/types/SettingsIntegrationCategory';
|
||||
|
||||
export const SETTINGS_INTEGRATION_ZAPIER_CATEGORY: SettingsIntegrationCategory =
|
||||
{
|
||||
key: 'zapier',
|
||||
title: 'With Zapier',
|
||||
hyperlinkText: 'See all zaps',
|
||||
hyperlink: 'https://zapier.com/apps/twenty/integrations',
|
||||
integrations: [
|
||||
{
|
||||
from: { key: 'twenty', image: '/images/integrations/twenty-logo.svg' },
|
||||
to: { key: 'slack', image: '/images/integrations/slack-logo.png' },
|
||||
type: 'Use',
|
||||
text: 'Post to Slack when a company is updated',
|
||||
link: 'https://zapier.com/apps/twenty/integrations/slack',
|
||||
},
|
||||
{
|
||||
from: { key: 'cal', image: '/images/integrations/cal-logo.png' },
|
||||
to: { key: 'twenty', image: '/images/integrations/twenty-logo.svg' },
|
||||
type: 'Use',
|
||||
text: 'Create a person when Cal.com event is created',
|
||||
link: 'https://zapier.com/apps/twenty/integrations/calcom',
|
||||
},
|
||||
{
|
||||
from: {
|
||||
key: 'mailchimp',
|
||||
image: '/images/integrations/mailchimp-logo.png',
|
||||
},
|
||||
to: { key: 'twenty', image: '/images/integrations/twenty-logo.svg' },
|
||||
type: 'Use',
|
||||
text: 'Create a person when a MailChimp sub is created',
|
||||
link: 'https://zapier.com/apps/twenty/integrations/mailchimp',
|
||||
},
|
||||
{
|
||||
from: { key: 'tally', image: '/images/integrations/tally-logo.png' },
|
||||
to: { key: 'twenty', image: '/images/integrations/twenty-logo.svg' },
|
||||
type: 'Use',
|
||||
text: 'Create a company when a Tally form is sent',
|
||||
link: 'https://zapier.com/apps/twenty/integrations/tally',
|
||||
},
|
||||
],
|
||||
};
|
||||
@ -1,19 +0,0 @@
|
||||
import { IntegrationCategory, IntegrationType } from './IntegrationTypes';
|
||||
|
||||
const windmillIntegrations: IntegrationCategory = {
|
||||
key: 'windmill',
|
||||
title: 'With Windmill',
|
||||
hyperlink: null,
|
||||
integrations: [
|
||||
{
|
||||
from: { key: 'windmill', image: '/images/integrations/Windmill.png' },
|
||||
to: null,
|
||||
type: IntegrationType.Goto,
|
||||
text: 'Create a workflow with Windmill',
|
||||
link: 'https://www.windmill.dev',
|
||||
linkText: 'Go to Windmill',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default windmillIntegrations;
|
||||
@ -1,40 +0,0 @@
|
||||
import { IntegrationCategory, IntegrationType } from './IntegrationTypes';
|
||||
|
||||
const zapierIntegrations: IntegrationCategory = {
|
||||
key: 'zapier',
|
||||
title: 'With Zapier',
|
||||
hyperlinkText: 'See all zaps',
|
||||
hyperlink: 'https://zapier.com/apps/twenty/integrations',
|
||||
integrations: [
|
||||
{
|
||||
from: { key: 'twenty', image: '/images/integrations/Twenty.svg' },
|
||||
to: { key: 'slack', image: '/images/integrations/Slack.png' },
|
||||
type: IntegrationType.Use,
|
||||
text: 'Post to Slack when a company is updated',
|
||||
link: 'https://zapier.com/apps/twenty/integrations/slack',
|
||||
},
|
||||
{
|
||||
from: { key: 'cal', image: '/images/integrations/Cal.png' },
|
||||
to: { key: 'twenty', image: '/images/integrations/Twenty.svg' },
|
||||
type: IntegrationType.Use,
|
||||
text: 'Create a person when Cal.com event is created',
|
||||
link: 'https://zapier.com/apps/twenty/integrations/calcom',
|
||||
},
|
||||
{
|
||||
from: { key: 'mailchimp', image: '/images/integrations/MailChimp.png' },
|
||||
to: { key: 'twenty', image: '/images/integrations/Twenty.svg' },
|
||||
type: IntegrationType.Use,
|
||||
text: 'Create a person when a MailChimp sub is created',
|
||||
link: 'https://zapier.com/apps/twenty/integrations/mailchimp',
|
||||
},
|
||||
{
|
||||
from: { key: 'tally', image: '/images/integrations/Tally.png' },
|
||||
to: { key: 'twenty', image: '/images/integrations/Twenty.svg' },
|
||||
type: IntegrationType.Use,
|
||||
text: 'Create a company when a Tally form is sent',
|
||||
link: 'https://zapier.com/apps/twenty/integrations/tally',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default zapierIntegrations;
|
||||
Reference in New Issue
Block a user