mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 02:45:07 +03:00
Merge branch 'master' into chore/move-grid-into-main-repo
This commit is contained in:
commit
42500f2eaf
4 files changed
+5
-12
No files matched your search
@@ -3,11 +3,9 @@ import dayjs from 'dayjs'
|
||||
import { sum } from 'lodash'
|
||||
import { useRouter } from 'next/router'
|
||||
import { Loading, Button } from '@supabase/ui'
|
||||
import { Dictionary } from 'components/grid'
|
||||
|
||||
import { formatBytes } from 'lib/helpers'
|
||||
import { STRIPE_PRODUCT_IDS } from 'lib/constants'
|
||||
import { useStore, useSubscriptionStats } from 'hooks'
|
||||
import { useStore } from 'hooks'
|
||||
import CostBreakdownRow from './CostBreakdownRow'
|
||||
import { StripeSubscription } from './Subscription.types'
|
||||
import { deriveFeatureCost, deriveProductCost } from '../PAYGUsage/PAYGUsage.utils'
|
||||
|
||||
+1
-2
@@ -9,8 +9,7 @@ const AWSMarketplaceSubscription: FC<Props> = ({ organization }) => {
|
||||
return (
|
||||
<div className="flex flex-col space-y-4">
|
||||
<Typography.Text>
|
||||
This organization is subscribed via AWS Marketplace, with a limit of{' '}
|
||||
{organization.project_limit} projects and expiring on{' '}
|
||||
This organization is subscribed via AWS Marketplace. The subscription expires on{' '}
|
||||
{organization.aws_marketplace.Entitlements[0].ExpirationDate.slice(0, 10)}.
|
||||
</Typography.Text>
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ function getPaygStats(data: any): PaygStats {
|
||||
|
||||
let dataModified: any = []
|
||||
data.map((x: any) => {
|
||||
dataModified.push({ ...x, total_egress_modified: x.total_egress == undefined ? 0 : x.total_egress - x.total_storage_egress == undefined ? 0 : x.total_storage_egress })
|
||||
dataModified.push({ ...x, total_egress_modified: (x.total_egress == undefined ? 0 : x.total_egress) - (x.total_storage_egress == undefined ? 0 : x.total_storage_egress) })
|
||||
})
|
||||
|
||||
chargeableProducts.forEach((product) => {
|
||||
@@ -73,5 +73,6 @@ function getPaygStats(data: any): PaygStats {
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
return paygStats
|
||||
}
|
||||
@@ -3,13 +3,8 @@ export interface Organization {
|
||||
slug: string
|
||||
name: string
|
||||
billing_email: string
|
||||
project_limit: number
|
||||
members: any[]
|
||||
projects: any[]
|
||||
is_owner?: boolean
|
||||
stripe_customer_id?: string
|
||||
total_free_projects?: number
|
||||
total_paid_projects?: number
|
||||
}
|
||||
|
||||
export interface ProjectBase {
|
||||
@@ -38,7 +33,7 @@ export interface Project extends ProjectBase {
|
||||
* We use this status to check if a project instance is HEALTHY or not
|
||||
* If not we will show ConnectingState and run a polling until it's back online
|
||||
*/
|
||||
postgrestStatus?: 'ONLINE' | 'OFFLINE'
|
||||
postgrestStatus?: 'ONLINE' | 'OFFLINE'
|
||||
}
|
||||
|
||||
export interface User {
|
||||
|
||||
Reference in new issue
Block a user