Просмотр исходного кода

Merge pull request #28586 from overleaf/ls-dropdown-to-select-segment

Add dropdown in admin panel for finance to set customer segment

GitOrigin-RevId: 3f730bc71b839ed97fa6ce867a25d44c06e60e2f
Liangjun Song 10 месяцев назад
Родитель
Сommit
9153130c4f

+ 1 - 0
services/web/frontend/js/utils/meta.ts

@@ -278,6 +278,7 @@ export interface Meta {
     customerId: string
     subscriptionState: string | null
     paymentProviderService: StripePaymentProviderService | null
+    segment: string | null
   }
   'ol-subscription': any // TODO: mixed types, split into two fields
   'ol-subscriptionChangePreview': SubscriptionChangePreview

+ 1 - 0
services/web/types/admin-capabilities.ts

@@ -26,6 +26,7 @@ export type AdminCapability =
   | 'view-split-test'
   | 'view-user-additional-info'
   | 'create-stripe-account'
+  | 'update-stripe-customer-segment'
 
 export type AdminRole =
   | 'engagement'