- VaccinationFormPage:目录按宠物物种过滤(四态)、seriesKey 目录 code
预填、scheduled/completed 状态-日期规则结构化 + 纯函数双重前端拦截,
42201/40904 后端兜底横幅(均有测试)
- VaccinationRecordsPage:按系列分组、三态 TagPill(含 cancelled 留痕)、
四态齐备;viewer 隐藏登记入口
- 档案页数据卡行接 GET /pets/{id}/summary 实时聚合:最新体重/疫苗进度/
下一针三卡,null 语义为空态文案而非 0/0;从记录页返回即重拉摘要
- health_record 埋点装配(app→shell→pets→detail→记录页面族)
- 测试 205 → 224(+19)全绿;analyze 0 问题;format 无 diff
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:patbond_flutter/core/theme/app_theme.dart';
|
||||
import 'package:patbond_flutter/core/widgets/empty_state_illustration.dart';
|
||||
import 'package:patbond_flutter/core/widgets/inline_error_banner.dart';
|
||||
import 'package:patbond_flutter/core/widgets/pet_avatar.dart';
|
||||
import 'package:patbond_flutter/features/pets/health_record_analytics.dart';
|
||||
import 'package:patbond_flutter/features/pets/pet_analytics.dart';
|
||||
import 'package:patbond_flutter/features/pets/pet_detail_page.dart';
|
||||
import 'package:patbond_flutter/features/pets/pet_display.dart';
|
||||
@@ -19,11 +20,19 @@ import 'package:patbond_flutter/widgets/common.dart';
|
||||
/// empty(空态插画 + 建档 CTA)、error(横幅 + 重试)、ready(列表)。
|
||||
/// 页面不直连 ApiClient,不读写 AppState demo 数据。
|
||||
class PetsPage extends StatefulWidget {
|
||||
const PetsPage({required this.controller, super.key, this.analytics});
|
||||
const PetsPage({
|
||||
required this.controller,
|
||||
super.key,
|
||||
this.analytics,
|
||||
this.healthAnalytics,
|
||||
});
|
||||
|
||||
final PetsController controller;
|
||||
final PetAnalytics? analytics;
|
||||
|
||||
/// health_record 域埋点(T2-13,记录页面族透传)。
|
||||
final HealthRecordAnalytics? healthAnalytics;
|
||||
|
||||
@override
|
||||
State<PetsPage> createState() => _PetsPageState();
|
||||
}
|
||||
@@ -65,6 +74,7 @@ class _PetsPageState extends State<PetsPage> {
|
||||
controller: widget.controller,
|
||||
petId: pet.id,
|
||||
analytics: widget.analytics,
|
||||
healthAnalytics: widget.healthAnalytics,
|
||||
),
|
||||
settings: RouteSettings(name: AnalyticsPageName.petDetail.pageName),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user