major refactor of the dashboard and react-openapi integration #1

Merged
aetos merged 44 commits from period-selection into main 2026-05-07 11:00:54 +00:00
5 changed files with 29 additions and 6 deletions
Showing only changes of commit b1509fd5ab - Show all commits

View File

@@ -9,11 +9,8 @@ import {
ToggleButtonGroup ToggleButtonGroup
} from "@mui/material"; } from "@mui/material";
import LatestItemsList, { LatestItem } from "./components/LatestItemsList"; import LatestItemsList, { LatestItem } from "./components/LatestItems";
import HistoryChart from "./components/HistoryChart"; import HistoryChart, { AggregatedDashboardData } from "./components/HistoryChart";
import {
AggregatedDashboardData
} from "./components/HistoryChart";
import { import {
fetchLatestTransactions, fetchLatestTransactions,

View File

@@ -0,0 +1,18 @@
import * as React from "react";
export interface LatestItem {
id: string | number;
icon: React.ReactNode;
iconBgColor?: string;
title: string;
subtitle: string;
amount: string;
timeAgo: string;
}
export interface LatestItemsListProps {
title?: string;
items: LatestItem[];
onViewAll?: () => void;
accentColor: string;
}

View File

@@ -27,7 +27,7 @@ export interface LatestItemsListProps {
accentColor: any; accentColor: any;
} }
export default function LatestItemsList({ export default function LatestItems({
title = "Recent Transactions", title = "Recent Transactions",
items, items,
onViewAll, onViewAll,

View File

@@ -0,0 +1,6 @@
import LatestItemsListView from "./LatestItems.view";
import { LatestItemsListProps } from "./LatestItems.models";
export default function LatestItemsList(props: LatestItemsListProps) {
return <LatestItemsListView {...props} />;
}

View File

@@ -0,0 +1,2 @@
export { default } from "./LatestItems";
export * from "./LatestItems.models";