style(app): остальные экраны под новый визуальный язык и форматирование

Доходы, ребалансировка, налоги, импорт, цели, здоровье данных, правила, транзакции, категории, cashflow, pending: новые виджеты и токены темы, dart format. Тесты подстроены под новые модели.
This commit is contained in:
Dmitry
2026-09-19 22:14:27 +03:00
parent 62d36aa3e8
commit 322c60a359
55 changed files with 2158 additions and 1080 deletions
+26 -19
View File
@@ -1,32 +1,35 @@
import 'package:fintracker_api/fintracker_api.dart';
import 'package:fintracker_app/core/cache/cached.dart';
import 'package:fintracker_app/features/health/health_page.dart';
import 'package:fintracker_app/features/home/providers.dart' show dataQualityProvider;
import 'package:fintracker_app/features/home/providers.dart'
show dataQualityProvider;
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_test/flutter_test.dart';
SourceStatus _source(String name) => SourceStatus(
source_: name,
lastRunStatus: RunStatus.ok,
lastRunAt: DateTime(2026, 9, 18, 10),
lastSuccessAt: DateTime(2026, 9, 18, 10),
cursor: null,
queued: false,
);
source_: name,
lastRunStatus: RunStatus.ok,
lastRunAt: DateTime(2026, 9, 18, 10),
lastSuccessAt: DateTime(2026, 9, 18, 10),
cursor: null,
queued: false,
);
DataQualityRow _issue() => DataQualityRow(
id: 1,
ref: null,
severity: 'warn',
checkName: 'missing_fx',
count: 3,
detail: 'Курс не найден для 3 операций.',
computedAt: DateTime(2026, 9, 18, 10),
);
id: 1,
ref: null,
severity: 'warn',
checkName: 'missing_fx',
count: 3,
detail: 'Курс не найден для 3 операций.',
computedAt: DateTime(2026, 9, 18, 10),
);
void main() {
testWidgets('shows sources on the first tab and findings on the second', (tester) async {
testWidgets('shows sources on the first tab and findings on the second', (
tester,
) async {
await tester.pumpWidget(
ProviderScope(
overrides: [
@@ -50,7 +53,9 @@ void main() {
expect(find.text('Курс не найден для 3 операций.'), findsOneWidget);
});
testWidgets('opens directly on the findings tab when initialTab is 1', (tester) async {
testWidgets('opens directly on the findings tab when initialTab is 1', (
tester,
) async {
await tester.pumpWidget(
ProviderScope(
overrides: [
@@ -72,7 +77,9 @@ void main() {
overrides: [
syncStatusProvider.overrideWith((ref) async => const []),
syncRunsProvider.overrideWith((ref) async => const []),
dataQualityProvider.overrideWith((ref) => const Cached(<DataQualityRow>[])),
dataQualityProvider.overrideWith(
(ref) => const Cached(<DataQualityRow>[]),
),
],
child: const MaterialApp(home: HealthPage(initialTab: 1)),
),