feat: добавить уровень риска для крипто-холдингов

Риск (низкий/средний/высокий) задаётся при добавлении монеты и
редактируется прямо в таблице холдингов. Добавлена вкладка "Уровни
риска" в карточке портфеля с разбивкой % по риск-тирам, только для
крипты. Заодно поправлено округление процентов в риск-карточках.
This commit is contained in:
ZProger
2026-09-08 21:46:09 +03:00
parent e4b163df21
commit fcbd217915
13 changed files with 335 additions and 47 deletions

View File

@@ -142,9 +142,11 @@ const ru = {
"crypto.table.change24h": "24ч%",
"crypto.table.change7d": "7д%",
"crypto.table.holdings": "Держите",
"crypto.table.avgBuyPrice": "Средняя цена покупки",
"crypto.table.avgBuyPrice": "Ср. цена",
"crypto.table.profitLoss": "Прибыль/убыток",
"crypto.table.risk": "Риск",
"crypto.table.actions": "Действия",
"crypto.riskAllocationOfPortfolio": "от крипто-портфеля",
"crypto.history.title": "История сделок: {{name}}",
"crypto.history.empty": "Пока нет ни одной сделки.",
"crypto.history.confirmDelete": "Удалить эту сделку? Количество и средняя цена будут пересчитаны.",
@@ -155,6 +157,7 @@ const ru = {
"crypto.allocation.title": "Распределение по монетам",
"crypto.overview.history": "История",
"crypto.overview.allocation": "Аллокация",
"crypto.overview.risk": "Уровни риска",
"crypto.allocation.other": "Другое",
"crypto.stats.allTimeProfit": "Прибыль за всё время",
"crypto.stats.costBasis": "Вложено всего",
@@ -637,9 +640,11 @@ const en: Record<keyof typeof ru, string> = {
"crypto.table.change24h": "24h%",
"crypto.table.change7d": "7d%",
"crypto.table.holdings": "Holdings",
"crypto.table.avgBuyPrice": "Avg. Buy Price",
"crypto.table.avgBuyPrice": "Avg. Price",
"crypto.table.profitLoss": "Profit/Loss",
"crypto.table.risk": "Risk",
"crypto.table.actions": "Actions",
"crypto.riskAllocationOfPortfolio": "of crypto portfolio",
"crypto.history.title": "Trade history: {{name}}",
"crypto.history.empty": "No trades yet.",
"crypto.history.confirmDelete": "Delete this trade? Quantity and average price will be recalculated.",
@@ -650,6 +655,7 @@ const en: Record<keyof typeof ru, string> = {
"crypto.allocation.title": "Allocation by coin",
"crypto.overview.history": "History",
"crypto.overview.allocation": "Allocation",
"crypto.overview.risk": "Risk levels",
"crypto.allocation.other": "Other",
"crypto.stats.allTimeProfit": "All-time profit",
"crypto.stats.costBasis": "Total invested",