iven
|
dd44c1526f
|
feat(web): 工作台页面改造 — 管理员/运营数据改用真实 API
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
- AdminDashboard 移除硬编码模块列表,改用 system-health/user-activity/modules API
- OperatorWorkbench 移除硬编码积分动态和文章统计,改用 points-recent-activity/article-stats API
- 新增 dashboard.ts API 客户端,AxiosResponse 解包到 data.data
- Home.tsx 集成 4 个角色工作台组件路由
- useDashboardRole 支持 health_manager 角色
|
2026-05-02 11:56:26 +08:00 |
|
iven
|
0006e427e2
|
feat(health): 5 个工作台管理统计 API — 系统健康/用户活跃/模块状态/积分动态/文章统计
- DTO: SystemHealthResp, UserActivityResp, ModuleStatusResp, PointsActivityItem, ArticleStatsResp
- Service: get_article_stats, get_points_recent_activity, get_module_status, get_user_activity, get_system_health
- Handler: 5 个新端点 + 权限码 health.dashboard.manage
- 路由: /health/admin/system-health, user-activity, modules, points/recent-activity, articles/stats
|
2026-05-02 11:49:34 +08:00 |
|
iven
|
2cc0f5af25
|
refactor(miniprogram): 体征阈值改用动态 API — 替代硬编码参考范围
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
- health.ts 新增 getHealthThresholds/findThreshold/DEFAULT_THRESHOLDS
- 24h storage 缓存 + 降级到内置默认值
- health/index.tsx: REF_RANGES → buildRefRange(thresholds)
- pkg-health/input: WARN_THRESHOLDS → getWarnForIndicator(thresholds)
|
2026-05-02 11:40:54 +08:00 |
|
iven
|
e8ee441ae1
|
feat(health): Track 3 医疗阈值 — warning 种子 + 患者端只读 API
- 新增 6 条 warning 级别阈值种子数据(血压/心率/血糖参考范围)
- 新增 GET /health/critical-value-thresholds/public 患者端只读接口
- 扩展 indicator 验证支持 blood_sugar_fasting/postprandial 等新指标
|
2026-05-02 11:37:21 +08:00 |
|
iven
|
23cd62a70f
|
feat(db): 健康模块字典种子数据 — 6 个字典 + 43 个条目
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
- health_department (11 科室)
- health_title (9 职称)
- health_device_type (8 设备类型)
- health_follow_up_type (5 随访类型)
- health_consultation_type (3 咨询类型)
- health_relationship (5 关系类型)
|
2026-05-02 11:34:35 +08:00 |
|
iven
|
63ead0c442
|
refactor(web): 新增 useDictionary hook + 4 个页面下拉选项改用字典 API
- 新增 useDictionary hook 支持字典 API 获取 + fallback 降级
- DoctorList 科室/职称改用 useDictionary (health_department/health_title)
- FollowUpTaskList 随访类型改用 useDictionary (health_follow_up_type)
- ConsultationList 咨询类型改用 useDictionary (health_consultation_type)
- FamilyMembersTab 家庭关系改用 useDictionary (health_relationship)
|
2026-05-02 11:27:11 +08:00 |
|
iven
|
b6e780e649
|
refactor(web): 统一健康模块静态映射常量到 constants/health.ts
- 收敛 SEVERITY_COLOR/LABEL (5处→1处)
- 收敛 ALERT_STATUS_COLOR/LABEL (3处→1处)
- 收敛 DEVICE_TYPE_OPTIONS/COLOR (3处→1处)
- 收敛 GENDER_LABEL (4处→1处)
- StatusTag 组件改引用 STATUS_TAG_CONFIG
- DoctorDashboard 严重度映射改引用常量
|
2026-05-02 11:24:34 +08:00 |
|
iven
|
3bc4597041
|
fix(health): 工作台 UNION ALL 排序 + 团队概览 display_name NULL 处理
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
- UNION ALL 查询包装子查询解决 PostgreSQL ORDER BY 限制
- get_team_overview 的 display_name 改为 Option<String> 防止 NULL 解码失败
|
2026-05-02 00:21:27 +08:00 |
|
iven
|
5e52b0a34c
|
feat(health): 工作台遗留项修复 — UNION ALL 聚合 + 团队概览 + 较昨日对比
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
1. 待办列表 UNION ALL 聚合:list_action_items 现从 ai_suggestion + alerts + follow_up_task 三表查询,
ActionType 扩展为 AiSuggestion/Alert/Followup/DataAnomaly 四种类型,
get_action_thread 按类型构建不同线程时间线(AI 建议/告警/随访)
2. 真实团队概览:get_team_overview 从 doctor_profile + follow_up_task + alerts 聚合成员统计和风险分布
3. 统计卡片较昨日描述:PersonalStatsResp 新增 6 个 yesterday_* 字段,
Home.tsx 统计卡片底部渲染"较昨日+N"绿色/红色描述
4. 前端 ActionDetailDrawer 改用 item.id(action_type:uuid 格式)调用线程 API
|
2026-05-01 23:25:38 +08:00 |
|
iven
|
310a3cec90
|
refactor(web): 重写工作台 UI 匹配原型设计
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
Home.tsx 改用 CSS Grid 布局替代 antd Row/Col,统计卡片添加
顶部渐变色条。TodoList/AiInsightPanel/TeamOverviewPanel 全部
重写为自定义 inline style,复刻原型中的紧急度圆点、类型标签、
AI 渐变图标、成员进度条、风险分布色块等视觉元素。
|
2026-05-01 22:17:19 +08:00 |
|
iven
|
963556c079
|
fix(health): 修复工作台统计 SQL 表名 — alerts/follow_up_task
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
- alert → alerts(实际表名复数)
- follow_up_plan → follow_up_task(表不存在,改用 pending 状态的随访任务)
|
2026-05-01 21:42:53 +08:00 |
|
iven
|
4aa014de0d
|
feat(web): Home.tsx 集成统一工作台 — 医生行动收件箱 + 主任团队概览
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
- 医生/护士角色:待办任务行替换为行动收件箱(TodoList) + AI 概览面板
- 主任角色:在最近动态下方新增 TeamOverviewPanel 团队概览
- 所有角色:点击待办项可打开 ActionDetailDrawer 查看详情和操作
- admin/operator 角色保持原有待办任务+最近动态布局
|
2026-05-01 21:22:28 +08:00 |
|
iven
|
ab2c9bbc43
|
feat(web): 工作台面板组件 — AiInsightPanel / TeamOverviewPanel / ActionDetailDrawer
- AiInsightPanel: 工作台统计概览(待处理/AI建议/紧急告警/到期随访+完成率)
- TeamOverviewPanel: 主任团队概览(成员列表+风险分布+完成率进度条)
- ActionDetailDrawer: 待办详情抽屉(患者信息+操作时间线+快捷操作按钮)
|
2026-05-01 21:19:46 +08:00 |
|
iven
|
620af8988b
|
feat(web): 工作台前端 API 客户端 + TodoList 组件
- actionInbox.ts 新增 WorkbenchStats/TeamOverview 类型和 stats()/team() API
- 新建 workbench/TodoList.tsx 待办列表组件(分页 + 类型/优先级标签)
|
2026-05-01 21:17:39 +08:00 |
|
iven
|
61397186e7
|
feat(health): 添加工作台统计和团队概览 API
- ActionInboxService 新增 get_workbench_stats 和 get_team_overview
- Handler 新增 /health/action-inbox/stats 和 /team 端点
- 注册 health.action-inbox.team 权限码
|
2026-05-01 21:14:23 +08:00 |
|
iven
|
f13a240000
|
fix(migration): 修复权限关联 — 使用 permission_id 外键关联
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
|
2026-05-01 18:38:03 +08:00 |
|
iven
|
a174f88b6f
|
fix(migration): 修复表名 tenants → tenant(单数)
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
|
2026-05-01 18:36:26 +08:00 |
|
iven
|
5261468953
|
fix(migration): 修复行动收件箱菜单迁移 — 使用正确的 menus 表字段
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
|
2026-05-01 18:34:22 +08:00 |
|
iven
|
8e177ca705
|
feat(web): 家属管理 Tab — 列表+添加/编辑/删除家属
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
|
2026-05-01 18:24:57 +08:00 |
|
iven
|
7764f7f8a6
|
feat(web): 患者详情 AI 标签页添加趋势分析+体检方案触发按钮
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
|
2026-05-01 18:23:10 +08:00 |
|
iven
|
8a972f8f4d
|
feat(web): SSE 分析 API 封装 + 化验报告页 AI 解读按钮
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
- 新增 analysisSse.ts SSE 流式分析 API 封装(ReadableStream 解析)
- 化验报告页操作列添加 AI 解读按钮(SSE 实时流式输出)
- 分析结果展示在 Table 下方的 Card 中
|
2026-05-01 18:21:40 +08:00 |
|
iven
|
a1fa51206f
|
feat(miniprogram): 个人中心添加我的预约+在线咨询入口
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
|
2026-05-01 18:19:23 +08:00 |
|
iven
|
0fb8b98c72
|
feat(miniprogram): 通知 Tab 对接 erp-message 消息 API — 替换空壳
|
2026-05-01 18:18:51 +08:00 |
|
iven
|
f4b536accb
|
fix(miniprogram): AI 建议卡片跳转修复 — 按建议类型跳转对应页面
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
|
2026-05-01 18:17:46 +08:00 |
|
iven
|
8dd269d150
|
feat(web): 患者快捷导航 + 列表页 URL patient_id 筛选 + AI 列表患者 Link
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
- 患者详情页增加快捷导航卡片(预约/咨询/透析/随访/AI)
- 5 个列表页支持 URL ?patient_id=xxx 自动筛选
- AI 分析列表患者 ID 改为可点击 Link 跳转详情
|
2026-05-01 18:17:07 +08:00 |
|
iven
|
0f32d28ddb
|
feat(web): 患者详情页增加快捷导航卡片 — 预约/咨询/透析/随访/AI
|
2026-05-01 18:13:02 +08:00 |
|
iven
|
ebae393e90
|
chore(server): domain_events 清理周期从 90 天缩短为 7 天
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
|
2026-05-01 17:44:00 +08:00 |
|
iven
|
797c4e9e20
|
fix(health): 危急值告警查询添加 tracing 错误日志
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
|
2026-05-01 17:43:05 +08:00 |
|
iven
|
4cde4acddc
|
feat(migration): 行动收件箱菜单种子数据 + 权限关联
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
|
2026-05-01 17:41:41 +08:00 |
|
iven
|
e1ebae4ed0
|
fix(web): 补充告警/收件箱/设备等菜单图标映射
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
- 新增 AlertOutlined/BellOutlined/ControlOutlined/InboxOutlined/ApiOutlined/ReadOutlined/ExperimentOutlined 图标导入和映射
|
2026-05-01 17:40:17 +08:00 |
|
iven
|
ae1c9ccc77
|
feat(web): Login/MainLayout 从主题配置读取品牌信息
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
- Login.tsx 从 /api/v1/public/brand 读取品牌名称/标语/特性/版权
- MainLayout 侧边栏 Logo 和 Footer 从 themeConfig 读取
- 启动时调用 loadThemeConfig 缓存主题配置
- 移除所有硬编码品牌文字(HMR Platform → 动态读取)
|
2026-05-01 17:39:21 +08:00 |
|
iven
|
669ca44360
|
feat(web): 主题设置联动 — 扩展 ThemeConfig 品牌字段 + 设置页面表单
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
- ThemeConfig 接口增加 brand_name/brand_slogan/brand_features/brand_copyright
- 新增 BrandConfig 接口和 getPublicBrand 公开品牌信息获取
- app store 增加 themeConfig 缓存和 loadThemeConfig 方法
- ThemeSettings 页面增加品牌设置表单(品牌名称/标语/特性/版权)
|
2026-05-01 17:37:10 +08:00 |
|
iven
|
6eb2bf9c80
|
feat(config): ThemeResp 增加品牌字段 + 公开品牌信息端点
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
- ThemeResp 新增 brand_name/brand_slogan/brand_features/brand_copyright 字段
- default_theme 提供品牌默认值
- 新增 PublicBrandResp 和 GET /api/v1/public/brand 公开端点(无需认证)
- ConfigModule 增加 public_routes 方法
- 更新测试覆盖品牌字段
|
2026-05-01 17:34:43 +08:00 |
|
iven
|
a95e3d8645
|
fix(plugin): 修复测试编译失败 — 补充 parse_manifest 导入
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
|
2026-05-01 17:28:31 +08:00 |
|
iven
|
95d7989a9f
|
docs: 三端审计修复实施计划 Phase 3 — 6 个 Task (#12-#15)
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
SSE 分析 API 包装器、AI 触发按钮、家庭成员 Tab、E2E 清理夹具、统计验证
|
2026-05-01 17:25:29 +08:00 |
|
iven
|
73119fe026
|
docs: 三端审计修复实施计划 Phase 2 — 6 个 Task (#7-#11)
Chunk 2: 体验补全阶段
- Task 9: 患者详情快捷导航卡片
- Task 10: 5 个列表页支持 URL patient_id 过滤
- Task 11: AI 分析列表患者 Link
- Task 12: 小程序 AI 建议跳转修复
- Task 13: 小程序通知 Tab 对接 erp-message API
- Task 14: 小程序咨询功能入口
|
2026-05-01 17:20:45 +08:00 |
|
iven
|
ac2797e1b7
|
docs: 修正 #10 通知端点描述 — erp-message 模块通知体系完整
|
2026-05-01 17:19:39 +08:00 |
|
iven
|
fc1d51e6f1
|
docs: 三端审计修复实施计划 Phase 1 — 8 个 Task (#1-#6)
|
2026-05-01 17:17:19 +08:00 |
|
iven
|
988b405c5d
|
docs: 修复设计规格审查问题 — 迁移编号/通知端点/根因验证
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
CRITICAL 修复:
- 迁移编号 000098/000099 → 000100/000101(避免与已有迁移冲突)
- 通知端点改为对接 GET /messages(后端无独立通知端点)
IMPORTANT 修复:
- 危急值 500 增加强制根因验证步骤(先确认 RLS 状态再决定是否补齐)
- 品牌设置增加公开端点 + localStorage 缓存策略(解决登录页未认证问题)
- #15 统计仪表盘降级为验证任务(DoctorDashboard 已消费 personalStats)
|
2026-05-01 17:12:41 +08:00 |
|
iven
|
ff073c83a5
|
docs: 三端联调审计问题修复设计规格 — 15 项修复方案
基于 4 专家组代码级分析整合:
- P0: erp-plugin 测试修复 + 品牌主题设置联动
- P1: 菜单入口补全 + 危急值 500 修复 + 事件堆积清理
- P2: 导航关联 + 小程序 3 项修复
- P3: AI SSE 入口 + 家属管理 + E2E 清理
- P4: 统计仪表盘消费
品牌信息改为通过主题设置动态管理(非硬编码)。
|
2026-05-01 17:07:50 +08:00 |
|
iven
|
75bf900950
|
feat(miniprogram): 行动收件箱 — Service + 医生端列表页 + 半屏弹窗
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
- action-inbox.ts: listActionItems + getActionThread API 调用
- doctor/action-inbox: 待办列表页,Tab 筛选 + 半屏线程弹窗 + 操作按钮
- app.config.ts: 注册 action-inbox 页面到 doctor 子包
|
2026-05-01 16:40:32 +08:00 |
|
iven
|
6d66a392db
|
feat(web): NotificationPanel 增加待办预览区域
- 底部新增"待办事项"区域,显示最近 3 条 pending 行动项
- 角标数字改为 unreadCount + pendingActionCount
- 点击待办项跳转 /health/action-inbox
|
2026-05-01 16:37:29 +08:00 |
|
iven
|
81dd3d2bda
|
feat(web): 行动收件箱前端 — API + Drawer + 列表页 + 路由
- actionInbox.ts: API 调用层,list + getThread
- ActionThreadDrawer: 上下文线程抽屉,时间线 + 操作按钮
- ActionInbox: 列表页,Tabs 筛选 + 分页 + 点击打开 Drawer
- App.tsx: 注册 /health/action-inbox 路由
|
2026-05-01 16:36:24 +08:00 |
|
iven
|
758bc210e1
|
feat(health): 行动收件箱后端 — ActionInboxService + Handler + 路由注册
- ActionInboxService: 三表 JOIN 聚合查询 ai_suggestion/ai_analysis/patient
- list_action_items: 分页列表,按 risk_level + created_at 排序
- get_action_thread: 线程时间线拼装 + 动态操作按钮
- ActionInboxHandler: 2 个 GET 端点,require_permission 权限守卫
- 路由: /health/action-inbox, /health/action-inbox/{source_ref}/thread
- 权限: health.action-inbox.list, health.action-inbox.manage
|
2026-05-01 16:33:40 +08:00 |
|
iven
|
3cba699ca0
|
fix(web): 修复 AiAnalysisList JSX 嵌套结构 — SuggestionPanel 容器层级
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
|
2026-05-01 10:48:14 +08:00 |
|
iven
|
8b837c0591
|
feat(miniprogram): AI 建议卡片 — 健康页顶部显示待审批建议摘要
- 新增 listPendingSuggestions API
- 健康页加载待审批 AI 建议(最多 3 条)
- 风险等级圆点 + 建议摘要文字
- 点击卡片可跳转
|
2026-05-01 09:22:18 +08:00 |
|
iven
|
598c06885f
|
feat(web): 患者 AI 建议标签页 — 待审批建议列表+审批操作
- 新增 AiSuggestionTab 组件(风险等级+类型+状态+审批按钮)
- PatientDetail 添加「AI 建议」标签页
- 复用 suggestions API 层
|
2026-05-01 09:19:50 +08:00 |
|
iven
|
92c1c3c17d
|
feat(web): AI 分析详情增加建议面板 — 风险等级+建议列表+审批操作
- 新增 suggestions API 层(list/approve/getComparison)
- 展开分析详情时自动加载关联的 AI 建议列表
- 风险等级彩色标签(低/中/高)
- 建议类型、原因、执行状态展示
- 待审批建议支持批准/拒绝操作
|
2026-05-01 09:17:18 +08:00 |
|
iven
|
5d2402a1e7
|
feat(ai+health): 闭环核心 — 随访完成→再分析触发 + 前后对比报告
- follow_up.completed 消费者:通过 action_result 反查 AI 建议,触发再分析
- ai.reanalysis.requested 消费者:加载原始建议 baseline
- comparison.rs:对比报告生成引擎(指标变化百分比+趋势判断)
- GET /ai/suggestions/{id}/comparison:前后对比报告 API
- find_by_followup_task:通过随访任务反查关联建议ID
|
2026-05-01 09:14:13 +08:00 |
|
iven
|
0a4825be99
|
feat(health+workflow): 行动分发→工作流启动集成 — 事件驱动 BPMN 实例化
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
- create_pending_action 新增 workflow.ai_action.start_requested 事件发布
- 根据 action_type 映射到对应 BPMN 流程定义 key
- erp-workflow 消费启动请求,自动创建审批流程实例
- 流程变量包含 risk_level/patient_id/action_type/params
|
2026-05-01 08:53:57 +08:00 |
|