Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add description to integration modal

Steven Tey92e94e601642
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/integrations/integration-card.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/integrations/integration-card.tsx
index cc0c98503c..008639d46c 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/integrations/integration-card.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/integrations/integration-card.tsx
@@ -38,10 +38,7 @@ export default function IntegrationCard(app: OAuthAppProps) {
<p className="font-semibold text-gray-700">{app.name}</p>
</div>
<div className="mt-4 grid gap-2">
- <p className="text-sm text-gray-500">
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
- quos.
- </p>
+ <p className="text-sm text-gray-500">{app.description}</p>
<p className="text-sm text-gray-500">
Built by{" "}
<span className="font-medium text-gray-700">{app.developer}</span>
diff --git a/apps/web/ui/modals/add-edit-oauth-app-modal.tsx b/apps/web/ui/modals/add-edit-oauth-app-modal.tsx
index 3ed862692a..60ab35ae97 100644
--- a/apps/web/ui/modals/add-edit-oauth-app-modal.tsx
+++ b/apps/web/ui/modals/add-edit-oauth-app-modal.tsx
@@ -11,6 +11,7 @@ import {
useMemo,
useState,
} from "react";
+import TextareaAutosize from "react-textarea-autosize";
import { toast } from "sonner";
import { mutate } from "swr";
@@ -85,7 +86,16 @@ function AddEditAppModal({
}
};
- const { name, slug, developer, website, redirectUri, logo, pkce } = data;
+ const {
+ name,
+ slug,
+ description,
+ developer,
+ website,
+ redirectUri,
+ logo,
+ pkce,
+ } = data;
useEffect(() => {
setData((prev) => ({
@@ -157,6 +167,25 @@ function AddEditAppModal({
</div>
</div>
+ <div>
+ <label htmlFor="slug" className="flex items-center space-x-2">
+ <h2 className="text-sm font-medium text-gray-900">Description</h2>
+ <InfoTooltip content="Description of your application" />
+ </label>
+ <div className="relative mt-2 rounded-md shadow-sm">
+ <TextareaAutosize
+ name="comments"
+ minRows={3}
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ placeholder="Add a description"
+ value={description || ""}
+ onChange={(e) => {
+ setData({ ...data, description: e.target.value });
+ }}
+ />
+ </div>
+ </div>
+
<div>
<label htmlFor="developer" className="flex items-center space-x-2">
<h2 className="text-sm font-medium text-gray-900">
@@ -258,7 +287,7 @@ function AddEditAppModal({
);
}
-function AddAppButton({
+export function AddAppButton({
setShowAddEditAppModal,
buttonProps,
}: {