fix: finalize account labels and confirmation

This commit is contained in:
2026-08-20 08:45:22 +03:00
parent dd2990357a
commit c6b79c1d35
6 changed files with 11 additions and 5 deletions

View File

@@ -1,5 +1,11 @@
# Changelog # Changelog
## [Frontend 0.10.2 / Backend 0.7.2] - 2026-08-20
### Fixed
- Existing uncategorized operations become confirmed investments when an investment account is labeled; account selectors use Russian labels.
## [Frontend 0.10.1 / Backend 0.7.1] - 2026-08-20 ## [Frontend 0.10.1 / Backend 0.7.1] - 2026-08-20
### Fixed ### Fixed

View File

@@ -1,6 +1,6 @@
{ {
"name": "@family-budget/backend", "name": "@family-budget/backend",
"version": "0.7.1", "version": "0.7.2",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "tsx watch src/app.ts", "dev": "tsx watch src/app.ts",

View File

@@ -49,7 +49,7 @@ export async function updateAccount(
await client.query( await client.query(
`UPDATE transactions `UPDATE transactions
SET category_id = (SELECT id FROM categories WHERE name = 'Инвестиции' AND type = 'transfer' LIMIT 1), SET category_id = (SELECT id FROM categories WHERE name = 'Инвестиции' AND type = 'transfer' LIMIT 1),
direction = 'transfer', is_category_confirmed = FALSE, updated_at = NOW() direction = 'transfer', is_category_confirmed = TRUE, updated_at = NOW()
WHERE account_id = $1 AND category_id IS NULL`, WHERE account_id = $1 AND category_id IS NULL`,
[id], [id],
); );

View File

@@ -1,6 +1,6 @@
{ {
"name": "@family-budget/frontend", "name": "@family-budget/frontend",
"version": "0.10.1", "version": "0.10.2",
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {

View File

@@ -187,7 +187,7 @@ export function TransactionFilters({
<option value="">Все счета</option> <option value="">Все счета</option>
{accounts.map((a) => ( {accounts.map((a) => (
<option key={a.id} value={a.id}> <option key={a.id} value={a.id}>
{[a.alias || a.accountNumberMasked, a.accountType, a.status === 'closed' ? 'закрытый' : 'действующий'].filter(Boolean).join(' · ')} {[a.alias || a.accountNumberMasked, ({ brokerage: 'Брокерский', iis: 'ИИС', savings: 'Накопительный', current: 'Текущий' } as Record<string, string>)[a.accountType ?? ''], a.status === 'closed' ? 'закрытый' : 'действующий'].filter(Boolean).join(' · ')}
</option> </option>
))} ))}
</select> </select>

View File

@@ -107,7 +107,7 @@ export function AnalyticsPage() {
<option value="">Все счета</option> <option value="">Все счета</option>
{accounts.map((a) => ( {accounts.map((a) => (
<option key={a.id} value={a.id}> <option key={a.id} value={a.id}>
{[a.alias || a.accountNumberMasked, a.accountType, a.status === 'closed' ? 'закрытый' : 'действующий'].filter(Boolean).join(' · ')} {[a.alias || a.accountNumberMasked, ({ brokerage: 'Брокерский', iis: 'ИИС', savings: 'Накопительный', current: 'Текущий' } as Record<string, string>)[a.accountType ?? ''], a.status === 'closed' ? 'закрытый' : 'действующий'].filter(Boolean).join(' · ')}
</option> </option>
))} ))}
</select> </select>