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.

small fixes

Steven Teyfc9cb95b7d2c
diff --git a/components/app/modals/saml-modal.tsx b/components/app/modals/saml-modal.tsx
index 6c6f71688e..5826c76680 100644
--- a/components/app/modals/saml-modal.tsx
+++ b/components/app/modals/saml-modal.tsx
@@ -87,8 +87,12 @@ function SAMLModal({
>
<option disabled>Select a provider</option>
{SAML_PROVIDERS.map((provider) => (
- <option key={provider.saml} value={provider.saml}>
- {provider.name}
+ <option
+ key={provider.saml}
+ value={provider.saml}
+ disabled={provider.wip}
+ >
+ {provider.name} {provider.wip && "(Coming Soon)"}
</option>
))}
</select>
@@ -114,7 +118,7 @@ function SAMLModal({
<SimpleTooltipContent
title="Your metadata URL is the URL to your SAML provider's metadata."
cta="Learn more."
- href={`${HOME_DOMAIN}/help/article/okta-saml#step-4-copy-the-metadata-url`}
+ href={`${HOME_DOMAIN}/help/article/${selectedProvider}-saml#step-4-copy-the-metadata-url`}
/>
}
/>
diff --git a/components/app/modals/scim-modal.tsx b/components/app/modals/scim-modal.tsx
index f8fcc87b18..72498b43ed 100644
--- a/components/app/modals/scim-modal.tsx
+++ b/components/app/modals/scim-modal.tsx
@@ -125,8 +125,12 @@ function SCIMModal({
className="mt-1 block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 placeholder-gray-400 shadow-sm focus:border-black focus:outline-none focus:ring-black sm:text-sm"
>
{SAML_PROVIDERS.map((provider) => (
- <option key={provider.scim} value={provider.scim}>
- {provider.name}
+ <option
+ key={provider.scim}
+ value={provider.scim}
+ disabled={provider.wip}
+ >
+ {provider.name} {provider.wip && "(Coming Soon)"}
</option>
))}
</select>
diff --git a/lib/constants/index.ts b/lib/constants/index.ts
index 0a5a938861..572714ecf1 100644
--- a/lib/constants/index.ts
+++ b/lib/constants/index.ts
@@ -193,5 +193,6 @@ export const SAML_PROVIDERS = [
url: "SCIM 2.0 Base URL",
token: "OAuth Bearer Token",
},
+ wip: true,
},
];