Fix L2 tape visibility: add to OBI detail component
Root cause: OrderBookDepthMap was only in non-OBI detail branch. When user clicked Order Book Imbalance card, the OBIDetail component replaced the entire detail view, and the tape was never mounted. Fix: Added OrderBookDepthMap to OBIDetail component below trade history. Now visible in ALL strategy detail views (both OBI and non-OBI).
This commit is contained in:
@@ -5,6 +5,7 @@ import { Badge } from "@/components/ui/badge";
|
|||||||
import { Card } from "@/components/ui/card";
|
import { Card } from "@/components/ui/card";
|
||||||
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
|
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
|
||||||
import { DepthMapPlotly } from "@/components/depth-map-plotly";
|
import { DepthMapPlotly } from "@/components/depth-map-plotly";
|
||||||
|
import OrderBookDepthMap from "@/components/orderbook-depth-map";
|
||||||
import { EquityChart } from "@/components/equity-chart";
|
import { EquityChart } from "@/components/equity-chart";
|
||||||
import {
|
import {
|
||||||
type L2Snapshot, type SurfaceData, type ImbalanceMetrics,
|
type L2Snapshot, type SurfaceData, type ImbalanceMetrics,
|
||||||
@@ -161,6 +162,10 @@ export function OBIDetail({ strategy, strategyName, equityData, trades, liveData
|
|||||||
<p className="text-xs text-muted-foreground text-center py-8">No trades recorded yet</p>
|
<p className="text-xs text-muted-foreground text-center py-8">No trades recorded yet</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
{/* Live L2 Order Book + Trade Tape */}
|
||||||
|
<div className="mt-6">
|
||||||
|
<OrderBookDepthMap coin="BTC" height={480} topRatio={0.55} />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user