mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-18 21:22:28 +03:00
Extract ModelTable from the charts god-file and drive header clicks through a single sort state object plus a pure sorter so column toggles reliably reorder rows. Compute missing share pct from summary totals when the analytics API omits it.
30 lines
1017 B
TypeScript
30 lines
1017 B
TypeScript
/**
|
|
* Analytics Charts — Barrel export
|
|
*
|
|
* TODO (#5): Split charts.js into individual component files:
|
|
* - StatCard.js, ActivityHeatmap.js, DailyTrendChart.js
|
|
* - AccountDonut.js, ApiKeyDonut.js, ProviderCostDonut.js
|
|
* - ApiKeyTable.js, ModelTable.js
|
|
* - WeeklyPattern.js, MostActiveDay7d.js, WeeklySquares7d.js
|
|
* - UsageDetail.js, SortIndicator.js
|
|
*/
|
|
export {
|
|
SortIndicator,
|
|
StatCard,
|
|
CompactStatGrid,
|
|
ActivityHeatmap,
|
|
ApiKeyTable,
|
|
MostActiveDay7d,
|
|
WeeklySquares7d,
|
|
UsageDetail,
|
|
ProviderTable,
|
|
ServiceTierBreakdown,
|
|
} from "./charts";
|
|
export { ModelTable } from "./ModelTable";
|
|
export { AccountDonut, ApiKeyDonut, ProviderCostDonut } from "./rechartsDonuts";
|
|
export { DailyTrendChart, ModelOverTimeChart } from "./rechartsUsageCharts";
|
|
|
|
export { default as ApiKeyFilterDropdown } from "./ApiKeyFilterDropdown";
|
|
export { default as CustomRangePicker } from "./CustomRangePicker";
|
|
export { default as RequestCountByProviderDateTable } from "./RequestCountByProviderDateTable";
|