From 2670097a5e99da7749767b391178d2b674daeb18 Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Wed, 17 Jun 2026 14:46:06 +0300 Subject: [PATCH] feat(frontend): add shimmer loading and instrument name in operations table --- .../pages/broker/BrokerOperationsTable.tsx | 46 ++++++++++++++++--- 1 file changed, 40 insertions(+), 6 deletions(-) diff --git a/apps/frontend/src/pages/broker/BrokerOperationsTable.tsx b/apps/frontend/src/pages/broker/BrokerOperationsTable.tsx index 1a3c612..89539a5 100644 --- a/apps/frontend/src/pages/broker/BrokerOperationsTable.tsx +++ b/apps/frontend/src/pages/broker/BrokerOperationsTable.tsx @@ -6,6 +6,7 @@ import { getBrokerOperationTypeLabel, type BrokerOperationImpact, } from './brokerDisplay'; +import { TableSkeleton } from '../../components/TableSkeleton'; const tableStyle = { width: '100%', @@ -50,18 +51,28 @@ function moneyColor(impact: BrokerOperationImpact): string { } function OperationInstrument({ operation }: { operation: BrokerOperation }) { - const label = operation.ticker || operation.description || '-'; + const ticker = operation.ticker || operation.description || '-'; const path = getBrokerInstrumentPath({ ticker: operation.ticker, instrumentType: operation.instrumentType, classCode: operation.classCode, }); + const name = operation.name || operation.description; - if (!path || label === '-') { - return {label}; - } + if (!path && !name) return -; + if (!path) return {name}; + if (!ticker || ticker === '-') return {name}; - return {label}; + return ( +
+ + {ticker} + + {name && name !== ticker && ( + {name} + )} +
+ ); } const pagButtonStyle = { @@ -145,7 +156,30 @@ export function BrokerOperationsTable({ {isLoading ? ( -

Загрузка операций...

+
+ + + + + + + + + + +
+ Дата + + Тип + + Инструмент + + Сумма +
+
) : operations.length === 0 ? (

Операций за выбранный период нет

) : (