Skip to content

Commit 875c014

Browse files
samejrcursoragent
andcommitted
feat(webapp): refine SSO enterprise upsell
Open the feedback modal (enterprise inquiry) from the primary Contact us button, drop the secondary link button, and inline the Enterprise badge beside the title. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 26c0a34 commit 875c014

1 file changed

Lines changed: 14 additions & 17 deletions

File tree

  • apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.sso

apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.sso/route.tsx

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import { z } from "zod";
1212
import { typedjson, useTypedLoaderData } from "remix-typedjson";
1313
import { PageBody, PageContainer } from "~/components/layout/AppLayout";
1414
import { Badge } from "~/components/primitives/Badge";
15-
import { Button, LinkButton } from "~/components/primitives/Buttons";
15+
import { Button } from "~/components/primitives/Buttons";
16+
import { Feedback } from "~/components/Feedback";
1617
import { Callout } from "~/components/primitives/Callout";
1718
import { ClipboardField } from "~/components/primitives/ClipboardField";
1819
import {
@@ -47,7 +48,6 @@ import { dashboardAction, dashboardLoader } from "~/services/routeBuilders/dashb
4748
import { cn } from "~/utils/cn";
4849
import { throwPermissionDenied } from "~/utils/permissionDenied";
4950
import { useCurrentPlan } from "../_app.orgs.$organizationSlug/route";
50-
import { v3BillingPath } from "~/utils/pathBuilder";
5151

5252
export const meta: MetaFunction = () => [{ title: "SSO & Directory Sync | Trigger.dev" }];
5353

@@ -457,7 +457,7 @@ export default function Page() {
457457
<PageBody scrollable={true}>
458458
<SettingsContainer>
459459
{!isEntitled ? (
460-
<EnterpriseUpsellState organizationSlug={organization.slug} />
460+
<EnterpriseUpsellState />
461461
) : !status.hasIdpOrg ? (
462462
<NoIdpOrgState onOpenPortal={() => openPortal("domain_verification")} />
463463
) : !hasActive ? (
@@ -515,13 +515,17 @@ export default function Page() {
515515
);
516516
}
517517

518-
function EnterpriseUpsellState({ organizationSlug }: { organizationSlug: string }) {
518+
function EnterpriseUpsellState() {
519519
return (
520520
<SettingsSection>
521521
<SettingsHeader
522-
title="SSO & Directory Sync"
522+
title={
523+
<span className="flex items-center gap-2">
524+
SSO & Directory Sync
525+
<Badge variant="small">Enterprise</Badge>
526+
</span>
527+
}
523528
description="Single sign-on (SAML/OIDC) and Directory Sync (SCIM) let your IT team manage access to Trigger.dev from your identity provider, such as Okta, Azure AD, or Google Workspace."
524-
action={<Badge variant="small">Enterprise</Badge>}
525529
/>
526530
<div className="w-full space-y-4 py-4">
527531
<ul className="ml-4 list-disc space-y-1.5 text-sm text-text-dimmed">
@@ -531,17 +535,10 @@ function EnterpriseUpsellState({ organizationSlug }: { organizationSlug: string
531535
<li>Sync users and map directory groups to roles with SCIM.</li>
532536
</ul>
533537
<div className="flex flex-wrap gap-2">
534-
<LinkButton variant="primary/small" to={v3BillingPath({ slug: organizationSlug })}>
535-
Talk to sales
536-
</LinkButton>
537-
<LinkButton
538-
variant="secondary/small"
539-
to="https://trigger.dev/contact"
540-
target="_blank"
541-
TrailingIcon={ArrowUpRightIcon}
542-
>
543-
Contact us
544-
</LinkButton>
538+
<Feedback
539+
defaultValue="enterprise"
540+
button={<Button variant="primary/small">Contact us</Button>}
541+
/>
545542
</div>
546543
</div>
547544
</SettingsSection>

0 commit comments

Comments
 (0)