diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/RpcMethodBarChartCard/RpcMethodBarChartCardUI.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/RpcMethodBarChartCard/RpcMethodBarChartCardUI.tsx index 0c43b5e2f..2fd563c47 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/RpcMethodBarChartCard/RpcMethodBarChartCardUI.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/RpcMethodBarChartCard/RpcMethodBarChartCardUI.tsx @@ -109,8 +109,8 @@ export function RpcMethodBarChartCardUI({ return ( - -
+ +
RPC Methods
diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/gateway/rpc/components/MethodsTable.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/gateway/rpc/components/MethodsTable.tsx index f366032eb..eafa5aee3 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/gateway/rpc/components/MethodsTable.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/gateway/rpc/components/MethodsTable.tsx @@ -4,7 +4,6 @@ import type { ThirdwebClient } from "thirdweb"; import { shortenLargeNumber } from "thirdweb/utils"; import type { RpcMethodStats } from "@/api/analytics"; import { PaginationButtons } from "@/components/blocks/pagination-buttons"; -import { Card } from "@/components/ui/card"; import { SkeletonContainer } from "@/components/ui/skeleton"; import { Table, @@ -15,7 +14,6 @@ import { TableHeader, TableRow, } from "@/components/ui/table"; -import { CardHeading } from "../../../payments/components/common"; export function TopRPCMethodsTable(props: { data: RpcMethodStats[]; @@ -41,18 +39,22 @@ export function TopRPCMethodsTable(props: { const isEmpty = useMemo(() => sortedData.length === 0, [sortedData]); return ( - +
{/* header */} -
- Top EVM Methods Called +
+

+ Top EVM Methods Called +

-
- + - Method + Method Requests @@ -85,7 +87,7 @@ export function TopRPCMethodsTable(props: { /> )} - + ); } diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/gateway/rpc/components/RequestsGraph.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/gateway/rpc/components/RequestsGraph.tsx index c1964d2c2..c297a3c33 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/gateway/rpc/components/RequestsGraph.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/gateway/rpc/components/RequestsGraph.tsx @@ -33,12 +33,11 @@ export function RequestsGraph(props: { data: RpcUsageTypeStats[] }) { [] as { requests: number; time: string }[], )} header={{ - description: "Requests over time.", title: "RPC Requests", + titleClassName: "tracking-tight font-semibold text-lg", }} hideLabel={false} isPending={false} - showLegend toolTipLabelFormatter={(label) => { return format(label, "MMM dd, HH:mm"); }} @@ -48,7 +47,6 @@ export function RequestsGraph(props: { data: RpcUsageTypeStats[] }) { xAxis={{ sameDay: true, }} - yAxis /> ); } diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/gateway/rpc/components/RpcAnalytics.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/gateway/rpc/components/RpcAnalytics.tsx index 2ecf48275..d275fdb5e 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/gateway/rpc/components/RpcAnalytics.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/gateway/rpc/components/RpcAnalytics.tsx @@ -3,8 +3,10 @@ import { ResponsiveSuspense } from "responsive-rsc"; import type { ThirdwebClient } from "thirdweb"; import { getRpcMethodUsage, getRpcUsageByType } from "@/api/analytics"; import type { Range } from "@/components/analytics/date-range-selector"; +import { LoadingChartState } from "@/components/analytics/empty-chart-state"; import { StatCard } from "@/components/analytics/stat"; import { Skeleton } from "@/components/ui/skeleton"; +import { RpcMethodBarChartCardAsync } from "../../../components/RpcMethodBarChartCard"; import { TopRPCMethodsTable } from "./MethodsTable"; import { RequestsGraph } from "./RequestsGraph"; import { RpcAnalyticsFilter } from "./RpcAnalyticsFilter"; @@ -103,6 +105,24 @@ export async function RPCAnalytics(props: { /> + +
+ + } + searchParamsUsed={["from", "to", "interval"]} + > + +
); } diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/page.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/page.tsx index ff2b14933..1a1149fb0 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/page.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/page.tsx @@ -41,7 +41,6 @@ import { PieChartCard } from "../../../components/Analytics/PieChartCard"; import { EngineCloudChartCardAsync } from "./components/EngineCloudChartCard"; import { ProjectFTUX } from "./components/ProjectFTUX/ProjectFTUX"; import { ProjectWalletSection } from "./components/project-wallet/project-wallet"; -import { RpcMethodBarChartCardAsync } from "./components/RpcMethodBarChartCard"; import { TransactionsChartCardAsync } from "./components/Transactions"; import { ProjectHighlightsCard } from "./overview/highlights-card"; import { TotalSponsoredCardUI } from "./overview/total-sponsored"; @@ -273,22 +272,6 @@ async function ProjectAnalytics(props: { /> - } - searchParamsUsed={["from", "to", "interval"]} - > - - - } searchParamsUsed={["from", "to", "interval"]}