보조지표 추가 팝업에서 지표 드래그 이동문제

This commit is contained in:
Macbook
2026-06-03 02:16:48 +09:00
parent 8de3b77479
commit 8cba6a612a
5 changed files with 114 additions and 25 deletions
@@ -5,6 +5,11 @@ import BacktestSparkline from './BacktestSparkline';
import { buildEquityFromSignals } from '../../utils/backtestEquity';
import { paperTradesToSignals } from '../../utils/liveExecutionGroups';
import { fmtListTimestamp, fmtShortTimestamp, pct, pctAbs } from '../../utils/backtestUiUtils';
import { getKoreanName } from '../../utils/marketNameCache';
function toUpbitMarket(symbol: string): string {
return symbol.startsWith('KRW-') ? symbol : `KRW-${symbol}`;
}
export type ExecutionListTab = 'backtest' | 'live';
export type BacktestListSort = 'strategy' | 'symbol' | 'return';
@@ -82,12 +87,15 @@ export default function BacktestExecutionList({
const ret = r.totalReturn ?? 0;
const positive = ret >= 0;
const active = selectedBacktestId === r.id;
const sym = r.symbol.replace(/^KRW-/, '');
const market = toUpbitMarket(r.symbol);
const ko = getKoreanName(market);
const strategy = r.strategyName || '전략 없음';
return (
<button key={r.id} type="button" className={`btd-history-card${active ? ' btd-history-card--active' : ''}`} onClick={() => onSelectBacktest(r)}>
<div className="btd-history-card-row">
<div className="btd-history-card-main">
<span className="btd-history-title">{r.strategyName || '전략 없음'} | {sym} | {r.timeframe}</span>
<span className="btd-history-ko">{ko}</span>
<span className="btd-history-strategy">{strategy} · {r.timeframe}</span>
<span className="btd-history-date">{fmtListTimestamp(r.createdAt)}</span>
</div>
<div className="btd-history-card-side">
@@ -109,12 +117,14 @@ export default function BacktestExecutionList({
liveItems.map(item => {
const positive = item.totalReturnPct >= 0;
const active = selectedLiveId === item.id;
const sym = item.symbol.replace(/^KRW-/, '');
const market = toUpbitMarket(item.symbol);
const ko = getKoreanName(market);
return (
<button key={item.id} type="button" className={`btd-history-card${active ? ' btd-history-card--active' : ''}`} onClick={() => onSelectLive(item)}>
<div className="btd-history-card-row">
<div className="btd-history-card-main">
<span className="btd-history-title">{item.strategyLabel} | {sym} | {item.sourceLabel}</span>
<span className="btd-history-ko">{ko}</span>
<span className="btd-history-strategy">{item.strategyLabel} · {item.sourceLabel}</span>
<span className="btd-history-date">{fmtShortTimestamp(item.createdAt)}</span>
</div>
<div className="btd-history-card-side">