diff --git a/src/components/autoInvest/AutoInvestHistoryTable.tsx b/src/components/autoInvest/AutoInvestHistoryTable.tsx
new file mode 100644
index 00000000..6b3003e2
--- /dev/null
+++ b/src/components/autoInvest/AutoInvestHistoryTable.tsx
@@ -0,0 +1,119 @@
+import type { AutoInvestHistory } from '@/types/autoInvest';
+import { formatNumber } from '@/utils/numberFormat.utils';
+import { formatDistanceToNow } from 'date-fns';
+import { CheckCircle2, AlertCircle, Clock } from 'lucide-react';
+import { Link } from 'react-router';
+
+interface Props {
+ history: AutoInvestHistory[];
+}
+
+function getStatusIcon(status: string) {
+ switch (status) {
+ case 'success':
+ return
+ No auto-invest executions yet. Rules will appear here once they trigger. +
+| + Key + | ++ Rule + | ++ Amount (XLM) + | ++ Status + | ++ Executed + | +
|---|---|---|---|---|
| + + {item.creatorKeyTitle} + + | ++ {item.ruleName} + | ++ {formatNumber(item.amountXlm)} + | +
+
+ {getStatusIcon(item.status)}
+
+ {item.status.charAt(0).toUpperCase() + item.status.slice(1)}
+
+ {item.errorMessage && (
+
+ ⓘ
+
+ )}
+
+ |
+ + {formatDistanceToNow(new Date(item.executedAt), { + addSuffix: true, + })} + | +
+ Auto-invest will pause when your wallet balance falls below this threshold. +
++ Current Threshold +
++ {currentThreshold.toFixed(2)} XLM +
+{error}
+ )} ++ ℹ️ When your balance drops below this threshold, auto-invest rules will automatically pause to protect your account. +
+{description}
++ No keys available in this section yet. +
++ Trending by volume, newly launched, and approaching + graduation +
++ Configure automatic purchase rules for new creator keys that + match your preferences. +
++ {rules.length} rule{rules.length !== 1 ? 's' : ''}{' '} + configured +
++ No investment rules yet. Create one to get started. +
+Category: {rule.category}
+ )} + {rule.minRating !== undefined && ( +Min Rating: {rule.minRating}★
+ )} +Max Price: {rule.maxPrice} XLM
+ {rule.minUniqueTradersVolumeXlm !== + undefined && ( ++ Min Volume:{' '} + {formatNumber( + rule.minUniqueTradersVolumeXlm + )}{' '} + XLM +
+ )} +Max Per Key: {rule.maxPerKey} XLM
++ Recent auto-invest purchases triggered by your rules +
+