mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 07:39:07 +03:00
add partner id
This commit is contained in:
1 parent
f282a95df4
commit
4b24ef8d42
6 files changed
+6
-4
No files matched your search
+1
-1
@@ -95,7 +95,7 @@ const BillingAddress = () => {
|
||||
<PartnerManagedResource
|
||||
partner={selectedOrganization?.managed_by}
|
||||
resource="Billing Addresses"
|
||||
ctaUrl={`https://vercel.com/${'TBA'}/~/settings/billing-addresses`}
|
||||
ctaUrl={`https://vercel.com/${selectedOrganization.partner_id}/~/settings/billing-addresses`}
|
||||
/>
|
||||
) : !canReadBillingAddress ? (
|
||||
<NoPermission resourceText="view this organization's billing address" />
|
||||
|
||||
+1
-1
@@ -84,7 +84,7 @@ const PaymentMethods = () => {
|
||||
<PartnerManagedResource
|
||||
partner={selectedOrganization?.managed_by}
|
||||
resource="Payment Methods"
|
||||
ctaUrl={`https://vercel.com/${'TBA'}/~/settings/payment-methods`}
|
||||
ctaUrl={`https://vercel.com/${selectedOrganization.partner_id}/~/settings/payment-methods`}
|
||||
/>
|
||||
) : !canReadPaymentMethods ? (
|
||||
<NoPermission resourceText="view this organization's payment methods" />
|
||||
|
||||
@@ -146,7 +146,7 @@ const TaxID = () => {
|
||||
<PartnerManagedResource
|
||||
partner={selectedOrganization?.managed_by}
|
||||
resource="Tax IDs"
|
||||
ctaUrl={`https://vercel.com/${'TBA'}/~/settings/tax-ids`}
|
||||
ctaUrl={`https://vercel.com/${selectedOrganization.partner_id}/~/settings/tax-ids`}
|
||||
/>
|
||||
) : !canReadTaxId ? (
|
||||
<NoPermission resourceText="view this organization's tax ID" />
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@ const InvoicesSettings = () => {
|
||||
resource="Invoices"
|
||||
ctaUrl={
|
||||
selectedOrganization?.managed_by === 'vercel-marketplace'
|
||||
? `https://vercel.com/${'TBA'}/~/settings/invoices`
|
||||
? `https://vercel.com/${selectedOrganization.partner_id}/~/settings/invoices`
|
||||
: `https://us-east-1.console.aws.amazon.com/billing/home#/bills`
|
||||
}
|
||||
/>
|
||||
|
||||
@@ -12,6 +12,7 @@ function castOrganizationResponseToOrganization(
|
||||
...org,
|
||||
billing_email: org.billing_email ?? 'Unknown',
|
||||
managed_by: org.slug.startsWith('vercel_icfg_') ? 'vercel-marketplace' : 'supabase',
|
||||
partner_id: org.slug.startsWith('vercel_') ? org.slug.replace('vercel_', '') : undefined,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ export interface Organization {
|
||||
restriction_status: 'grace_period' | 'grace_period_over' | 'restricted' | null
|
||||
restriction_data: Record<string, never>
|
||||
managed_by: 'supabase' | 'vercel-marketplace' | 'aws-marketplace'
|
||||
partner_id?: string
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user