feat: AI Agent 处理器扩展 + 服药打卡确认链路 + AI 气泡配色微调 + 数据刷新 providers 抽离 + 多端页面细节调整

This commit is contained in:
MingNian
2026-07-20 17:12:00 +08:00
parent 9cea41705e
commit 0cb5b8e85a
45 changed files with 1435 additions and 276 deletions

View File

@@ -7,6 +7,15 @@ import 'package:health_app/pages/remaining_pages.dart';
import 'package:health_app/services/health_ble_service.dart';
void main() {
test('manual entry keyboard does not relayout the trend dashboard', () {
final source = File('lib/pages/chart/trend_page.dart').readAsStringSync();
expect(source, contains('resizeToAvoidBottomInset: false'));
expect(source, contains('class _KeyboardInsetPadding'));
expect(source, contains('MediaQuery.viewInsetsOf(context).bottom'));
expect(source, contains('child: RepaintBoundary('));
});
test('unknown trend metric falls back to blood pressure', () {
expect(normalizeTrendMetricType('unknown_metric'), 'blood_pressure');
expect(normalizeTrendMetricType(null), 'blood_pressure');