diff --git a/web/src/tabs/HistoryTab.tsx b/web/src/tabs/HistoryTab.tsx
index 1f41b40..f550860 100644
--- a/web/src/tabs/HistoryTab.tsx
+++ b/web/src/tabs/HistoryTab.tsx
@@ -7,6 +7,7 @@ import {
import { useCanonicalLifecycle } from '../hooks/useCanonicalLifecycle';
import { fetchTradeHistory } from '../lib/tradeHistoryApi';
import { fetchPositionsBootstrap } from '../lib/positionsApi';
+import { Button, Input, Select } from '../components/ui/Primitives';
interface TradeRecord {
@@ -411,26 +412,24 @@ export const HistoryTab = ({ botState }: HistoryTabProps) => {
-
+
{profiles.map(p => (
-
+
))}
@@ -504,49 +503,58 @@ export const HistoryTab = ({ botState }: HistoryTabProps) => {
|
-
+ controlSize="sm"
+ variant="muted"
+ options={[
+ { value: 'all', label: 'All Profiles' },
+ ...profiles.map((profileOption) => ({
+ value: profileOption.id,
+ label: profileOption.name,
+ })),
+ ]}
+ />
|
|
@@ -646,23 +654,27 @@ export const HistoryTab = ({ botState }: HistoryTabProps) => {
-{Math.min(historyPage * HISTORY_PAGE_SIZE, sortedHistory.length)} of {sortedHistory.length}
-
+
Page {historyPage} / {historyTotalPages}
-
+