Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update API types and properly render replication lag in replica detail page (#42191)

Joshen Lim2ce307130abd
diff --git a/apps/studio/components/interfaces/Database/Replication/ReadReplicas/ReadReplicaDetails.tsx b/apps/studio/components/interfaces/Database/Replication/ReadReplicas/ReadReplicaDetails.tsx
index 4ce4e316976..5178b6daa02 100644
--- a/apps/studio/components/interfaces/Database/Replication/ReadReplicas/ReadReplicaDetails.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/ReadReplicas/ReadReplicaDetails.tsx
@@ -28,6 +28,8 @@ import {
import { Input } from 'ui-patterns/DataInputs/Input'
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
+const attribute = 'physical_replication_lag_physical_replication_lag_seconds'
+
export const ReadReplicaDetails = () => {
const { ref: projectRef, replicaId } = useParams()
const reportGranularityV2 = useFlag('reportGranularityV2')
@@ -64,7 +66,7 @@ export const ReadReplicaDetails = () => {
useInfraMonitoringAttributesQuery(
{
projectRef,
- attributes: ['physical_replication_lag_physical_replica_lag_seconds'],
+ attributes: [attribute],
databaseIdentifier: identifier,
startDate: selectedDateRange.period_start.date,
endDate: selectedDateRange.period_end.date,
@@ -73,26 +75,24 @@ export const ReadReplicaDetails = () => {
{ enabled: !!replica }
)
- // [Joshen] Temporarily hardcoding the data as the query to retrieve replication lag doesn't seem to be working
- // https://linear.app/supabase/issue/INDATA-325/investigate-infra-monitoring-for-physical-replication-lag-physical
- const chartData = useMemo(() => {
- return Array.from({ length: 46 }, (_, i) => {
- const date = new Date()
- date.setMinutes(date.getMinutes() - i * 5) // Each point 5 minutes apart
-
- return {
- timestamp: date.toISOString(),
- replication_lag: Math.floor(Math.random() * 100),
- }
- }).reverse()
- }, [])
+ const chartData = useMemo(
+ () =>
+ infraMonitoringData?.data.map((x) => ({
+ timestamp: x.period_start,
+ [attribute]: (x as Record<string, string | number>)[attribute],
+ })) ?? [],
+ [infraMonitoringData?.data]
+ )
return (
<>
<Chart className="mt-6" isLoading={isLoadingLag || isFetchingInfraMonitoring}>
<ChartCard className="rounded-none border-x-0">
<ChartHeader className="px-10">
- <ChartMetric label="Replication lag" value={!!lagDuration ? `${lagDuration}s` : '-'} />
+ <ChartMetric
+ label="Replication lag"
+ value={lagDuration !== undefined ? `${lagDuration}s` : '-'}
+ />
</ChartHeader>
<ChartContent
isEmpty={chartData.length === 0}
@@ -103,19 +103,22 @@ export const ReadReplicaDetails = () => {
description="It may take up to 24 hours for data to refresh"
/>
}
- loadingState={<ChartLoadingState />}
+ loadingState={<ChartLoadingState className="h-[228px]" />}
>
<div className="h-56 px-5">
<ChartLine
+ showGrid
+ showYAxis
+ isFullHeight
data={chartData}
- dataKey="replication_lag"
- showGrid={true}
- showYAxis={true}
+ dataKey={attribute}
YAxisProps={{
tickFormatter: (value) => `${value}s`,
width: 80,
}}
- isFullHeight={true}
+ config={{
+ [attribute]: { label: 'Replication lag' },
+ }}
/>
</div>
</ChartContent>
diff --git a/apps/studio/components/ui/Charts/BarChart.tsx b/apps/studio/components/ui/Charts/BarChart.tsx
index 23a1dc79222..99fbde86426 100644
--- a/apps/studio/components/ui/Charts/BarChart.tsx
+++ b/apps/studio/components/ui/Charts/BarChart.tsx
@@ -191,7 +191,7 @@ const BarChart = ({
animationDuration={300}
maxBarSize={48}
>
- {data?.map((_entry: Datum, index: any) => (
+ {data?.map((_entry: Datum, index: number) => (
<Cell
key={`cell-${index}`}
className={`transition-all duration-300 ${onBarClick ? 'cursor-pointer' : ''}`}
diff --git a/apps/studio/components/ui/Charts/ChartHeader.tsx b/apps/studio/components/ui/Charts/ChartHeader.tsx
index e38f28358f8..79a641c249a 100644
--- a/apps/studio/components/ui/Charts/ChartHeader.tsx
+++ b/apps/studio/components/ui/Charts/ChartHeader.tsx
@@ -1,4 +1,7 @@
+import { useParams } from 'common'
+import { ButtonTooltip } from 'components/ui/ButtonTooltip'
import dayjs from 'dayjs'
+import { formatBytes } from 'lib/helpers'
import {
Activity,
BarChartIcon,
@@ -7,17 +10,13 @@ import {
SquareTerminal,
} from 'lucide-react'
import Link from 'next/link'
-import { useRouter } from 'next/router'
import { useEffect, useState } from 'react'
import { cn } from 'ui'
+import { Badge } from 'ui'
+import { InfoTooltip } from 'ui-patterns/info-tooltip'
-import { useParams } from 'common'
-import { ButtonTooltip } from 'components/ui/ButtonTooltip'
-import { formatBytes } from 'lib/helpers'
import { formatPercentage, numberFormatter } from './Charts.utils'
import { useChartHoverState } from './useChartHoverState'
-import { InfoTooltip } from 'ui-patterns/info-tooltip'
-import { Badge } from 'ui'
export interface ChartHeaderProps {
title?: string
@@ -80,13 +79,10 @@ export const ChartHeader = ({
titleTooltip,
showNewBadge,
}: ChartHeaderProps) => {
- const { hoveredIndex, isHovered, isCurrentChart, setHover, clearHover } = useChartHoverState(
- syncId || 'default'
- )
+ const { ref } = useParams()
+ const { hoveredIndex, isHovered } = useChartHoverState(syncId || 'default')
const [localHighlightedValue, setLocalHighlightedValue] = useState(highlightedValue)
const [localHighlightedLabel, setLocalHighlightedLabel] = useState(highlightedLabel)
- const { ref } = useParams()
- const router = useRouter()
const formatHighlightedValue = (value: any) => {
if (typeof value !== 'number') {
@@ -109,7 +105,7 @@ export const ChartHeader = ({
const formattedValue = numberFormatter(value, valuePrecision)
if (typeof format === 'string' && format) {
- return `${formattedValue}${format}`
+ return `${formattedValue} ${format}`
}
return formattedValue
diff --git a/apps/studio/data/analytics/infra-monitoring-query.ts b/apps/studio/data/analytics/infra-monitoring-query.ts
index 9a30306425b..65f7faad282 100644
--- a/apps/studio/data/analytics/infra-monitoring-query.ts
+++ b/apps/studio/data/analytics/infra-monitoring-query.ts
@@ -1,29 +1,14 @@
import { useQuery } from '@tanstack/react-query'
+import { paths } from 'api-types'
import { get, handleError } from 'data/fetchers'
import { UseCustomQueryOptions } from 'types'
import type { AnalyticsInterval } from './constants'
import { analyticsKeys } from './keys'
-export type InfraMonitoringAttribute =
- | 'max_cpu_usage'
- | 'avg_cpu_usage'
- | 'disk_io_budget'
- | 'ram_usage'
- | 'disk_io_consumption'
- | 'pg_stat_database_num_backends'
- | 'supavisor_connections_active'
- | 'realtime_connections_connected'
- | 'realtime_channel_events'
- | 'realtime_channel_db_events'
- | 'realtime_channel_presence_events'
- | 'realtime_channel_joins'
- | 'realtime_read_authorization_rls_execution_time'
- | 'realtime_write_authorization_rls_execution_time'
- | 'realtime_payload_size'
- | 'realtime_sum_connections_connected'
- | 'realtime_replication_connection_lag'
- | 'physical_replication_lag_physical_replica_lag_seconds'
+export type InfraMonitoringAttribute = NonNullable<
+ paths['/platform/projects/{ref}/infra-monitoring']['get']['parameters']['query']['attributes']
+>[number]
export type InfraMonitoringSeriesMetadata = {
yAxisLimit: number
diff --git a/apps/studio/pages/project/[ref]/observability/database.tsx b/apps/studio/pages/project/[ref]/observability/database.tsx
index 48760a55910..cdbeac91ac1 100644
--- a/apps/studio/pages/project/[ref]/observability/database.tsx
+++ b/apps/studio/pages/project/[ref]/observability/database.tsx
@@ -168,7 +168,7 @@ const DatabaseUsage = () => {
if (isReplicaSelected) {
queryClient.invalidateQueries({
queryKey: analyticsKeys.infraMonitoring(ref, {
- attribute: 'physical_replication_lag_physical_replica_lag_seconds',
+ attribute: 'physical_replication_lag_physical_replication_lag_seconds',
startDate: period_start.date,
endDate: period_end.date,
interval,
@@ -286,7 +286,7 @@ const DatabaseUsage = () => {
<ChartHandler
startDate={selectedDateRange?.period_start?.date}
endDate={selectedDateRange?.period_end?.date}
- attribute="physical_replication_lag_physical_replica_lag_seconds"
+ attribute="physical_replication_lag_physical_replication_lag_seconds"
label="Replication lag"
interval={selectedDateRange.interval}
provider="infra-monitoring"
diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.ts
index 563cde07a2a..63d4273bd49 100644
--- a/packages/api-types/types/api.d.ts
+++ b/packages/api-types/types/api.d.ts
@@ -927,6 +927,57 @@ export interface paths {
patch?: never
trace?: never
}
+ '/v1/projects/{ref}/config/disk': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ get?: never
+ put?: never
+ /** Modify database disk */
+ post: operations['v1-modify-database-disk']
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ '/v1/projects/{ref}/config/disk/autoscale': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /** Gets project disk autoscale config */
+ get: operations['v1-get-project-disk-autoscale-config']
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
+ '/v1/projects/{ref}/config/disk/util': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /** Get disk utilization */
+ get: operations['v1-get-disk-utilization']
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
'/v1/projects/{ref}/config/realtime': {
parameters: {
query?: never
@@ -2695,6 +2746,38 @@ export interface components {
verify_jwt?: boolean
version: number
}
+ DiskAutoscaleConfig: {
+ /** @description Growth percentage for disk autoscaling */
+ growth_percent: number | null
+ /** @description Maximum limit the disk size will grow to in GB */
+ max_size_gb: number | null
+ /** @description Minimum increment size for disk autoscaling in GB */
+ min_increment_gb: number | null
+ }
+ DiskRequestBody: {
+ attributes:
+ | {
+ iops: number
+ size_gb: number
+ throughput_mibps?: number
+ /** @enum {string} */
+ type: 'gp3'
+ }
+ | {
+ iops: number
+ size_gb: number
+ /** @enum {string} */
+ type: 'io2'
+ }
+ }
+ DiskUtilMetricsResponse: {
+ metrics: {
+ fs_avail_bytes: number
+ fs_size_bytes: number
+ fs_used_bytes: number
+ }
+ timestamp: string
+ }
FunctionDeployBody: {
file?: string[]
metadata: {
@@ -8150,6 +8233,158 @@ export interface operations {
}
}
}
+ 'v1-modify-database-disk': {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ /** @description Project ref */
+ ref: string
+ }
+ cookie?: never
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['DiskRequestBody']
+ }
+ }
+ responses: {
+ 201: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Forbidden action */
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Rate limit exceeded */
+ 429: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Failed to modify database disk */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
+ 'v1-get-project-disk-autoscale-config': {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ /** @description Project ref */
+ ref: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['DiskAutoscaleConfig']
+ }
+ }
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Forbidden action */
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Rate limit exceeded */
+ 429: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Failed to get project disk autoscale config */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
+ 'v1-get-disk-utilization': {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ /** @description Project ref */
+ ref: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['DiskUtilMetricsResponse']
+ }
+ }
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Forbidden action */
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Rate limit exceeded */
+ 429: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Failed to get disk utilization */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
'v1-get-realtime-config': {
parameters: {
query?: never
diff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.ts
index 75d0259b4c1..e7312d2476a 100644
--- a/packages/api-types/types/platform.d.ts
+++ b/packages/api-types/types/platform.d.ts
@@ -1020,6 +1020,23 @@ export interface paths {
patch?: never
trace?: never
}
+ '/platform/organizations/{slug}/billing/invoices/{invoice_id}/receipt': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ /** Get the receipt PDF URL for a paid invoice */
+ get: operations['OrgInvoicesController_getInvoiceReceipt']
+ put?: never
+ post?: never
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
'/platform/organizations/{slug}/billing/invoices/upcoming': {
parameters: {
query?: never
@@ -3543,27 +3560,6 @@ export interface paths {
patch?: never
trace?: never
}
- '/platform/replication/{ref}/pipelines/{pipeline_id}/rollback-table-state': {
- parameters: {
- query?: never
- header?: never
- path?: never
- cookie?: never
- }
- get?: never
- put?: never
- /**
- * Rollback pipeline table state (deprecated)
- * @deprecated
- * @description Deprecated: Use POST /pipelines/{pipeline_id}/rollback-tables instead. Rollback a table state for the pipeline. Requires bearer auth and an active, healthy project.
- */
- post: operations['ReplicationPipelinesController_rollbackTableState']
- delete?: never
- options?: never
- head?: never
- patch?: never
- trace?: never
- }
'/platform/replication/{ref}/pipelines/{pipeline_id}/rollback-tables': {
parameters: {
query?: never
@@ -6874,6 +6870,10 @@ export interface components {
InvoicePaymentLinkResponse: {
redirectUrl: string
}
+ InvoiceReceiptResponse: {
+ /** Format: uri */
+ receipt_pdf: string
+ }
LFAccessToken: {
description: string | null
id: number
@@ -8996,73 +8996,6 @@ export interface components {
table_id: number
}[]
}
- RollbackTableStateBody: {
- /**
- * @description Rollback type
- * @example individual
- * @enum {string}
- */
- rollback_type: 'individual' | 'full'
- /**
- * @description Table id (Postgres OID)
- * @example 16408
- */
- table_id: number
- }
- RollbackTableStateResponse: {
- /** @description Table replication state */
- new_state:
- | {
- /** @enum {string} */
- name: 'queued'
- }
- | {
- /** @enum {string} */
- name: 'copying_table'
- }
- | {
- /** @enum {string} */
- name: 'copied_table'
- }
- | {
- /** @enum {string} */
- name: 'following_wal'
- }
- | {
- /** @enum {string} */
- name: 'error'
- reason: string
- retry_policy:
- | {
- /** @enum {string} */
- policy: 'no_retry'
- }
- | {
- /** @enum {string} */
- policy: 'manual_retry'
- }
- | {
- /**
- * @description Next retry time (RFC 3339 timestamp)
- * @example 2025-01-02T03:04:05Z
- */
- next_retry: string
- /** @enum {string} */
- policy: 'timed_retry'
- }
- solution?: string
- }
- /**
- * @description Pipeline id
- * @example 1012
- */
- pipeline_id: number
- /**
- * @description Table id (Postgres OID)
- * @example 16408
- */
- table_id: number
- }
RunLintByNameResponse: {
lints: {
cache_key: string
@@ -9143,7 +9076,9 @@ export interface components {
allowSupportAccess?: boolean
browserInformation?: string
category: string
+ dashboardLogs?: string
dashboardSentryIssueId?: string
+ dashboardStudioVersion?: string
library?: string
message: string
organizationSlug?: string
@@ -13648,6 +13583,71 @@ export interface operations {
}
}
}
+ OrgInvoicesController_getInvoiceReceipt: {
+ parameters: {
+ query?: never
+ header?: never
+ path: {
+ invoice_id: string
+ /** @description Organization slug */
+ slug: string
+ }
+ cookie?: never
+ }
+ requestBody?: never
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['InvoiceReceiptResponse']
+ }
+ }
+ /** @description Receipt not available for this invoice type or status */
+ 400: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Forbidden action */
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Invoice or receipt not found */
+ 404: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Rate limit exceeded */
+ 429: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ /** @description Failed to retrieve receipt */
+ 500: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
+ }
+ }
OrgInvoicesController_getUpcomingInvoice: {
parameters: {
query?: never
@@ -20970,7 +20970,7 @@ export interface operations {
| 'disk_fs_used'
| 'disk_fs_used_wal'
| 'disk_fs_used_system'
- | 'physical_replication_lag_physical_replica_lag_seconds'
+ | 'physical_replication_lag_physical_replication_lag_seconds'
| 'pg_stat_database_num_backends'
| 'max_db_connections'
attributes?: (
@@ -21026,7 +21026,7 @@ export interface operations {
| 'disk_fs_used'
| 'disk_fs_used_wal'
| 'disk_fs_used_system'
- | 'physical_replication_lag_physical_replica_lag_seconds'
+ | 'physical_replication_lag_physical_replication_lag_seconds'
| 'pg_stat_database_num_backends'
| 'max_db_connections'
)[]
@@ -23268,63 +23268,6 @@ export interface operations {
}
}
}
- ReplicationPipelinesController_rollbackTableState: {
- parameters: {
- query?: never
- header?: never
- path: {
- /** @description Pipeline id */
- pipeline_id: number
- /** @description Project ref */
- ref: string
- }
- cookie?: never
- }
- requestBody: {
- content: {
- 'application/json': components['schemas']['RollbackTableStateBody']
- }
- }
- responses: {
- /** @description New table state after rollback. */
- 200: {
- headers: {
- [name: string]: unknown
- }
- content: {
- 'application/json': components['schemas']['RollbackTableStateResponse']
- }
- }
- /** @description Unauthorized */
- 401: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Forbidden action */
- 403: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Rate limit exceeded */
- 429: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- /** @description Unexpected error while rolling back table state. */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
ReplicationPipelinesController_rollbackTables: {
parameters: {
query?: never
diff --git a/packages/ui-patterns/src/Chart/index.tsx b/packages/ui-patterns/src/Chart/index.tsx
index 4466af61155..539806edb13 100644
--- a/packages/ui-patterns/src/Chart/index.tsx
+++ b/packages/ui-patterns/src/Chart/index.tsx
@@ -1,32 +1,32 @@
'use client'
-import * as React from 'react'
-import { useContext, useState, useMemo, useRef } from 'react'
import { Slot } from '@radix-ui/react-slot'
-import {
- Button,
- Card,
- Tooltip,
- TooltipContent,
- TooltipTrigger,
- Skeleton,
- ChartContainer,
- cn,
-} from 'ui'
+import dayjs from 'dayjs'
import { HelpCircle, Loader2 } from 'lucide-react'
import Link from 'next/link'
+import * as React from 'react'
+import { useContext, useMemo, useRef, useState } from 'react'
import {
- BarChart,
- Bar,
- XAxis,
- YAxis,
- ResponsiveContainer,
Area,
AreaChart,
+ Bar,
+ BarChart,
Tooltip as RechartsTooltip,
TooltipProps as RechartsTooltipProps,
+ ResponsiveContainer,
+ XAxis,
+ YAxis,
} from 'recharts'
-import dayjs from 'dayjs'
+import {
+ Button,
+ Card,
+ ChartContainer,
+ cn,
+ Skeleton,
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger,
+} from 'ui'
/* Chart Config */
export type ChartConfig = {
@@ -379,9 +379,14 @@ const ChartEmptyState = React.forwardRef<HTMLDivElement, ChartEmptyStateProps>(
ChartEmptyState.displayName = 'ChartEmptyState'
/* Chart Loading State */
-const ChartLoadingState = () => {
+const ChartLoadingState = ({ className }: { className?: string }) => {
return (
- <div className="h-40 border border-dashed border-control items-center justify-center flex flex-col">
+ <div
+ className={cn(
+ 'h-40 border border-dashed border-control items-center justify-center flex flex-col',
+ className
+ )}
+ >
<Loader2 size={20} className="animate-spin text-foreground-muted" />
</div>
)
@@ -592,21 +597,21 @@ const ChartSparkline = React.forwardRef<HTMLDivElement, ChartSparklineProps>(
ChartSparkline.displayName = 'ChartSparkline'
/* Exports */
+export { ChartBar, type ChartBarProps, type ChartBarTick } from './charts/chart-bar'
+export { ChartLine, type ChartLineProps, type ChartLineTick } from './charts/chart-line'
export {
Chart,
- ChartCard,
- ChartHeader,
- ChartTitle,
ChartActions,
- ChartMetric,
+ ChartCard,
ChartContent,
- ChartEmptyState,
- ChartLoadingState,
ChartDisabledState,
+ ChartEmptyState,
ChartFooter,
- ChartValueDifferential,
- ChartSparklineTooltip,
+ ChartHeader,
+ ChartLoadingState,
+ ChartMetric,
ChartSparkline,
+ ChartSparklineTooltip,
+ ChartTitle,
+ ChartValueDifferential,
}
-export { ChartBar, type ChartBarTick, type ChartBarProps } from './charts/chart-bar'
-export { ChartLine, type ChartLineTick, type ChartLineProps } from './charts/chart-line'