Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,098 changes: 1,069 additions & 29 deletions src/api/@tanstack/react-query.gen.ts

Large diffs are not rendered by default.

240 changes: 240 additions & 0 deletions src/api/index.ts

Large diffs are not rendered by default.

750 changes: 750 additions & 0 deletions src/api/sdk.gen.ts

Large diffs are not rendered by default.

5,227 changes: 5,087 additions & 140 deletions src/api/types.gen.ts

Large diffs are not rendered by default.

17,025 changes: 10,994 additions & 6,031 deletions src/api/zod.gen.ts

Large diffs are not rendered by default.

25 changes: 13 additions & 12 deletions src/components/Charts/MultiLine/MultiLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { EChartsInstance } from 'echarts-for-react/lib';
import type ReactEChartsCore from 'echarts-for-react/lib/core';
import ReactEChartsComponent from 'echarts-for-react/lib/core';
import * as echarts from 'echarts/core';
import { LineChart as EChartsLine } from 'echarts/charts';
import { LineChart as EChartsLine, BarChart as EChartsBar } from 'echarts/charts';
import {
GridComponent,
TooltipComponent,
Expand All @@ -23,6 +23,7 @@ import type { MultiLineChartProps } from './MultiLine.types';
// Register ECharts components
echarts.use([
EChartsLine,
EChartsBar,
GridComponent,
TooltipComponent,
TitleComponent,
Expand Down Expand Up @@ -477,9 +478,11 @@ export function MultiLineChart({
const originalIndex = series.indexOf(s);
const seriesColor = s.color || extendedPalette[originalIndex % extendedPalette.length];

const chartType = s.seriesType ?? 'line';

const baseConfig = {
name: s.name,
type: 'line' as const,
type: chartType as 'line' | 'bar',
data: s.data,
smooth: s.smooth ?? false,
step: s.step ?? false,
Expand Down Expand Up @@ -952,9 +955,8 @@ export function MultiLineChart({
{/* Interactive Legend Controls - Top */}
{showLegend && !useNativeLegend && series.length > 1 && legendPosition === 'top' && (
<div className="mb-4 border-b border-border pb-4">
<div className="mb-2 flex items-center justify-between">
<span className="text-sm/6 font-medium text-muted">Series:</span>
{enableAggregateToggle && (
{enableAggregateToggle && (
<div className="mb-2 flex items-center justify-end">
<button
onClick={() => setShowAggregate(!showAggregate)}
className={`rounded-sm px-2 py-1 text-xs/5 transition-colors ${
Expand All @@ -963,8 +965,8 @@ export function MultiLineChart({
>
{showAggregate ? '✓' : '○'} {aggregateSeriesName}
</button>
)}
</div>
</div>
)}
<div className="max-h-[200px] overflow-y-auto">
{(() => {
const legendSeries = series.filter(
Expand Down Expand Up @@ -1051,9 +1053,8 @@ export function MultiLineChart({
{/* Interactive Legend Controls - Bottom */}
{showLegend && !useNativeLegend && series.length > 1 && legendPosition === 'bottom' && (
<div className="mt-4 border-t border-border pt-4">
<div className="mb-2 flex items-center justify-between">
<span className="text-sm/6 font-medium text-muted">Series:</span>
{enableAggregateToggle && (
{enableAggregateToggle && (
<div className="mb-2 flex items-center justify-end">
<button
onClick={() => setShowAggregate(!showAggregate)}
className={`rounded-sm px-2 py-1 text-xs/5 transition-colors ${
Expand All @@ -1062,8 +1063,8 @@ export function MultiLineChart({
>
{showAggregate ? '✓' : '○'} {aggregateSeriesName}
</button>
)}
</div>
</div>
)}
<div className="max-h-[200px] overflow-y-auto">
{(() => {
const legendSeries = series.filter(
Expand Down
5 changes: 5 additions & 0 deletions src/components/Charts/MultiLine/MultiLine.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ export interface SeriesData {
*/
symbolSize?: number;
};
/**
* Chart type for this series
* @default 'line'
*/
seriesType?: 'line' | 'bar';
/**
* Legend group name - series with the same group will be grouped together in the legend
* Groups are displayed in the order they first appear in the series array
Expand Down
1 change: 1 addition & 0 deletions src/components/Layout/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ interface NavItem {
}

const ethereumConsensusPages: NavItem[] = [
{ name: 'Overview', to: '/ethereum/consensus/overview', icon: PresentationChartLineIcon },
{ name: 'Live', to: '/ethereum/live', icon: PlayCircleIcon },
{ name: 'Epochs', to: '/ethereum/epochs', icon: ClockIcon },
{ name: 'Slots', to: '/ethereum/slots', icon: Square3Stack3DIcon },
Expand Down
Loading