mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
## Summary - Adds design-system guidance for the shared Connect interstitial layout used by authorisation, invite, marketplace, CLI, and credit flows - Includes a glanceable example showing the centred 400px card for partner authorise and wrong-account invite states - Documents Studio helpers (`InterstitialLayout`, logo helpers, account row, `OrganizationSelector`) so future surfaces reuse one pattern instead of bespoke shells ## Context Most of the Studio Connect UI work from this effort has already landed. This PR keeps the documentation and design-system example so the pattern stays discoverable. Related: [Shared Connect UI for Authorization and Partner Flows](https://linear.app/supabase/project/shared-connect-ui-for-authorization-and-partner-flows-94587ac29d38) ## Test plan - [ ] Open `/docs/ui-patterns/connect-interstitials` in the design system - [ ] Confirm the page appears under UI Patterns in the nav - [ ] Confirm the example renders the authorise and wrong-account cards side by side - [ ] Skim the guidance for accuracy against current Studio `InterstitialLayout` usage <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added new design-system “Connect Interstitials” example demos, including branding variations (single vs dual logos) and a complete connect-card flow with account row and sign-out action. * Registered the new Connect Interstitials examples in the design-system example registry. * **Documentation** * Added a “Connect Interstitials” UI Patterns page covering when to use the pattern, recommended card/layout structure, branding/logo guidance, and conventions for states, actions, and copy. * Updated the documentation sidebar to include the new page. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
28 lines
725 B
TypeScript
28 lines
725 B
TypeScript
import { Button } from 'ui'
|
|
|
|
import {
|
|
AccountRow,
|
|
InterstitialShell,
|
|
LogoPair,
|
|
SignOutButton,
|
|
StripeLogo,
|
|
SupabaseLogo,
|
|
} from './connect-interstitial-shared'
|
|
|
|
export default function ConnectInterstitialLogoPair() {
|
|
return (
|
|
<InterstitialShell
|
|
logo={<LogoPair left={<StripeLogo />} right={<SupabaseLogo />} />}
|
|
title="Authorize Stripe Projects"
|
|
description="This will create an organization on your behalf in Supabase"
|
|
>
|
|
<div className="flex flex-col gap-4">
|
|
<AccountRow displayName="alex@example.com" action={<SignOutButton />} />
|
|
<Button variant="primary" block>
|
|
Authorize Stripe Projects
|
|
</Button>
|
|
</div>
|
|
</InterstitialShell>
|
|
)
|
|
}
|