diff --git a/.changeset/vercel-integration.md b/.changeset/vercel-integration.md new file mode 100644 index 0000000000..8b638e3643 --- /dev/null +++ b/.changeset/vercel-integration.md @@ -0,0 +1,5 @@ +--- +"@trigger.dev/core": patch +--- + +Add Vercel integration support to API schemas: `commitSHA` and `integrationDeployments` on deployment responses, and `source` field for environment variable imports. diff --git a/.vscode/settings.json b/.vscode/settings.json index 12aefeb358..382a5ae620 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,5 +7,6 @@ "packages/cli-v3/e2e": true }, "vitest.disableWorkspaceWarning": true, - "typescript.experimental.useTsgo": false + "typescript.experimental.useTsgo": true, + "chat.agent.maxRequests": 10000 } diff --git a/apps/webapp/app/components/GitHubLoginButton.tsx b/apps/webapp/app/components/GitHubLoginButton.tsx index 87238db087..76a494927c 100644 --- a/apps/webapp/app/components/GitHubLoginButton.tsx +++ b/apps/webapp/app/components/GitHubLoginButton.tsx @@ -32,8 +32,6 @@ export function OctoKitty({ className }: { className?: string }) { baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" - x="0px" - y="0px" viewBox="0 0 2350 2314.8" xmlSpace="preserve" fill="currentColor" diff --git a/apps/webapp/app/components/integrations/VercelBuildSettings.tsx b/apps/webapp/app/components/integrations/VercelBuildSettings.tsx new file mode 100644 index 0000000000..3001894f24 --- /dev/null +++ b/apps/webapp/app/components/integrations/VercelBuildSettings.tsx @@ -0,0 +1,180 @@ +import { Switch } from "~/components/primitives/Switch"; +import { Label } from "~/components/primitives/Label"; +import { Hint } from "~/components/primitives/Hint"; +import { TextLink } from "~/components/primitives/TextLink"; +import { + EnvironmentIcon, + environmentFullTitle, + environmentTextClassName, +} from "~/components/environments/EnvironmentLabel"; +import type { EnvSlug } from "~/v3/vercel/vercelProjectIntegrationSchema"; + +type BuildSettingsFieldsProps = { + availableEnvSlugs: EnvSlug[]; + pullEnvVarsBeforeBuild: EnvSlug[]; + onPullEnvVarsChange: (slugs: EnvSlug[]) => void; + discoverEnvVars: EnvSlug[]; + onDiscoverEnvVarsChange: (slugs: EnvSlug[]) => void; + atomicBuilds: EnvSlug[]; + onAtomicBuildsChange: (slugs: EnvSlug[]) => void; + envVarsConfigLink?: string; +}; + +function slugToEnvType(slug: EnvSlug) { + return slug === "prod" ? "PRODUCTION" : slug === "stg" ? "STAGING" : "PREVIEW"; +} + +export function BuildSettingsFields({ + availableEnvSlugs, + pullEnvVarsBeforeBuild, + onPullEnvVarsChange, + discoverEnvVars, + onDiscoverEnvVarsChange, + atomicBuilds, + onAtomicBuildsChange, + envVarsConfigLink, +}: BuildSettingsFieldsProps) { + return ( + <> + {/* Pull env vars before build */} +