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:
@@ -384,9 +384,20 @@ class _HomePageState extends ConsumerState<HomePage>
|
||||
) => (label: label, visual: visual);
|
||||
|
||||
final module = switch (agent) {
|
||||
ActiveAgent.health => fromModule('记数据', AppModuleVisuals.health),
|
||||
ActiveAgent.health => (
|
||||
label: '记数据',
|
||||
visual: AppModuleVisual(
|
||||
module: AppModule.health,
|
||||
label: AppModuleVisuals.health.label,
|
||||
icon: AppModuleVisuals.healthOverviewIcon,
|
||||
color: AppModuleVisuals.health.color,
|
||||
lightColor: AppModuleVisuals.health.lightColor,
|
||||
borderColor: AppModuleVisuals.health.borderColor,
|
||||
gradient: AppModuleVisuals.health.gradient,
|
||||
),
|
||||
),
|
||||
ActiveAgent.diet => fromModule('拍饮食', AppModuleVisuals.diet),
|
||||
ActiveAgent.medication => fromModule('药提醒', AppModuleVisuals.medication),
|
||||
ActiveAgent.medication => fromModule('药管家', AppModuleVisuals.medication),
|
||||
ActiveAgent.report => fromModule('报告', AppModuleVisuals.report),
|
||||
ActiveAgent.exercise => fromModule('运动', AppModuleVisuals.exercise),
|
||||
_ => null,
|
||||
@@ -402,13 +413,13 @@ class _HomePageState extends ConsumerState<HomePage>
|
||||
|
||||
return switch (agent) {
|
||||
ActiveAgent.consultation => (
|
||||
label: 'AI对话',
|
||||
label: 'AI问诊',
|
||||
icon: LucideIcons.messageCircle,
|
||||
gradient: AppColors.doctorGradient,
|
||||
iconColor: Colors.white,
|
||||
),
|
||||
_ => (
|
||||
label: 'AI对话',
|
||||
label: 'AI问诊',
|
||||
icon: LucideIcons.messageCircle,
|
||||
gradient: AppColors.primaryGradient,
|
||||
iconColor: Colors.white,
|
||||
|
||||
Reference in New Issue
Block a user