diff --git a/packages/app-store/apps.metadata.generated.ts b/packages/app-store/apps.metadata.generated.ts index 212ed4df81..2f3e40fdbe 100644 --- a/packages/app-store/apps.metadata.generated.ts +++ b/packages/app-store/apps.metadata.generated.ts @@ -34,6 +34,7 @@ import ics_feedcalendar_config_json from "./ics-feedcalendar/config.json"; import intercom_config_json from "./intercom/config.json"; import { metadata as jitsivideo__metadata_ts } from "./jitsivideo/_metadata"; import { metadata as larkcalendar__metadata_ts } from "./larkcalendar/_metadata"; +import linear_config_json from "./linear/config.json"; import make_config_json from "./make/config.json"; import matomo_config_json from "./matomo/config.json"; import metapixel_config_json from "./metapixel/config.json"; @@ -116,6 +117,7 @@ export const appStoreMetadata = { intercom: intercom_config_json, jitsivideo: jitsivideo__metadata_ts, larkcalendar: larkcalendar__metadata_ts, + linear: linear_config_json, make: make_config_json, matomo: matomo_config_json, metapixel: metapixel_config_json, diff --git a/packages/app-store/apps.server.generated.ts b/packages/app-store/apps.server.generated.ts index 22329aa6b8..38c2106850 100644 --- a/packages/app-store/apps.server.generated.ts +++ b/packages/app-store/apps.server.generated.ts @@ -34,6 +34,7 @@ export const apiHandlers = { intercom: import("./intercom/api"), jitsivideo: import("./jitsivideo/api"), larkcalendar: import("./larkcalendar/api"), + linear: import("./linear/api"), make: import("./make/api"), matomo: import("./matomo/api"), metapixel: import("./metapixel/api"), diff --git a/packages/app-store/linear/DESCRIPTION.md b/packages/app-store/linear/DESCRIPTION.md new file mode 100644 index 0000000000..d7acc4ef6a --- /dev/null +++ b/packages/app-store/linear/DESCRIPTION.md @@ -0,0 +1,19 @@ +--- +items: + - 1.jpg +--- + +{DESCRIPTION} + +### Overview +The Linear integration with Google calendar allows you to connect your calendar and automate your status. If your teammates need to know whether you’re out of office, now they will. + +### How it works +Once connected, your Linear status will detect out of office events in Google calendar and update your status when those events are upcoming or active. + +### To Configure +Install Google Calendar from your Linear settings under My Account > Linked accounts. + +Connect your account and sign into your Google account to allow access. + +Success! Your calendar is connected and will update your Linear status with out of office notices. diff --git a/packages/app-store/linear/api/add.ts b/packages/app-store/linear/api/add.ts new file mode 100644 index 0000000000..682ebcaec9 --- /dev/null +++ b/packages/app-store/linear/api/add.ts @@ -0,0 +1,20 @@ +import { createDefaultInstallation } from "@calcom/app-store/_utils/installation"; +import type { AppDeclarativeHandler } from "@calcom/types/AppHandler"; + +import appConfig from "../config.json"; + +const handler: AppDeclarativeHandler = { + appType: appConfig.type, + variant: appConfig.variant, + slug: appConfig.slug, + supportsMultipleInstalls: false, + handlerType: "add", + redirect: { + newTab: true, + url: "https://linear.app/settings/integrations/google-calendar", + }, + createCredential: ({ appType, user, slug, teamId }) => + createDefaultInstallation({ appType, user: user, slug, key: {}, teamId }), +}; + +export default handler; diff --git a/packages/app-store/linear/api/index.ts b/packages/app-store/linear/api/index.ts new file mode 100644 index 0000000000..4c0d2ead01 --- /dev/null +++ b/packages/app-store/linear/api/index.ts @@ -0,0 +1 @@ +export { default as add } from "./add"; diff --git a/packages/app-store/linear/components/.gitkeep b/packages/app-store/linear/components/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/app-store/linear/config.json b/packages/app-store/linear/config.json new file mode 100644 index 0000000000..4f0bbe72e3 --- /dev/null +++ b/packages/app-store/linear/config.json @@ -0,0 +1,17 @@ +{ + "/*": "Don't modify slug - If required, do it using cli edit command", + "name": "Linear", + "slug": "linear", + "type": "linear_other", + "logo": "icon.svg", + "url": "https://linear.app", + "variant": "other", + "categories": ["other"], + "publisher": "Linear", + "email": "support@linear.app", + "description": "Linear is a better way to build products. Connect your calendar to automate your status", + "isTemplate": false, + "__createdUsingCli": true, + "dependencies": ["google-calendar"], + "__template": "link-as-an-app" +} diff --git a/packages/app-store/linear/index.ts b/packages/app-store/linear/index.ts new file mode 100644 index 0000000000..d7f3602204 --- /dev/null +++ b/packages/app-store/linear/index.ts @@ -0,0 +1 @@ +export * as api from "./api"; diff --git a/packages/app-store/linear/package.json b/packages/app-store/linear/package.json new file mode 100644 index 0000000000..50305a2997 --- /dev/null +++ b/packages/app-store/linear/package.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "private": true, + "name": "@calcom/linear", + "version": "0.0.0", + "main": "./index.ts", + "dependencies": { + "@calcom/lib": "*" + }, + "devDependencies": { + "@calcom/types": "*" + }, + "description": "Connect your calendar to automate your status" +} diff --git a/packages/app-store/linear/static/1.jpg b/packages/app-store/linear/static/1.jpg new file mode 100644 index 0000000000..8d30f1c753 Binary files /dev/null and b/packages/app-store/linear/static/1.jpg differ diff --git a/packages/app-store/linear/static/icon.svg b/packages/app-store/linear/static/icon.svg new file mode 100644 index 0000000000..21eeca49aa --- /dev/null +++ b/packages/app-store/linear/static/icon.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +