feat: AI 提示词模块化 + AI 同意门控 + AI 草稿存储 + 意图路由 + 医疗引用知识库 + 多页面 UI 优化
- AI 提示词拆分为 markdown 模块(Prompts/global + modules + rag + router) - 新增 AI 同意门控(用户需同意后才能使用 AI 功能) - 新增 AI 录入草稿存储(AiEntryDraftContracts/EfAiEntryDraftStore/AiEntryDraftRecord) - 新增 AI 意图路由(ai_intent_router) - 新增医疗引用知识库(MedicalCitationKnowledge) - 重构 prompt_manager 和 ai_chat_endpoints - 优化聊天/趋势/档案/抽屉/医生端等多个页面 UI - 新增 agent 插画和趋势指标图标资源 - 删除 HANDOFF-2026-07-17.md
This commit is contained in:
@@ -36,6 +36,7 @@ class _EnterpriseExercisePlanPageState
|
||||
try {
|
||||
await ref.read(exerciseServiceProvider).checkIn(itemId);
|
||||
ref.read(exerciseDataRefreshSignalProvider.notifier).trigger();
|
||||
await ref.read(exercisePlansProvider.future);
|
||||
} catch (error) {
|
||||
if (mounted) {
|
||||
AppToast.show(
|
||||
@@ -149,8 +150,6 @@ class _EnterpriseExercisePlanPageState
|
||||
_TodayExercisePanel(
|
||||
items: todayItems,
|
||||
completed: completedToday,
|
||||
busyItems: _busyItems,
|
||||
onCheckIn: _toggleCheckIn,
|
||||
),
|
||||
const SizedBox(height: 18),
|
||||
for (final phase in CarePlanPhase.values)
|
||||
@@ -178,15 +177,8 @@ class _EnterpriseExercisePlanPageState
|
||||
class _TodayExercisePanel extends StatelessWidget {
|
||||
final List<Map<String, dynamic>> items;
|
||||
final int completed;
|
||||
final Set<String> busyItems;
|
||||
final Future<void> Function(String) onCheckIn;
|
||||
|
||||
const _TodayExercisePanel({
|
||||
required this.items,
|
||||
required this.completed,
|
||||
required this.busyItems,
|
||||
required this.onCheckIn,
|
||||
});
|
||||
const _TodayExercisePanel({required this.items, required this.completed});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -256,12 +248,6 @@ class _TodayExercisePanel extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
if (next != null)
|
||||
_CompactActionButton(
|
||||
busy: busyItems.contains(next['id']?.toString() ?? ''),
|
||||
completed: false,
|
||||
onPressed: () => onCheckIn(next['id']?.toString() ?? ''),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 14),
|
||||
|
||||
Reference in New Issue
Block a user