...
This commit is contained in:
@@ -3,6 +3,7 @@ package ui
|
||||
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.border
|
||||
import androidx.compose.foundation.horizontalScroll
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.lazy.grid.GridCells
|
||||
@@ -10,6 +11,7 @@ import androidx.compose.foundation.lazy.grid.GridItemSpan
|
||||
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
|
||||
import androidx.compose.foundation.lazy.items
|
||||
import androidx.compose.foundation.lazy.rememberLazyListState
|
||||
import androidx.compose.foundation.rememberScrollState
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.foundation.text.KeyboardActions
|
||||
import androidx.compose.foundation.text.KeyboardOptions
|
||||
@@ -61,7 +63,7 @@ fun TradingDecisionLog() {
|
||||
LaunchedEffect(AutoTradingManager.webSocketConnect) {
|
||||
webSocketConnect = AutoTradingManager.webSocketConnect
|
||||
}
|
||||
|
||||
val scrollState = rememberScrollState()
|
||||
|
||||
// [핵심] 원본 로그에서 필터 조건에 맞는 리스트만 산출
|
||||
val filteredLogs = TradingLogStore.decisionLogs.filter { log ->
|
||||
@@ -110,7 +112,11 @@ fun TradingDecisionLog() {
|
||||
Spacer(modifier = Modifier.height(8.dp))
|
||||
|
||||
// 2. 필터 버튼 그룹 (Chip 형태)
|
||||
Row(horizontalArrangement = Arrangement.spacedBy(4.dp)) {
|
||||
Row(modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.horizontalScroll(scrollState),
|
||||
horizontalArrangement = Arrangement.spacedBy(4.dp),
|
||||
) {
|
||||
filterOptions.forEach { option ->
|
||||
val isSelected = selectedFilters.contains(option)
|
||||
FilterChip(
|
||||
|
||||
Reference in New Issue
Block a user