Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
updated heroku integration style
Vladyslav Matsiiakoa8678c14e84b
diff --git a/frontend/src/pages/integrations/heroku/create.tsx b/frontend/src/pages/integrations/heroku/create.tsxindex a63cc1d074..96cab1b6a7 100644--- a/frontend/src/pages/integrations/heroku/create.tsx+++ b/frontend/src/pages/integrations/heroku/create.tsx@@ -1,5 +1,10 @@import { useEffect, useState } from "react";+import Head from "next/head";+import Image from "next/image";+import Link from "next/link";import { useRouter } from "next/router";+import { faArrowUpRightFromSquare, faBookOpen, faBugs, faCircleInfo } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import queryString from "query-string";import { useCreateIntegration } from "@app/hooks/api";@@ -27,7 +32,7 @@ export default function HerokuCreateIntegrationPage() {const { data: workspace } = useGetWorkspaceById(localStorage.getItem("projectData.id") ?? "");const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");- const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ const { data: integrationAuthApps, isLoading: isIntegrationAuthAppsLoading } = useGetIntegrationAuthApps({integrationAuthId: (integrationAuthId as string) ?? ""});@@ -79,10 +84,41 @@ export default function HerokuCreateIntegrationPage() {selectedSourceEnvironment &&integrationAuthApps &&targetApp ? (- <div className="flex h-full w-full items-center justify-center">- <Card className="max-w-md rounded-md p-8">- <CardTitle className="text-center">Heroku Integration</CardTitle>- <FormControl label="Project Environment" className="mt-4">+ <div className="flex flex-col h-full w-full items-center justify-center">+ <Head>+ <title>Set Up Heroku Integration</title>+ <link rel="icon" href="/infisical.ico" />+ </Head>+ <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Select which environment or folder in Infisical you want to sync to Heroku's environment variables."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center">+ <Image+ src="/images/integrations/Heroku.png"+ height={30}+ width={30}+ alt="Heroku logo"+ />+ </div>+ <span className="ml-2">Heroku Integration </span>+ <Link href="https://infisical.com/docs/integrations/cloud/heroku" passHref>+ <a target="_blank" rel="noopener noreferrer">+ <div className="ml-2 mb-1 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="ml-1.5 mb-[0.07rem] text-xxs"+ />+ </div>+ </a>+ </Link>+ </div>+ </CardTitle>+ <FormControl label="Project Environment" className="px-6"><Selectvalue={selectedSourceEnvironment}onValueChange={(val) => setSelectedSourceEnvironment(val)}@@ -98,14 +134,14 @@ export default function HerokuCreateIntegrationPage() {))}</Select></FormControl>- <FormControl label="Secrets Path">+ <FormControl label="Secrets Path" className="px-6"><Inputvalue={secretPath}onChange={(evt) => setSecretPath(evt.target.value)}placeholder="Provide a path, default is /"/></FormControl>- <FormControl label="Heroku App" className="mt-4">+ <FormControl label="Heroku App" className="px-6"><Selectvalue={targetApp}onValueChange={(val) => setTargetApp(val)}@@ -131,16 +167,57 @@ export default function HerokuCreateIntegrationPage() {<ButtononClick={handleButtonClick}color="mineshaft"- className="mt-4"+ variant="outline_bg"+ className="mt-2 mb-6 ml-auto mr-6"isLoading={isLoading}isDisabled={integrationAuthApps.length === 0}>Create Integration</Button></Card>+ <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">+ <div className="flex flex-row items-center">+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}+ <span className="text-md ml-3 text-mineshaft-100">Pro Tips</span>+ </div>+ <span className="mt-4 text-sm text-mineshaft-300">+ After creating an integration, your secrets will start syncing immediately. This might+ cause an unexpected override of current secrets in Heroku with secrets from Infisical.+ </span>+ </div></div>) : (- <div />+ <div className="flex h-full w-full items-center justify-center">+ <Head>+ <title>Set Up Vercel Integration</title>+ <link rel="icon" href="/infisical.ico" />+ </Head>+ {isIntegrationAuthAppsLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>);}